Lecture 18 - Residual Analysis
Towards the bottom in the part called "Example: Market Beta Calculation" in the sub-section called "Breusch-Pagan Heteroscedasticity Test", there is a typo in the code. This line:
bp_test = smd.het_breushpagan(residuals, model.model.exog)
Should actually be:
bp_test = smd.het_breuschpagan(residuals, model.model.exog)
If you spell breuschpagan wrong without the "c", you'll get:
AttributeError: module 'statsmodels.stats.diagnostic' has no attribute 'het_breushpagan'