Free access until 31 December 2026 · Physics and Maths questions and notes, updated continuously · Build a test · Get an email before anything changes
IAL Maths (Edexcel) · S1 · Topic S1.4AS≈ 25 min read

S1.4 Correlation and regression

⤓ Presentation⤓ PowerPointPresentation: opens offline in any browser, simulations live. PowerPoint: editable.

Statistics 1 (AS). Hypothesis tests on a correlation coefficient and rank correlation are not part of S1; means and standard deviations of a single variable are on the S1.2 page.

What this page covers

7 points
  • Scatter diagrams and the language of correlation: positive, negative, strong, weak, none
  • Calculating \(S_{xx}\), \(S_{yy}\) and \(S_{xy}\) from raw data or from summary statistics
  • The product moment correlation coefficient \(r\): calculating it, interpreting it in context, and its limitations
  • The least-squares regression line \(y=a+bx\): what "least squares" means and how to find \(a\) and \(b\)
  • Explanatory and response variables, and interpreting \(a\) and \(b\) in context
  • Interpolation and extrapolation, and how reliable an estimate is
  • Coding: the effect on \(r\), on the summary statistics and on the regression line

In one minute

6 points
  • Correlation and regression measure and use a straight-line relationship between two variables, and three summary numbers, \(S_{xx}\), \(S_{yy}\) and \(S_{xy}\), carry the whole topic.
  • \(S_{xx}=\sum x^2-\dfrac{(\sum x)^2}{n}\), \(S_{yy}=\sum y^2-\dfrac{(\sum y)^2}{n}\), \(S_{xy}=\sum xy-\dfrac{(\sum x)(\sum y)}{n}\).
  • \(r=\dfrac{S_{xy}}{\sqrt{S_{xx}S_{yy}}}\), always between −1 and 1. It measures linear association only, and correlation does not prove cause.
  • Regression line of \(y\) on \(x\): \(b=\dfrac{S_{xy}}{S_{xx}}\), \(a=\bar y-b\bar x\). It passes through \((\bar x,\bar y)\) and minimises the sum of the squared vertical distances.
  • \(b\) is the change in \(y\) for each extra unit of \(x\); \(a\) is the value of \(y\) when \(x=0\) (often outside the data, so treat it with care).
  • Interpolation is reliable when \(r\) is close to ±1; extrapolation is not. Coding \(u=(x-p)/q\) does not change \(r\) (for \(q>0\)).

Contents

15 sections
  1. What does a scatter diagram show?
  2. How do you calculate Sxx, Syy and Sxy?
  3. What does the product moment correlation coefficient measure?
  4. How do you find the least-squares regression line?
  5. Which variable is which, and what do a and b mean?
  6. When can you trust an estimate from the line?
  7. How does coding affect correlation and regression?
  8. What are the limitations of the correlation coefficient?
  9. How do the pieces fit together in a full question?
  10. Exam tips for S1.4
  11. Common misconceptions
  12. How this topic connects
  13. Key formulae
  14. Check your understanding
  15. Specification checklist

What does a scatter diagram show?

Bivariate data. Pairs of values of two variables measured on each member of a sample, for example the height and the arm span of each student. A scatter diagram plots each pair as one point \((x,y)\).

With positive correlation, as \(x\) increases \(y\) tends to increase: the points rise from left to right. With negative correlation they fall from left to right. With no correlation there is no straight-line pattern. The closer the points lie to a straight line, the stronger the (linear) correlation. In context, say what happens to one variable as the other increases: "days with more sunshine tend to generate more energy".

strong positiver = 0.99weak negativer = −0.31no correlationr = 0.06a curve, not a liner = 0
Four sets of paired data with the product moment correlation coefficient of each, calculated from the plotted points. The U-shaped points follow a curve exactly, yet \(r=0\): correlation only measures how close the points are to a straight line.
Common error

Writing just "positive correlation" when asked to interpret a diagram in context. Name the variables: "as the hours of sunshine increase, the energy generated tends to increase".

How do you calculate Sxx, Syy and Sxy?

