Back to homeMathematics · High School Year 2 · Social Sciences · Change subject
Start for free
Prep 2 SS · Mathematics
Statistics · Statistics

Scatter Plots and Correlation

Before you start, make sure you know: Representing data in the plane (Secondary Year 3)
Before you start, make sure you know: Bivariate distributions (High School Year 1 (semesters 1 and 2))

Ximena wants to know whether the classmates who miss the most classes get worse grades. Before calculating anything, a scatter plot already gives you an answer: whether two variables rise together, whether one goes down when the other goes up, or whether there is no visible relationship. Learning to read it keeps you from calculating a meaningless correlation coefficient or trusting a prediction that isn't reliable.

What a scatter plot is

Scatter plot in the first quadrant with several points showing an increasing trend and the coordinates of one point marked. XY (xᵢ, yᵢ) of one individual

It only makes sense to draw it if both variables are quantitative (numbers that can be measured or ordered). With "eye color" or "favorite sport" there is nothing to place on an axis.

Practice★☆☆Not started
Explain, giving reasons, why the following data could not be correctly represented using a scatter plot in the context of bivariate statistics: | Student | Eye color |…

Explain, giving reasons, why the following data could not be correctly represented using a scatter plot in the context of bivariate statistics:

Student Eye color Favorite sport
Marta Blue Basketball
Jorge Brown Soccer
Elena Green Tennis
Solve
Practice★★☆Not started
Given the following pairs of variables, state for which of them it would make sense to construct a scatter plot to analyze their relationship. Justify your decision in…

Given the following pairs of variables, state for which of them it would make sense to construct a scatter plot to analyze their relationship. Justify your decision in each case:

  1. The names of the students in a class and their height.

  2. The number of hours of study and the grade on an exam.

  3. A person's eye color and gender.

  4. The price of a used car and its distance driven.

Solve
Practice★☆☆Not started
Match each of the following pairs of variables with the type of scatter plot you would expect to obtain (increasing, decreasing or with no defined shape): a) The number…

Match each of the following pairs of variables with the type of scatter plot you would expect to obtain (increasing, decreasing or with no defined shape):

  1. a) The number of kilometers driven by a car and the fuel remaining in its tank.
  2. b) The height of a group of teenagers and their grade on an English exam.
  3. c) An athlete's training hours and their personal best in a 100-meter sprint.
  4. d) The outdoor temperature in summer and the energy consumption of air conditioning units.
Solve

Direction and strength of the scatter plot

Comparison of three scatter plots: one increasing and narrow (strong correlation), one scattered (weak or null), and one decreasing (negative). narrow: strong scattered: weak or null decreasing: negative
Practice★☆☆Not started
Look at the following scatter diagrams shown below. Identify in each case whether the correlation is positive, negative or zero.

Look at the following scatter diagrams shown below. Identify in each case whether the correlation is positive, negative or zero.

Graph A Graph B Graph C
Solve
Practice★☆☆Not started
The weight ($X$) and height ($Y$) of the players in a basketball team have been measured. The scatter diagram shows a very elongated and narrow shape following an upward…

The weight ($X$) and height ($Y$) of the players in a basketball team have been measured. The scatter diagram shows a very elongated and narrow shape following an upward trend.

What does a "narrow" diagram indicate regarding the strength of the correlation? What would we call the relationship between weight and height in this case (positive or negative)?

Solve
Practice★☆☆Not started
Look at the following scatter diagram representing the relationship between weekly training hours ($X$) and points scored in a season by a group of basketball players…

Look at the following scatter diagram representing the relationship between weekly training hours ($X$) and points scored in a season by a group of basketball players ($Y$).

0 2 4 6 8 10 12 10 20 30 40 Training hours (X) Points scored (Y)

Based on the shape of the scatter diagram, answer:

  1. a) Is it a positive or negative relationship?
  2. b) How would you describe the strength of the correlation: strong or weak?
  3. c) What sign do you expect the covariance $\sigma_{xy}$ to have for these data?
