Omniadisce

Applied maths 13.1: Linear regression

Lesson Intermediate

Join free to take this lesson

Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.

13 steps · about 18 min

By the end you can

  • Compute the least-squares slope $b = S_{xy}/S_{xx}$ and intercept $a = \bar y - b\bar x$
  • Find a prediction and a residual, and read R² and the correlation r
  • Give a confidence interval for the slope and spot extrapolation

Who it is for: You know least squares as a projection (lesson 7.6) and confidence intervals and tests (lessons 9.3-9.4).

The steps

  1. Which line is best?
  2. The model and least squares
  3. The formulas, worked
  4. Find the slope
  5. Find the intercept
  6. A residual
  7. How good is the fit? R² and r
  8. Compute R²
  9. From R² to r
  10. Is the slope real?
  11. A confidence interval for the slope
  12. Beyond the data
  13. Correlation and cause

Discussion 0 comments

Log in to join the discussion.

× Enlarged view