Back to homeMathematics · High School Year 1 · Change subject
Start for free
Prep 1 · Mathematics
Statistics · Statistics

Bivariate Distributions

Before you start, make sure you know: Statistical parameters (Secondary Year 3)
Before you start, make sure you know: Linear and affine functions (Secondary Year 3)

Ximena and her classmates at prep school wrote down how many hours they studied for the Mathematical Thinking exam and what grade they got. Those who studied more usually score higher, but not always: someone studied little and did very well, and someone studied a lot and did not do as well. Can we measure how strong that relationship is and use it to predict a grade? That is done by studying two variables at once for the same individuals.

Functional dependence and statistical dependence

The area of a circle depends on its radius in an exact way: there is a formula. The hours an athlete trains and their race time are also related, but without an exact formula: there is a trend with some scatter.

Comparison between a functional dependence represented by an exact curve and a statistical dependence represented by a cloud of scattered points with a trend functional: an exact curve statistical: trend with scatter
Practice★☆☆Not started
Classify the following relationships between bivariate variables as deterministic (functional) dependency or statistical (random) dependency: a) The radius length of a…

Classify the following relationships between bivariate variables as deterministic (functional) dependency or statistical (random) dependency:

  1. a) The radius length of a circle and its area.
  2. b) The number of training hours of an athlete and their time in a $100$-meter race.
  3. c) The weight of a bag of oranges and its price in the supermarket.
  4. d) The age of a tree and its height.
Solve

The scatter plot and the type of correlation

To see a statistical relationship, we draw each individual as a point $(x, y)$. The result is the scatter plot (or point cloud). Depending on which way the cloud points, we speak of correlation:

  • Positive: as $X$ increases, $Y$ tends to increase (study hours and grade).

  • Negative: as $X$ increases, $Y$ tends to decrease (miles driven by a car and its resale price).

  • Zero: the cloud has no clear direction (shoe size and grade).

Three scatter plots: positive correlation with rising points, negative with falling points, and zero with points with no direction positive correlation negative correlation zero correlation
Practice★☆☆Not started
In a study on climate and habits across several cities, different pairs of variables have been analysed. Indicate whether a positive, negative, or zero correlation is…

In a study on climate and habits across several cities, different pairs of variables have been analysed. Indicate whether a positive, negative, or zero correlation is expected in each case:

  1. a) The altitude of the city and the mean annual temperature.
  2. b) The annual rainfall amount and the number of umbrellas sold.
  3. c) The population and the mean annual temperature.
  4. d) The annual sunshine hours and heating expenditure.
Solve
Practice★★☆Not started
A total of $6$ families were surveyed about their monthly income in thousands of pesos ($X$) and their monthly expenditure on leisure in hundreds of pesos ($Y$). The…

A total of $6$ families were surveyed about their monthly income in thousands of pesos ($X$) and their monthly expenditure on leisure in hundreds of pesos ($Y$). The results are the pairs:

$(40, 60)$, $(50; 80)$, $(60, 80)$, $(80, 120)$, $(90; 140)$, $(100, 160)$.

  1. a) Plot the scatter plot on coordinate axes.
  2. b) By observing your plot, estimate whether the correlation is strong or weak, and whether it is positive or negative.
  3. c) Without doing complex regression calculations, do you think the regression line would pass close to the point $(70; 106)$? Justify your answer by calculating the center of gravity of the distribution.
Solve

The center of gravity

The center of gravity of a cloud is the point formed by the means of each variable:

$$(\bar x, \bar y), \qquad \bar x = \frac{\sum x_i}{N}, \quad \bar y = \frac{\sum y_i}{N}$$

It is the "balance point" of the cloud: the line that best summarizes it always passes through it.

Practice★☆☆Not started
The weight in kg ($X$) and height in cm ($Y$) of a group of $5$ friends have been measured, obtaining the following pairs of values: $(60, 165)$, $(65, 170)$,…

