One of the most common statistical models is the linear regression model. A linear model predicts the value of a response variable by the linear combination of predictor variables or functions of predictor variables. In the Wolfram Language, LinearModelFit returns an object that contains fitting information for a linear regression model and allows for easy extraction of results and diagnostics.
Use LinearModelFit to construct a linear model for the data:
The previous examples demonstrated a selection of properties supported by LinearModelFit; many more are available: