Chapter I
Introduction to Regression Analysis
01What Regression Analysis Is
Regression analysis is a statistical methodology used to study the relationship between a dependent variable and one or more independent variables.
The dependent variable is the outcome we want to explain or predict (usually denoted by Y). The independent variables are regressors/predictors (X in simple regression, X1, X2, ..., Xk in multiple regression).
Central question: How does the expected value of Y change when one or more explanatory variables change?
- Prediction: estimating future or unknown values of Y from observed X.
- Explanation: quantifying direction and magnitude of association.
- Inference: testing whether observed relationships are statistically meaningful.
- Decision support: guiding economic, business, scientific, and policy choices.
Regression is a formal framework that decomposes observed variation in Y into a systematic component (explained by regressors) and a random component (noise, omitted factors, measurement error).
Chapter II
The Population Regression Model and Its Interpretation
02The True Population Regression Model
In simple linear regression, the theoretical population model is:
Meaning of each term:
- Yi: value of dependent variable for observation i.
- Xi: value of independent variable for observation i.
- beta0: intercept parameter.
- beta1: slope parameter.
- epsiloni: error term for observation i.
Interpretation of the intercept beta0:
Interpretation of the slope beta1:
The slope effect is constant in simple linear regression: the conditional expectation of Y changes linearly with X.
The error term collects omitted explanatory variables, measurement error, unobserved heterogeneity, random shocks, and model misspecification.
03Conditional Expectation Form of the Model
A formal representation of the regression model is:
The observed value differs from this conditional mean by the error term:
Substituting gives the population regression equation:
- Deterministic part: conditional expectation.
- Stochastic part: deviation from conditional expectation.
04Why the True Model Is Unknown
In practice, the whole population is not observed. We observe only a sample:
Therefore, population parameters beta0 and beta1 are unknown and must be estimated from sample information.
Estimated regression line:
- beta-hat-0 estimates beta0.
- beta-hat-1 estimates beta1.
- Y-hat-i is the predicted value for observation i.
Chapter III
Least Squares, Residuals, and the Fitted Line
05The Least Squares Principle
Ordinary Least Squares (OLS) chooses the fitted line that makes observed points as close as possible to the fitted values.
Residual definition:

