Amazon · Statistics & Data Analysis
Analyze omitted-variable bias in regression
TrueInterview
October 7, 2026 · 1 min read
Assume the actual data-generating mechanism for building energy consumption is , where and , so the errors are heteroscedastic.
You mistakenly fit OLS with regressed on only.
Derive the expected bias of the OLS estimator for as a function of and , give the sign of that bias when warmer days tend to have higher occupancy, and explain how weighted least squares or robust standard errors affect estimation versus inference in this setting.
Finally, specify a test for detecting leftover heteroscedasticity—name the test and its null hypothesis—and suggest a practical diagnostic to include in a production training report.
Overview: This question assesses understanding of omitted-variable bias and heteroscedasticity in linear regression, testing how omitting a relevant covariate and having non-constant error variance affect OLS point estimation and inference.