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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!