Probability & Statistics · Statistical Inference

Linear Regression — Practice Problems and Worked Solutions

Fit a line that summarizes a linear relationship.

The formulas you need here

Least-squares line

What it says
The line minimising total squared vertical distance to the data.
When to reach for it
Fitting a straight line to a scatter of points.
Watch out
The line always passes through (x̄, ȳ), and correlation is not causation however good r looks.

r² of 0.8 means 80% of the variation is accounted for by the line.

18 worked problems

Every step is generated and checked by a computer algebra system.

  1. 1.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  2. 2.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  3. 3.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  4. 4.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  5. 5.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  6. 6.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  7. 7.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  8. 8.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  9. 9.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  10. 10.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  11. 11.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  12. 12.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  13. 13.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  14. 14.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  15. 15.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  16. 16.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  17. 17.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution
  18. 18.

    Find [intercept, slope] for the least-squares line y=a+bx.

    Answer:

    Step-by-step solution

More from Probability & Statistics