AP · Statistics · Scatterplots and Correlation

Scatterplots and Correlation

13 min readUpdated November 30, 2026FreeAP Statistics, Exploring Two-Variable Data

A scatterplot shows how a response variable changes with an explanatory variable, and you describe it by its direction, form, strength and any unusual features, in context. The correlation rr measures the direction and strength of a linear relationship on a scale from −1-1 to 11, with no units. A strong correlation never shows on its own that one variable causes the other.

Quick check

  1. A data set has mean 7 and standard deviation 1.5. What is the z-score of 10?Show answerHide answer

    z=10−71.5=2z = \dfrac{10 - 7}{1.5} = 2. Correlation is built from z-scores like this one.

  2. As hours of sleep go up, reaction times tend to go down. Is that a positive or a negative relationship?Show answerHide answer

    Negative: larger values of one variable go with smaller values of the other.

Know these already? Jump to the practice questions

What you'll be able to do

  • Identify the explanatory and response variables in a context.
  • Describe a scatterplot by its direction, form, strength and unusual features, in context.
  • Calculate the correlation rr from data and interpret it.
  • Explain why rr has no units and when it does not change.
  • Explain why correlation alone does not show causation.

Key terms

Explanatory variable

The variable that may help explain or predict changes in the other; it goes on the horizontal (xx) axis.

In plain English
The input you think might drive the outcome.
Don't write
"the explanatory variable causes the response"; the roles alone show no cause.

Response variable

The variable that measures an outcome; it goes on the vertical (yy) axis.

In plain English
The outcome you want to understand or predict.
Don't write
The response on the xx-axis.

Correlation

r=1n−1∑(xi−xˉsx)(yi−yˉsy)r = \dfrac{1}{n - 1}\sum \left(\dfrac{x_i - \bar{x}}{s_x}\right)\left(\dfrac{y_i - \bar{y}}{s_y}\right), a number from −1-1 to 11 measuring the direction and strength of a linear relationship.

In plain English
How tightly the points cluster around a straight line, and whether it slopes up or down.
Don't write
"correlation" for any kind of relationship; rr measures linear ones only.

Which variable goes on which axis?

The explanatory variable goes on the xx-axis and the response variable on the yy-axis. Ask which variable you would use to predict the other, or which one happens first. For hours of sleep and next-day reaction time, sleep comes first and may affect reaction time, so sleep is explanatory.

Sometimes neither variable is clearly first, such as height and arm span. Then either choice is acceptable, as long as you state it.

Explanatory does not mean causal. Calling sleep explanatory is a choice of roles, not a claim that sleep causes the change; only a randomized experiment can support that.

Check yourself

A study records the number of hours students practice piano each week and their scores at a recital. Which is the response variable?
Show answerHide answer

The recital score: practice comes first and is used to predict the score.

How do you describe a scatterplot?

Describe four features, always in context (name both variables):

  • Direction: positive (as xx increases, yy tends to increase), negative, or neither.
  • Form: linear, or curved, or clusters.
  • Strength: how closely the points follow the form: strong, moderate or weak.
  • Unusual features: outliers far from the pattern, or separate clusters.

A full description sounds like this, for hypothetical data on used cars: "There is a strong, negative, linear relationship between a car's age and its price: older cars tend to sell for less. One 3-year-old car is priced well above the pattern."

Examiner's eye

Credit is lost when a description uses only "x" and "y". Name the variables, and give direction, form and strength plus any unusual points.

Check yourself

Points rise steeply at first and then level off, staying close to that path. What are the form and the strength?
Show answerHide answer

Curved (nonlinear) form, and strong, because the points stay close to the curve.

What does the correlation rr measure?

rr measures the direction and strength of a linear relationship. The formula, on the formula sheet, multiplies each point's z-scores and averages the products (dividing by n−1n - 1).

  • rr is always between −1-1 and 11. Its sign gives the direction; values near −1-1 or 11 mean the points lie close to a line, and values near 0 mean a weak linear relationship.
  • rr has no units, because it is built from z-scores. So converting units (for example, hours to minutes) does not change rr.
  • Swapping xx and yy does not change rr.
  • rr is not resistant: one outlier far from the pattern can pull it strongly toward 0 or toward ±1\pm 1.

