Yüzdelikler, aykırı değerler ve kutu grafikleri

Python ile İstatistiksel Düşünme (Bölüm 1)

Justin Bois

Teaching Professor at the California Institute of Technology

ECDF üzerinde yüzdelikler

ch2-2_v2.003.png

1 Veriler Data.gov'dan alınmıştır (https://www.data.gov/)
Python ile İstatistiksel Düşünme (Bölüm 1)

ECDF üzerinde yüzdelikler

ch2-2_v2.004.png

Python ile İstatistiksel Düşünme (Bölüm 1)

ECDF üzerinde yüzdelikler

ch2-2_v2.005.png

Python ile İstatistiksel Düşünme (Bölüm 1)

ECDF üzerinde yüzdelikler

ch2-2_v2.006.png

Python ile İstatistiksel Düşünme (Bölüm 1)

Yüzdeliklerin hesaplanması

np.percentile(df_swing['dem_share'], [25, 50, 75])
array([ 37.3025,  43.185 ,  49.925 ])
Python ile İstatistiksel Düşünme (Bölüm 1)

2008 ABD seçimi kutu grafiği

ch2-2_v2.011.png

1 Veriler Data.gov'dan alınmıştır (https://www.data.gov/)
Python ile İstatistiksel Düşünme (Bölüm 1)

2008 ABD seçimi kutu grafiği

ch2-2_v2.012.png

Python ile İstatistiksel Düşünme (Bölüm 1)

2008 ABD seçimi kutu grafiği

ch2-2_v2.013.png

Python ile İstatistiksel Düşünme (Bölüm 1)

2008 ABD seçimi kutu grafiği

ch2-2_v2.014.png

Python ile İstatistiksel Düşünme (Bölüm 1)

2008 ABD seçimi kutu grafiği

ch2-2_v2.015.png

Python ile İstatistiksel Düşünme (Bölüm 1)

2008 ABD seçimi kutu grafiği

ch2-2_v2.016.png

Python ile İstatistiksel Düşünme (Bölüm 1)

Kutu grafiği oluşturma

import matplotlib.pyplot as plt
import seaborn as sns
_ = sns.boxplot(x='east_west', y='dem_share',
                    data=df_all_states)
_ = plt.xlabel('region')
_ = plt.ylabel('percent of vote for Obama')
plt.show()
Python ile İstatistiksel Düşünme (Bölüm 1)

Hadi pratik yapalım!

Python ile İstatistiksel Düşünme (Bölüm 1)

Preparing Video For Download...