A. Data Tunggal
Diketahui data terurut: \(x_1 + x_2 + x_3 + x_4 + \dotso + x_n\)
Untuk \(n\) ganjil:
\(\color{blue} \text{Median} = x_{\frac{n+1}{2}}\)
Untuk \(n\) genap:
\(\color{blue} \text{Median} = \dfrac{x_{\frac{n}{2}} + x_{\left(\frac{n}{2} + 1\right)}}{2}\)
B. Data Kelompok
\(\color{blue}\textbf {Me} = \text{tb} + \left(\dfrac{\frac{1}{2}\text{n}\:-\:\sum \text{F}_k}{\text{f}}\right)\cdot \text{c}\)
Median disebut juga kuartil tengah (\(\text{Q}_2\))
tb = tepi bawah kelas median
\(\color{purple}\text{n}\) = total frekuensi
\(\color{purple}\text{F}_{\text{k}}\) = frekuensi kumulatif sebelum kelas median
\(\color{purple}\text{f}\) = frekuensi kelas median
c = panjang kelas (selisih antara tepi atas dan tepi bawah kelas)
Contoh:
Diberikan data sebagai berikut:
Data | frekuensi |
39 − 49 | 12 |
50 − 60 | 14 |
61 − 71 | 20 |
72 − 82 | 16 |
83 − 93 | 18 |
\(\text{n}\) = 80
Median adalah data ke−\(\left(\frac{1}{2}\cdot 80\right)\), yaitu data ke−40
Data ke-40 terletak pada kelas 61 − 71
tb = 61 − 0,5 = 60,5
\(\text{F}_{\text{k}}\) = 12 + 14 = 26
\(\text{f}\) = 20
c = 71,5 − 60,5 = 11
\(\textbf {Me} = \text{tb} + \left(\dfrac{\frac{1}{2}\text{n}\:-\:\sum \text{F}_k}{\text{f}}\right)\cdot \text{c}\)
\(\textbf {Me} = 60,5 + \left(\dfrac{40\:-\:26}{20}\right)\cdot 11\)
\(\textbf {Me} = 60,5 + \left(\dfrac{14}{20}\right)\cdot 11\)
\(\textbf {Me} = 60,5 + \dfrac{154}{20}\)
\(\textbf {Me} = 60,5 + 7,7\)
\(\textbf {Me} = 68,2\)
Jadi, median data di atas adalah 68,2