In practice you find rr with a graphing calculator's linear regression, but you need the formula's meaning to interpret it.

Key idea

rr is a unit-free measure of how closely points follow a straight line, and its sign gives the direction.

Check yourself

For hypothetical data on age in years and height in centimeters, r=0.84r = 0.84. What is rr if age is measured in months?
Show answerHide answer

r=0.84r = 0.84. Changing units does not change rr.

What can't correlation tell you?

  • It misses curves. A perfect U-shaped pattern can have r=0r = 0, and a curved pattern can still have rr close to 1. Always look at the scatterplot before you trust rr.
  • It is not causation. A strong correlation can come from a lurking variable, one not studied that affects both variables. Across hypothetical cities, the numbers of libraries and of bicycle thefts are strongly correlated, because larger cities have more of both.

Only a well-designed randomized experiment can show that changing xx causes a change in yy.

Check yourself

Across hypothetical schools, the number of vending machines and average test scores have r=−0.55r = -0.55. Does removing vending machines raise scores?
Show answerHide answer

The data cannot show that. They are observational, and a lurking variable such as school funding could affect both.

Worked example 1: Calculating rr

Question: Five hypothetical volunteers recorded hours of sleep (xx) and next-day reaction time in milliseconds (yy): (5,310)(5, 310), (6,290)(6, 290), (7,285)(7, 285), (8,262)(8, 262), (9,253)(9, 253). (a) Identify the explanatory variable. (b) Calculate rr to four decimal places and interpret it.

What tells you the method

"calculate rr" with raw data means the correlation formula, built from deviations from the means.

  1. Step 1: Find the means and deviations.

    xˉ=7\bar{x} = 7 and yˉ=280\bar{y} = 280. The deviations are −2,−1,0,1,2-2, -1, 0, 1, 2 for xx and 30,10,5,−18,−2730, 10, 5, -18, -27 for yy.

    Why

    Each z-score in the formula starts from a deviation.

  2. Step 2: Find the standard deviations.

    ∑(x−xˉ)2=10\sum (x - \bar{x})^2 = 10, so sx=10/4=1.5811s_x = \sqrt{10/4} = 1.5811; ∑(y−yˉ)2=2078\sum (y - \bar{y})^2 = 2078, so sy=2078/4=22.7925s_y = \sqrt{2078/4} = 22.7925.

    Why

    The formula divides each deviation by its standard deviation.

  3. Step 3: Combine.

    ∑(x−xˉ)(y−yˉ)=−60−10+0−18−54=−142\sum (x - \bar{x})(y - \bar{y}) = -60 - 10 + 0 - 18 - 54 = -142, so r=−1424(1.5811)(22.7925)=−0.9851r = \dfrac{-142}{4(1.5811)(22.7925)} = -0.9851.

    Why

    This is the formula sheet's sum of z-score products, divided by n−1=4n - 1 = 4.

Check it

Reaction time falls as sleep rises, so rr must be negative, and the points are close to a line, so it should be near −1-1. A graphing calculator's linear regression gives the same value.

Answer

(a) Hours of sleep is the explanatory variable. (b) r=−0.9851r = -0.9851: a very strong, negative, linear relationship between sleep and reaction time for these volunteers.

Worked example 2: Interpreting rr and judging a claim

Question: For 25 hypothetical students, daily phone time (hours) and GPA have r=−0.62r = -0.62. The scatterplot shows a roughly linear pattern with no outliers. (a) Describe the relationship in context. (b) What would rr be if phone time were measured in minutes? (c) A headline says "Cutting phone time raises grades." Do these data support it?

What tells you the method

"describe" asks for direction, form and strength; units and causation are properties of rr.

  1. Step 1: Describe.

    There is a moderate, negative, linear relationship: students with more phone time tend to have lower GPAs.

    Why

    The sign gives the direction, ∣r∣=0.62|r| = 0.62 is moderate, and the plot shows a linear form with no outliers.

  2. Step 2: Change of units.

    Minutes =60×= 60 \times hours, so rr stays −0.62-0.62.

    Why

    rr is built from z-scores, which a unit change does not alter.

  3. Step 3: Judge the causal claim.

    These are observational data, so they cannot show cause and effect. A lurking variable, such as hours spent on a part-time job, could affect both phone time and grades.

    Why

    Only a randomized experiment supports "causes".