Summary statistics for paired data (\(n\) = number of pairs): \[S_{xx}=\sum(x-\bar x)^2=\sum x^2-\frac{(\sum x)^2}{n},\qquad S_{yy}=\sum(y-\bar y)^2=\sum y^2-\frac{(\sum y)^2}{n}\] \[S_{xy}=\sum(x-\bar x)(y-\bar y)=\sum xy-\frac{(\sum x)(\sum y)}{n}\]

\(S_{xx}\) and \(S_{yy}\) are never negative. \(S_{xy}\) is positive for positive correlation and negative for negative correlation; it carries the sign of everything that follows. Why? For a point above-right of the mean point, both \((x-\bar x)\) and \((y-\bar y)\) are positive, so its product is positive; points below-left also give positive products. A rising pattern therefore makes \(S_{xy}\) positive.

23456789102345678910111213hours of sunshine, xenergy, y (kWh)(x − x̄)(y − ȳ) > 0(x − x̄)(y − ȳ) > 0product < 0product < 0(x̄, ȳ)
The solar-panel data split by lines through the mean point. Every point lies in a shaded quadrant, where \((x-\bar x)(y-\bar y)>0\), so \(S_{xy}\) is positive.

In most questions you are given \(\sum x\), \(\sum y\), \(\sum x^2\), \(\sum y^2\) and \(\sum xy\): substitute into the right-hand forms. From raw data, use your calculator's statistics mode, but still write the formula with the numbers in it, and keep full calculator values of \(S_{xx}\), \(S_{yy}\) and \(S_{xy}\): rounding early can change the third significant figure of \(r\).

The solar-panel data used in the next three sections: hours of sunshine on 8 days and the energy a domestic solar panel generated on each of those days.

hours of sunshine, \(x\)2.53.04.55.06.57.08.59.5
energy, \(y\) (kWh)3.14.45.26.97.89.610.312.1
Worked example 1 Easy · Calculate

For the solar-panel data, \(\sum x=46.5\), \(\sum y=59.4\), \(\sum x^2=314.25\), \(\sum y^2=509.12\) and \(\sum xy=399.25\). Calculate \(S_{xx}\), \(S_{yy}\) and \(S_{xy}\).

\(S_{xx}=314.25-\dfrac{46.5^2}{8}=314.25-270.28125=\) 43.96875

\(S_{yy}=509.12-\dfrac{59.4^2}{8}=509.12-441.045=\) 68.075

\(S_{xy}=399.25-\dfrac{46.5\times59.4}{8}=399.25-345.2625=\) 53.9875, positive, matching the rising pattern of the points.

What does the product moment correlation coefficient measure?

Product moment correlation coefficient. A measure of the strength and direction of the linear relationship between two variables: \[r=\frac{S_{xy}}{\sqrt{S_{xx}S_{yy}}},\qquad -1\le r\le1.\] \(r\) has no units, and swapping \(x\) and \(y\) gives the same value. A value outside \(-1\le r\le1\) means an arithmetic error.
Value of \(r\)Meaning
\(r=1\)perfect positive linear correlation: every point on a rising straight line
close to 1 (e.g. 0.9)strong positive linear correlation
around 0.4 to 0.6moderate / weak positive linear correlation
close to 0little or no linear correlation (there may still be a curved relationship)
close to −1strong negative linear correlation
\(r=-1\)perfect negative linear correlation: every point on a falling straight line
Worked example 2 Easy · Calculate, interpret

Using the results of Worked example 1, calculate the product moment correlation coefficient between hours of sunshine and energy generated, and interpret it in context.

\(r=\dfrac{53.9875}{\sqrt{43.96875\times68.075}}=0.98680\ldots=\) 0.987

Strong positive linear correlation: days with more hours of sunshine tend to generate more energy.

Exam tip — three parts to an interpretation

An interpretation of \(r\) needs the direction (positive/negative), the strength (strong/weak) and the context (both variables named). "Strong" on its own, or a bare number, is not an interpretation.

How do you find the least-squares regression line?

