Data Visualization › Scatter Plots: Revealing Relationships
Machine Learning from ScratchAll chapters Data Visualization › Scatter Plots: Revealing RelationshipsOne section · Sections in this chapter5 / 10 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Scatter plots display the relationship between two continuous variables by plotting each observation as a point in two-dimensional space. The resulting point cloud reveals patterns of association that summary statistics like correlation coefficients capture only partially. A tight linear arrangement of points indicates a strong relationship, while a diffuse cloud suggests weak or no association. Non-linear patterns (curves, clusters, or fan shapes) expose complexities that linear models would fail to capture.
The strength of scatter plots lies in their ability to reveal the nature of relationships, not just their existence. Two variables might have identical correlation coefficients but completely different scatter plot patterns. One might show a linear relationship, while another exhibits a curved relationship, and a third displays a linear trend distorted by a few influential outliers. Only the scatter plot distinguishes between these scenarios, guiding the choice of appropriate modeling techniques.



Scatter plots also expose violations of statistical assumptions that can undermine formal analyses. Heteroscedasticity, where the spread of points increases or decreases along the range of the predictor, violates an important assumption of ordinary least squares regression. A funnel-shaped scatter plot immediately reveals this problem, suggesting the need for robust regression methods or transformation of variables. Clusters of points separated by gaps might indicate distinct subgroups that should be modeled with categorical variables or mixture models rather than treating all observations as homogeneous.


For datasets with many observations, overplotting can obscure patterns as thousands of points overlap and create solid blocks of color. Transparency settings (alpha blending) partially address this by allowing dense regions to appear darker while preserving visibility of individual points in sparse areas. Hexagonal binning or contour plots provide alternative representations that summarize point density when datasets grow too large for individual points to remain distinguishable.