AP Statistics · Unit 5 · Topic 5.2

    5.2 Correlation

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    The correlation r measures the direction and strength of a linear relationship between two quantitative variables. It is always between −1 and 1: values near ±1 mean the points lie close to a line; values near 0 mean a weak linear relationship. r has no units, doesn't change if you swap x and y or change units, and can be misleading for curved patterns. Correlation does not imply causation.

    What you need to know

    • Interpret the correlation r in context.
    • State the properties of r.
    • Explain why r describes only linear relationships.
    • Explain why a strong correlation does not establish causation.

    What r measures

    r=1n−1∑(xi−xˉsx)(yi−yˉsy)r = \frac{1}{n-1}\sum \left(\frac{x_i - \bar{x}}{s_x}\right)\left(\frac{y_i - \bar{y}}{s_y}\right)

    r averages the products of the z-scores of x and y. When above-average x values go with above-average y values (and below with below), most products are positive, so r is positive. You will almost always find r with technology; the formula explains what it measures.

    For the 10 students in topic 5.1, r = 0.95. Interpretation: there is a strong, positive, linear relationship between hours studied and test score for these students.

    Properties of r

    • −1 ≤ r ≤ 1. r = ±1 only when all points lie exactly on a line.
    • The sign gives the direction; the size (|r|) gives the strength.
    • r has no units, and changing units (hours to minutes, marks to percentages) doesn't change it.
    • Swapping x and y doesn't change r.
    • r measures linear relationships only: a perfect curve can have r near 0.

    Example: the height of a ball thrown upward against time follows a perfect parabola, but because it rises and then falls, r could be close to 0. Always look at the scatterplot before interpreting r. A value like r = 0.2 tells you the linear relationship is weak, not that there is no relationship.

    r is also sensitive to a point far from the rest of the data: a single unusual point can make r much larger or smaller. Another reason to look at the graph first.

    Correlation is not causation

    Across Indian cities, the number of fans sold in a month and the number of cold drinks sold are strongly positively correlated. Fans don't cause cold-drink purchases; hot weather increases both. A variable like this, related to both x and y, is a lurking (confounding) variable.

    Even a correlation of 0.95 between study hours and scores doesn't prove that studying more causes higher scores. Students who choose to study more might differ in motivation, prior knowledge or sleep. To show causation, randomly assign subjects to different amounts of the explanatory variable.

    Key terms

    Correlation r
    A number from −1 to 1 measuring the direction and strength of a linear relationship.
    Lurking variable
    A variable not studied that affects both x and y and can create an association.
    Linear relationship
    A pattern in which points scatter around a straight line.
    Perfect correlation
    r = 1 or −1; all points lie exactly on a line.

    Common mistakes

    • 'r = 0 means no relationship.'

      r = 0 means no linear relationship; a curve is still possible.

    • 'r = 0.9 means 90% of points are on the line.'

      r measures strength of linear association; it is not a percentage.

    • Concluding causation from a high r.

      Correlation alone never shows causation.

    How this topic is tested

    • Look at the scatterplot before using r.
    • Interpret r with 'linear' and the variable names.
    • When asked about causation, name a plausible lurking variable.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · SP 3 · Analyze Data

      Which value of r shows the strongest linear relationship?

    2. Question 2 · SP 3 · Analyze Data

      Heights are converted from centimetres to inches. What happens to r between height and weight?

    3. Question 3 · SP 4 · Interpret Results

      A scatterplot shows a clear U-shaped pattern and r = 0.03. The best conclusion is:

    4. Question 4 · SP 4 · Interpret Results

      Across schools, the number of computers and average test score have r = 0.7. A principal says buying computers will raise scores. What's the main problem?

    5. Question 5 · SP 3 · Analyze Data

      Which statement about r is true?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Exploring data · 4 points

    For 25 randomly chosen days, a city records the number of air-conditioners sold and the number of hospital visits for heat exhaustion. The correlation is r = 0.81, and the scatterplot is roughly linear.

    1. (a) Interpret r in context.
    2. (b) A reporter says air-conditioners cause heat exhaustion. Explain why this is not justified.
    3. (c) If sales were recorded in hundreds of units instead of units, what would r be? Explain.

    Connected topics

    Frequently asked questions

    Do I need to calculate r by hand?

    Rarely. Know what it measures and how to read it from calculator or computer output.

    What's the difference between r and r²?

    r gives direction and strength; r² (topic 5.5) is the proportion of variation in y explained by the line.

    Can r be computed for categorical data?

    No. Both variables must be quantitative.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 5 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 5 cheat sheet

    Every topic in Unit 5: Regression Analysis on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 5 practice test: 25 questions with explanations

    All topics in Unit 5: Regression Analysis

    1. 5.1 Graphical Representations Between Two Quantitative Variables
    2. 5.2 Correlation
    3. 5.3 Linear Regression Models
    4. 5.4 Residuals
    5. 5.5 Least-Squares Regression

    Other units in AP Statistics

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.