For each point, the residual is its vertical distance from the line: observed \(y\) − value of \(y\) on the line. The least-squares regression line of \(y\) on \(x\) is the straight line that makes the sum of the squares of the residuals as small as possible. The distances are measured parallel to the \(y\)-axis because \(y\) is the variable being predicted.

23456789102345678910111213hours of sunshine, xenergy, y (kWh)residual 0.72teal: above the lineamber: below
Residuals for the solar-panel data. The largest is 0.72 kWh at \(x=7\). No other straight line gives a smaller total of squared residuals than this one (1.79); the positive and negative residuals add up to exactly 0.
Regression line of \(y\) on \(x\). \[y=a+bx,\qquad b=\frac{S_{xy}}{S_{xx}},\qquad a=\bar y-b\bar x\] Because \(a=\bar y-b\bar x\), the line always passes through the mean point \((\bar x,\bar y)\), a quick check on a sketch.
Worked example 3 Medium · Find

Using the results of Worked example 1, find the equation of the regression line of \(y\) on \(x\) for the solar-panel data, giving \(a\) and \(b\) to 3 significant figures.

Gradient: \(b=\dfrac{53.9875}{43.96875}=1.2279\ldots\)

Means: \(\bar x=\dfrac{46.5}{8}=5.8125\), \(\bar y=\dfrac{59.4}{8}=7.425\).

Intercept, using the unrounded \(b\): \(a=7.425-1.2279\ldots\times5.8125=0.2881\)

\(y=0.288+1.23x\)

01234567891002468101214hours of sunshine, xenergy, y (kWh)y = 0.288 + 1.23x×(x̄, ȳ) = (5.8125, 7.425)
The solar-panel data with the regression line \(y=0.288+1.23x\). The line passes through the mean point (5.8125, 7.425), marked with a cross.
Common error

Rounding \(b\) to 1.23 before finding \(a\): \(7.425-1.23\times5.8125=0.276\), not 0.288. Keep the full value of \(b\) in your calculator for the next step.

Which variable is which, and what do a and b mean?

Explanatory (independent) variable: the variable that is set, controlled or changes on its own; it goes on the horizontal axis as \(x\). Response (dependent) variable: the variable whose value depends on, or is predicted from, the explanatory variable; it goes on the vertical axis as \(y\).

Ask which variable could affect the other: hours of sunshine can affect the energy generated, not the other way round. The regression line of \(y\) on \(x\) is used to estimate \(y\) for a given \(x\); it is not the right line for estimating \(x\) from \(y\).

  • Interpreting \(b\): "for each extra (unit of \(x\)), (the response) increases/decreases by about \(b\) (units of \(y\))".
  • Interpreting \(a\): the value of \(y\) when \(x=0\), meaningful only if \(x=0\) makes sense and is not far outside the data.

The phone data: hours of screen-on time \(x\) since a full charge, and battery left \(y\) (%), for one phone on 8 occasions.

\(x\) (hours)11.52.5344.55.56
\(y\) (%)8982746358494132
Worked example 4 Medium · State, find, interpret

For the phone data, \(n=8\), \(\sum x=28\), \(\sum y=488\), \(\sum x^2=121\), \(\sum y^2=32\,560\) and \(\sum xy=1456\). (a) State, with a reason, which is the explanatory variable. (b) Find the regression line of \(y\) on \(x\). (c) Interpret the gradient and the intercept in context.

(a) Screen-on time: using the screen drains the battery, so the battery level depends on the time, not the reverse.

(b) \(S_{xx}=121-\dfrac{28^2}{8}=23\), \(S_{xy}=1456-\dfrac{28\times488}{8}=-252\). \(b=\dfrac{-252}{23}=-10.957\ldots\), \(a=61-(-10.957\ldots)(3.5)=99.35\): \(y=99.3-11.0x\).

(c) \(b\): the battery level falls by about 11 percentage points for each hour of screen-on time. \(a\): with no screen-on time the battery is at about 99%, close to the full charge it starts from.

When can you trust an estimate from the line?

