Random Effects and the Hausman Test
An alternative to fixed effects for panel data that treats each entity's individual baseline as a random draw from a common distribution rather than a separate parameter to estimate, more efficient when valid — and the Hausman test is the formal check for whether that extra assumption is safe to make.
Prerequisites: Panel Data and Fixed Effects, Hypothesis Testing
A panel regression of fund returns on manager characteristics, tracked across many funds over many years, needs to handle the fact that some funds are just persistently better or worse for reasons the model doesn't observe — skill, culture, whatever it is. Fixed effects (see Panel Data and Fixed Effects) handles this by giving every fund its own intercept, which is safe but can't estimate the effect of anything that doesn't vary within a fund over time. Random effects offers a more efficient alternative — treating each fund's baseline as a random draw from a shared distribution rather than a free parameter — but only if a specific assumption holds, and the Hausman test is the standard way to check whether that assumption is safe to rely on.
An analogy: knowing every student's grade history versus assuming a distribution
Imagine grading students across many exams, where each has their own baseline ability. Fixed effects estimates each student's baseline individually from their own history — safe, but it can't say anything about a trait that never changes for a given student (like their hometown). Random effects instead assumes baselines are drawn from a shared population, uncorrelated with anything else, borrowing strength across students for more precise estimates with fewer parameters. That only works honestly if the assumption is true; if stronger students disproportionately choose harder classes, the shortcut gives a biased answer. The Hausman test checks whether that assumption is safe.
The mechanics, one symbol at a time
Both approaches start from the same panel model, , where is entity 's individual baseline and is a predictor that varies across entities and time. Fixed effects estimates each directly (or equivalently, removes it by demeaning within each entity — a special case of the Frisch-Waugh-Lovell theorem, see The Frisch-Waugh-Lovell Theorem) and makes no assumption about how relates to . Random effects instead assumes is drawn independently of from a distribution with mean zero, , and uses a more efficient estimator that partially pools information across entities rather than estimating each separately. The Hausman test compares the two estimators' coefficients on :
which follows a chi-squared distribution under the null hypothesis that random effects' assumption holds. In plain English: if the entity baseline is genuinely unrelated to the predictors, both fixed effects and random effects should give roughly the same coefficient on (fixed effects is just noisier), so a big gap between the two estimates — more than sampling noise would explain — is evidence that random effects' convenient assumption is false and only fixed effects can be trusted.
Worked example 1: a Hausman test that passes
A panel of 200 mutual funds over 15 years regresses fund flows on expense ratio and past performance. Fixed effects gives a coefficient on past performance of ; random effects gives — close together. The Hausman statistic comes out to against a chi-squared critical value of 5.99 (2 degrees of freedom, 5% level). Since , the test fails to reject the null — the small gap between 0.42 and 0.39 is consistent with sampling noise, and random effects' assumption looks safe here. The researcher can use the more efficient random effects estimates, which also allow estimating the effect of time-invariant fund characteristics (like a fund's founding decade) that fixed effects would have absorbed and made inestimable.
Worked example 2: a Hausman test that fails
A different panel regresses fund returns on manager tenure, where longer-tenured managers plausibly ended up at their funds partly because those funds were already performing well (an unobserved fund quality correlated with both tenure and returns). Fixed effects gives ; random effects gives a noticeably different — random effects makes the tenure effect look twice as large. The Hausman statistic comes out to , well above the 5.99 critical value, rejecting the null. This large gap signals that fund baseline quality really is correlated with manager tenure, violating random effects' core assumption — its 0.31 estimate is biased, and only the fixed-effects estimate of 0.15, which makes no such assumption, should be trusted here.
What this means in practice
Random effects is attractive whenever it's valid: it's more efficient than fixed effects and can estimate variables that don't change within an entity over time, which fixed effects mechanically cannot do. But its core assumption — the entity baseline is unrelated to the predictors — is often implausible in finance, where unobserved entity-level quality (a fund's true skill, a firm's risk culture) is frequently correlated with the variables under study. Many researchers default straight to fixed effects for exactly this reason.
Random effects treats each entity's baseline as a random draw uncorrelated with the predictors, which is more efficient than fixed effects when true but biased when false. The Hausman test compares the fixed-effects and random-effects coefficients: a small, noise-explainable gap supports using the more efficient random-effects estimates, while a large gap signals the random-effects assumption is violated and only fixed effects can be trusted.
The classic mistake is defaulting to random effects because it's more efficient and produces tighter, more attractive-looking standard errors, without running the Hausman test to check whether its core assumption actually holds. In finance, unobserved entity-level factors (skill, culture, risk appetite) are very often correlated with the predictors of interest, which is exactly the condition that breaks random effects — choosing it for convenience rather than after a passed specification test risks reporting a biased coefficient with a false sense of precision.
Related concepts
Practice in interviews
Further reading
- Hausman, 'Specification tests in econometrics', Econometrica 1978
- Wooldridge, Econometric Analysis of Cross Section and Panel Data, ch. 10