Difference of Two Proportions
แนะนำใหม่
7:32
การแจกแจงจากการสุ่มตัวอย่าง
นักเรียนสองพันคนเรียนอยู่ที่โรงเรียนแห่งหนึ่ง และมีบางคนขี่จักรยานมาเรียน เราต้องการทราบสัดส่วนของผู้ที่ขี่จักรยาน ไม่มีใครสามารถสอบถามนักเรียนทั้งหมดสองพันคนได้ จึงเลือกสุ่มถามนักเรียนจำนวนหนึ่งร้อยคน…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| random sample/ˈrændəm ˈsæmpl/ | A sample chosen by a chance process. |
| samples | |
| sampling distribution/ˈsæmplɪŋ ˌdɪstrɪˈbjuːʃn/ | The distribution of a statistic over all possible samples of the same size. |
| difference of two sample proportions/ˈdɪfrəns ɒv tuː ˈsæmpl prəˈpɔːʃnz/ | ความแตกต่างของสัดส่วนตัวอย่างสองกลุ่ม |
| variances | |
| sample proportion/ˈsæmpl prəˈpɔːʃn/ | p̂, the fraction of a sample with a given characteristic. |
| independent/ˌɪndɪˈpendənt/ | Knowing whether one event occurs does not change the other's probability. |
| observations | |
| Sampling without replacement | |
| SD | "The difference in sample proportions typically varies by about 0.054 from the true difference of 0.10." Always name the populations and the variable. |
| population/ˌpɒpjʊˈleɪʃn/ | The entire set of individuals, items or outcomes about which a statistical study seeks information. |
| approximately normal | |
| Large counts | Check all four counts, with the *population* proportions :. |
| population proportions | |
| skewed/skjuːd/ | |
| normal model/ˈnɔːml ˈmɒdl/ | |
| probabilities | |
| Mean/miːn/ | "If we took many pairs of random samples, the difference (A − B) in the sample proportions who support the park would average 0.10.". |
| variable/ˈveərɪəbl/ | A characteristic recorded for each individual, such as height or eye colour. |
| parameters/pəˈræmɪtəz/ | Values that specify a model or function, or named inputs that a subroutine receives. |
| 10% condition/ten pəˈsent kənˈdɪʃn/ |
เปรียบเทียบสองกลุ่ม
- มักจะเปรียบเทียบสัดส่วนสองค่า — เช่น การสนับสนุนในกลุ่ม $1$ เทียบกับกลุ่ม $2$
- สถิติที่ใช้คือ ผลต่างของ proportions จากตัวอย่าง $\hat{p}_1 - \hat{p}_2$
- การแจกแจงการสุ่มมีจุดศูนย์กลางอยู่ที่ ผลต่างจริง: $\mu = p_1 - p_2$
- ช่วยให้เราตัดสินได้ว่าสองกลุ่มมีความแตกต่างกันอย่างแท้จริงหรือไม่
การรวมความแปรปรวน
- ส่วนเบี่ยงเบนมาตรฐานจะรวมความแปรปรวนจาก ทั้งสอง ตัวอย่างเข้าด้วยกัน:
-
$$\sqrt{\frac{p_1(1-p_1)}{n_1} + \frac{p_2(1-p_2)}{n_2}}$$
- ระวัง $+$: ความแปรปรวนบวกกัน (สะท้อนกฎ "การรวมตัวแปร") แม้จะเป็นกรณีของผลต่างก็ตาม
- แต่ละกลุ่มมีเทอม $\frac{p(1-p)}{n}$ ของตัวเอง

การแจกแจงของ p̂₁ − p̂₂: ค่ากลางลบกันและความแปรปรวนบวกกัน
p1=0.5, p2=0.4. Find the center (mean) of p-hat-1 − p-hat-2.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Mean = p1 − p2 = 0.5 − 0.4 = 0.1.
ตรวจสอบทั้งสองตัวอย่าง
- ใช้เงื่อนไข large counts กับ แต่ละ กลุ่ม: $n_1p_1, n_1(1-p_1), n_2p_2, n_2(1-p_2)$ ทั้งหมดต้อง ≥ $\ge 10$
- ต้องมีความเป็นอิสระ: ตัวอย่างทั้งสองต้องเป็นอิสระต่อกัน
- และใช้เงื่อนไข 10% สำหรับแต่ละกลุ่มหากเป็นการสุ่มโดยไม่ใส่กลับ
- จึงจะโมเดลปกติสำหรับ $\hat{p}_1 - \hat{p}_2$ ได้ถูกต้อง

