Back to homeMathematics · 1st Bach. Social Sciences · Change subject
Start for free
BAC1 ss · Mathematics
Statistics · Statistics

Bivariate descriptive statistics

A household's electricity consumption does not depend on chance alone: it depends on the outside temperature. The price of a second-hand mobile phone depends on its age. When you measure two variables on the same individuals, you can study how they are related, summarise that relationship in a single number and, if there is a trend, use it to make predictions.

Before you start, make sure you know: Mean and variance (4th ESO)
Before you start, make sure you know: Point-gradient equation of a straight line (4th ESO)

Two variables at once: functional and statistical dependence

Comparison between an exact linear functional relationship and a statistical relationship with points scattered around a trend functional: an exact formula statistical: trend with scatter
Practice★☆☆Not started
When studying relationships between two variables, it is essential to distinguish whether there is an exact dependence or a statistical relationship. State in which of…

When studying relationships between two variables, it is essential to distinguish whether there is an exact dependence or a statistical relationship. State in which of the following cases the relationship is functional (an exact formula exists) and in which it is statistical (a trend exists, but with variability):

  • a) The number of litres of petrol refuelled at a petrol station and the total cost to pay.

  • b) The mark obtained in a Mathematics exam and the number of hours the student spent studying that week.

  • c) The time an energy-saving light bulb remains switched on and the energy consumption recorded by the meter.

  • d) A person's height and their shoe size.

  • e) The maximum daily temperature in a city and the number of ice creams sold at a kiosk in that same city.

Solve

Contingency table: joint and marginal frequencies

Structure of a contingency table with joint frequencies in the inner cells and marginal frequencies in the row and column totals n₁₃ marginal of X marginal of Y (column totals)
Practice★☆☆Not started
A group of 20 teenagers has been classified according to their reading habit (Frequent reader / Non-reader) and their preference for book format (Paper / Digital). The…

A group of 20 teenagers has been classified according to their reading habit (Frequent reader / Non-reader) and their preference for book format (Paper / Digital). The data obtained are:

  • 8 are frequent readers and prefer paper format.

  • 4 are frequent readers and prefer digital format.

  • 2 are non-readers but prefer paper format.

  • 6 are non-readers and prefer digital format.

Organise this information into a joint frequency table (contingency table), including the marginal totals in the rows and columns.

Solve
Practice★☆☆Not started
From the following contingency table showing the main type of device used to study and the student's school year (4th Year ESO or 1st Baccalaureate), answer the…

From the following contingency table showing the main type of device used to study and the student's school year (4th Year ESO or 1st Baccalaureate), answer the questions asked:

School year / Device Tablet Laptop Mobile Total
4th Year ESO 12 15 8 35
1st Baccalaureate 10 25 5 40
Total 22 40 13 75
  • a) What is the joint absolute frequency of students who are in 1st Baccalaureate and mainly use a laptop?

  • b) Determine the marginal frequency of students who use a tablet.

  • c) How many students in total participated in the study?

  • d) What percentage of all students are from 4th Year ESO?

Solve

Conditional distributions and statistical independence

Comparison between the observed joint frequency of a cell and the one calculated from the product of the marginals under independence actual table n₁₁ = 5 5 expected if independent n₁• · n•₁ / N do they match? if not, X and Y are associated
Practice★★★Not started
Given the following joint frequency table for variables $X$ (number of children) and $Y$ (number of rooms in the dwelling): | X \ Y | 1 | 2 | 3 | |-------|---|---|---| |…

Given the following joint frequency table for variables $X$ (number of children) and $Y$ (number of rooms in the dwelling):

X \ Y 1 2 3
0 5 2 0
1 1 6 3
2 0 2 6
  1. a) Calculate the marginal distributions of $X$ and $Y$.
  2. b) Determine the mean and variance of variable $Y$ conditioned on $X = 1$.
  3. c) Calculate the covariance $S_{xy}$ and state whether the variables are independent or show some type of association.
Solve

Covariance: the sign of the relationship

Scatter plot centred on the means showing the four quadrants and the sign of the products of deviations for the covariance x̄ ȳ below-left and above-right of the centre → positive covariance
Practice★☆☆Not started
Given the following pairs of variables, state whether you expect to find a positive, negative or zero correlation: a) The number of kilometres driven by a car and the…

Given the following pairs of variables, state whether you expect to find a positive, negative or zero correlation:

  • a) The number of kilometres driven by a car and the amount of fuel remaining in the tank.

  • b) The average mark in Baccalaureate and the number of hours a student spends playing video games.

  • c) A person's age and their ID number.

  • d) A person's monthly income and the amount of money they save per month.

  • e) An athlete's average speed in a race and the time taken to complete it.