Solve
Practice★☆☆Not started
A music app has analysed data from 8 users to see the relationship between their age ($X$, in years) and the number of different songs they listen to per month ($Y$).…

A music app has analysed data from 8 users to see the relationship between their age ($X$, in years) and the number of different songs they listen to per month ($Y$). The resulting scatter diagram is shown below:

20 30 40 50 60 100 200 300 400 500 600 700 Age (X) Songs (Y)

Looking at the graph, can we say that the correlation is strong or weak? Justify whether the number of songs listened to tends to increase or decrease as age increases, according to this sample.

Solve

Values of $r$, covariance, and types of relationship

Three scatter plots (strong negative, no correlation, and strong positive) matched to the values -1, 0, and 1 on a number line. −1 0 1 correlationstrong negative nocorrelation correlationstrong positive

The covariance $\sigma_{xy}$ indicates the direction of the joint variation, and its sign is the same as that of $r$: positive if the variables grow together, negative if one goes up when the other goes down.

There is another important distinction. In a functional relationship, one variable is determined exactly by the other (the perimeter of a square is $4\ell$). In a statistical relationship there is only a trend: two students with the same hours of study can get different grades.

Practice★☆☆Not started
Pearson's correlation coefficient, $r$, is a dimensionless measure that varies within a specific range. Of the following values, state which ones are not possible for a…

Pearson's correlation coefficient, $r$, is a dimensionless measure that varies within a specific range. Of the following values, state which ones are not possible for a correlation coefficient and explain why:

  1. a) $r = 0.85$
  2. b) $r = -1.2$
  3. c) $r = 2.5$
  4. d) $r = -0.4$
  5. e) $r = 0$
Solve
Practice★☆☆Not started
The direction of the relationship between two variables indicates how one varies when the other changes. Determine whether a positive correlation, negative correlation…

The direction of the relationship between two variables indicates how one varies when the other changes. Determine whether a positive correlation, negative correlation exists, or whether the variables are uncorrelated in the following cases:

  1. a) The number of absences from class and the final grade for the course.
  2. b) A person's shoe size and their average grade in math.
  3. c) The outdoor temperature in summer and the energy consumption of air conditioning units.
  4. d) The age in years of a cell phone and its resale price on the second-hand market.
Solve
Practice★☆☆Not started
In statistics, it is essential to distinguish between a relationship that can be calculated with an exact formula and one that only shows a trend. State whether the…

In statistics, it is essential to distinguish between a relationship that can be calculated with an exact formula and one that only shows a trend. State whether the relationship between the following pairs of variables is deterministic (functional) or statistical (correlation):

  1. a) The number of hours a 1st Baccalaureate student spends playing video games and their mark in the Economics exam.
  2. b) The length of the side of a square and its perimeter.
  3. c) The liters of petrol put into a car and the total amount to pay at the petrol station.
  4. d) The height of a teenager and their body weight.
Solve
Practice★☆☆Not started
The covariance $\sigma_{xy}$ provides information about the direction of joint variation of two variables. Without carrying out complex calculations, look at the…

The covariance $\sigma_{xy}$ provides information about the direction of joint variation of two variables. Without carrying out complex calculations, look at the following data relating the temperature of a soft drink ($X$, in $^\circ C$) to the time it has been out of the fridge ($Y$, in minutes):

Time ($Y$) 5 10 15 20 25
Temperature ($X$) 6 9 13 18 22
  1. a) As time increases, does the temperature tend to increase or decrease?
  2. b) Justify, based on your previous answer, whether the covariance will be positive, negative or zero.
Solve
Practice★☆☆Not started
State whether the following statements about scatter diagrams are true or false: a) If all the points in the scatter diagram lie exactly on an upward straight line, the…

