IB Applications and Interpretation SL · Regression and linear correlation · Section 1 of 4

Bivariate distributions and scatter diagram

3 worked examples · By Álvaro López

Key idea

When you measure two things for each individual (hours of study and mark, temperature and sales), you get data in pairs . The first step is to plot them on a scatter diagram and summarise them with a few numbers: the mean and standard deviation of each variable, and the mean point . They are the basis of the whole topic: correlation and the regression line are built on them. In the IB exam almost everything comes from the graphic display calculator (GDC); here you learn what to ask it for and what its output means.

Paired data and scatter diagram

A bivariate statistical variable is a set of pairs : each pair is the two measurements of the same individual. The variable placed on the horizontal axis, , is called the independent variable (or explanatory variable), and the one on the vertical axis, , is the dependent variable (or response variable). For example, if you study how hours of study affect the mark , the mark is the one that depends.

What the cloud shows is its trend: whether the points rise from left to right, fall, cluster around a line or are scattered with no order. That is studied in the next section; here it is enough to know how to draw it and calculate its parameters.

Scatter diagram of five points (2, 4), (3, 5), (5, 6), (6, 9) and (9, 11) with an increasing trend; the mean point (x̄, ȳ) = (5, 7) is marked in orange

When there are many individuals with the same values, the data are given in a frequency table with three columns: , and the frequency of the pair , with the total number of individuals. If there are no repeats, in every row and .

Mean and standard deviation of each variable

Each variable is studied separately with the measures you already know from descriptive statistics.

In the IB the standard deviation used is that of the whole population, which the GDC shows as . Do not confuse it with the sample one, , which divides by instead of by .

Covariance

Means and standard deviations measure each variable separately. What is missing is a number that tells you how the two move together.

Its sign indicates the trend:

  • : when is above its mean, tends to be above its mean too (the cloud rises).
  • : when is above its mean, tends to be below its mean (the cloud falls).
  • : there is no clear linear trend.

Covariance depends on the units, so its size does not say whether the relationship is strong or weak. For that, the next section uses the correlation coefficient, which is obtained by dividing the covariance by .

The mean point

This point is very important: the regression line always passes through it. So, if you are given the mean of one variable and one value is missing, you can use the mean point to recover it.

Worked examples

Example 1 Basic

Advertisements and sales

A shop records, over five weeks, the number of advertisements published () and the sales of the week in hundreds of euros ():

Advertisements 2 3 5 6 9
Sales (hundreds of €) 4 5 6 9 11

a) Find the mean point .

b) Find the standard deviation of the advertisements.

c) Find the standard deviation of the sales.

d) Calculate the covariance .

Solution

a) There are pairs. The sums are and , so The mean point is .

b) With :

c) With :

d) With : It is positive: the more advertisements, the more sales.

Example 2 Medium

Hours of study and mark, with frequencies

10 students were asked how many hours they studied for a test (), and their mark out of 10 () was recorded. The results are summarised as follows:

Hours Mark Students
1 2 2
2 3 3
3 5 3
4 6 2

a) Calculate and .

b) Calculate and .

c) Calculate the covariance and interpret its sign.

Solution

The data are organised with . The weighted sums are:

a) hours and points.

b)

c) The covariance is positive: students who study more hours than the mean tend to get a higher mark than the mean.

Example 3 Hard

A missing value and a new point

A café records the maximum temperature of the day (in °C) and the number of hot chocolates sold (in hundreds) over five days:

(°C) 1 2 4 5 8
(hundreds) 6 5 4 2

It is known that the mean point of the data is .

a) Find the value of .

b) Calculate the covariance of the five days and interpret its sign.

c) A sixth day coincides exactly with the mean point, that is, . State the new mean point and calculate the new covariance.

d) Explain why the covariance has changed even though the mean point is the same.

Solution

a) The mean point tells us that . With , the sum of the sales is : (The mean of confirms the data: .)

b) With the products are , , , and , which sum to : The covariance is negative: the hotter it is, the fewer hot chocolates are sold. This is what we would expect.

c) When a value equal to the mean is added, the mean does not change: the mean point is still . Now and the sum of the products is :

d) The sum does not change, because the new day contributes a zero deviation in both variables (). But now that sum is shared among 6 days instead of 5, so the mean of the products, , is smaller in absolute value than .

In the exam: when the mean or the mean point is given, use it to find the unknown value by setting up the equation for the mean; without that set-up, a correct value with no justification may lose marks. Write the covariance formula with the numbers substituted, and in interpretations link the sign to the context (heat and sales), not only say "it is negative".

Common mistakes

Summary

  • A bivariate distribution is data in pairs , with frequencies and . It is plotted on a scatter diagram, with (independent) on the horizontal axis and (dependent) on the vertical axis.
  • and ; , and similarly . In the IB the population standard deviation is used.
  • Covariance: . Its sign indicates the trend (positive: the cloud rises; negative: it falls); its size depends on the units.
  • The mean point is the centre of the cloud, and the regression line passes through it.
  • With the GDC: two lists ordered in pairs (plus one of frequencies if needed) and two-variable statistics; check and do not mix with .
Maths classes in Aldaia and online

Want to work on it together?

Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.

Message us on WhatsApp