Solve
Practice★☆☆Not started
We have a bivariate variable $(X, Y)$ where $X$ represents the outdoor temperature in $^\circ\text{C}$ and $Y$ the electricity consumption of a shopping centre in $kW$.…

We have a bivariate variable $(X, Y)$ where $X$ represents the outdoor temperature in $^\circ\text{C}$ and $Y$ the electricity consumption of a shopping centre in $kW$. We know that the mean centre of the distribution is the point $(\bar{x}, \bar{y}) = (22, 450)$.

If the regression line of $Y$ on $X$ has a gradient of $b = 15$:

  • a) Write the equation of the regression line of $Y$ on $X$ using the point-gradient form: $y - \bar{y} = b(x - \bar{x})$.

  • b) What would be the expected consumption for a temperature of $30^\circ\text{C}$?

Solve

Pearson's correlation coefficient

Scatter plots illustrating a strong linear correlation with points almost in a line versus zero correlation with a scattered cloud r close to ±1: points almost in a line r close to 0: scattered
Practice★☆☆Not started
Match each of the following values of Pearson's linear correlation coefficient, $r$, with the graph that best represents it: 1) $r = 0,95$ 2) $r = -0,85$ 3) $r = 0,05$

Match each of the following values of Pearson's linear correlation coefficient, $r$, with the graph that best represents it:

  • 1) $r = 0,95$

  • 2) $r = -0,85$

  • 3) $r = 0,05$

Graph A Graph B Graph C
Solve
Practice★☆☆Not started
The regression line relating the daily usage time of a social network in minutes ($X$) to the battery level consumed in percentage ($Y$) has been obtained. The equation…

The regression line relating the daily usage time of a social network in minutes ($X$) to the battery level consumed in percentage ($Y$) has been obtained. The equation of the line is:

$y = 0,15x + 2,5$

  • a) Estimate the percentage of battery consumed if a user uses the social network for $120$ minutes.

  • b) If the linear correlation coefficient is $r = 0,92$, do you think the previous estimation is reliable? Justify your answer.

Solve
Practice★★☆Not started
A basketball club wants to predict the number of points scored by its players ($Y$) based on the minutes played ($X$). After analysing the players, the following data…

A basketball club wants to predict the number of points scored by its players ($Y$) based on the minutes played ($X$). After analysing the players, the following data are obtained:

$\sum x_i = 240$

$\sum y_i = 120$

$\sum x_i^2 = 6500$

$\sum y_i^2 = 1800$

$\sum x_i y_i = 3200$

Number of players analysed: $n = 10$.

  1. Calculate Pearson's linear correlation coefficient.

  2. If a player plays $25$ minutes, estimate the points they will score using the corresponding regression line.

Solve

The two regression lines

Graph of the two linear regression lines, Y on X and X on Y, intersecting at the centre of gravity formed by the means Y on X X on Y (x̄, ȳ)
Practice★★☆Not started
A courier company studies the relationship between package weight in kg ($X$) and shipping cost in euros ($Y$). Five shipments have been analysed with the following…

A courier company studies the relationship between package weight in kg ($X$) and shipping cost in euros ($Y$). Five shipments have been analysed with the following results:

Weight $X$ (kg) 1 2 3 5 9
Cost $Y$ (€) 5 7 8 12 18

Calculate:

  1. The centre of gravity of the distribution $(\bar{x}, \bar{y})$.

  2. The marginal standard deviations $\sigma_x$ and $\sigma_y$.

Solve
Practice★★☆Not started
The following table shows the marks obtained by 6 students in a Mathematics exam ($X$) and an Economics exam ($Y$): | Mathematics ($X$) | 4 | 6 | 5 | 8 | 9 | 7 | | :---…

The following table shows the marks obtained by 6 students in a Mathematics exam ($X$) and an Economics exam ($Y$):

Mathematics ($X$) 4 6 5 8 9 7
Economics ($Y$) 5 5 6 7 8 8
  1. Find the covariance $\sigma_{xy}$.

  2. Obtain the equation of the regression line of Economics ($Y$) on Mathematics ($X$).

  3. What mark would be expected in Economics for a student who scored $10$ in Mathematics?

Solve
Practice★★★Not started
The regression lines of a bivariate distribution are $4x - 5y + 12 = 0$ and $9x - 10y + 15 = 0$. a) Identify which of them is the regression line of $Y$ on $X$ and which…

The regression lines of a bivariate distribution are $4x - 5y + 12 = 0$ and $9x - 10y + 15 = 0$.

  1. a) Identify which of them is the regression line of $Y$ on $X$ and which is that of $X$ on $Y$. Justify your answer using the fact that the product of their gradients must equal $r^2$ and that $0 \leq r^2 \leq 1$.
  2. b) Calculate the linear correlation coefficient $r$.
  3. c) Determine the mean values $\bar{x}$ and $\bar{y}$.
Solve

Summary

See all the exercises in this section