Python'da Çıkarımın Temelleri
Paul Savala
Assistant Professor of Mathematics


Tahminin üstü ve altında eşit dağılım beklenir


$H_0$: Veriler normal dağılmıştır
$H_a$: Veriler normal dağılmamıştır
result = stats.anderson(police_df['Annual Salary'])result.statistic
27.41
result.critical_values
[0.574, 0.654, 0.784, 0.915, 1.088]
result.significance_level[result.statistic > result.critical_values]
[15. 10. 5. 2.5 1. ]
mu, std = stats.norm.fit(police_df['Annual Salary'])estimated_pct_under_70k = stats.norm.cdf(70000, loc=mu, scale=std)print(estimated_pct_under_70k)
0.27
actual_under_70k = police_df[police_df['Annual Salary'] < 70000]print(len(actual_under_70k) / len(police_df))
0.20
Python'da Çıkarımın Temelleri