The weight in kg ($X$) and height in cm ($Y$) of a group of $5$ friends have been measured, obtaining the following pairs of values: $(60, 165)$, $(65, 170)$, $(70, 175)$, $(55, 160)$ and $(80, 180)$. Calculate the exact coordinates of the center of gravity $(\bar{x}, \bar{y})$ of this bivariate distribution.

Solve
Practice★★☆Not started
In a 4th ESO class, the relationship between Physics marks ($X$) and Mathematics marks ($Y$) of the $20$ enrolled students was studied. The center of gravity of the…

In a 4th ESO class, the relationship between Physics marks ($X$) and Mathematics marks ($Y$) of the $20$ enrolled students was studied. The center of gravity of the distribution is $(6.2; 6.5)$.

If a new student joins the class and achieves a mark of $4$ in Physics and $5$ in Mathematics, how will the center of gravity of the new distribution of $21$ students shift? (You do not need to calculate the exact value, but reason the direction of change in both coordinates).

Solve

Covariance

Covariance measures whether $X$ and $Y$ grow together. If we cross axes at the center of gravity, the points in the "upper-right" and "lower-left" quadrants add to the covariance, and the other two subtract.

Scatter plot with axes crossed at the center of gravity to illustrate the sign of the covariance according to the quadrants x̄ ȳ lower-left and upper-right of the center: positive covariance

Data in a two-way table

When there are many repeated pairs, they are grouped in a two-way table, where $f_{ij}$ is how many times the pair $(x_i, y_j)$ appears. The totals of the rows and columns are the marginal distributions of $X$ and $Y$. The covariance is

$$\sigma_{xy} = \frac{\sum x_i\, y_j\, f_{ij}}{N} - \bar x\,\bar y$$
Practice★☆☆Not started
For a bivariate distribution $(X, Y)$ of $10$ pairs of values, the following sums have been obtained after tabulating the data: $\sum x_i = 40$, $\sum y_i = 60$ and…

For a bivariate distribution $(X, Y)$ of $10$ pairs of values, the following sums have been obtained after tabulating the data: $\sum x_i = 40$, $\sum y_i = 60$ and $\sum x_i y_i = 280$. Calculate the covariance of the distribution.

Solve
Practice★★☆Not started
A small software company recorded the number of developers assigned to a project ($X$) and the time in months taken to complete it ($Y$): $X$: $2, 3, 5, 6$ $Y$:…

A small software company recorded the number of developers assigned to a project ($X$) and the time in months taken to complete it ($Y$):

$X$: $2, 3, 5, 6$

$Y$: $8, 6, 3, 2$

  1. a) Calculate the mean of $X$ and the mean of $Y$.
  2. b) Calculate the covariance of the distribution.
  3. c) Is the relationship direct or inverse? Does this result make sense in the context of the problem?
Solve
Practice★★★Not started
In a small town, information was collected on the number of cars per family ($X$) and the number of televisions per family ($Y$), presented in the following two-way…

In a small town, information was collected on the number of cars per family ($X$) and the number of televisions per family ($Y$), presented in the following two-way table:

$X \setminus Y$ $1$ $2$ $3$
$0$ $5$ $2$ $0$
$1$ $3$ $8$ $4$
$2$ $0$ $3$ $5$
  1. a) Obtain the marginal distributions of $X$ and $Y$.
  2. b) Calculate the center of gravity of distribution $(\bar{x}, \bar{y})$.
  3. c) Calculate the covariance $\sigma_{xy}$.
Solve

The linear correlation coefficient $r$

Dividing by $\sigma_x \sigma_y$ removes the units, and that is why $r$ does allow us to compare different relationships.

Scatter plots illustrating a strong linear correlation with points close to the line and a weak correlation with widely scattered points r close to 1 or -1: almost on the line r close to 0: scattered points
Practice★☆☆Not started
Match each of the following values of Pearson's linear correlation coefficient ($r$) with the corresponding graph in the diagram below. Values: $r_1 = 0.98$,…

