Practice Linear Regression in Statistics

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

Linear regression is a statistical method for modeling the relationship between a dependent variable and one or more independent variables by fitting a straight line that minimizes the sum of squared vertical distances from data points to the line (least squares method).

A regression line behaves like a balanced seesaw for the data: it pivots through the point of averages, and its tilt settles where the pushes from points above and below cancel, with points far from the middle having the most leverage. Unlike a seesaw, it weighs only vertical gaps, so swapping x and y gives a different line.

Showing a random 20 of 50 problems.

Example 1

medium
A regression of ice-cream sales on temperature has slope +2 and r=0.9. Does temperature cause sales?

Example 2

medium
You shift all x values by +10 without changing y. Does the regression slope change?

Example 3

easy
In y^=bx+a, what does a represent?

Example 4

hard
You scale all y values by 2 but leave x unchanged. How do slope and intercept of the new regression compare to the old?

Example 5

easy
In y^=4x+11, by how much does predicted y change when x increases by 1?

Example 6

hard
A regression equation is y^=50−2.3x. Interpret the slope. If x=8, find y^.

Example 7

easy
In y^=5x+8, what is the intercept and what does it mean?

Example 8

medium
Regression line y^=2.5x+4. The number of hours studied is x and the test score is y^. How much does each extra hour raise the predicted score?

Example 9

easy
In a regression of test score on hours studied, the slope is 5. Interpret it in plain English.

Example 10

easy
Regression line y^=−2x+30. Predict y at x=4.

Example 11

hard
For data with ∑x=20, ∑y=60, ∑xy=250, ∑x2=90, n=5, find the regression line.

Example 12

challenge
Regression y^=4x+2 from data with x from 1 to 6. A student predicts y^ at x=6 as 26 and at x=20 as 82. Which prediction is trustworthy and why?

Example 13

medium
Why does a regression equation describe association, not causation?

Example 14

easy
Linear regression fits a line by minimizing what?

Example 15

medium
Regression line y^=7x+50. Solve for x when y^=134.

Example 16

easy
Regression line y^=2.5x+4. Find y^ at x=0.

Example 17

medium
A regression slope is b=3 with sx=4 and sy=20. Find the correlation r.

Example 18

medium
Data: (xˉ,yˉ)=(5,30), sx=2, sy=8, r=0.75. Write the regression equation.

Example 19

hard
Regression residuals are plotted vs. y^ and show a clear curved pattern. What does this suggest about the linear model?

Example 20

medium
A regression model of plant height (cm) on water (mL) gives y^=0.1x+4. Interpret slope and intercept in context.