University of Sydney · FACULTY OF ECONOMICS

ECMT3120 Chap.2 Matrix OLS from Objective to Inference

- one subject, every graph, every model, every mark
7 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 2 of 8 · ECMT3120

Matrix OLS from Objective to Inference

Matrix notation turns least squares into a transparent sequence: construct the design matrix, define the residual vector, minimise its squared length, solve the normal equations, and verify dimensions and rank.

This chapter derives the coefficient vector, explains why fitted residuals are orthogonal to design columns, distinguishes that sample identity from population exogeneity, and links the estimation error to conditional unbiasedness and sampling variance.

In this chapter

What this chapter covers

  • 01

    Design matrix, outcome vector and coefficient dimensions

  • 02

    Residual vectors and sums of squared residuals

  • 03

    Normal equations and the least squares solution

  • 04

    Full column rank and perfect collinearity

  • 05

    Dummy variable base categories

  • 06

    Residual orthogonality checks

  • 07

    Conditional unbiasedness and OLS sampling variance

Worked example · free

Solve a three observation regression

Q [8 marks]. For x values 1, 2 and 3 and y values 2, 3 and 5, construct the intercept design matrix, calculate the OLS coefficient vector, fitted values and residuals, and verify residual orthogonality. (8 marks) This mark allocation is revision guidance, not the University's official marking scheme.
Dimension flow for the OLS estimatorThe dimensions of X, transpose, cross products, inverse and the coefficient vector are shown along connected arrows.Xn × kX′Xk × k(X′X)⁻¹k × kX′yk × 1β̂k × 1Conformability is an error check, not decorationFull column rank makes the middle inverse available and the solution unique.
Read dimensions from left to right. The products collapse the observation dimension and return one estimated coefficient for each column of the design matrix.
  • +1Build the design matrix with an intercept column and an x column, and stack y as a column vector.
  • +2Compute X transpose X as [[3,6],[6,14]] and X transpose y as [10,23].
  • +2Invert the cross product and obtain intercept one third and slope three halves.
  • +1Calculate fitted values 1.833, 3.333 and 4.833 and residuals 0.167, minus 0.333 and 0.167.
  • +1Verify that residuals sum to zero and their x weighted sum is zero up to rounding.
  • +1Interpret the slope in outcome units per unit of x and keep causal claims conditional on exogeneity.
The fitted line has intercept one third and slope 1.5. Both normal equation checks hold. The slope is an association of 1.5 outcome units per x unit unless the population error is conditionally mean independent.
Sia tip — After every hand calculation, check the final coefficient dimension and both residual orthogonality conditions before interpreting the result.
Glossary

Key terms

Design matrix
The matrix whose rows are observations and whose columns are the intercept and included regressors.
Normal equations
The first order conditions equating the design cross product with fitted residuals to zero.
Residual orthogonality
The fitted least squares property that every included design column has zero sample cross product with residuals.
Full column rank
The condition that no design column is an exact linear combination of the others.
Perfect collinearity
Exact redundancy among regressors that makes the cross product singular and prevents a unique coefficient solution.
Sampling variance
The repeated sample variability of an estimator around its expected value under a specified model.
FAQ

Matrix OLS from Objective to Inference FAQ

Why does full column rank matter for OLS?

Full column rank makes the design cross product invertible and gives a unique coefficient vector. If an intercept accompanies an indicator for every category, the design contains perfect linear dependence. Omitting a base category restores rank and defines the coefficient comparisons.

Do orthogonal fitted residuals prove exogeneity?

No. Residual orthogonality follows mechanically from minimising the sample sum of squared residuals. Exogeneity concerns the unobserved population error and the process generating regressors. A sample identity cannot by itself verify the structural assumption needed for causal interpretation.

How do dimensions help during a matrix calculation?

Dimensions show whether multiplication is conformable and whether the result has the intended shape. With n observations and k regressors, the coefficient vector must be k by one. A conformable product that returns n entries may still be the wrong map for estimating coefficients.

Study strategy

Exam move

Rebuild one small OLS example entirely by hand. Write every matrix with its dimensions, compute the determinant before the inverse, and keep the multiplication order visible. After obtaining coefficients, calculate fitted values and residuals and test both residual sums. Then explain why these sample checks differ from conditional mean independence. For dummy variables, identify the base category before any algebra.

Finally, derive the estimation error by substituting the model into the estimator and use it to explain where unbiasedness and the variance formula come from. This sequence makes matrix notation a diagnostic language rather than a set of symbols to memorise. Add a dimension ledger beside the calculation: X is n by k, its transpose is k by n, the cross-product is k by k, and the coefficient vector must end k by one.

When a product is conformable but returns the wrong destination, write that explicitly instead of calling it illegal multiplication. Create one rank-failure example using an intercept and exhaustive category indicators, then repair it two ways and interpret both parameterisations. For inference, trace the disturbance through the estimator before invoking unbiasedness or a variance formula.

A useful oral drill is to explain why residual orthogonality always holds after least squares even when the population error is endogenous. End each numerical exercise by substituting the coefficients back into the fitted equation, checking residual identities with exact fractions where possible, and translating the slope into the outcome and regressor units.

Working through Matrix OLS from Objective to Inference in ECMT3120? Sia is AskSia’s AI Economics tutor — ask any ECMT3120 Matrix OLS from Objective to Inference question and get a clear, step-by-step explanation grounded in how ECMT3120 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 196 of your University of Sydney subjects - and 1,000+ Bibles across every Australian university.
Sia - your ECMT3120 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works