Setting Up a Two-Proportion Test
引入
7:52
分类数据的推断:比例
某市想了解有多少人支持新政策。我们无法询问所有人,于是随机询问二百人。一百二十人说赞成——即百分之六十…
英文讲解 · 可切换中英文字幕
本课内容
| English | 释义 | 拼音 |
|---|---|---|
| Independent random samples | 独立随机样本 | dú lì suí jī yàng běn |
| alternative/ɔːlˈtɜːnətɪv/ | 备择假设 | bèi zé jiǎ shè |
| parameters/pəˈræmɪtəz/ | 参数 | cān shù |
| populations | 总体 | zǒng tǐ |
| combined (pooled) proportion/kəmˈbaɪnd prəˈpɔːʃn/ | 合并比例 | hé bìng bǐ lì |
| null/nʌl/ | 原假设 | yuán jiǎ shè |
| successes | 成功次数 | chéng gōng cì shù |
| sample sizes | 样本量 | yàng běn liàng |
| pooled estimate/puːld ˈestɪmət/ | 合并估计值 | hé bìng gū jì zhí |
| simple average | 算术平均数 | suàn shù píng jūn shù |
| random design | 随机设计 | suí jī shè jì |
| independence/ˌɪndɪˈpendəns/ | 独立性 | dú lì xìng |
| 10% condition/ten pəˈsent kənˈdɪʃn/ | 10%条件 | 10% tiáo jiàn |
| paired before-and-after design | 前后配对设计 | qián hòu pèi duì shè jì |
| expected counts/ekˈspektɪd kaʊnts/ | 期望频数 | qī wàng pín shù |
| simple mean | 算术平均数 | suàn shù píng jūn shù |
| weights | 权重 | quán zhòng |
| unpooled interval | 非合并置信区间 | fēi hé bìng zhì xìn qū jiān |
| pooled equality test | 合并比例相等性检验 | hé bìng bǐ lì xiāng děng xìng jiǎn yàn |
| variability/ˌveərɪəˈbɪlɪti/ | 变异性 | biàn yì xìng |
| equality assumption | 相等假设 | xiāng děng jiǎ shè |
| pooled test standard error | 合并检验标准误 | hé bìng jiǎn yàn biāo zhǔn wù |
| null-model | 原假设模型 | yuán jiǎ shè mó xíng |
| confidence interval/ˈkɒnfɪdəns ˈɪntəvl/ | 置信区间 | zhì xìn qū jiān |
| observed difference | 观测差值 | guān cè chā zhí |
| null difference | 原假设下的差值 | yuán jiǎ shè xià de chā zhí |
| dependent design | 非独立设计 | fēi dú lì shè jì |
| trials/ˈtraɪəlz/ | 试验次数 | shì yàn cì shù |
两种订单系统的准时率是否相等?
- 独立随机样本显示,系统1的100个订单中有30个准时送达,系统2的100个订单中有20个准时送达。
- 陈述 $H_0:p_1=p_2$ 和预设的备择假设,例如 $H_a:p_1\ne p_2$。参数描述所定义的两个订单总体。
在相等假设下估计共同比率
- 合并比例用于估计原假设下的共同比率:$\hat p_c=(x_1+x_2)/(n_1+n_2)$。
- 此处 $\hat p_c=(30+20)/(100+100)=0.25$。应合并成功次数和样本量,而不只是两个百分比。
The null hypothesis for a two-proportion test is...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
H0 says the two proportions are equal (no difference).
Under H0 the two proportions are assumed ___ (one word).
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
H0: p1 = p2 means equal proportions.
当两组样本量不同时使用样本量加权
- 如果两组分别为100次中成功30次和200次中成功40次,合并估计值为 $(30+40)/(100+200)=0.2333$。
- 0.30和0.20的算术平均数为0.25,但对于这两个不相等的样本量,这个结果是错误的。
Two-sided normal tail areas
At |z| = 1.63, the two tails together approximate the two-sided p-value. The central area is its complement.
Using the pooled-null expected-count check taught here, which proportion is used to calculate the expected counts?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Check expected successes and failures in each group using the pooled proportion. Other accepted normality checks exist; this question specifies the pooled-null method.
检查独立样本模型
- 检查随机设计、组间独立性以及每个适用的10%条件。前后配对设计需要采用另一种方法。
- 在30/100与20/100的例子中,使用原假设下的合并估计值,得到的期望频数分别为25、75、25和75,均至少为10。
当两组样本量不相等时,30/100和40/200合并为70/300,约为0.2333。算术平均数0.25会给两组赋予错误的权重。
Group 1: 30 of 100. Group 2: 20 of 100. Find the pooled proportion (x1+x2)/(n1+n2).
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
(30+20)/(100+100) = 50/200 = 0.25.
One group has 30/100 successes and another 40/200. Calculate the pooled proportion to four decimal places.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Add successes and sample sizes: (30 + 40)/(100 + 200) = 70/300 ≈ 0.2333. Averaging 0.30 and 0.20 equally would give the wrong weights.
使用合并数据计算原假设下的方差
- 使用 $SE_0=\sqrt{\hat p_c(1-\hat p_c)(1/n_1+1/n_2)}$。此处 $SE_0=\sqrt{0.25(0.75)(1/100+1/100)}\approx0.06124$。
- 非合并置信区间和合并比例相等性检验估计变异性的方式不同。合并是基于该检验的相等假设,并非所有两组计算都要合并。
合并检验标准误回答的是原假设模型下的问题。不要自动将它用于置信区间。
The two-proportion TEST uses a pooled proportion, while the interval does not.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Under H0 the proportions are equal, so the test pools.
Match each procedure here to its standard error.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Estimation allows different underlying proportions; the test standard error is calculated under equality.
在不改变问题的前提下准备检验
- 观测差值为0.10,原假设下的差值为零。下一步是 $z=(\hat p_1-\hat p_2)/SE_0$。
- 保留预设的备择假设和组别顺序。频数大不能弥补非随机设计或非独立设计的缺陷。
观测差值为0.10,原假设下的差值为零。下一步是 $z=(\hat p_1-\hat p_2)/SE_0$。
根据数据写出答案:求合并比例
- 在比例相等的原假设下,A组的50次试验中有15次成功。
- B组的50次试验中有9次成功;合并成功次数和试验次数。
Which must be considered before using this independent-samples test?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Exact sample equality is not a prerequisite. The procedure tests population equality under checked design and approximation assumptions.
Under H0 p1 = p2, group A has 15 successes in 50 trials and group B has 9 in 50. What is the pooled proportion?
Pool the successes and pool the sample sizes.
Under H0 p1 = p2, group A has 15 successes in 50 trials and group B has 9 in 50. What is the pooled proportion?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
24 divided by 100 is 0.24. Other options — 0.25 (the other samples); 15 (the larger success count).
出了什么问题?只有网站团队能看到这些信息。