Regression analysis is a set of statistical methods for estimating the relationships between a dependent variable and one or more independent variables, forming the backbone of predictive modelling and causal inference across every quantitative field. Its power lies not just in fitting a line, but in providing standard errors, hypothesis tests, and diagnostics that quantify how much trust to place in each estimate. The critical insight most practitioners learn too late is that a model's coefficients are only as meaningful as the assumptions it rests on — every regression analysis should be accompanied by careful diagnostics before results are reported.
What This Cheat Sheet Covers
This topic spans 18 focused tables and 146 indexed concepts, 116 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: OLS Foundations — The Simple Linear Regression Model
The ordinary least squares estimator underpins almost every form of linear regression. Understanding how OLS works — what it minimises, what conditions make it optimal, and what its closed-form solution looks like — is the entry point to all more advanced regression methods.
| Technique | Example | Description | |
|---|---|---|---|
$y_i = \beta_0 + \beta_1 x_i + \varepsilon_i$ | • The data-generating process relating the scalar response $y_i$ to predictor $x_i$ • $\varepsilon_i$ is the unobserved error term | ||
$\min_{\beta_0,\beta_1} \sum_{i=1}^{n}(y_i - \beta_0 - \beta_1 x_i)^2$ | • Minimises the sum of squared residuals • gives the line that is geometrically closest to all points in the vertical direction | ||
$\hat{\beta}_1 = \frac{\sum(x_i - \bar{x})(y_i - \bar{y})}{\sum(x_i - \bar{x})^2}$ | • Closed-form solution obtained by setting the first-order conditions to zero • equals the sample covariance of $x$ and $y$ divided by the sample variance of $x$. | ||
$\hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x}$ | Ensures the fitted line always passes through the point of means $(\bar{x},\bar{y})$. | ||
$\hat{y}_i = \hat{\beta}_0 + \hat{\beta}_1 x_i$ $e_i = y_i - \hat{y}_i$ | • $\hat{y}_i$ is the model's predicted value for observation $i$ • $e_i$ is the sample residual, not to be confused with the unobserved error $\varepsilon_i$ | ||
$R^2 = 1 - \frac{SSR}{SST} = \frac{SSE}{SST}$ | • Proportion of total variance in $y$ explained by the model • ranges from 0 to 1 but always increases with additional predictors regardless of relevance | ||
$s = \sqrt{\frac{\sum e_i^2}{n-2}}$ | • Estimate of the standard deviation of the error term • measures the average distance of observations from the fitted line | ||
Under assumptions 1–5, $\hat{\boldsymbol{\beta}}$ is BLUE | When OLS assumptions hold, OLS is the Best Linear Unbiased Estimator — minimum variance among all linear unbiased estimators. |