State whether the following statements about scatter diagrams are true or false:

  1. a) If all the points in the scatter diagram lie exactly on an upward straight line, the correlation is perfect and positive ($r = 1$).
  2. b) A circular scatter diagram indicates a very strong correlation.
  3. c) In a scatter diagram, the independent variable is always represented on the vertical axis ($Y$).
  4. d) A scatter diagram allows us to quickly visualize whether any relationship exists between two numerical variables.
Solve
Practice★★★Not started
Given the following four scatter diagrams associated with different social phenomena, match each one, giving reasons, to one of these correlation coefficients:…

Given the following four scatter diagrams associated with different social phenomena, match each one, giving reasons, to one of these correlation coefficients: $r_1 = 0.95$, $r_2 = -0.80$, $r_3 = 0.05$ and $r_4 = -0.10$.

A B C D

Justify your choice based on the dispersion relative to a possible line and the direction of the slope of the points.

Solve

Fitting a line by eye and the danger of extrapolating

Scatter plot with a line of fit: the section with data allows interpolation and its dashed extension is a risky extrapolation. with data: interpolate, reliable outside the range: extrapolate, risky

The point of means

A good line of fit, even if you draw it by eye, should pass through the point of means $(\bar{x}, \bar{y})$, the "center of gravity" of the plot. That way it is balanced: half of the points above and half below. Calculate $\bar{x}$ and $\bar{y}$, mark that point, and rotate the ruler around it until it follows the direction of the plot.

Note: two plots with the same means pass through the same central point, but they can look very different. What changes is the scatter and the slope, that is, the strength and sign of the correlation.

Two plots with the same point of means: one round and scattered, and one narrow and decreasing, whose lines of fit pass through that point. point of means: both plots pass through here B: narrow, negative A: round, scattered
Practice★★☆Not started
A group of researchers wants to study whether there is a relationship between the weekly time teenagers spend on leisure screens (television, cell phone or video game…

A group of researchers wants to study whether there is a relationship between the weekly time teenagers spend on leisure screens (television, cell phone or video game console) and their academic performance. To do this, they have selected a sample of 8 students and collected the following data:

Screen hours ($X$) 12 18 5 22 10 15 8 25
Mean grade ($Y$) $7.5$ $6.2$ $8.8$ $5.5$ $8.0$ $6.8$ $8.2$ $4.8$
  1. a) Plot the scatter plot associated with this bivariate distribution.
  2. b) Looking at the graph, what type of correlation appears to exist between both variables (positive or negative)? Justify whether you think the relationship is strong or weak.
0 5 10 15 20 25 30 2 4 6 8 10 Screen hours (X) Mean grade (Y)
Solve
Practice★★☆Not started
The following table shows the distance covered ($X$, in km) and the time taken ($Y$, in min) by a cyclist on training rides: | Distance ($X$) | 10 | 15 | 20 | 25 | 30 |…

The following table shows the distance covered ($X$, in km) and the time taken ($Y$, in min) by a cyclist on training rides:

Distance ($X$) 10 15 20 25 30 35
Time ($Y$) 22 35 42 58 70 82
  1. a) Draw the scatter diagram.
  2. b) Sketch freehand the line of best fit for the points (regression line).
  3. c) Using the line you have drawn, estimate how long it would take the cyclist to cover 45 km. Do you think this estimation is reliable?

You can do it on paper and send a photo with your answer.

Solve
Practice★★☆Not started
A study has been conducted on the relationship between the number of books read per year ($X$) and the score in a reading comprehension test ($Y$) for a group of…

A study has been conducted on the relationship between the number of books read per year ($X$) and the score in a reading comprehension test ($Y$) for a group of students. The resulting scatter diagram is shown below:

0 2 4 6 8 10 20 40 60 80 100 Number of books read (X) Test score (Y)
  1. a) State whether a deterministic (functional) relationship or a statistical relationship exists. Explain the difference between both concepts using this example.
  2. b) Classify the correlation according to its sign and its strength (strong, moderate or weak).
  3. c) Could we state that "reading more books necessarily causes getting a higher mark"? Explain the difference between correlation and causation.