Distribution of p-hat-1 − p-hat-2
Centered at p1 − p2; the two variances add under the square root.
With p1=0.5,n1=100 and p2=0.4,n2=100: SD = √(0.0025+0.0024). Round to two decimals.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
√0.0049 = 0.07.
To get the SD of a difference of two proportions, you subtract the two variances.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Variances ADD, even for a difference, then square-root.
The two samples must be independent of each other for this model.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Independence between samples is required.
การใช้โมเดลปกติ
- เมื่อเงื่อนไขครบถ้วน $\hat{p}_1 - \hat{p}_2$ จะประมาณได้ว่าเป็น normal
- มาตรฐานด้วยค่า $z$-score: (ผลต่างที่สังเกตได้ $-$ ผลต่างจริง) $\div$ ส่วนเบี่ยงเบนรวม
- จากนั้นอ่านความน่าจะเป็นจาก normal มาตรฐาน เหมือนเดิม
- นี่คือพื้นฐานของการทดสอบและช่วงความเชื่อมั่นสำหรับ proportions สองกลุ่ม (หน่วยที่ 6)
For a normal model of p-hat-1 − p-hat-2, the large counts condition must hold...
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
All four counts (both groups) must be ≥ 10.
Random samples: $n_1=80$ with $p_1=0.9$, and $n_2=120$ with $p_2=0.5$. Can the distribution of $\hat p_1-\hat p_2$ be modelled as approximately normal?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
All four counts must be at least 10. $80(0.1)=8$ fails, so the shape may be skewed. Unequal sample sizes are fine.
ความแปรปรวนบวกกัน—even for a difference. SD ของ $\hat{p}_1-\hat{p}_2$ จะรวมพจน์ $\frac{p(1-p)}{n}$ ทั้งสองด้วย $+$ แล้วจึงรากที่สอง; คุณไม่เคยลบมันลง และตรวจสอบเงื่อนไข large counts ใน ทั้งสอง แยกกัน (สี่จำนวน ต้องทั้งหมด ≥ $\ge 10$) — กลุ่มที่แข็งแรงหนึ่งกลุ่มไม่สามารถขจัดข้อบกพร่องของกลุ่มที่บางบางได้

$p_1=0.30$, $n_1=100$ และ $p_2=0.20$, $n_2=100$ (independent random samples from large populations). Find $P(\hat p_1-\hat p_2>0.15)$. Give 3 decimal places.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
ค่าเฉลี่ย $=0.10$. SD $=\sqrt{0.0021+0.0016}=\sqrt{0.0037}\approx0.0608$. $z=(0.15-0.10)/0.0608\approx0.82$, so $P(z>0.82)\approx0.206$ (counts 30, 70, 20, 80 are all at least 10).
$p_1 = 0.5$ ($n_1 = 100$), $p_2 = 0.4$ ($n_2 = 100$).
- Center: $p_1 - p_2 = 0.5 - 0.4 = 0.1$
- SD: $\sqrt{\dfrac{0.5(0.5)}{100} + \dfrac{0.4(0.6)}{100}} = \sqrt{0.0025 + 0.0024} = \sqrt{0.0049} = 0.07$
- Counts: ทั้งสี่ค่า ($50, 50, 40, 60$) ล้วนเกิน $10$ → normal เป็นไปได้
In the park example the SD of $\hat p_A-\hat p_B$ is 0.054. Write one sentence interpreting it in context.
An SD interpretation needs the typical distance, the centre it is measured from, and the context.
ผลต่างของ proportions จากตัวอย่าง $\hat{p}_1 - \hat{p}_2$ มี mean $p_1 - p_2$ และ SD $\sqrt{\frac{p_1(1-p_1)}{n_1} + \frac{p_2(1-p_2)}{n_2}}$ (variances add) ให้จัดรูปแบบให้เป็น normal เมื่อเงื่อนไข large counts และ independence สอดคล้องกับ ทั้งสอง ตัวอย่าง
เขียนจากผลต่างของ 0.25
- สัดส่วนจากตัวอย่างหนึ่งคือ 0.40.
- อีกส่วนหนึ่งคือ 0.15. ความแตกต่างในบทเรียนใช้ 0.1 และ 0.07.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
- Never subtract the variances. The SD of a difference uses a + under the square root.
- Use $p$, not $\hat p$, in the large-counts check when the population proportions are given.
- Keep the order of subtraction fixed. If you define the difference as A − B, then "B ahead" means the difference is below 0.
- The 10% condition 10%条件 is about the SD formula; the large counts condition is about the normal shape. They check different things.
If the difference is defined as $\hat p_A-\hat p_B$, then the event "the samples show B ahead" is $\hat p_A-\hat p_B<0$.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
B ahead means $\hat p_B>\hat p_A$, so A − B is negative.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
For independent random samples, $\hat p_1-\hat p_2$ has mean $p_1-p_2$ and SD $\sqrt{\frac{p_1(1-p_1)}{n_1}+\frac{p_2(1-p_2)}{n_2}}$ (variances 方差 add; accurate when each sample is under 10% of its population). It is approximately normal when all four counts $n_1p_1,\ n_1(1-p_1),\ n_2p_2,\ n_2(1-p_2)$ are at least 10. Interpret the mean and SD in context.
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้