ECON 3209 · Week 10, Lecture 1 · Kerala Agricultural University
Autumn 2026
By the end of this lecture, you will be able to:
In agricultural economics, most relationships are multifactor relationships. MLR is therefore the standard workhorse model.
\[Y_i = \beta_0 + \beta_1 X_{1i} + \beta_2 X_{2i} + \cdots + \beta_k X_{ki} + \varepsilon_i\]
\[\mathbf{Y} = \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\varepsilon}\]
| Object | Meaning | Dimension |
|---|---|---|
| \(\mathbf{Y}\) | dependent variable vector | \(n \times 1\) |
| \(\mathbf{X}\) | design matrix | \(n \times (k+1)\) |
| \(\boldsymbol{\beta}\) | coefficient vector | \((k+1) \times 1\) |
| \(\boldsymbol{\varepsilon}\) | error vector | \(n \times 1\) |
The intercept is included by placing a column of ones inside \(\mathbf{X}\). Without that column, the fitted plane is forced through the origin.
We choose \(\hat{\boldsymbol{\beta}}\) to minimise the sum of squared residuals:
\[S(\boldsymbol{\beta})=(\mathbf{Y}-\mathbf{X}\boldsymbol{\beta})'(\mathbf{Y}-\mathbf{X}\boldsymbol{\beta})\]
The first-order condition gives the normal equations:
\[\mathbf{X}'\mathbf{X}\hat{\boldsymbol{\beta}}=\mathbf{X}'\mathbf{Y}\] \[\hat{\boldsymbol{\beta}}=(\mathbf{X}'\mathbf{X})^{-1}\mathbf{X}'\mathbf{Y}\]
\[Yield_i = \alpha_0 + \alpha_1 Fertilizer_i + u_i\]
Here \(\alpha_1\) mixes together: - direct fertilizer effect - rainfall differences - irrigation differences
\[Yield_i = \beta_0 + \beta_1 Fertilizer_i + \beta_2 Rainfall_i + \beta_3 Irrigation_i + \varepsilon_i\]
Now \(\beta_1\) is the fertilizer effect holding rainfall and irrigation constant.
MLR changes the interpretation from a raw association to a conditional association.
Both methods solve the same normal equations. statsmodels adds standard errors, tests, confidence intervals, and fitted values.
Under these conditions, OLS is unbiased. For multiple-regression inference, we later revisit homoskedasticity and normality in the MLR setting.
fertilizer, rainfall, and irrigation.statsmodels.✅ MLR writes the outcome as \(\mathbf{Y}=\mathbf{X}\boldsymbol{\beta}+\boldsymbol{\varepsilon}\).
✅ OLS chooses \(\hat{\boldsymbol{\beta}}=(\mathbf{X}'\mathbf{X})^{-1}\mathbf{X}'\mathbf{Y}\) when \(\mathbf{X}'\mathbf{X}\) is invertible.
✅ Adding regressors changes coefficient interpretation to a ceteris paribus interpretation.
✅ Matrix OLS and statsmodels produce the same coefficient estimates.
✅ Nested models help us see how omitted factors can alter estimated slopes.
Lecture 2 — Interpretation of Coefficients
We will cover: - partial effects in MLR - ceteris paribus language - standardized coefficients - R² versus adjusted R²
ECON 3209 — Kerala Agricultural University