Interpolation: estimating \(y\) for an \(x\) inside the range of the data. Extrapolation: estimating \(y\) for an \(x\) outside the range of the data.

An interpolated estimate is reliable when the correlation is strong (\(r\) close to ±1). An extrapolated estimate is unreliable: nothing in the data shows that the straight-line pattern carries on beyond it. A weak correlation makes every estimate unreliable, inside the range or not.

0123456789101112−40−20020406080100screen-on time, x (hours)battery left, y (%)interpolation: inside the dataextrapolation:beyond the data0 % at x = 9.07−32 % at 12 h
The phone data cover 1 to 6 hours (shaded). The line \(y=99.3-11.0x\) reaches 0% at \(x=9.07\), and beyond that it predicts impossible negative values: a straight-line model cannot hold for ever.
Worked example 5 Medium · Estimate, comment

Use the regression line from Worked example 4 to estimate the battery left after (a) 2 hours and (b) 10 hours of screen-on time. Comment on the reliability of each estimate.

(a) \(y=99.348-10.957\times2=\) 77.4%. Reliable: 2 hours is inside the data (interpolation), and \(r=-0.994\) (using \(S_{yy}=2792\) from the sums in Worked example 4) shows strong negative linear correlation.

(b) \(y=99.348-10.957\times10=\) −10.2%. Unreliable: 10 hours is outside the data (extrapolation), and a negative battery level is impossible.

Common error

Rearranging \(y=a+bx\) to estimate \(x\) from a given \(y\). The line of \(y\) on \(x\) minimises vertical distances only; to estimate \(x\) you would need the regression line of \(x\) on \(y\), a different line unless \(r=\pm1\).

How does coding affect correlation and regression?

Data are often coded to make the numbers smaller: \(u=\dfrac{x-p}{q}\) and \(v=\dfrac{y-s}{t}\). Adding or subtracting a constant shifts the points; dividing by a positive constant rescales an axis. Neither changes the shape of the scatter diagram, so \(r\) is unchanged. Dividing by a negative constant reflects the diagram: \(r\) changes sign but keeps its size. To turn a coded regression line into one for \(x\) and \(y\), substitute the coding into it and rearrange.

Coding and the summary statistics (\(q,t>0\)): \[S_{uu}=\frac{S_{xx}}{q^2},\quad S_{vv}=\frac{S_{yy}}{t^2},\quad S_{uv}=\frac{S_{xy}}{qt},\quad r_{uv}=r_{xy}\] The constants \(p\) and \(s\) that are subtracted have no effect on any of the \(S\) values.
Worked example 6 Hard · Find, hence, estimate

A batch of 8 steel bolts is heat-treated at different furnace temperatures \(x\) °C and the hardness \(y\) of each is measured. The data are coded using \(u=\dfrac{x-800}{5}\) and \(v=y-200\), giving \(\sum u=93\), \(\sum v=236\), \(\sum u^2=1383\), \(\sum v^2=7964\), \(\sum uv=3290\). (a) Find the product moment correlation coefficient between \(x\) and \(y\). (b) Find the regression line of \(v\) on \(u\). (c) Hence find the regression line of \(y\) on \(x\). (d) Estimate the hardness of a bolt treated at 860 °C.

(a) \(S_{uu}=1383-\dfrac{93^2}{8}=301.875\), \(S_{vv}=7964-\dfrac{236^2}{8}=1002\), \(S_{uv}=3290-\dfrac{93\times236}{8}=546.5\). \(r=\dfrac{546.5}{\sqrt{301.875\times1002}}=0.994\); coding does not change \(r\), so \(r=0.994\).

(b) Gradient \(=\dfrac{546.5}{301.875}=1.8104\ldots\); \(\bar u=11.625\), \(\bar v=29.5\); intercept \(=29.5-1.8104\ldots\times11.625=8.4547\): \(v=8.45+1.81u\).

(c) Substitute: \(y-200=8.4547+1.8104\times\dfrac{x-800}{5}\), so \(y=208.45+0.36207x-289.66\): \(y=-81.2+0.362x\).

