Linear model

A linear model is a straight-line equation that uses an explanatory variable x to predict a response variable y, written y-hat = a + bx.

A linear model summarizes a scatterplot with one straight line, so any xx you choose turns into a prediction. It is written y^=a+bx\hat{y} = a + bx, where y^\hat{y} (read y-hat) is the predicted response, aa is the y-intercept, and bb is the slope. For example, if y^=12+3x\hat{y} = 12 + 3x predicts a plant's height in centimeters from weeks of growth, then at x=5x = 5 weeks the model gives 12+3(5)=2712 + 3(5) = 27 centimeters. Fit a linear model only when the scatterplot and the residual plot show a linear form, since the equation will happily produce numbers for curved data too.

Where this comes up

More regression and correlation terms, or browse the full statistics glossary.