Check it

Each part names phone time and GPA, as a description in context must.

Answer

(a) A moderate, negative, linear relationship between phone time and GPA. (b) r=−0.62r = -0.62. (c) No: the data are observational, so they cannot show that cutting phone time raises grades.

Your turn

Question: Calculate rr for the hypothetical points (2,3)(2, 3), (4,7)(4, 7), (6,5)(6, 5), (8,9)(8, 9).

  1. Step 1:

    xˉ=5\bar{x} = 5 and yˉ=6\bar{y} = 6. The xx-deviations are −3,−1,1,3-3, -1, 1, 3 and the yy-deviations are −3,1,−1,3-3, 1, -1, 3, so sx=sy=20/3=2.5820s_x = s_y = \sqrt{20/3} = 2.5820.

  2. Step 2: Your go: multiply the deviations, add them, and divide by (n−1)sxsy(n - 1)s_x s_y.

Show the full solutionHide the solution

∑(x−xˉ)(y−yˉ)=9−1−1+9=16\sum (x - \bar{x})(y - \bar{y}) = 9 - 1 - 1 + 9 = 16, and (n−1)sxsy=3×203=20(n - 1)s_x s_y = 3 \times \dfrac{20}{3} = 20, so r=1620=0.8r = \dfrac{16}{20} = 0.8.

Answer: r=0.8r = 0.8, a strong, positive, linear relationship.

Traps

Trap

Thinking that r=0r = 0 means the variables are unrelated.

It seems right because 0 sounds like "nothing". But rr measures only linear relationships, so a strong curved pattern, such as a U shape, can have r=0r = 0.

Check yourself

The points (−2,4)(-2, 4), (−1,1)(-1, 1), (0,0)(0, 0), (1,1)(1, 1), (2,4)(2, 4) give r=0r = 0. Are xx and yy related?
Show answerHide answer

Yes: every point lies on y=x2y = x^2, a perfect curved relationship that rr cannot detect.

Trap

Treating a strong correlation as proof that xx causes yy.

It seems right because the two variables move together so closely. But a lurking variable can drive both, and only a randomized experiment can show cause and effect.

Check yourself

Across hypothetical towns, ice cream sales and swimming-pool injuries have r=0.9r = 0.9. What is a likely lurking variable?
Show answerHide answer

Temperature: hot weather increases both ice cream sales and pool use.

What's examined

Scatterplots and correlation appear on the AP® Statistics exam (Two-variable data), in multiple-choice and free-response questions. Expect Describe, Identify, Interpret and Explain: describe a scatterplot in context, interpret rr, and explain why an observational study cannot show causation. The correlation formula is on the formula sheet, but you usually find rr with a graphing calculator. Regression lines come next: see the note on The Least-Squares Regression Line.

Practice questions

  1. Recall Which correlation shows the strongest linear relationship?
    • A) r=0.75r = 0.75
    • B) r=−0.12r = -0.12
    • C) r=0.40r = 0.40
    • D) r=−0.86r = -0.86
Show answer

Answer: D) r=−0.86r = -0.86

Marking points:

  • Strength depends on the size of rr, not its sign: ∣−0.86∣|-0.86| is the largest.
  • A is the largest positive value, chosen by ignoring negative values. B and C are weaker.
  1. Apply Hypothetical data on practice hours (xx) and free throws made out of 20 (yy) for five players: (1,8)(1, 8), (2,9)(2, 9), (3,12)(3, 12), (4,11)(4, 11), (5,15)(5, 15). Calculate rr to four decimal places.
Show answer

Answer: r=0.9238r = 0.9238