(d) \(y=-81.202+0.36207\times860=\) 230.

Check: \(S_{xx}=5^2\times S_{uu}=7546.875\) and \(S_{xy}=5\times S_{uv}=2732.5\), so \(b=2732.5\div7546.875=0.362\). The intercept −81.2 would be the hardness at 0 °C, far outside the data, so it has no practical meaning.

800810820830840850860870880890900910205210215220225230235240245250furnace temperature, x (°C)hardness, yy = −81.2 + 0.362xr = 0.994
Hardness of the 8 bolts against furnace temperature, with the decoded line \(y=-81.2+0.362x\).
024681012141618202201020304050u = (x − 800) ÷ 5v = y − 200v = 8.45 + 1.81ur = 0.994 (unchanged)
The same 8 bolts plotted with the coded variables. The pattern is identical, only the axis labels change, so \(r=0.994\) for \(u\) and \(v\) as well as for \(x\) and \(y\).

What are the limitations of the correlation coefficient?

  • Linear only. \(r\) measures how close the points are to a straight line. A strong curved relationship can have \(r\) near 0, so always look at the scatter diagram.
  • Correlation is not causation. Both variables may depend on a third: ice-cream sales and sunburn cases rise together because both increase in hot, sunny weather.
  • Outliers. One unusual point, often a recording error, can change \(r\) a lot, in either direction.
  • Small samples. With only a few points, a large \(r\) can happen by chance (testing for this is beyond S1).
  • The range of the data. \(r\) describes the relationship only within the values measured.
Worked example 7 Medium · Find, comment

The arm span \(x\) cm and height \(y\) cm of 10 students give \(\sum x=1708\), \(\sum y=1654\), \(\sum x^2=292\,876\), \(\sum y^2=277\,202\), \(\sum xy=283\,512\), and \(r=0.494\). One student's pair was recorded as (172, 117); it should be removed. (a) Find the new summary statistics for the remaining 9 students. (b) Find the new value of \(r\) and comment.

(a) Subtract the incorrect pair from every sum: \(\sum x=1536\), \(\sum y=1537\), \(\sum x^2=292\,876-172^2=263\,292\), \(\sum y^2=277\,202-117^2=263\,513\), \(\sum xy=283\,512-172\times117=263\,388\).

(b) With \(n=9\): \(S_{xx}=263\,292-\dfrac{1536^2}{9}=1148\), \(S_{yy}=263\,513-\dfrac{1537^2}{9}=1027.56\), \(S_{xy}=263\,388-\dfrac{1536\times1537}{9}=1073.33\). \(r=\dfrac{1073.33}{\sqrt{1148\times1027.56}}=\) 0.988. The correlation is now strong and positive: taller students tend to have longer arm spans; the single error had hidden this.

150155160165170175180185190110120130140150160170180190arm span, x (cm)height, y (cm)(172, 117): height mistypedwithout it: r = 0.988 (solid)all 10 points: r = 0.494 (dashed)
One mistyped height (171 cm entered as 117 cm) drops \(r\) from 0.988 to 0.494 and drags the regression line down (dashed). Removing the error gives a much better model (solid).
Common error

Removing a point by subtracting its values from \(\sum x\) and \(\sum y\) but leaving \(\sum x^2\), \(\sum y^2\), \(\sum xy\) and \(n\) unchanged. Every sum loses that point's contribution, and \(n\) goes down by 1.

How do the pieces fit together in a full question?

A full question usually runs: summary statistics → \(r\) and its meaning → regression line → interpret the gradient → estimate and judge reliability → coding or a change of units. Keep full calculator values throughout.

Worked example 8 Hard · Find, interpret, explain

The table gives the altitude \(x\) (hundreds of metres) and the mean July temperature \(y\) (°C) for 8 weather stations in one mountain region.

\(x\)257912141619
\(y\)24.623.521.921.419.118.616.815.7

