Carrying Out a Two-Way Chi-Square Test
Diperkenalkan
7:48
Inferensi untuk Data Kategorikal: Chi-Square
Lempar dadu adil enam puluh kali. Setiap sisi seharusnya muncul sepuluh kali. Tapi tidak pernah terjadi — delapan di sini, thirteen di sana. Celahnya selalu ada. Jadi lempar lagi…
Narasi bahasa Inggris · takarir bahasa Inggris dan 中文 yang dapat dipilih
Dalam pelajaran ini
| English | Makna |
|---|---|
| independent random samples | |
| chi-square test for a two-way table | |
| variable/ˈveərɪəbl/ | A characteristic recorded for each individual, such as height or eye colour. |
| test for homogeneity/test fɔː ˈhɒməʊdʒneɪti/ | A chi-square test of whether several populations share one distribution. |
| distribution/ˌdɪstrɪˈbjuːʃn/ | The pattern of values or outcomes and their frequencies or probabilities. |
| population/ˌpɒpjʊˈleɪʃn/ | The entire set of individuals, items or outcomes about which a statistical study seeks information. |
| test for independence/test fɔː ˌɪndɪˈpendəns/ | A chi-square test of whether two variables are associated in one population. |
| association/əˌsəʊsɪˈeɪʃn/ | A relationship between two variables. |
| expected counts/ekˈspektɪd kaʊnts/ | |
| hypotheses | |
| Large counts | |
| cells/selz/ | |
| p-value/piː ˈvæljuː/ | |
| categories | |
| right-tail area |
Hitung statistiknya
- Statistik chi-square adalah jumlah yang sama di atas setiap sel tabel:
-
$$\chi^2 = \sum \frac{(\text{observed} - \text{expected})^2}{\text{expected}}$$
- Gunakan hitung teramati setiap sel dan hitung yang diharapkan dari 8.4.
- Jumlahkan semua suku sel menjadi satu $\chi^2$.

Temukan nilai p
- Gunakan distribusi chi-square dengan $df = (\text{rows}-1)(\text{columns}-1)$.
- Nilai-p adalah area ekor kanan melampaui $\chi^2$ Anda.
- $\chi^2$ yang besar → nilai-p kecil → bukti kuat melawan $H_0$.
- Dapatkan $df$ yang benar dari bentuk tabel, bukan ukuran sampel.

Distribusi chi-square: nilai-p adalah ekor kanan melampaui statistik uji
A school surveys one random sample of 300 students and records each student's year group and favourite sport. Which test fits?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
One sample with two categorical variables per student → independence. Separate samples from each year group would be homogeneity.
Kartu ini telah diperbaiki, jadi ditampilkan dalam bahasa Inggris sampai terjemahannya diperbarui.
Worked test: State and Plan
State. $H_0$: the distribution of main news source is the same for adults under 40 and adults aged 40 or older in this city. $H_a$: the distributions differ. $\alpha=0.05$.
Plan. Chi-square test for homogeneity.
- Random: independent random samples from each age group.
- 10%: Assume each age group in the city has at least 1,000 adults, so 100 is no more than 10% of each group.
- Large counts 大频数条件: expected count $=\dfrac{\text{row total}\times\text{column total}}{\text{table total}}$. Each row total is 100, so the expected counts are $\frac{100\times60}{200}=30$, $\frac{100\times115}{200}=57.5$, $\frac{100\times25}{200}=12.5$ in each row; all at least 5.
In a two-way table with total 400, a row total is 160 and a column total is 90. Find the expected count for that cell.
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
(row total × column total) ÷ table total = 160 × 90 ÷ 400 = 36.
Simpulkan dalam konteks
- Untuk homogenitas: "bukti meyakinkan bahwa distribusi berbeda di antar kelompok" (jika ditolak).
- Untuk independensi: "bukti meyakinkan bahwa kedua variabel terkait" (jika ditolak).
- Sebutkan nama variabel/kelompok dan konteks sebenarnya.
- Gagal menolak tidak pernah membuktikan bahwa kelompok-kelompok tersebut sama / variabel independen.
With χ² = 6.0 at df = 1, the p-value ≈ 0.014. At α = 0.05, the decision is...
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
0.014 ≤ 0.05 → reject H0.
The p-value for a two-way chi-square test is a right-tail area.
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Chi-square is always right-tailed.
For a 3×4 two-way table, find the degrees of freedom (r−1)(c−1).
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
(3−1)(4−1) = 2×3 = 6.
Ungkapkan kesimpulan agar sesuai dengan uji. Tolak dalam uji homogenitas → distribusi kelompok berbeda; tolak dalam uji independensi → variabel-variabel tersebut terkait. Jangan katakan "variabel-variabel tersebut terkait" untuk desain homogenitas, atau "kelompok-kelompok berbeda" untuk desain independensi — perhitungannya sama tetapi klaimnya berbeda.
In the news-source test, which statement best describes the difference between the age groups?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
The TV cells give the largest terms (3.33 each). Observational data show a difference, not a cause.
A $2\times2$ independence test gives $\chi^2 = 6.0$, $df = 1$, $\alpha = 0.05$.
- Nilai-p: area ekor kanan melebihi $6.0$ pada $df=1 \approx 0.014$.
- Tentukan: $0.014 \le 0.05$ → tolak $H_0$.
- Kesimpulan: bukti meyakinkan bahwa dua variabel tersebut terkait (dalam konteks).
Rejecting H0 in a test of INDEPENDENCE means...
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Independence: reject → the variables are associated.
Rejecting H0 in a test of HOMOGENEITY means...
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Homogeneity: reject → the group distributions differ.
A chi-square test for independence of "owns a pet" and "exercises daily" in a random sample of adults gives p = 0.31 (α = 0.05). Write the conclusion.
A large p-value means weak evidence, not proof of independence.
Hitung $\chi^2 = \sum \frac{(\text{observed}-\text{expected})^2}{\text{expected}}$ di seluruh sel, temukan p-value ekor kanan pada $df = (\text{rows}-1)(\text{columns}-1)$, dan bandingkan dengan $\alpha$. Ungkapkan kesimpulan agar sesuai dengan desain: distribusi berbeda (homogenitas) atau variabel terkait (independensi), dalam konteks.
Tulis dari 4 derajat kebebasan
- Uji chi-square menggunakan tabel 3 oleh 3.
- StatistikImplemented 6 adalah nilai chi-square yang dihitung, bukan derajat kebebasan tabel ini.
Kartu ini baru, jadi ditampilkan dalam bahasa Inggris sampai terjemahannya siap.
- The design decides the test, not the table. The same table could come from one sample (independence) or several samples (homogeneity).
- df uses rows and columns of categories 类别, not the totals row or column: a $2\times3$ table has $df=2$.
- Expected counts are usually not whole numbers (57.5 is fine). Never round them to make the check pass.
Kartu ini baru, jadi ditampilkan dalam bahasa Inggris sampai terjemahannya siap.
A two-way chi-square test compares observed and expected counts in every cell: $\chi^2=\sum\frac{(\text{O}-\text{E})^2}{\text{E}}$, with $\text{E}=\frac{\text{row total}\times\text{column total}}{\text{table total}}$ and $df=(r-1)(c-1)$; the p-value is the right-tail area 右尾面积. Several samples → homogeneity (distributions differ?); one sample, two variables → independence (association?). Conclude in context and use the largest terms to say where the difference lies.
Apa yang salah? Hanya tim situs yang dapat melihatnya.