The five-point regression every textbook uses

x = 1…5 against y = 2, 4, 5, 4, 5 gives ŷ = 0.6x + 2.2 — small numbers, and the whole least-squares method visible in one card.

Statistics and data · Level: Classroom · Updated on 2026-11-09

Five points, one of them sitting above the trend and one below. The line of best fit by least squares is slope 0.6 through intercept 2.2, so ŷ = 0.6x + 2.2, and the correlation r = 0.7745966692 says the fit is real but loose.

The card also reports r² = 0.6, i.e. the line explains sixty percent of the variance — the number that is easy to forget when you quote the slope. Read the prediction for x = 6 (Ŷ = 5.8, printed on the same card) as an illustration of extrapolation: nothing in the data goes past 5. Type 0.6*6+2.2 into the workbench and that prediction comes back as the exact fraction 29/5.

Answer

y = 0.6x + 2.2

How to read it

Intercept a = 2.2, slope b = 0.6, r = 0.7745966692, r² = 0.6 — same screen.

Source

The standard worked example in GCSE / A-level / IB statistics; least squares itself is Legendre (1805) and Gauss (1809)

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.