- ei > 0: point above fitted line.
- ei < 0: point below fitted line.
- ei = 0: point on fitted line.
OLS squares residuals to avoid cancellation of positive and negative deviations.
OLS objective: choose beta-hat-0 and beta-hat-1 to minimize total squared residual distance.
07The Fitted Line and Prediction
After estimating coefficients, the fitted equation is:
Prediction for a new value X* is:
- The fitted line summarizes the relationship in-sample.
- The same equation gives a prediction rule for new X values.
Chapter IV
Derivation of the OLS Estimators
06Derivation of the OLS Estimators
Objective function:
First normal equation (differentiate with respect to intercept):
Second normal equation (differentiate with respect to slope):
Geometric property: the fitted least-squares line passes through (X-bar, Y-bar).
Chapter V
SST, SSR, SSE, and the Decomposition of Variation
08Decomposition of Variation: SST, SSR, and SSE
Total variation in Y is decomposed into explained variation and unexplained variation.
Total Sum of Squares (SST):
Regression Sum of Squares (SSR):
Error Sum of Squares (SSE):
Notation used in these three formulas:
observed value of the dependent variable for observation i.
fitted or predicted value from the regression line for observation i.
sample mean of Y.
Fundamental identity:
Total variation = explained variation + unexplained variation.
09Why SST = SSR + SSE
Start from the identity:
Square both sides:
Sum over all observations:
Under OLS, residuals are orthogonal to fitted values:
Chapter VI
Measures of Fit: MSE, SER, R-squared, and Adjusted R-squared
10Mean Squared Error and Standard Error of Regression
Mean Squared Error (MSE) in simple regression:
In multiple regression with k predictors:
Standard Error of Regression (SER):
SER measures the typical size of residuals in units of Y: small SER means points are close to the fitted line, large SER means they are more scattered.
11Coefficient of Determination: R^2
R-squared measures the proportion of total variation in Y explained by the regression model.
- R^2 = 0: model explains none of variation.
- R^2 = 1: model explains all variation.
- 0 < R^2 < 1: partial explanation.
- Example: R^2 = 0.60 means 60 percent explained and 40 percent unexplained.
Important caution: high R^2 does not automatically imply causality, correct specification, significant coefficients, or strong out-of-sample performance.
12Adjusted R^2
Ordinary R^2 never decreases when new regressors are added, even if they add little useful information.
- n is sample size.
- k is number of predictors.
- Adjusted R^2 penalizes unnecessary regressors.
- It can increase with useful variables and decrease with weak ones.
If SSE = 0, adjusted R^2 is also 1 because there is no residual error to penalize.
Chapter VII
Statistical Inference: Standard Errors, t-Tests, and F-Tests
13t-Test for an Individual Coefficient
Beyond estimation, regression supports inference: is the relationship significant, is slope different from zero, and is explanatory power beyond random noise?
For coefficient beta_j, test:
General t-statistic:
Decision rule based on p-value with residual degrees of freedom (n-2 in simple, n-k-1 in multiple):
Large absolute t suggests stronger evidence against H0; small absolute t suggests weaker evidence.
Reference tableStudent's t Critical Values · Two-Tailed
Select the row corresponding to the appropriate degrees of freedom and the column corresponding to the chosen significance level .
Reject if .
| df | alpha = 0.10 | alpha = 0.05 | alpha = 0.01 |
|---|---|---|---|
| 1 | 6.314 | 12.706 | 63.657 |
| 2 | 2.920 | 4.303 | 9.925 |
| 3 | 2.353 | 3.182 | 5.841 |
| 4 | 2.132 | 2.776 | 4.604 |
| 5 | 2.015 | 2.571 | 4.032 |
| 6 | 1.943 | 2.447 | 3.707 |
| 7 | 1.895 | 2.365 | 3.499 |
| 8 | 1.860 | 2.306 | 3.355 |
| 9 | 1.833 | 2.262 | 3.250 |
| 10 | 1.812 | 2.228 | 3.169 |
| 12 | 1.782 | 2.179 | 3.055 |
| 15 | 1.753 | 2.131 | 2.947 |
| 20 | 1.725 | 2.086 | 2.845 |
| 25 | 1.708 | 2.060 | 2.787 |
| 30 | 1.697 | 2.042 | 2.750 |
| 40 | 1.684 | 2.021 | 2.704 |
| 60 | 1.671 | 2.000 | 2.660 |
| 120 | 1.658 | 1.980 | 2.617 |
| inf | 1.645 | 1.960 | 2.576 |
14Standard Error of a Coefficient and F-Statistic
In simple regression, the slope standard error is:
- Higher residual noise (SER^2) implies less precision.
- Greater variation in X implies more precision.
Overall model significance in multiple regression:
In simple regression (one regressor), the overall F-test is equivalent to the t-test on the slope.
Chapter VIII
Multiple Regression and Overfitting
15Multiple Regression
Multiple regression model:
Fitted multiple-regression equation:
Each coefficient is interpreted holding all other regressors constant (partial effect).
Example interpretation: beta2 is the expected change in Y for a one-unit increase in X2, keeping other explanatory variables fixed.
Why useful: many outcomes are influenced by several factors simultaneously.
- price
- advertising
- consumer income
- seasonal effects
- competitor actions
16Overfitting
Overfitting occurs when too many regressors are included relative to the informative structure in data; the model starts capturing random fluctuations instead of systematic relationships.

Consequences of overfitting:
- very high in-sample R^2
- excellent fit on historical data
- poor performance on new observations
A strong in-sample fit does not guarantee strong out-of-sample prediction.
Adjusted R^2 helps because it penalizes regressors that do not sufficiently improve explanatory power; unlike ordinary R^2, adjusted R^2 can decrease when complexity is unjustified.