You may use \(\sum x=84\), \(\sum y=161.6\), \(\sum x^2=1116\), \(\sum y^2=3334.48\), \(\sum xy=1569.3\). (a) Find \(S_{xx}\), \(S_{yy}\) and \(S_{xy}\). (b) Calculate \(r\) and interpret it in context. (c) Find the regression line of \(y\) on \(x\). (d) Interpret the gradient in context. (e) Estimate the mean July temperature at a station 600 m above sea level, and comment on its reliability. (f) Explain why the line should not be used for a summit at 3500 m. (g) The altitudes are re-recorded in metres, \(w=100x\). State the correlation coefficient between \(w\) and \(y\), and the gradient of the regression line of \(y\) on \(w\).

(a) \(S_{xx}=1116-\dfrac{84^2}{8}=\) 234; \(S_{yy}=3334.48-\dfrac{161.6^2}{8}=\) 70.16; \(S_{xy}=1569.3-\dfrac{84\times161.6}{8}=\) −127.5.

(b) \(r=\dfrac{-127.5}{\sqrt{234\times70.16}}=\) −0.995: strong negative linear correlation; higher stations tend to have lower mean July temperatures.

(c) \(b=\dfrac{-127.5}{234}=-0.54487\ldots\); \(\bar x=10.5\), \(\bar y=20.2\); \(a=20.2-(-0.54487\ldots)(10.5)=25.921\): \(y=25.9-0.545x\).

(d) For each extra 100 m of altitude, the mean July temperature falls by about 0.545 °C.

(e) 600 m means \(x=6\): \(y=25.921-0.54487\times6=\) 22.7 °C; reliable, because \(x=6\) is inside the data (interpolation) and the correlation is strong.

(f) 3500 m is \(x=35\), far outside the range 2 to 19: extrapolation, so the linear pattern may not continue.

(g) Multiplying \(x\) by a positive constant does not change \(r\); it divides the gradient by 100: \(r=-0.995\), gradient −0.00545 °C per metre.

0246810121416182014161820222426altitude, x (hundreds of metres)mean July temperature, y (°C)y = 25.9 − 0.545x×(x̄, ȳ) = (10.5, 20.2)x = 6 → 22.7 °C
Mean July temperature against altitude for the 8 stations, with the regression line through the mean point (10.5, 20.2) and the estimate for an altitude of 600 m.

Exam tips for S1.4

Exam tip 1 — write the formula with the numbers in

Show \(S_{xy}=1569.3-\dfrac{84\times161.6}{8}\) before the answer. If a calculator slip gives a wrong value, the method is still visible and later parts can follow through from it.

Exam tip 2 — keep unrounded values

Store \(S_{xx}\), \(S_{yy}\), \(S_{xy}\) and \(b\) in your calculator memory. Give \(r\), \(a\) and \(b\) to 3 significant figures at the end, unless the question asks otherwise.

Exam tip 3 — context in every interpretation

"For each extra hour of sunshine, about 1.23 kWh more energy is generated" is an interpretation; "\(b\) is the gradient" is not. Use the names and units of both variables.

Exam tip 4 — check sign and size

\(r\), \(S_{xy}\) and \(b\) must all have the same sign as the trend in the scatter diagram, and \(-1\le r\le1\). The line must pass through \((\bar x,\bar y)\).

Exam tip 5 — reliability needs two reasons

To judge an estimate, say whether it is interpolation or extrapolation and what the value of \(r\) shows about the strength of the correlation.

Common misconceptions

MisconceptionWhy it is wrongCorrect idea
\(r=0\) means the variables are unrelated.\(r\) only measures linear association; a curve can give \(r=0\).\(r=0\) means no linear correlation; look at the scatter diagram.
A strong correlation proves that \(x\) causes \(y\).Both may depend on a third variable, or it may be coincidence.Correlation describes association, not cause.
\(r=-0.9\) is weaker than \(r=0.5\).The sign gives the direction, the size gives the strength.−0.9 is a strong (negative) correlation.
Coding changes the correlation coefficient.Shifting and positive rescaling do not change the shape of the scatter diagram.\(r\) is unchanged by \(u=(x-p)/q\) with \(q>0\).
The regression line of \(y\) on \(x\) can be rearranged to predict \(x\).It minimises vertical distances only.Use it only to estimate \(y\) from \(x\).
An estimate is reliable as long as \(r\) is close to 1.The pattern is only known inside the data.Extrapolated estimates are unreliable however strong \(r\) is.

