A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Hausman Test: Fixed Effects vs. Random Effects

College Depth 125 in the knowledge graph I know this Set as goal
2topics build on this
903prerequisites beneath it
See this on the map →
Fixed Effects ModelsHausman Test: Fixed Effects Versus Random Effects+1 moreAdjusted R-Squared for Model ComparisonInformation Criteria: AIC and BIC for Model Selection
panel-data model-selection hypothesis-testing

Core Idea

The Hausman test compares FE and RE estimators under H₀: Cov(αᵢ, X) = 0 (RE is valid). The test statistic H = (β̂_FE - β̂_RE)' Var̂(β̂_FE - β̂_RE)⁻¹ (β̂_FE - β̂_RE) ~ χ²ₖ. Rejection favors FE; failure to reject can justify the more efficient RE.

Explainer

When you work with panel data — observations on multiple units (firms, countries, individuals) over time — a fundamental modeling choice is how to treat the unobserved heterogeneity across units. Your prerequisite study of fixed effects (FE) and random effects (RE) laid out the tradeoff. Fixed effects are conservative: they absorb all unit-level variation, including anything correlated with your regressors, by transforming away the unit means. Random effects are efficient: by treating unit effects as random draws uncorrelated with regressors, they can use between-unit variation and produce smaller standard errors. The catch is that RE is only valid if that correlation assumption actually holds. The Hausman test is the formal tool for deciding between them.

The logic exploits a comparison of two estimators that have different properties under the null. Under H₀ (the RE assumption holds), both FE and RE are consistent, but RE is more efficient — it uses more variation. Under H₁ (the unit effects correlate with regressors), FE is still consistent, but RE is inconsistent — it suffers omitted variable bias. If the null is true, β̂_FE and β̂_RE should be close to each other (apart from sampling noise). If the null is false, they should diverge systematically because they are estimating different quantities. The test statistic measures this divergence, weighting it by the precision of the difference.

The test statistic H = (β̂_FE − β̂_RE)' [Var(β̂_FE − β̂_RE)]⁻¹ (β̂_FE − β̂_RE) follows a χ² distribution with k degrees of freedom (where k is the number of time-varying regressors) under H₀. A useful property: because RE is efficient under H₀, the variance of the difference simplifies to Var(β̂_FE) − Var(β̂_RE), which means you only need the two individual variance matrices to compute it. Rejection of H₀ (large H statistic) means the coefficient estimates differ enough to reject the RE assumption — use FE. Failure to reject means RE's efficiency gains are defensible.

Two practical caveats are worth knowing. First, the Hausman test is a test of RE's validity conditional on FE being correct — it does not test whether either model is well-specified. If you have omitted time-varying confounders, FE won't save you. Second, in small samples the test can have low power, meaning it may fail to reject RE even when mild endogeneity is present. A modern alternative is the cluster-robust Hausman test or the Mundlak approach, which adds group means of time-varying regressors to the RE specification — a rejection there is equivalent to the Hausman conclusion but with robust inference. The key takeaway: the Hausman test is not about which model is "better" in the abstract. It is specifically about whether the efficiency gains of RE come at the cost of consistency.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityIndependence of EventsSampling DistributionsStandard Error of EstimatorsHypothesis Testing: Framework and LogicP-values and Statistical SignificanceEffect Size and Practical SignificanceHypothesis Testing: Framework and LogicZ-Tests and T-Tests for MeansOne-Sample Z-Test for MeansOne-Sample and Two-Sample T-TestsInference in Linear RegressionPrediction Intervals in RegressionLinear Regression BasicsResiduals and Goodness of Fit (R²)Simple (Bivariate) OLS RegressionClassical OLS Assumptions (Gauss-Markov)Multiple RegressionInterpreting Regression CoefficientsHypothesis Testing in RegressionF-Test and Joint SignificanceR-Squared and Model FitOmitted Variable BiasCausal Inference and the Identification ProblemPotential Outcomes and the Rubin Causal ModelSelection BiasInstrumental VariablesDynamic Panel Models and Arellano-Bond/Blundell-Bond EstimationDynamic Panel Models: Arellano-Bond EstimatorFirst-Difference Estimator for Panel DataWithin Estimator (Fixed Effects) for Panel DataBetween and Random Effects Estimators for Panel DataHausman Test: Fixed Effects Versus Random EffectsHausman Test: Fixed Effects vs. Random Effects

Longest path: 126 steps · 903 total prerequisite topics

Prerequisites (3)

Leads To (2)