Solve
Practice★★★Not started
A biologist measures the height of an exotic plant species ($Y$, in cm) as a function of the amount of nitrogenous fertiliser applied ($X$, in mg). She/He observes that,…

A biologist measures the height of an exotic plant species ($Y$, in cm) as a function of the amount of nitrogenous fertiliser applied ($X$, in mg). She/He observes that, initially, the height increases rapidly with the fertiliser, but beyond a certain amount, the plant becomes saturated and the height stabilises or even decreases slightly due to toxicity.

100 200 300 0 50 100 150 200 Fertiliser (mg) Height (cm) Saturation / Toxicity
  1. Analyse the scatter diagram and determine whether a linear regression model would be suitable for describing this relationship across the entire domain of $X$.

  2. If the biologist calculates Pearson's correlation coefficient for all the data and obtains a value close to $0$, does this mean that the variables are independent? Justify your answer based on the shape of the scatter diagram.

Solve
Practice★★★Not started
The following scatter diagram has been obtained, relating the monthly electricity consumption of a household ($X$, in kWh) to the mean outdoor temperature for that month…

The following scatter diagram has been obtained, relating the monthly electricity consumption of a household ($X$, in kWh) to the mean outdoor temperature for that month ($Y$, in $^\circ C$).

0 100 200 300 400 500 600 10 20 30 40 Electricity consumption X (kWh) Temperature Y (°C) Air conditioning Ideal temperature Heating
  1. Describe the relationship between the variables. Is it a linear relationship across its whole range?

  2. Justify why the coefficient of determination $R^2$ for a linear fit would be very low, despite the evident relationship between the variables.

  3. Propose a way to split the study of this scatter diagram in order to effectively apply linear regression techniques.

Solve
Practice★★★Not started
A sports psychologist studies the relationship between pre-match arousal level (anxiety, variable $X$) and free throw performance of basketball players (success…

A sports psychologist studies the relationship between pre-match arousal level (anxiety, variable $X$) and free throw performance of basketball players (success percentage, variable $Y$). The literature suggests that an "optimal level" of arousal exists: if it is too low, the player is apathetic; if it is too high, the player freezes.

  1. Draw a hypothetical scatter diagram reflecting this situation (known as the Yerkes-Dodson law).

  2. If a data analyst were to calculate the covariance $s_{xy}$ of this scatter diagram and obtain a value close to zero, would it be correct to conclude that anxiety level does not affect performance? Justify your answer by analysing the geometry of the scatter diagram you have drawn.

You can do it on paper and send a photo with your answer.

Solve

Typical mistakes: outliers, mixed groups, and scales

A single distant point can weaken a strong correlation: if you remove that data point, $|r|$ increases. That is why you need to identify it and ask what causes it before deciding what to do with it.

Two separate groups of points, each with a clear increasing trend on its own, that together show no definite trend. two groups, each with a clear trend
Practice★☆☆Not started
It is suspected that there is a relationship between the number of absences from class ($X$) and the final grade for the term ($Y$). The data for a class have been…

It is suspected that there is a relationship between the number of absences from class ($X$) and the final grade for the term ($Y$). The data for a class have been represented in the following diagram:

0 2 4 6 8 10 12 2 4 6 8 10 Number of absences (X) Final grade (Y)

A red point appears on the graph that clearly deviates from the general trend of the group. What is this type of point called in statistics and what could it mean in this real-world context?

Solve
Practice★★☆Not started
An influencer analyses the relationship between the number of hours spent editing a video ($X$) and the number of "likes" received in the first 24 hours ($Y$, in…

An influencer analyses the relationship between the number of hours spent editing a video ($X$) and the number of "likes" received in the first 24 hours ($Y$, in thousands). After uploading 10 videos, they obtain a very narrow and upward scatter diagram, except for one video which, after only 1 hour of editing, achieved a massive number of "likes" due to a viral challenge.

  1. a) What is the technical term for a point that lies far from the general trend of the scatter diagram?
  2. b) If the influencer decides to remove this special data point from the study, what would happen to the absolute value of the correlation coefficient $r$? Would it increase or decrease? Justify your answer.
  3. c) Would the relationship between the variables become more or less linear after removing this point?