Match each of the following values of Pearson's linear correlation coefficient ($r$) with the corresponding graph in the diagram below.

Values: $r_1 = 0.98$, $r_2 = -0.92$, $r_3 = 0.05$, $r_4 = 0.45$.

A B C D
Solve
Practice★☆☆Not started
The linear correlation coefficient between shoe size for a group of students and their mark on the latest mathematics exam is $r = 0.02$. Explain the meaning of this…

The linear correlation coefficient between shoe size for a group of students and their mark on the latest mathematics exam is $r = 0.02$. Explain the meaning of this value. Does it make sense to calculate the regression line to predict the mark from shoe size?

Solve
Practice★★☆Not started
In a market study on house prices ($Y$, in thousands of pesos) based on floor area ($X$, in square meters), the following statistical parameters were obtained: The…

In a market study on house prices ($Y$, in thousands of pesos) based on floor area ($X$, in square meters), the following statistical parameters were obtained:

  • The covariance is $\sigma_{xy} = 450$.

  • The standard deviation of floor area is $\sigma_x = 25$.

  • The standard deviation of price is $\sigma_y = 20$.

Calculate the linear correlation coefficient and interpret the strength and direction of the relationship between both variables.

Solve

What happens to $r$ if I change the units

If you convert temperature from °C to °F, or height from cm to m, does the relationship between the variables change? It should not, and $r$ respects that.

Practice★★★Not started
The covariance between variable $X$ (mean daily temperature in degrees Celsius) and variable $Y$ (soft drink sales in pesos) in a given month is $\sigma_{xy} = 150$. If…

The covariance between variable $X$ (mean daily temperature in degrees Celsius) and variable $Y$ (soft drink sales in pesos) in a given month is $\sigma_{xy} = 150$.

If we decide to change the temperature unit to degrees Fahrenheit using the conversion formula $F = 1.8C + 32$, answer with reasoning:

  1. a) What will be the new value of the covariance $\sigma_{Fy}$ between temperature in Fahrenheit and sales?
  2. b) Will the new linear correlation coefficient change relative to the original? Justify your answer referring to the formula for $r$.
Solve
Practice★★★Not started
A farmer wants to predict the yield of his tomato crop ($Y$, in metric tons). He has two possible predictor variables: the amount of fertiliser used ($X_1$, in kg) and…

A farmer wants to predict the yield of his tomato crop ($Y$, in metric tons). He has two possible predictor variables: the amount of fertiliser used ($X_1$, in kg) and the number of rainy days during cultivation ($X_2$).

After analysing historical data, he obtains the following parameters:

$\sigma_{x_1} = 10$, $\sigma_{x_2} = 4$, $\sigma_y = 5$.

Covariance between $X_1$ and $Y$: $\sigma_{x_1y} = 40$.

Covariance between $X_2$ and $Y$: $\sigma_{x_2y} = -18$.

  1. a) Calculate the linear correlation coefficient for each pair of variables: $(X_1, Y)$ and $(X_2, Y)$.
  2. b) Which variable provides a more reliable prediction of tomato yield using a linear model? Justify your decision.
Solve
Practice★★★Not started
Analytically prove that if the empirical relationship between two variables $X$ and $Y$ is exactly linear and satisfies $y_i = a x_i + b$ for all pairs of values (with…

Analytically prove that if the empirical relationship between two variables $X$ and $Y$ is exactly linear and satisfies $y_i = a x_i + b$ for all pairs of values (with $a > 0$), then the covariance is $\sigma_{xy} = a \times \sigma_x^2$ and the linear correlation coefficient is exactly $r = 1$.

(Hint: recall that if $y_i = a x_i + b$, then the mean satisfies $\bar{y} = a \bar{x} + b$. Substitute these expressions into the covariance formula $\sigma_{xy} = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{N}$).

Solve

The regression line

When there is correlation, we want a line that summarizes the cloud and can be used to predict. First we have to decide which variable is being predicted.

  • Independent variable ($X$): the one we know or control (the temperature in an experiment, study hours).

  • Dependent variable ($Y$): the one we want to estimate (solubility, the grade).

Regression line fitted to a cloud of points, passing through the center of gravity (x̄, ȳ) passes through the center of gravity and minimizes the error in Y
Practice★☆☆Not started
In a laboratory experiment, we want to test how temperature ($T$) affects the solubility of a salt in water ($S$). a) Identify which variable should be considered the…

