Carrying Out a Two-Way Chi-Square Test
הוצג
7:48
מסקנה עבור נתונים קטגוריאליים: קו-ריבוע (Chi-Square)
גלול קוביית משחק הוגנת שישים פעמים. כל צד אמור לצאת עשר פעמים. אבל זה לעולם לא קורה — שמונה כאן, שנים-עשר שם. הפער תמיד קיים. אז גלול עוד פעם…
קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן
בשיעור הזה
| English | משמעות |
|---|---|
| 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 |
חישוב הסטטיסטיקה
- סטטיסטיקת כי-ריבוע היא הסכום על כל תא בטבלה:
-
$$\chi^2 = \sum \frac{(\text{observed} - \text{expected})^2}{\text{expected}}$$
- השתמשו בספר התצפיות ובספר הצפייה של כל תא מהסעיף 8.4.
- חברו את כל איברי התאים לסכום אחד $\chi^2$**.

מצא את ערך-P
- השתמשו בחלוקת כי-ריבוע עם $df = (\text{rows}-1)(\text{columns}-1)$**.
- ערך-p הוא שטח הזנב הימני מעבר ל $\chi^2$** שלך.
- ערך גדול של $\chi^2$** → ערך-p קטן → עדות חזקה נגד $H_0$**.
- קבלו את ערך $df$** הנכון מהצורה של הטבלה, ולא מגודל הדגימה.

התפלגות קו-צד: ערך ה-p הוא הזנב הימני מעבר לסטטיסטית הבדיקה
A school surveys one random sample of 300 students and records each student's year group and favourite sport. Which test fits?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
One sample with two categorical variables per student → independence. Separate samples from each year group would be homogeneity.
הכרטיס הזה תוקן, לכן הוא מוצג באנגלית עד שהתרגום שלו יעודכן.
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.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
(row total × column total) ÷ table total = 160 × 90 ÷ 400 = 36.
להסיק בהקשר
- עבור הומוגניות: "הוכחה משכנעת שהתפלגויות שונות בין הקבוצות" (אם נדחה).
- עבור עצמאות: "הוכחה משכנעת שמשתנים שניים קשורים" (אם נדחה).
- ציין את המשתנים/הקבוצות וההקשר הספציפי.
- אי-דחייה לעולם לא מוכיחה שקבוצות זהות / משתנים עצמאיים.
With χ² = 6.0 at df = 1, the p-value ≈ 0.014. At α = 0.05, the decision is...
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
0.014 ≤ 0.05 → reject H0.
The p-value for a two-way chi-square test is a right-tail area.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Chi-square is always right-tailed.
For a 3×4 two-way table, find the degrees of freedom (r−1)(c−1).
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
(3−1)(4−1) = 2×3 = 6.
ניסח את המסקנה כדי להתאים לבדיקה. דחייה בבדיקת הומוגניות → התפלגויות הקבוצות שונות; דחייה בבדיקת עצמאות → המשתנים קשורים. אל תאמר "המשתנים קשורים" עבור עיצוב הומוגניות, או "הקבוצות שונות" עבור עיצוב עצמאות — המתמטיקה משותפת אך הטענה אינה כזו.
In the news-source test, which statement best describes the difference between the age groups?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
The TV cells give the largest terms (3.33 each). Observational data show a difference, not a cause.
בדיקת $2\times2$ עצמנות נותנת $\chi^2 = 6.0$, $df = 1$, $\alpha = 0.05$.
- ערך p: שטח זנב ימני מעבר ל$6.0$ ב$df=1 \approx 0.014$.
- החלט: $0.014 \le 0.05$ → דחה $H_0$.
- סיכום: הוכחה משכנעת שמשתנים שניים קשורים (בהקשר).
Rejecting H0 in a test of INDEPENDENCE means...
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Independence: reject → the variables are associated.
Rejecting H0 in a test of HOMOGENEITY means...
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
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.
חשב $\chi^2 = \sum \frac{(\text{observed}-\text{expected})^2}{\text{expected}}$ בכל תאים, מצא את ערך ה-p של הזנב הימני ב$df = (\text{rows}-1)(\text{columns}-1)$, והשווה ל$\alpha$. ניסח את המסקנה כדי להתאים לעיצוב: התפלגויות שונות (הומוגניות) או משתנים קשורים (עצמאות), בהקשר.
כתיבה מתוך 4 דרגות חופש
- בדיקת קו-צד משתמשת בטבלה בגודל 3 על 3.
- סטטיסטית הלמידה 6 היא ערך קו-צד שמחושב, ולא דרגות החופש של טבלה זו.
הכרטיס הזה חדש, לכן הוא מוצג באנגלית עד שהתרגום שלו יהיה מוכן.
- 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.
הכרטיס הזה חדש, לכן הוא מוצג באנגלית עד שהתרגום שלו יהיה מוכן.
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.
מה השתבש? רק צוות האתר רואה זאת.