This question ate me alive for the first two minutes.
Start by setting up the omitted variable bias formula for the temperature coefficient when occupancy is omitted, then derive its sign under the stated correlation. Next, clearly distinguish what WLS and robust standard errors each address (efficiency vs. valid inference) and what they leave unchanged (the point estimate). Finally, name a heteroscedasticity test and describe a practical diagnostic for a production training report.
Pro tip: Emphasize that WLS changes the estimand and requires a correct variance model, while robust SEs only fix inference—this trade-off is critical in production where model coefficients drive decisions.
Write the true model: energy = β0 + β1*temp + β2*occupancy + ε, with heteroscedastic errors. The fitted model omits occupancy, so the OLS estimator of β1 has bias = β2 * δ, where δ is the coefficient from regressing occupancy on temperature.
Assume β2 > 0 (occupancy increases energy use) and δ > 0 (hotter days are more occupied). Then the bias is positive, so the OLS temperature coefficient is biased upward—overstating the effect of temperature.
WLS reweights observations to account for heteroscedasticity, improving efficiency if the variance model is correct, but it changes the estimator and can be biased if the model is misspecified. Robust SEs (e.g., White) correct standard errors for heteroscedasticity without changing the point estimates, but they do not fix bias from omitted variables.
Mention the Breusch-Pagan test (or White test) to detect remaining heteroscedasticity. For a production training report, include a plot of residuals vs. fitted values or a rolling variance of residuals over time to monitor heteroscedasticity.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.