Solve
Practice★★★Not started
A group of researchers analyses the relationship between the weekly time spent playing strategy video games (variable $X$, in hours) and the score obtained on a logical…

A group of researchers analyses the relationship between the weekly time spent playing strategy video games (variable $X$, in hours) and the score obtained on a logical reasoning test (variable $Y$, from 0 to 100). The data from 10 teenagers show a very strong positive linear correlation, with the exception of one individual who spends 25 hours per week and scores only 10 points on the test.

0 5 10 15 20 25 30 20 40 60 80 100 10 Time on video games (X, hours) Logic test score (Y) Outlier (25, 10)

Based on the graphical representation:

  1. Explain, giving reasons, how point $P$ affects the value of Pearson's correlation coefficient $r$ and the gradient of the future regression line.

  2. If we were to remove point $P$, could we state that a causal relationship exists between playing video games and logical reasoning? Justify your answer by analysing the nature of the variables.

Solve
Practice★★★Not started
The relationship between investment in social media advertising ($X$, in thousands of pesos) and the number of new subscribers ($Y$, in hundreds) is studied for two…

The relationship between investment in social media advertising ($X$, in thousands of pesos) and the number of new subscribers ($Y$, in hundreds) is studied for two different mobile apps, "App A" and "App B". The resulting scatter plots show that both have a mean investment of $\bar{x} = 100$ and a mean number of subscribers of $\bar{y} = 12$. However, App A presents a very scattered circular plot, whereas App B presents a very narrow and elongated plot with a negative slope.

  1. Sketch both scatter plots on the same set of axes, distinguishing them using colors or symbols.

  2. Compare the correlation coefficients $r_A$ and $r_B$. In which case is it more reliable to make a prediction of the number of subscribers based on the investment?

  3. What would it mean, in the context of marketing, for App B to have a negative slope?

Solve
Practice★★★Not started
In a study on urban demography, population density (inhabitants/$km^2$) is represented on the $X$ axis and the average rent price ($\$/m^2$) on the $Y…

In a study on urban demography, population density (inhabitants/$km^2$) is represented on the $X$ axis and the average rent price ($\$/m^2$) on the $Y$ axis. The resulting scatter plot displays a very peculiar structure: two clearly distinct groups of points ("clusters"). Group 1 corresponds to peripheral neighborhoods and Group 2 to historic center neighborhoods.

  1. If within each separate group the correlation is positive and strong, but when considering all points together the scatter plot appears to have no clear trend, what problems would we encounter when attempting to calculate a single Pearson correlation coefficient for the entire city?

  2. Explain how the existence of hidden qualitative variables (such as neighborhood type) can "mislead" the interpretation of a bivariate scatter plot.

Solve
Practice★★★Not started
Consider a scatter diagram with a very strong positive linear correlation ($r = 0.98$). Suppose that we transform all the values of variable $X$ using the operation…

Consider a scatter diagram with a very strong positive linear correlation ($r = 0.98$). Suppose that we transform all the values of variable $X$ using the operation $X' = X + 50$ and all the values of variable $Y$ using $Y' = 3 \times Y$.

  1. Describe what changes the scatter diagram would undergo in the plane (translation, deformation, change of scale).

  2. Reason, without performing calculations, whether the new correlation coefficient $r'$ will be greater than, less than, or equal to the original $r$.

  3. Would the reliability of the predictions change if we used the new transformed scatter diagram? Explain why.

Solve

Back to the beginning: Ximena's plot of "absences" against "grade" goes down from left to right, so the correlation is negative; how narrow it is tells you how strong it is, and even so it does not prove that missing class causes low grades.

Summary

See all the exercises in this section