Regression Analysis, Statistics.
residual bersifat homoskedastisitas H1 (hipotesis alternatif): residual bersifat heteroskedastisitas residuals = y.values-y_pred import statsmodels.stats.api as sms from statsmodels.compat import lzip name = ['F statistic', 'p-value'] test = sms.het_goldfeldquandt(residuals, X) lzip(name, test)