Skip to study

CHAPTER 07 · STATISTICS & PROBABILITY

Bivariate statistics

Progress stays on this device

papers Chapter & section analysis

Your chapter

Investigate relationships between two measurements and evaluate predictions.

Read all chapter notes

7.1

papers

Scatter diagrams

Plot each paired observation (x, y)\displaystyle \left(x,\,y\right) as one point. Put the explanatory variable on the horizontal axis. Describe direction, strength and form, and look for clusters and unusual observations.

A relationship may be curved even if linear correlation is weak. A trend does not establish cause: a third variable, selection effects or coincidence may explain it.

Positive: y tends to rise as x rises. Negative: y tends to fall as x rises.

Watch out: Zero linear correlation does not rule out a strong curved relationship.

Worked example

A scatter diagram has an upward pattern with points close to a straight line. Which description fits?

  1. As x increases, y generally increases.
  2. Closeness to a line determines strength; the direction determines the sign.

7.2

papers

Measuring correlation

Pearson’s r summarises the direction and strength of a linear association. Values near ±1 indicate points close to a straight line; values near zero indicate little linear association.

Calculate r using technology with matched lists of equal length. An extreme point can greatly alter r, and a high value still does not prove causation. Use a critical value only when one is supplied in a problem.

−1≤r≤1\displaystyle -1 \le r \le 1. The sign gives direction and ∣r∣\displaystyle \left|r\right| indicates linear strength.

Watch out: There is no universal numerical boundary between “strong” and “moderate”; interpret r alongside the scatter diagram.

Worked example

A data set has Pearson correlation coefficient r=0.94\displaystyle r = 0.94. Choose the best description.

  1. Pearson’s r lies between −1 and 1.
  2. The sign is positive; the magnitude is 0.94.
  3. Strong positive linear correlation.

7.3

papers

The line of best fit

A hand-drawn line of best fit follows the overall trend with points roughly balanced above and below, and should pass near the mean⁡\displaystyle \operatorname{mean} point (x‾, yˉ)\displaystyle \left(\overline{x},\,\bar{y}\right). The least-squares regression line passes through that point exactly. Use it to estimate values within the observed input range.

Interpolation uses inputs within the data range. Extrapolation goes beyond it and assumes the trend continues. Reliability also depends on the scatter and whether the model is suitable.

The least-squares regression line of y on x passes through (x‾, yˉ)\displaystyle \left(\overline{x},\,\bar{y}\right).

Watch out: Do not join consecutive data points to make a best-fit line.

Worked example

A line of best fit has gradient 2 and passes through the mean⁡\displaystyle \operatorname{mean} point (5, 12)\displaystyle \left(5,\,12\right). Use it to predict y at x=7\displaystyle x = 7.

  1. Use y−12=2(x−5)\displaystyle y - 12 = 2 \left(x - 5\right).
  2. At x=7\displaystyle x = 7, y=12+2(7−5)\displaystyle y = 12 + 2 \left(7 - 5\right).
  3. The prediction is 16.

7.4

papers

Least-squares regression

The least-squares regression of y on x minimises the sum of squared vertical residuals. A residual is observed y minus predicted y. Interpret slope as predicted change in y for a unit increase in x.

Calculate coefficients using technology, retain their full precision, and round the final prediction. The y-on-x line predicts y from x; rearranging it is not generally the same as fitting x on y. Compare the model against the data and context.

Predicted y=ax+b\displaystyle y = ax + b. Residual = observed y − predicted y.

Watch out: Extrapolation and reversing the prediction direction need particular care.

Worked example

The regression line of y on x is y=2.5x+4\displaystyle y = 2.5 x + 4. Observed x-values range from 2 to 10. Predict y when x=6\displaystyle x = 6.

  1. Substitute x=6\displaystyle x = 6.
  2. y=2.5×6+4=19\displaystyle y = 2.5 \times 6 + 4 = 19.
  3. This is interpolation because the input lies within the observed range.