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 measures the direction and strength of a linear relationship on a scale from to , with no units. A strong correlation never shows on its own that one variable causes the other.
Quick check
A data set has mean 7 and standard deviation 1.5. What is the z-score of 10?Show answerHide answer
. Correlation is built from z-scores like this one.
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 from data and interpret it.
- Explain why 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 () 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 () axis.
- In plain English
- The outcome you want to understand or predict.
- Don't write
- The response on the -axis.
Correlation
, a number from to 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; measures linear ones only.
Which variable goes on which axis?
The explanatory variable goes on the -axis and the response variable on the -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
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 increases, 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
Show answerHide answer
Curved (nonlinear) form, and strong, because the points stay close to the curve.
What does the correlation measure?
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 ).
- is always between and . Its sign gives the direction; values near or mean the points lie close to a line, and values near 0 mean a weak linear relationship.
- has no units, because it is built from z-scores. So converting units (for example, hours to minutes) does not change .
- Swapping and does not change .
- is not resistant: one outlier far from the pattern can pull it strongly toward 0 or toward .
In practice you find with a graphing calculator's linear regression, but you need the formula's meaning to interpret it.
Key idea
is a unit-free measure of how closely points follow a straight line, and its sign gives the direction.
Check yourself
Show answerHide answer
. Changing units does not change .
What can't correlation tell you?
- It misses curves. A perfect U-shaped pattern can have , and a curved pattern can still have close to 1. Always look at the scatterplot before you trust .
- 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 causes a change in .
Check yourself
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
Question: Five hypothetical volunteers recorded hours of sleep () and next-day reaction time in milliseconds (): , , , , . (a) Identify the explanatory variable. (b) Calculate to four decimal places and interpret it.
What tells you the method
"calculate " with raw data means the correlation formula, built from deviations from the means.
Step 1: Find the means and deviations.
and . The deviations are for and for .
WhyEach z-score in the formula starts from a deviation.
Step 2: Find the standard deviations.
, so ; , so .
WhyThe formula divides each deviation by its standard deviation.
Step 3: Combine.
, so .
WhyThis is the formula sheet's sum of z-score products, divided by .
Check it
Reaction time falls as sleep rises, so must be negative, and the points are close to a line, so it should be near . A graphing calculator's linear regression gives the same value.
Answer
(a) Hours of sleep is the explanatory variable. (b) : a very strong, negative, linear relationship between sleep and reaction time for these volunteers.
Worked example 2: Interpreting and judging a claim
Question: For 25 hypothetical students, daily phone time (hours) and GPA have . The scatterplot shows a roughly linear pattern with no outliers. (a) Describe the relationship in context. (b) What would 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 .
Step 1: Describe.
There is a moderate, negative, linear relationship: students with more phone time tend to have lower GPAs.
WhyThe sign gives the direction, is moderate, and the plot shows a linear form with no outliers.
Step 2: Change of units.
Minutes hours, so stays .
Whyis built from z-scores, which a unit change does not alter.
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.
WhyOnly 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) . (c) No: the data are observational, so they cannot show that cutting phone time raises grades.
Your turn
Question: Calculate for the hypothetical points , , , .
Step 1:
and . The -deviations are and the -deviations are , so .
Step 2: Your go: multiply the deviations, add them, and divide by .
Show the full solutionHide the solution
, and , so .
Answer: , a strong, positive, linear relationship.
Traps
Trap
Thinking that means the variables are unrelated.
It seems right because 0 sounds like "nothing". But measures only linear relationships, so a strong curved pattern, such as a U shape, can have .
Check yourself
Show answerHide answer
Yes: every point lies on , a perfect curved relationship that cannot detect.
Trap
Treating a strong correlation as proof that causes .
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
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 , and explain why an observational study cannot show causation. The correlation formula is on the formula sheet, but you usually find with a graphing calculator. Regression lines come next: see the note on The Least-Squares Regression Line.
Practice questions
- Recall Which correlation shows the strongest linear relationship?
- A)
- B)
- C)
- D)
Show answer
Answer: D)
Marking points:
- Strength depends on the size of , not its sign: is the largest.
- A is the largest positive value, chosen by ignoring negative values. B and C are weaker.
- Apply Hypothetical data on practice hours () and free throws made out of 20 () for five players: , , , , . Calculate to four decimal places.
Show answer
Answer:
Marking points:
- , ; , , .
- , , so .
- 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:
- has no units, and multiplying a variable by a positive constant does not change it.
- A multiplies by 0.3937. B multiplies by both factors. D multiplies by 2.2046, which would also give an impossible .
- Exam-style For 16 hypothetical used cars, age (years) and price (thousands of dollars) have . 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 ?
- A) It moves closer to 0.
- B) It moves closer to .
- C) It stays the same.
- D) It becomes positive.
Show answer
Answer: B) It moves closer to .
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 is not resistant. D would need the pattern itself to change direction.
- Apply Across 40 hypothetical cities, the number of libraries and the number of reported bicycle thefts have . 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.
- Apply For six hypothetical points, the sum of the products of the z-scores is . Calculate .
Show answer
Answer:
Marking points:
- with .
- .
- Exam-style Hypothetical points: , , , , . (a) Calculate . (b) A student concludes that and have no relationship. Explain why the student is wrong.
Show answer
Answer: (a) (b) The points follow exactly, a perfect curved relationship; only measures linear relationships.
Marking points:
- , ; , so .
- The explanation names the curved form and says 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 -axis and the response on the -axis; the roles do not prove causation.
- Describe a scatterplot by direction, form, strength and unusual features, naming both variables.
- lies between and , has no units, and is unchanged by swapping axes or changing units.
- 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.