Marking points:

  • xˉ=3\bar{x} = 3, yˉ=11\bar{y} = 11; ∑(x−xˉ)(y−yˉ)=16\sum (x - \bar{x})(y - \bar{y}) = 16, ∑(x−xˉ)2=10\sum (x - \bar{x})^2 = 10, ∑(y−yˉ)2=30\sum (y - \bar{y})^2 = 30.
  • sx=1.5811s_x = 1.5811, sy=2.7386s_y = 2.7386, so r=164(1.5811)(2.7386)=0.9238r = \dfrac{16}{4(1.5811)(2.7386)} = 0.9238.
  1. Apply For hypothetical adults, the correlation between height in centimeters and weight in kilograms is 0.68. Height is converted to inches (multiply by 0.3937) and weight to pounds (multiply by 2.2046). What is the new correlation?
    • A) 0.27
    • B) 0.59
    • C) 0.68
    • D) 1.50
Show answer

Answer: C) 0.68

Marking points:

  • rr has no units, and multiplying a variable by a positive constant does not change it.
  • A multiplies rr by 0.3937. B multiplies by both factors. D multiplies by 2.2046, which would also give an impossible r>1r > 1.
  1. Exam-style For 16 hypothetical used cars, age (years) and price (thousands of dollars) have r=−0.93r = -0.93. One 3-year-old car is priced far above the strong negative linear pattern of the others. If that car is removed, what happens to rr?
    • A) It moves closer to 0.
    • B) It moves closer to −1-1.
    • C) It stays the same.
    • D) It becomes positive.
Show answer

Answer: B) It moves closer to −1-1.

Marking points:

  • The car lies far from the line, so it weakens the linear pattern; without it the points fit a line more closely.
  • A reverses the effect. C ignores that rr is not resistant. D would need the pattern itself to change direction.
  1. Apply Across 40 hypothetical cities, the number of libraries and the number of reported bicycle thefts have r=0.81r = 0.81. Which explanation is most reasonable?
    • A) Population size is a lurking variable that increases both.
    • B) Libraries attract bicycle thieves.
    • C) Bicycle thefts cause cities to build libraries.
    • D) A correlation of 0.81 proves that one variable causes the other.
Show answer

Answer: A) Population size is a lurking variable that increases both.

Marking points:

  • Larger cities have more libraries and more bicycles to steal, so population drives both counts.
  • B and C claim causation from observational data. D is false: no correlation proves causation.
  1. Apply For six hypothetical points, the sum of the products of the z-scores is ∑zxzy=3.6\sum z_x z_y = 3.6. Calculate rr.
Show answer

Answer: r=0.72r = 0.72

Marking points:

  • r=1n−1∑zxzyr = \dfrac{1}{n - 1}\sum z_x z_y with n=6n = 6.
  • r=3.65=0.72r = \dfrac{3.6}{5} = 0.72.
  1. Exam-style Hypothetical points: (−2,4)(-2, 4), (−1,1)(-1, 1), (0,0)(0, 0), (1,1)(1, 1), (2,4)(2, 4). (a) Calculate rr. (b) A student concludes that xx and yy have no relationship. Explain why the student is wrong.
Show answer

Answer: (a) r=0r = 0 (b) The points follow y=x2y = x^2 exactly, a perfect curved relationship; rr only measures linear relationships.

Marking points:

  • xˉ=0\bar{x} = 0, yˉ=2\bar{y} = 2; ∑(x−xˉ)(y−yˉ)=(−2)(2)+(−1)(−1)+0+(1)(−1)+(2)(2)=0\sum (x - \bar{x})(y - \bar{y}) = (-2)(2) + (-1)(-1) + 0 + (1)(-1) + (2)(2) = 0, so r=0r = 0.
  • The explanation names the curved form and says rr only detects linear patterns.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Put the explanatory variable on the xx-axis and the response on the yy-axis; the roles do not prove causation.
  • Describe a scatterplot by direction, form, strength and unusual features, naming both variables.
  • rr lies between −1-1 and 11, has no units, and is unchanged by swapping axes or changing units.
  • rr measures only linear relationships and is pulled by outliers, so look at the plot first.
  • Correlation is not causation: lurking variables can drive both, and only randomized experiments show cause.

Keep learning

Explore AP Statistics tutoring →

View the full Statistics syllabus →

More in this unit

Exploring Two-Variable Data

All Scatterplots and Correlation notes

Part of Novark's AP Statistics notes