, as you scroll — highermaths.org highermaths.org read instead ›
Regression and correlation
A scatter diagram shows a pattern. One number measures how closely the points follow a straight line, and a test decides whether the pattern is more than chance.
scroll ↓
Eight days
A kiosk records the hours of sunshine and the ice creams sold on eight days. The points rise from left to right, not perfectly, but clearly.
Four quadrants
Cross the plot at the means, and . A point above and right of centre, or below and left, has : it pulls towards positive correlation. Six points do; the two in the other quadrants sit close to the centre and pull only a little.
r = 0.915
The product moment correlation coefficient scales the sum of those products to lie between and . At it is close to : strong positive linear correlation. A calculator gives it directly from the data.
More than chance?
Test against at the 1% level. For the critical value is : the shaded region. lands inside it, so reject . There is evidence of positive correlation between sunshine and sales.
Chapter 1
Two-tailed tests, p-values, what r can and can't tell you, straightening exponential and power curves with logarithms, and twelve graded exam questions with full worked solutions are waiting.