In a laboratory experiment, we want to test how temperature ($T$) affects the solubility of a salt in water ($S$).

  1. a) Identify which variable should be considered the independent variable ($X$) and which the dependent variable ($Y$) to conduct a regression study.
  2. b) If as temperature increases, the amount of dissolved salt increases proportionally, what sign will the linear correlation coefficient have?
Solve
Practice★★☆Not started
We know the following data for a bivariate distribution concerning a company's sales ($Y$, in thousands of units) based on advertising investment ($X$, in thousands of…

We know the following data for a bivariate distribution concerning a company's sales ($Y$, in thousands of units) based on advertising investment ($X$, in thousands of pesos):

  • Center of gravity: $(240, 40)$.

  • Standard deviation of $X$: $\sigma_x = 60$.

  • Standard deviation of $Y$: $\sigma_y = 5$.

  • Correlation coefficient: $r = 0.9$.

Find the equation of the regression line of $Y$ on $X$ in the form $y = mx + n$.

Solve
Practice★★★Not started
In a bivariate distribution, it is known that the center of gravity is the point $(4, 7)$, the variance of the variable $X$ is $\sigma_x^2 = 3$ and the equation of the…

In a bivariate distribution, it is known that the center of gravity is the point $(4, 7)$, the variance of the variable $X$ is $\sigma_x^2 = 3$ and the equation of the regression line of $Y$ on $X$ is $y = 1.5x + 1$.

  1. a) Verify algebraically whether the center of gravity lies on the given line.
  2. b) From the slope of the regression line, calculate the value of the covariance $\sigma_{xy}$.
  3. c) If it is also known that the variance of $Y$ is $\sigma_y^2 = 8$, what is the value of the linear correlation coefficient $r$?
Solve

The two regression lines

We can also predict $X$ from $Y$. That line, the one of $X$ on $Y$, has slope $\sigma_{xy}/\sigma_y^2$ (when graphed with $x$ solved as a function of $y$) and in general is different from the line of $Y$ on $X$.

Practice★★☆Not started
Given the equations of the regression line of $Y$ on $X$ ($y = 0.8x + 2.4$) and the regression line of $X$ on $Y$ ($x = 0.5y + 3$) for the same bivariate distribution,…

Given the equations of the regression line of $Y$ on $X$ ($y = 0.8x + 2.4$) and the regression line of $X$ on $Y$ ($x = 0.5y + 3$) for the same bivariate distribution, determine the coordinates of the center of gravity $(\bar{x}, \bar{y})$. (Recall the geometric property relating both lines to the center of gravity).

Solve
Practice★★★Not started
The equations of the two regression lines for a bivariate distribution are known: Line of $Y$ on $X$: $y = -1.2x + 10$ Line of $X$ on $Y$: $x = -0.6y + 8$ a) Calculate…

The equations of the two regression lines for a bivariate distribution are known:

Line of $Y$ on $X$: $y = -1.2x + 10$

Line of $X$ on $Y$: $x = -0.6y + 8$

  1. a) Calculate the coordinates of the center of gravity $(\bar{x}, \bar{y})$.
  2. b) Knowing that the correlation coefficient $r$ has the same sign as the slope of the regression lines, and that the relationship $r^2 = m_{yx} \times m_{xy}$ holds (where $m_{yx}$ is the slope of the line of $Y$ on $X$, and $m_{xy}$ is the slope of the line of $X$ on $Y$), calculate the exact value of $r$.
