Question: python import scipy.stats as stats import statsmodels.api as sm # Sesuaikan model regresi linear model = sm. OLS(df[ 'y'], sm.add_constant (df[l'*1', 'X2''X3''X4'1.fit # Dapatkan residual
python import scipy.stats as stats import statsmodels.api as sm # Sesuaikan model regresi linear model = sm. OLS(df[ 'y'], sm.add_constant (df[l'*1', 'X2''X3''X4'1.fit # Dapatkan residual residuals = model.resid # Lakukan uji Kolmogorov- Smirnov ks_stat, ks_pvalue = stats kstest (residuals, 'norm' ) ks _stat, ks_pvalue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
