Mathovore, everything you need to succeed in math: Common Core lessons, worksheets, tests and quizzes
Skip to content

AP Statistics Two-Variable Data Lesson: Scatterplots, r and Regression

    Key takeaway: This AP Statistics two variable lesson shows how to analyze the relationship between two quantitative variables. A scatterplot reveals direction, form, strength and unusual points. The correlation \(r\) measures only linear association, and the least-squares line predicts \(y\) from \(x\). You then interpret the slope, the intercept and \(r^{2}\) in context, check a residual plot and avoid extrapolation. The notes follow AP Statistics Unit 5.

    A scatterplot shows how two quantitative variables are related. The correlation r measures the strength and direction of a linear association, and the least-squares regression line predicts y from x. Interpret the slope, intercept and r squared in context, check a residual plot, and avoid extrapolation.

    AP StatisticsCommon Core: AP Statistics Unit 5 (2026-27)

    AP Statistics Two Variable Lesson: key facts

    • Describe a scatterplot by direction, form, strength and unusual points, in context.
    • The correlation r is between -1 and 1, has no units, and measures only linear association.
    • The least-squares line has slope b = r (s_y / s_x) and passes through (x-bar, y-bar).
    • A residual is y – y-hat; a residual plot with no pattern supports a linear model.
    • r squared is the percent of the variation in y explained by the linear relationship with x.

    How do you describe the association in a scatterplot?

    A scatterplot shows two quantitative variables for the same individuals. Put the explanatory variable x on the horizontal axis and the response variable y on the vertical axis. Describe the direction (positive or negative), form (linear or curved), strength and any unusual points, in context. Ethan’s lemonade stand shows a strong positive linear association.

    60708090100High temperature (°F)10203040506070Cups sold
    Lemonade sales rise with temperature: positive, linear and strong.

    What does the correlation r measure?

    Correlation
    \(r=\frac{1}{n-1}\sum(\frac{x-\,\overline{x}}{s_x})(\frac{y-\,\overline{y}}{s_y})\)

    r is between -1 and 1. It measures the strength and direction of a linear association only, has no units, and is not resistant to outliers.

    For the lemonade data \(r\approx 0.993\). Even a high r does not prove that x causes y.

    r = 0.996r = 0.10r = -0.92
    Correlation measures how closely points follow a line, and its sign gives the direction.

    How do you find the least-squares regression line?

    The least-squares regression line \(\hat{y}=a+bx\) makes the sum of the squared residuals as small as possible. A residual is \(y-\hat{y}\). Compute the slope and intercept from summary statistics, since the line always passes through \((\,\overline{x},\,\overline{y})\).

    \(b=r\,\frac{s_y}{s_x}\quad\quad a=\,\overline{y}-b\,\overline{x}\)

    Example. Here \(\,\overline{x}=77.5\), \(s_x\approx 9.81\) and \(\,\overline{y}=37.375\) and \(s_y\approx 12.70\), with \(r\approx 0.993\). Then \(b=0.993\cdot\frac{12.70}{9.81}\approx 1.286\) and \(a=37.375-1.286(77.5)\approx -62.26\), so \(\hat{y}=-62.26+1.286x\).

    60708090100High temperature (°F)10203040506070Cups sold
    The least-squares line passes through (77.5, 37.375); dashed segments are residuals.

    How do you interpret the slope, the intercept and r squared?

    • Slope: for each additional 1 °F, the predicted number of cups sold increases by about 1.29.
    • Intercept: at 0 °F the model predicts \(-62.3\) cups, which is not meaningful because 0 °F is far outside the data.
    • r squared: \(r^{2}\approx 0.986\) means about 98.6% of the variation in cups sold is explained by the linear relationship with temperature.

    How do residual plots, influential points and extrapolation affect the model?

    If the residual plot shows no pattern, a line is appropriate; a curve in the plot means the form is not linear. A point that is extreme in the x direction can be influential: removing it changes the slope or r a lot.

    60708090100High temperature (°F)-4-2024Residual (cups)
    No pattern in the residuals, so a line is an appropriate model.
    60708090100High temperature (°F)10203040506070Cups sold
    The added point (95, 20), circled in pink, drags the line from slope 1.29 (orange) to 0.63 (green).

    Extrapolation, predicting outside the observed x values, is unreliable. The line gives \(\approx 66.3\) cups at 100 °F, but no data support that.

    Regression Analysis: frequently asked questions

    What is the difference between r and r squared?

    The correlation r gives direction and strength of the linear association, from -1 to 1. The coefficient of determination r squared is the fraction of variation in y explained by the line, always between 0 and 1. If r is -0.9, then r squared is 0.81.

    How do I interpret the slope of a regression line?

    Say that for each additional 1 unit of x, the predicted y changes by the slope, naming both variables and units. For a slope of 1.29, each extra degree is associated with about 1.29 more cups sold.

    When is the intercept meaningful?

    Only when x = 0 is plausible and within the range of the data. Otherwise just say it is the predicted y when x is 0 and note that it has no practical meaning.

    What does a pattern in the residual plot mean?

    A curve or a fan shape means a straight line is not a good model, even if r is high. Random scatter around zero with no pattern means the linear model is appropriate.

    What is an influential point?

    It is a point whose removal changes the slope, intercept or correlation substantially. Points far from the other x values are the most likely to be influential, even when their residual is small.

    How do you describe a scatterplot in an AP Statistics two variable lesson?

    Name four features: direction, form, strength and unusual points. For used cars, the price falls as age rises, so the pattern is negative and roughly linear. Also, mention any outlier by its location. Because the grader wants context, write “older cars cost less,” not just “negative.” Each claim needs the variables by name.

    What does the correlation r measure?

    The value of \(r\) lies between \(-1\) and 1 and has no units. A value of \(-0.92\) shows a stronger linear link than \(0.10\), even though it is negative. However, a curved pattern can have \(r\) near 0 and still show a clear relationship. Therefore always look at the graph before you quote \(r\).

    How do you build and read the regression line?

    The slope is \(b=r\frac{s_y}{s_x}\), and the line passes through \((\,\overline{x},\,\overline{y})\). For \(\,\overline{x}=40\), \(s_x=8\), \(\,\overline{y}=120\), \(s_y=20\) and \(r=0.6\), the slope is 1.5 and the intercept is 60. Read the slope as the predicted shift in \(y\) when \(x\) grows by one unit. Meanwhile, \(r^{2}=0.49\) means 49% of the variation in \(y\) is explained by the line.

    Why do residuals, influence and extrapolation matter?

    A residual is \(y-\hat{y}\). For \(\hat{y}=48.5+3.2x\) and 7 hours studied, the prediction is 70.9, so a score of 78 leaves a residual of 7.1. Next, a residual plot with a curve warns that a line is wrong. Finally, a point far to the right, such as (25, 20), can pull the line, and a prediction outside the data range is unreliable.

    What can you do on your own after this lesson?

    Gather ten pairs, such as daily steps and minutes of sleep. Then sketch the scatterplot and guess \(r\) before you compute it. Afterward, draw the residual plot and say in one sentence whether a line fits.

    Next step after this ap statistics two variable lesson: Regression Analysis worksheet

    Printable PDF · Lesson

    AP Statistics Regression Analysis lesson

    • 📄 US Letter
    • 💾 110 KB
    • 🖨️ Black and white friendly
    Download the PDF

    See every chapter on the AP Statistics math page.

    Rate this page

    Mathovore apps

    Our free apps and software

    Apps to practice math, and software for Windows.

    Discover
    Math textbooks to download in PDF, from grade 1 to precalculus