How this topic connects

S1.2 Measures of location and dispersion

\(S_{xx}/n\) is the variance of \(x\), so the coding rules here are the same ones used for means and standard deviations.

P1 Straight-line graphs

The regression line \(y=a+bx\) is a straight line: gradient and intercept are read and interpreted exactly as for \(y=mx+c\).

P2/P3 Exponentials and logarithms

A curved relationship such as \(y=kx^n\) becomes linear when you plot \(\log y\) against \(\log x\); correlation and regression then apply to the logged data.

Key formulae

FormulaUseIn the formulae list?
\(S_{xx}=\sum x^2-(\sum x)^2/n\)spread of \(x\); also \(S_{yy}\) for \(y\)Yes
\(S_{xy}=\sum xy-(\sum x)(\sum y)/n\)how \(x\) and \(y\) vary togetherYes
\(r=S_{xy}/\sqrt{S_{xx}S_{yy}}\)product moment correlation coefficientYes
\(b=S_{xy}/S_{xx}\), \(a=\bar y-b\bar x\)regression line of \(y\) on \(x\): \(y=a+bx\)Yes
\(\bar y=a+b\bar x\)the line passes through the mean pointNo – derive it
\(S_{uu}=S_{xx}/q^2\), \(S_{uv}=S_{xy}/(qt)\), \(r_{uv}=r_{xy}\)coding \(u=(x-p)/q\), \(v=(y-s)/t\)No – learn it

Check your understanding

1. For a set of data, \(S_{xx}=40\), \(S_{yy}=90\) and \(S_{xy}=-48\). Find \(r\).

\(r=-48\div\sqrt{40\times90}=-48\div60=-0.8\): fairly strong negative linear correlation.

2. The regression line of \(y\) on \(x\) is \(y=12.4+0.75x\), and \(\bar x=20\). Find \(\bar y\).

The line passes through \((\bar x,\bar y)\), so \(\bar y=12.4+0.75\times20=27.4\).

3. Two variables have \(r=0.03\). Does this show they are not related?

No. It shows there is almost no linear correlation. The variables could still have a strong curved relationship, which a scatter diagram would show.

4. Data are coded with \(u=(x-50)/10\) and \(v=(y-3)/2\). The coded data have \(r=0.62\). Find \(r\) for \(x\) and \(y\).

0.62. Subtracting constants and dividing by positive constants does not change the correlation coefficient.

5. Phone sales in a country and the number of people over 80 have both risen steadily, with \(r=0.97\). Does selling phones make people live longer?

No. Correlation does not imply causation: both quantities increase over time (time, wealth and population growth are third variables), so they are correlated without one causing the other.

Specification checklist

  • (S1 4.1) I can draw and describe a scatter diagram, using positive, negative or no correlation and saying how strong it is.
  • (S1 4.1) I can calculate \(S_{xx}\), \(S_{yy}\) and \(S_{xy}\) from raw data or from given sums.
  • (S1 4.1) I can explain that the least-squares regression line of \(y\) on \(x\) minimises the sum of the squared vertical distances, and find it as \(y=a+bx\) with \(b=S_{xy}/S_{xx}\) and \(a=\bar y-b\bar x\).
  • (S1 4.2) I can identify the explanatory and the response variable and use the regression line to estimate the response.
  • (S1 4.2) I can interpret \(a\) and \(b\) in context, and explain when the intercept has no practical meaning.
  • (S1 4.2) I can tell interpolation from extrapolation and comment on the reliability of an estimate.
  • (S1 4.2) I can find a regression line from coded data and convert it back to the original variables.
  • (S1 4.3) I can calculate the product moment correlation coefficient, interpret it in context and know that coding does not change it.
  • (S1 4.3) I can explain the limitations of \(r\): linear relationships only, the effect of outliers, and that correlation does not imply causation.