Scatterplots
散点图
How are scatterplots used?
The explanatory variable goes on the horizontal axis and the response on the vertical; the pattern shows their relation.
Sign in to read the whole lesson, with 11 exercises
Sign in / Sign upMastery goals
- Can construct a scatterplot with explanatory and response variables
- Can describe the direction, form, strength and unusual points of a relationship
The data of a single variable can be described by a histogram, which shows how they are distributed. In the same way, to describe more directly how body-fat percentage and age are related in the paired sample data above, we show how the paired sample data vary in a picture. Put age on the horizontal axis and body-fat percentage on the vertical axis. Each pair of sample data under a number in Table 8.1-1 can then be shown as a point in a rectangular coordinate system, and these points form a statistical graph like Figure 8.1-1. We call such a statistical graph a scatter plot.
Statistical software can draw scatter plots: in some spreadsheet programs, insert a chart and choose the scatter type; in R, use the function plot.
Looking at Figure 8.1-1, the points lie roughly near a straight line running from bottom left to top right: as age increases, body-fat percentage tends to increase. So, from the pattern of the paired sample data, we can infer that the variables body-fat percentage and age are correlated.
If, on the whole, the values of one variable tend to increase as the values of the other increase, we say the two variables are positively correlated (positive correlation); if the values of one variable tend to decrease as the values of the other increase, we say the two variables are negatively correlated (negative correlation).
From Figure 8.1-1 we can infer that body-fat percentage and age are positively correlated.
A scatter plot is a direct way to show how paired data are related. Looking at Figure 8.1-1, we can see roughly not only that body-fat percentage and age are positively correlated, but also that, on the whole, the points lie near some straight line. In general, if two variables are positively or negatively correlated and the points of the scatter plot lie near a straight line, we say the two variables are linearly correlated.
Look at the three scatter plots in Figure 8.1-2. In plot (1) the points lie near some curve rather than near a straight line, so the two variables are correlated but not linearly correlated. Similarly, in plot (2) the points lie near a broken line; these two variables are also correlated, but they are neither positively nor negatively correlated. In plot (3) the points are scattered at random with no pattern at all, and we cannot see any correlation between the two variables.
In general, if two variables are correlated but not linearly correlated, we say the two variables are nonlinearly correlated, or curvilinearly correlated.
Related points
All points in this topicCite this page: Scatterplots · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000935