Solve

Predicting with caution

Once you have the line, you substitute the value of $X$ to estimate $Y$, or you solve the line for $x$ if you are asked which value of $X$ gives a certain $Y$.

Graph that distinguishes the interpolation zone with observed data from the risk of extrapolating outside that range observed data extrapolate
Practice★☆☆Not started
The regression line relating weekly study hours ($X$) to the mark obtained on an exam out of $10$ ($Y$) is given by the equation $y = 0.6x + 2.5$. a) What mark is…

The regression line relating weekly study hours ($X$) to the mark obtained on an exam out of $10$ ($Y$) is given by the equation $y = 0.6x + 2.5$.

  1. a) What mark is estimated for a student who studied $8$ hours?
  2. b) If a student wants to obtain an estimated mark of $7$, how many hours should they study according to this model?
Solve
Practice★★☆Not started
The regression line relating the age of a car model in years ($X$) to its used car market value in thousands of pesos ($Y$) is $y = -24x + 360$. a) Estimate the value of…

The regression line relating the age of a car model in years ($X$) to its used car market value in thousands of pesos ($Y$) is $y = -24x + 360$.

  1. a) Estimate the value of a car that is $5$ years old.
  2. b) Estimate the value of a car that is $20$ years old.
  3. c) Are both estimates equally reliable? Explain the logical and mathematical risks of extrapolation in the second case.
Solve
Practice★★★Not started
A transportation company wants to analyze the relationship between the distance covered on a trip ($X$, in tens of km) and fuel consumption ($Y$, in liters). The data…

A transportation company wants to analyze the relationship between the distance covered on a trip ($X$, in tens of km) and fuel consumption ($Y$, in liters). The data recorded for a sample of $5$ trucks are:

$X$: $5, 10, 15, 20, 25$

$Y$: $12, 22, 30, 42, 49$

  1. a) Calculate the means $\bar{x}$ and $\bar{y}$.
  2. b) Calculate the variances $\sigma_x^2$ and $\sigma_y^2$, and the covariance $\sigma_{xy}$.
  3. c) Find Pearson's linear correlation coefficient $r$.
  4. d) Determine the equation of the regression line of $Y$ on $X$ and estimate fuel consumption for a trip of $180$ km ($X=18$).
Solve

Correlation is not causation

Diagram in which a hidden third variable influences two correlated variables at the same time with no direct relationship between them heat and vacations (hidden variable) ice cream sales drownings

Back to the beginning: Ximena can use $r$ to measure how strong the relationship between study hours and grade is and use the line to make estimates, but without forgetting that studying more is not the only cause of the grade.

Practice★★☆Not started
A statistical study conducted over a year in a coastal town shows a strong positive correlation between monthly ice cream sales and the number of people involved in…

A statistical study conducted over a year in a coastal town shows a strong positive correlation between monthly ice cream sales and the number of people involved in drowning incidents at the beach.

  1. a) Does this mean that eating ice cream causes drownings?
  2. b) Identify a possible "hidden variable" that explains the simultaneous increase in both variables and justifies the observed statistical correlation.
Solve
Practice★★★Not started
The relationship between weekly training hours ($X$) and the time in minutes taken to complete an endurance sporting event ($Y$) in a group of athletes has been studied,…

The relationship between weekly training hours ($X$) and the time in minutes taken to complete an endurance sporting event ($Y$) in a group of athletes has been studied, yielding the following scatter diagram.

Hours (X) Time (Y) Athlete A

When calculating the correlation coefficient with all the data, a weak correlation is obtained ($r = -0.45$).

  1. a) Observing the graph, identify which point is considered an outlier.
  2. b) Reasoning about the concept of linear trend, explain how removing "Athlete A" would affect the numerical value of the correlation coefficient and the slope of the regression line.
Solve

Summary

See all the exercises in this section