Unit 8: Estimating with Confidence
Estimate a population proportion or mean with a confidence interval: conditions, critical values, margin of error, interpretation, and using an interval to judge a claim.
单元 8:置信区间估计
用置信区间估计总体比例或总体均值:适用条件、临界值、误差范围、解释,以及用区间判断一个说法。
Each topic gives objectives, an explanation, worked examples, an exam tip, common mistakes and check questions with answers. Use the contents list to jump to a topic, then finish with the unit quiz. All data are synthetic illustrations.
每个主题含学习目标、讲解、例题、考试提示、常见错误与带答案的自测题。可用目录跳转到任一主题,最后完成单元自测。所有数据均为合成示例。
Introducing Statistics: Why Be Normal?统计入门:为什么要用正态?
- Describe the sampling distribution of a sample proportion $\hat{p}$: its centre, spread and shape.
- Calculate the mean and standard deviation of the sampling distribution of $\hat{p}$ from $p$ and $n$.
- Check the conditions (random sample, 10% condition, at least 10 expected successes and 10 expected failures) that make the sampling distribution approximately normal.
- Use a normal model to find the probability that a sample proportion falls above, below or between given values.
- Explain why this sampling distribution is what makes confidence intervals and significance tests possible.
- 描述样本比例 $\hat{p}$ 的抽样分布:中心、离散程度和形状。
- 计算 $\hat{p}$ 抽样分布的均值与标准差(由 $p$ 和 $n$ 得出)。
- 检验使抽样分布近似正态的条件(随机样本、10% 条件、至少 10 个预期成功与 10 个预期失败)。
- 用正态模型求样本比例高于、低于或介于给定值之间的概率。
- 解释为什么这个抽样分布使置信区间与显著性检验成为可能。
The sampling distribution of a sample proportion样本比例的抽样分布
A parameter such as the population proportion $p$ is one fixed number. A statistic such as the sample proportion $\hat{p}$ (read p-hat) changes from sample to sample, because each random sample contains different individuals. The sampling distribution of $\hat{p}$ is the distribution of the values of $\hat{p}$ over all possible random samples of the same size $n$ from the same population. It is a model for how far a single sample result can be from the truth by chance alone.
参数(如总体比例 $p$)是一个固定的数。统计量(如样本比例 $\hat{p}$,读作 p-hat)则随样本而变,因为每个随机样本包含的个体不同。$\hat{p}$ 的抽样分布是从同一总体抽取的、容量同为 $n$ 的所有可能随机样本的 $\hat{p}$ 值的分布。它描述的是仅凭机会,单个样本结果可能离真值多远。
When the sample is random and not too large compared with the population, the sampling distribution of $\hat{p}$ has centre $p$ (the statistic is an unbiased estimator), and a spread that shrinks as $n$ grows:
当样本是随机的,且相对于总体不太大时,$\hat{p}$ 的抽样分布以 $p$ 为中心(该统计量是无偏估计量),其离散程度随 $n$ 增大而缩小:
The formula for $\sigma_{\hat{p}}$ is trustworthy when the 10% condition holds: the sample is no more than 10% of the population, so the individuals are close enough to independent. The shape is approximately normal when the sample is large enough to expect at least 10 successes and at least 10 failures, that is, $np\ge 10$ and $n(1-p)\ge 10$. If $p$ is near 0 or 1 and $n$ is small, the distribution is skewed and a normal model is not appropriate.
$\sigma_{\hat{p}}$ 的公式在10% 条件成立时才可靠:样本不超过总体的 10%,个体才近似独立。当样本足够大,使预期成功数与失败数都至少为 10,即 $np\ge 10$ 且 $n(1-p)\ge 10$ 时,其形状近似正态。若 $p$ 接近 0 或 1 而 $n$ 又小,分布会偏斜,不宜使用正态模型。
Why this makes inference work为什么这使推断成为可能
Because the sampling distribution of $\hat{p}$ is approximately normal, about 95% of sample proportions land within about two standard deviations of $p$. Read in reverse, a single observed $\hat{p}$ is probably within about two standard deviations of the unknown $p$, which is the idea behind a confidence interval. Read forward from an assumed value of $p$, an observed $\hat{p}$ far out in the tail would be surprising, which is the idea behind a significance test. The rest of this unit is these two ideas made precise.
因为 $\hat{p}$ 的抽样分布近似正态,约 95% 的样本比例落在 $p$ 的约两个标准差之内。反过来读,一个观察到的 $\hat{p}$ 大概率落在未知 $p$ 的约两个标准差之内,这就是置信区间的思想。从假定的 $p$ 值正向读,观察到的 $\hat{p}$ 若远在尾部就令人意外,这就是显著性检验的思想。本单元其余内容就是把这两个思想精确化。
Worked Example: probability of a sample proportion例题:样本比例的概率
In a city of 60,000 registered voters, 40% support a transit measure. A random sample of $n=100$ voters is taken. Find the probability that the sample proportion is at least $0.50$. (Illustrative scenario.)
- Conditions. Random sample; $100$ is far less than 10% of $60{,}000$; $np=100(0.40)=40\ge 10$ and $n(1-p)=100(0.60)=60\ge 10$. The sampling distribution of $\hat{p}$ is approximately normal.
- Centre and spread. $\mu_{\hat{p}}=0.40$ and $\sigma_{\hat{p}}=\sqrt{\dfrac{0.40(0.60)}{100}}\approx 0.0490$.
- Standardize. $z=\dfrac{0.50-0.40}{0.0490}\approx 2.04$.
- Probability. $P(\hat{p}\ge 0.50)=P(Z\ge 2.04)\approx 0.021$ (
normalcdf(2.04,1E99)ornormalcdf(0.5,1E99,0.4,0.049)). - In context. If 40% of all voters support the measure, about 2.1% of random samples of 100 voters would show 50% or more in support. Such a sample would be unusual but not impossible.
Why this works: the normal model for $\hat{p}$ turns "how unusual is this sample?" into an area under a curve.
某市有 60,000 名登记选民,其中 40% 支持一项公交提案。随机抽取 $n=100$ 名选民。求样本比例至少为 $0.50$ 的概率。(示意情境。)
- 条件。随机样本;$100$ 远小于 $60{,}000$ 的 10%;$np=100(0.40)=40\ge 10$,$n(1-p)=100(0.60)=60\ge 10$。$\hat{p}$ 的抽样分布近似正态。
- 中心与离散。$\mu_{\hat{p}}=0.40$,$\sigma_{\hat{p}}=\sqrt{\dfrac{0.40(0.60)}{100}}\approx 0.0490$。
- 标准化。$z=\dfrac{0.50-0.40}{0.0490}\approx 2.04$。
- 概率。$P(\hat{p}\ge 0.50)=P(Z\ge 2.04)\approx 0.021$(
normalcdf(2.04,1E99)或normalcdf(0.5,1E99,0.4,0.049))。 - 结合情境。若全体选民中 40% 支持该提案,则约 2.1% 的 100 人随机样本会显示 50% 或更多人支持。这样的样本不常见,但并非不可能。
原理:$\hat{p}$ 的正态模型把“这个样本有多罕见”变成曲线下的一块面积。
Worked Example: sample size changes the spread, not the centre例题:样本容量改变离散程度而非中心
Same population as before ($p=0.40$). Compare the chance that $\hat{p}\ge 0.45$ for $n=100$ and $n=400$.
- $n=100$. $\sigma_{\hat{p}}\approx 0.0490$, so $z=\dfrac{0.45-0.40}{0.0490}\approx 1.02$ and $P(\hat{p}\ge 0.45)\approx 0.154$.
- $n=400$. $\sigma_{\hat{p}}=\sqrt{\dfrac{0.40(0.60)}{400}}\approx 0.0245$, so $z=\dfrac{0.45-0.40}{0.0245}\approx 2.04$ and $P(\hat{p}\ge 0.45)\approx 0.021$.
- Compare. Both distributions are centred at $0.40$. Quadrupling $n$ halves the standard deviation, so a sample proportion of $0.45$ goes from fairly ordinary (about 15%) to unusual (about 2%).
总体同前($p=0.40$)。比较 $n=100$ 与 $n=400$ 时 $\hat{p}\ge 0.45$ 的概率。
- $n=100$。$\sigma_{\hat{p}}\approx 0.0490$,故 $z=\dfrac{0.45-0.40}{0.0490}\approx 1.02$,$P(\hat{p}\ge 0.45)\approx 0.154$。
- $n=400$。$\sigma_{\hat{p}}=\sqrt{\dfrac{0.40(0.60)}{400}}\approx 0.0245$,故 $z=\dfrac{0.45-0.40}{0.0245}\approx 2.04$,$P(\hat{p}\ge 0.45)\approx 0.021$。
- 比较。两个分布都以 $0.40$ 为中心。$n$ 变为 4 倍,标准差减半,于是样本比例 $0.45$ 从较为平常(约 15%)变为不寻常(约 2%)。
Worked Example: when the normal model is not safe例题:正态模型何时不可靠
A manufacturer finds that 5% of its tablets are chipped. Is a normal model reasonable for $\hat{p}$ in random samples of $n=100$? Of $n=400$? (Illustrative figures.)
- $n=100$. $np=100(0.05)=5<10$. The condition fails, so the sampling distribution is skewed right and a normal model is not appropriate.
- $n=400$. $np=400(0.05)=20\ge 10$ and $n(1-p)=380\ge 10$. A normal model is reasonable, with $\sigma_{\hat{p}}=\sqrt{\dfrac{0.05(0.95)}{400}}\approx 0.0109$.
- Observe. For $n=100$ the standard deviation would be about $0.0218$, nearly half of $p$ itself, so $\hat{p}$ cannot drop far below $p$ but can stretch far above it. That lopsidedness is what a normal curve cannot capture.
某厂发现其 5% 的药片有缺角。对 $n=100$ 的随机样本,$\hat{p}$ 可以用正态模型吗?$n=400$ 呢?(示意数据。)
- $n=100$。$np=100(0.05)=5<10$。条件不满足,抽样分布右偏,不宜用正态模型。
- $n=400$。$np=400(0.05)=20\ge 10$ 且 $n(1-p)=380\ge 10$。可以用正态模型,$\sigma_{\hat{p}}=\sqrt{\dfrac{0.05(0.95)}{400}}\approx 0.0109$。
- 观察。$n=100$ 时标准差约为 $0.0218$,接近 $p$ 本身的一半,所以 $\hat{p}$ 不可能比 $p$ 低很多,却可能比它高很多。这种不对称正是正态曲线无法刻画的。
The distribution of the population, the distribution of the one sample you collected, and the sampling distribution of $\hat{p}$ are three different things. The sampling distribution describes the statistic over many imagined samples. Also, a larger $n$ narrows the sampling distribution but never moves its centre away from $p$.
总体的分布、你收集的那一个样本的分布,以及 $\hat{p}$ 的抽样分布是三件不同的事。抽样分布描述的是统计量在许多设想样本中的取值。另外,$n$ 增大会使抽样分布变窄,但绝不会使其中心偏离 $p$。
Write the check before using the normal model: "random sample, $100$ is less than 10% of all voters, $np=40\ge 10$ and $n(1-p)=60\ge 10$." State $\mu_{\hat{p}}$ and $\sigma_{\hat{p}}$ with the numbers substituted, and answer in context rather than leaving a bare probability.
使用正态模型之前先写出检验:“随机样本,$100$ 少于全体选民的 10%,$np=40\ge 10$ 且 $n(1-p)=60\ge 10$。”写出代入数值的 $\mu_{\hat{p}}$ 和 $\sigma_{\hat{p}}$,并结合情境作答,不要只留一个孤立的概率。
A population has $p=0.30$. A random sample of $n=200$ is taken. Find the mean and standard deviation of the sampling distribution of $\hat{p}$.某总体 $p=0.30$。随机抽取 $n=200$。求 $\hat{p}$ 抽样分布的均值与标准差。
$\mu_{\hat{p}}=0.30$ and $\sigma_{\hat{p}}=\sqrt{\dfrac{0.30(0.70)}{200}}\approx 0.0324$.
$\mu_{\hat{p}}=0.30$,$\sigma_{\hat{p}}=\sqrt{\dfrac{0.30(0.70)}{200}}\approx 0.0324$。
Why does a larger sample size make $\hat{p}$ more likely to be close to $p$?为什么样本容量更大会使 $\hat{p}$ 更可能接近 $p$?
The standard deviation $\sqrt{p(1-p)/n}$ shrinks as $n$ grows, so the sampling distribution is narrower around the unchanged centre $p$.
标准差 $\sqrt{p(1-p)/n}$ 随 $n$ 增大而减小,所以抽样分布围绕不变的中心 $p$ 变得更窄。
For $p=0.08$, is a normal model for $\hat{p}$ appropriate when $n=100$? When $n=250$? Show the check.当 $p=0.08$ 时,$n=100$ 可以对 $\hat{p}$ 使用正态模型吗?$n=250$ 呢?写出检验。
$n=100$: $np=8<10$, so no. $n=250$: $np=20\ge 10$ and $n(1-p)=230\ge 10$, so yes (assuming a random sample and that $250$ is under 10% of the population).
$n=100$:$np=8<10$,不可以。$n=250$:$np=20\ge 10$ 且 $n(1-p)=230\ge 10$,可以(假设样本随机,且 $250$ 不超过总体的 10%)。
A student says, "My sample gave $\hat{p}=0.46$, so the sampling distribution is centred at 0.46." Correct this.一位同学说:“我的样本得到 $\hat{p}=0.46$,所以抽样分布以 0.46 为中心。”请纠正。
The sampling distribution is centred at the population proportion $p$, not at one sample's $\hat{p}$. The value $0.46$ is a single draw from that distribution.
抽样分布的中心是总体比例 $p$,而不是某一个样本的 $\hat{p}$。$0.46$ 只是从该分布中抽出的一个值。
Constructing a Confidence Interval for a Population Proportion构造总体比例的置信区间
- Calculate and state a one-sample $z$-interval for a population proportion, using the critical value $z^*$ and the standard error.
- Check the conditions: random sample, 10% condition, and at least 10 successes and 10 failures in the sample.
- Interpret a confidence interval and a confidence level in context, and say which one describes the method.
- Find the margin of error and the sample size needed for a stated margin of error, including the conservative choice $0.5$.
- Run the procedure on the TI-84 as
1-PropZIntand write it as State, Plan, Do, Conclude.
- 利用临界值 $z^*$ 和标准误计算并写出总体比例的单样本 $z$ 区间。
- 检验条件:随机样本、10% 条件,以及样本中至少 10 个成功与 10 个失败。
- 结合情境解释置信区间与置信水平,并说明哪一个描述的是方法。
- 求误差范围,以及达到指定误差范围所需的样本容量,包括保守取值 $0.5$。
- 在 TI-84 上用
1-PropZInt完成计算,并按 State、Plan、Do、Conclude 四步写出。
The one-proportion z-interval单比例 z 区间
A confidence interval gives a range of plausible values for the parameter $p$. The one-sample $z$-interval for a proportion (also called the one-proportion $z$-interval, 1-PropZInt on the TI-84) has the form statistic $\pm$ critical value $\times$ standard error:
置信区间给出参数 $p$ 的一组合理取值。总体比例的单样本 $z$ 区间(也叫单比例 $z$ 区间,TI-84 上的 1-PropZInt)的形式是统计量 $\pm$ 临界值 $\times$ 标准误:
The standard error $\sqrt{\hat{p}(1-\hat{p})/n}$ estimates the standard deviation of $\hat{p}$; it uses $\hat{p}$ because the true $p$ is unknown. The critical value $z^*$ is the number of standard errors needed to capture the middle $C\%$ of a standard normal curve: $z^*\approx 1.645$ for 90%, $1.960$ for 95%, $2.576$ for 99% (invNorm). The product $z^*\times$ standard error is the margin of error.
标准误 $\sqrt{\hat{p}(1-\hat{p})/n}$ 估计 $\hat{p}$ 的标准差;因为真实的 $p$ 未知,所以用 $\hat{p}$ 代入。临界值 $z^*$ 是在标准正态曲线上截取中间 $C\%$ 所需的标准误个数:90% 对应 $z^*\approx 1.645$,95% 对应 $1.960$,99% 对应 $2.576$(invNorm)。$z^*\times$ 标准误就是误差范围。
Conditions条件
Before using the interval, verify and state three conditions: (1) Random: the data come from a random sample or a randomized experiment. (2) 10% condition: when sampling without replacement, $n$ is at most 10% of the population. (3) At least 10 successes and 10 failures in the sample: $n\hat{p}\ge 10$ and $n(1-\hat{p})\ge 10$. For an interval the counts come from the sample, because $p$ is unknown.
使用区间之前,必须验证并写出三个条件:(1) 随机:数据来自随机样本或随机化实验。(2) 10% 条件:不放回抽样时,$n$ 至多为总体的 10%。(3) 样本中至少 10 个成功与 10 个失败:$n\hat{p}\ge 10$ 且 $n(1-\hat{p})\ge 10$。对区间而言,计数来自样本,因为 $p$ 未知。
Interpreting the interval and the confidence level解释区间与置信水平
Interpret the interval (in context, naming the population and the variable): "We are 95% confident that the interval from 0.323 to 0.417 captures the true proportion of all students at the school who walk to school." Interpret the confidence level: if we took many random samples of the same size and built an interval from each, about 95% of those intervals would capture the true proportion. The level describes the method's long-run success rate. It is not the probability that this one interval is correct, because $p$ is fixed and the interval either captures it or not.
解释区间(结合情境,点明总体和变量):“我们有 95% 的把握认为,从 0.323 到 0.417 的区间覆盖了该校全体学生中步行上学的真实比例。”解释置信水平:若取许多相同容量的随机样本并分别构造区间,约 95% 的区间会覆盖真实比例。水平描述的是方法的长期成功率,不是这一个区间正确的概率,因为 $p$ 是固定的,区间要么覆盖它,要么不覆盖。
Worked Example: a 95% interval for a proportion例题:比例的 95% 置信区间
A school has 8,000 students. In a random sample of 400 students, 148 say they walk to school. Construct and interpret a 95% confidence interval for the proportion of all students at the school who walk. (Illustrative data.)
- State. Parameter: $p$, the proportion of all students at this school who walk to school. Confidence level 95%.
- Plan. One-sample $z$-interval for a proportion. Random: stated random sample. 10%: $400\le 0.10(8000)=800$ holds. Counts: $n\hat{p}=148\ge 10$ and $n(1-\hat{p})=252\ge 10$.
- Do. $\hat{p}=148/400=0.37$. Standard error $=\sqrt{\dfrac{0.37(1-0.37)}{400}}\approx 0.0241$. With $z^*=1.960$: margin of error $\approx 0.0473$. Interval: $0.37\pm 0.0473$, that is $(0.3227,\,0.4173)$. Calculator:
1-PropZIntwith $x=148$, $n=400$, C-Level $0.95$. - Conclude. We are 95% confident that the interval from $0.323$ to $0.417$ captures the true proportion of all students at this school who walk to school.
某校有 8,000 名学生。随机抽取 400 名学生,其中 148 人说自己步行上学。构造并解释该校全体学生中步行上学比例的 95% 置信区间。(示意数据。)
- State。参数:$p$,该校全体学生中步行上学的比例。置信水平 95%。
- Plan。比例的单样本 $z$ 区间。随机:已说明为随机样本。10%:$400\le 0.10(8000)=800$ 成立。计数:$n\hat{p}=148\ge 10$,$n(1-\hat{p})=252\ge 10$。
- Do。$\hat{p}=148/400=0.37$。标准误 $=\sqrt{\dfrac{0.37(1-0.37)}{400}}\approx 0.0241$。取 $z^*=1.960$:误差范围 $\approx 0.0473$。区间:$0.37\pm 0.0473$,即 $(0.3227,\,0.4173)$。计算器:
1-PropZInt,$x=148$,$n=400$,C-Level $0.95$。 - Conclude。我们有 95% 的把握认为,从 $0.323$ 到 $0.417$ 的区间覆盖了该校全体学生中步行上学的真实比例。
Worked Example: a 90% interval and a condition check例题:90% 置信区间与条件检验
A warehouse manager randomly samples 250 packages from a very large shipment and finds 18 damaged. Check the conditions and give a 90% confidence interval for the proportion of damaged packages in the shipment. (Illustrative data.)
- Conditions. Random: stated. 10%: the shipment is very large, so $250$ is under 10% of it. Counts: $n\hat{p}=18\ge 10$ and $n(1-\hat{p})=232\ge 10$. All three hold.
- Do. $\hat{p}=18/250=0.072$, standard error $=\sqrt{\dfrac{0.072(1-0.072)}{250}}\approx 0.0163$, and $z^*=1.645$ for 90%. Margin of error $\approx 0.0269$. Interval: $(0.0451,\,0.0989)$.
- Conclude. We are 90% confident that the interval from $0.045$ to $0.099$ captures the true proportion of damaged packages in this shipment.
- Compare. A 95% interval from the same data would be wider (it uses $z^*=1.960$). More confidence costs precision.
仓库经理从一大批货物中随机抽取 250 个包裹,发现 18 个破损。检验条件并给出该批货物破损比例的 90% 置信区间。(示意数据。)
- 条件。随机:已说明。10%:这批货物数量很大,$250$ 不到其 10%。计数:$n\hat{p}=18\ge 10$,$n(1-\hat{p})=232\ge 10$。三个条件均成立。
- Do。$\hat{p}=18/250=0.072$,标准误 $=\sqrt{\dfrac{0.072(1-0.072)}{250}}\approx 0.0163$,90% 对应 $z^*=1.645$。误差范围 $\approx 0.0269$。区间:$(0.0451,\,0.0989)$。
- Conclude。我们有 90% 的把握认为,从 $0.045$ 到 $0.099$ 的区间覆盖了这批货物中破损包裹的真实比例。
- 比较。同样数据的 95% 区间更宽(用 $z^*=1.960$)。更高的置信度要以精确度为代价。
Worked Example: sample size for a given margin of error例题:给定误差范围时的样本容量
A polling group wants a 95% confidence interval for a proportion with a margin of error of at most $0.03$. (a) How large a sample is needed if nothing is known about $p$? (b) How large if an earlier study suggests $p$ is about $0.30$?
- Set up. Require $z^*\sqrt{\dfrac{p^*(1-p^*)}{n}}\le 0.03$, which gives $n\ge\left(\dfrac{z^*}{0.03}\right)^2p^*(1-p^*)$.
- (a) Conservative. With no information use $p^*=0.5$, which makes $p^*(1-p^*)$ as large as possible ($0.25$): $n\ge\left(\dfrac{1.960}{0.03}\right)^2(0.25)\approx 1067.1$. Round up: $n=1068$.
- (b) Using the prior estimate. $p^*=0.30$: $n\ge\left(\dfrac{1.960}{0.03}\right)^2(0.30)(0.70)\approx 896.4$, so $n=897$.
- Meaning. The conservative value guarantees the margin of error is at most $0.03$ whatever $p$ turns out to be; a good prior estimate away from $0.5$ saves about 170 respondents.
民调机构想要比例的 95% 置信区间,误差范围至多为 $0.03$。(a) 若对 $p$ 一无所知,需要多大样本?(b) 若早先研究表明 $p$ 约为 $0.30$,需要多大?
- 设定。要求 $z^*\sqrt{\dfrac{p^*(1-p^*)}{n}}\le 0.03$,得 $n\ge\left(\dfrac{z^*}{0.03}\right)^2p^*(1-p^*)$。
- (a) 保守取值。无信息时取 $p^*=0.5$,使 $p^*(1-p^*)$ 最大($0.25$):$n\ge\left(\dfrac{1.960}{0.03}\right)^2(0.25)\approx 1067.1$。必须向上取整:$n=1068$。
- (b) 使用先验估计。$p^*=0.30$:$n\ge\left(\dfrac{1.960}{0.03}\right)^2(0.30)(0.70)\approx 896.4$,所以 $n=897$。
- 含义。保守取值保证无论 $p$ 实际是多少,误差范围都至多为 $0.03$;若有远离 $0.5$ 的可靠先验估计,可以少调查约 170 人。
Press STAT, arrow to TESTS, and choose 1-PropZInt (the letter-labelled entry near the bottom of the list). Enter the count of successes x (a whole number), n, and C-Level, then Calculate. The screen shows the interval, $\hat{p}$ and $n$. Write the interval and the conditions in your answer; the calculator gives numbers, not justification.
按 STAT,移到 TESTS,选择 1-PropZInt(列表靠后、用字母标记的一项)。输入成功次数 x(必须是整数)、n 和 C-Level,再选 Calculate。屏幕显示区间、$\hat{p}$ 与 $n$。作答时要写出区间和条件;计算器只给数字,不给理由。
Synthetic illustrative data. A transit agency wants to estimate the proportion of its riders who agree that a new fare policy is fair. A random sample of 120 riders, far fewer than 10% of the city's riders, finds that 72 agree, so $\hat{p}=72/120=0.60$.
- Conditions. Random sample; 120 is less than 10% of all riders; $n\hat{p}=72\ge 10$ and $n(1-\hat{p})=48\ge 10$.
- Keys. Press
STAT, arrow right toTESTS, and chooseA:1-PropZInt. Enterx: 72,n: 120andC-Level: .95, selectCalculate, then pressENTER. Unlike1-PropZTest, this menu asks for no null value. - Read the screen. The first line is the interval, about $(0.51235,\,0.68765)$; below it are $\hat{p}=0.6$ and $n=120$. Values here are rounded transcriptions of the screen.
- Hand check. $SE=\sqrt{\dfrac{0.60(0.40)}{120}}\approx 0.04472$ and $ME\approx 1.960(0.04472)\approx 0.0877$, so $0.60\pm 0.0877$ gives $(0.512,\,0.688)$.
- Conclude. We are 95% confident that the interval from $0.512$ to $0.688$ captures the true proportion of all riders in this city who agree that the new fare policy is fair.
- Common input slip. $x$ must be the count $72$, not the proportion $0.60$; and the first output line is the interval, not $\hat{p}$.
Open the bilingual calculation stepper to see these steps one at a time.
合成教学数据。某公交机构想估计认为新票价政策公平的乘客比例。从该市随机抽取 120 名乘客(远少于全市乘客的 10%),其中 72 人认同,故 $\hat{p}=72/120=0.60$。
- 条件。随机样本;120 人不到全市乘客的 10%;$n\hat{p}=72\ge 10$,$n(1-\hat{p})=48\ge 10$。
- 按键。按
STAT,用右箭头移到TESTS,选择A:1-PropZInt。输入x: 72、n: 120、C-Level: .95,选择Calculate,再按ENTER。与1-PropZTest不同,此菜单不需要原假设取值。 - 读屏幕。第一行是区间,约为 $(0.51235,\,0.68765)$;其下是 $\hat{p}=0.6$ 与 $n=120$。这里的数值是屏幕内容四舍五入后的转录。
- 手算核对。$SE=\sqrt{\dfrac{0.60(0.40)}{120}}\approx 0.04472$,$ME\approx 1.960(0.04472)\approx 0.0877$,所以 $0.60\pm 0.0877$ 得 $(0.512,\,0.688)$。
- 结论。我们有 95% 的把握认为,从 $0.512$ 到 $0.688$ 的区间覆盖了该市全体乘客中认同新票价政策公平的真实比例。
- 常见输入失误。$x$ 必须填计数 $72$,不能填比例 $0.60$;另外输出的第一行是区间,不是 $\hat{p}$。
打开双语逐步计算页,可逐步查看这些步骤。
Do not write "there is a 95% probability that $p$ is in this interval" or "95% of the data lie in the interval." The parameter is fixed. The 95% is the success rate of the method over repeated samples; the sentence "we are 95% confident that the interval captures the true proportion" is the accepted way to say it for one interval. Also, a wider interval is not "more accurate"; it is more likely to capture $p$ but less informative.
不要写“$p$ 在这个区间内的概率是 95%”或“95% 的数据落在区间内”。参数是固定的。95% 是方法在重复抽样下的成功率;对一个具体区间,规范说法是“我们有 95% 的把握认为区间覆盖了真实比例”。另外,更宽的区间并不“更准确”:它更可能覆盖 $p$,但信息量更少。
Name the population and the variable in every interpretation: "the proportion of all students at this school who walk to school," not "the true proportion." Show the three conditions with numbers ($n\hat{p}=148\ge 10$, $n(1-\hat{p})=252\ge 10$), and always round sample size up.
每次解释都要点明总体和变量:“该校全体学生中步行上学的比例”,而不是“真实比例”。条件要带数字写出($n\hat{p}=148\ge 10$,$n(1-\hat{p})=252\ge 10$),样本容量必须向上取整。
Prompt. A random sample of 90 students is selected from a school of 1,800 students, and 54 of them say they eat breakfast every day. (a) Check the conditions for a one-proportion $z$-interval. (b) Construct a 95% confidence interval. (c) Interpret the interval in context.
| Part | What a complete answer states |
|---|---|
| (a) | Random: the 90 students were selected at random. 10%: $90\le 0.10(1800)=180$. Counts: $n\hat{p}=54\ge 10$ and $n(1-\hat{p})=36\ge 10$. All three hold, so a one-proportion $z$-interval is reasonable. |
| (b) | Let $p$ be the true proportion of all students at this school who eat breakfast every day. $\hat{p}=54/90=0.60$; $SE=\sqrt{\dfrac{0.60(0.40)}{90}}\approx 0.05164$; $ME=1.960(0.05164)\approx 0.1012$; the interval is $0.60\pm 0.1012$, that is $(0.499,\,0.701)$. |
| (c) | We are 95% confident that the interval from $0.499$ to $0.701$ captures the true proportion of all students at this school who eat breakfast every day. The 95% describes the method: about 95% of intervals made this way from random samples capture the true proportion. |
题目。从一所有 1,800 名学生的学校随机抽取 90 名学生,其中 54 人说自己每天吃早餐。(a) 检验单比例 $z$ 区间的条件。(b) 构造 95% 置信区间。(c) 结合情境解释该区间。
| 部分 | 完整答案要点 |
|---|---|
| (a) | 随机:90 名学生是随机抽取的。10%:$90\le 0.10(1800)=180$。计数:$n\hat{p}=54\ge 10$,$n(1-\hat{p})=36\ge 10$。三个条件均成立,可以使用单比例 $z$ 区间。 |
| (b) | 设 $p$ 为该校全体学生中每天吃早餐的真实比例。$\hat{p}=54/90=0.60$;$SE=\sqrt{\dfrac{0.60(0.40)}{90}}\approx 0.05164$;$ME=1.960(0.05164)\approx 0.1012$;区间为 $0.60\pm 0.1012$,即 $(0.499,\,0.701)$。 |
| (c) | 我们有 95% 的把握认为,从 $0.499$ 到 $0.701$ 的区间覆盖了该校全体学生中每天吃早餐的真实比例。95% 描述的是方法:用随机样本这样构造的区间中,约 95% 会覆盖真实比例。 |
Out of 120 randomly chosen customers, 45 prefer the new design. A 95% interval for the proportion of all customers who prefer it is $(0.29,\,0.46)$. Interpret the interval in context.在随机选取的 120 名顾客中,45 人更喜欢新设计。喜欢它的全体顾客比例的 95% 区间为 $(0.29,\,0.46)$。结合情境解释该区间。
We are 95% confident that the interval from $0.29$ to $0.46$ captures the true proportion of all customers who prefer the new design.
我们有 95% 的把握认为,从 $0.29$ 到 $0.46$ 的区间覆盖了全体顾客中更喜欢新设计的真实比例。
What does "95% confidence level" mean? Describe it without calling it the probability that this interval is right.“95% 置信水平”是什么意思?不要说成这个区间正确的概率。
If we repeatedly took random samples of the same size and built an interval from each in the same way, about 95% of those intervals would capture the true population proportion.
如果反复抽取相同容量的随机样本并用同样方法各构造一个区间,约 95% 的区间会覆盖真实的总体比例。
A random sample of 60 people has 7 successes. Can a one-proportion $z$-interval be used? Justify.60 人的随机样本中有 7 个成功。能用单比例 $z$ 区间吗?说明理由。
No. The number of successes is $7<10$, so the "at least 10 successes and 10 failures" condition fails (failures: $53\ge 10$ is fine, but both counts must be at least 10).
不能。成功数 $7<10$,“至少 10 个成功与 10 个失败”不满足(失败数 $53\ge 10$ 没问题,但两个计数都必须至少为 10)。
How does the margin of error change if the confidence level rises from 95% to 99% with the same data? How does it change if $n$ is quadrupled?数据相同、置信水平从 95% 升到 99%,误差范围怎样变化?$n$ 变为 4 倍呢?
It increases at 99% because $z^*$ grows from $1.960$ to $2.576$. Quadrupling $n$ halves the standard error, so it roughly halves the margin of error.
99% 时误差范围变大,因为 $z^*$ 由 $1.960$ 增至 $2.576$。$n$ 变为 4 倍使标准误减半,所以误差范围大致减半。
Justifying a Claim Based on a Confidence Interval for a Population Proportion依据总体比例的置信区间论证说法
- Use a confidence interval to decide whether a claimed value of $p$ is plausible.
- Justify a claim in context by stating whether the interval contains or does not contain the claimed value.
- Explain why an interval that contains a value does not prove that value is the true proportion.
- Use the position of the whole interval (all above or all below a value) to support a directional claim.
- Relate the interval's conclusion to a two-sided significance test at the matching level.
- 用置信区间判断声称的 $p$ 值是否合理。
- 结合情境,通过说明区间含不含声称值来论证一个说法。
- 解释为什么区间含有某值并不能证明该值就是真实比例。
- 利用整个区间全在某值之上或之下的位置,支持有方向的说法。
- 把区间的结论与相应水平的双侧显著性检验联系起来。
A confidence interval is the set of values of $p$ that are plausible (consistent with the data) at the stated confidence level. To justify a claim about a population proportion, compare the claimed value with the interval. If the interval contains the claimed value, the claim is plausible: the data are consistent with it, but they do not prove it, because many other values in the interval are plausible too. If the interval does not contain the claimed value, that value is not plausible, which is convincing evidence against the claim.
置信区间是在给定置信水平下合理(与数据相符)的 $p$ 值的集合。要论证一个关于总体比例的说法,把声称值与区间比较。若区间含有声称值,则该说法是合理的:数据与之相符,但并不能证明它,因为区间内其他许多值同样合理。若区间不含声称值,则该值不合理,这就是反对该说法的有力证据。
When the entire interval lies above (or below) the claimed value, you can also say which direction: every plausible value of $p$ is greater (or less) than the claim. A 95% interval and a two-sided test at significance level $\alpha=0.05$ usually reach the same decision, but the two use slightly different standard errors (the interval uses $\hat{p}$, the test uses the claimed $p_0$), so they can disagree when the claimed value sits very near an endpoint.
当整个区间都在声称值之上(或之下)时,还可以说明方向:$p$ 的每个合理取值都大于(或小于)该说法。95% 区间与显著性水平 $\alpha=0.05$ 的双侧检验通常得到相同决定,但二者的标准误略有不同(区间用 $\hat{p}$,检验用声称值 $p_0$),所以当声称值恰好靠近端点时,可能出现不一致。
Worked Example: an interval that rules out a claim例题:否定某个说法的区间
A shipping company claims that 90% of its orders arrive on time. A random sample of 300 orders (far fewer than 10% of all orders) has 250 on time. Use a 95% confidence interval to evaluate the claim. (Illustrative data.)
- Conditions. Random sample; 10% holds; $n\hat{p}=250\ge 10$ and $n(1-\hat{p})=50\ge 10$.
- Interval. $\hat{p}=250/300\approx 0.833$; standard error $\approx 0.0215$; margin of error $=1.960(0.0215)\approx 0.0422$. The 95% interval is $(0.791,\,0.876)$.
- Justify. The interval does not contain $0.90$, so $0.90$ is not a plausible value for the true proportion. Every value in the interval is below $0.90$.
- Conclude. We have convincing evidence that the true proportion of this company's orders that arrive on time is less than $0.90$; the claim is not supported. The interval estimates the true on-time rate to be between about $79\%$ and $88\%$.
某货运公司声称其 90% 的订单准时送达。随机抽取 300 份订单(远少于全部订单的 10%),其中 250 份准时。用 95% 置信区间评价该说法。(示意数据。)
- 条件。随机样本;10% 成立;$n\hat{p}=250\ge 10$,$n(1-\hat{p})=50\ge 10$。
- 区间。$\hat{p}=250/300\approx 0.833$;标准误 $\approx 0.0215$;误差范围 $=1.960(0.0215)\approx 0.0422$。95% 区间为 $(0.791,\,0.876)$。
- 论证。区间不含 $0.90$,所以 $0.90$ 不是真实比例的合理取值。区间内每个值都小于 $0.90$。
- Conclude。我们有令人信服的证据表明,该公司准时送达订单的真实比例小于 $0.90$;该说法不成立。区间估计真实准时率在约 $79\%$ 到 $88\%$ 之间。
Worked Example: an interval that is consistent with a claim例题:与说法相符的区间
A candidate says exactly half of the voters in a large district support her. A random poll of 600 voters finds 318 support her. Evaluate the statement with a 95% interval. (Illustrative data.)
- Conditions. Random sample, 600 under 10% of the district's voters, $318\ge 10$ and $282\ge 10$.
- Interval. $\hat{p}=318/600=0.53$; standard error $\approx 0.0204$; margin of error $\approx 0.0399$; interval $(0.490,\,0.570)$.
- Justify. The interval contains $0.50$, so $0.50$ is a plausible value of the true proportion, and the poll is consistent with the claim. The interval also contains values below and above $0.50$.
- Conclude. The poll does not provide convincing evidence that the true proportion of voters in this district supporting her differs from $0.50$. We cannot conclude that exactly half support her, or that a majority do: values from about $0.49$ to $0.57$ remain plausible.
一位候选人说某大选区恰好有一半选民支持她。随机民调 600 名选民,318 人支持她。用 95% 区间评价这一说法。(示意数据。)
- 条件。随机样本,600 不到该选区选民的 10%,$318\ge 10$,$282\ge 10$。
- 区间。$\hat{p}=318/600=0.53$;标准误 $\approx 0.0204$;误差范围 $\approx 0.0399$;区间 $(0.490,\,0.570)$。
- 论证。区间含有 $0.50$,所以 $0.50$ 是真实比例的合理取值,民调与该说法相符。区间内同时有低于和高于 $0.50$ 的值。
- Conclude。该民调没有提供令人信服的证据表明,该选区支持她的选民真实比例不同于 $0.50$。我们不能断定恰好一半人支持她,也不能断定多数人支持她:从约 $0.49$ 到 $0.57$ 的值仍然合理。
Worked Example: several claims, one interval, and a change of level例题:多个说法、同一个区间与置信水平的改变
A city surveys a random sample of 400 adult residents (far fewer than 10% of the city's adults). Of these, 232 say they support a new bike lane. A council member says "a majority of adults in the city support the lane." A second member says "70% of adults in the city support it." Use a 95% confidence interval to evaluate both statements, then say whether a 99% interval would change the first conclusion. (Illustrative data.)
- Parameter and conditions. Let $p$ be the true proportion of adult residents of the city who support the lane. Random sample; 400 is under 10% of the adults; $232\ge 10$ and $168\ge 10$.
- Interval. $\hat{p}=232/400=0.58$; $SE=\sqrt{\dfrac{0.58(0.42)}{400}}\approx 0.0247$; $ME=1.960(0.0247)\approx 0.0484$. The 95% interval is $(0.532,\,0.628)$.
- Majority claim ($p>0.50$). Every value in the interval is above $0.50$, so $0.50$ is not plausible and neither is any smaller value.
- The 70% claim. The interval does not contain $0.70$, and every value in it is below $0.70$.
- A 99% interval. $z^*=2.576$, so $ME\approx 2.576(0.0247)\approx 0.0636$ and the interval is $(0.516,\,0.644)$. It is wider, but it still lies entirely above $0.50$, so the first conclusion does not change.
A complete answer states: the 95% interval $(0.532,\,0.628)$ with its conditions checked; that there is convincing evidence that more than half of the city's adults support the lane, because the whole interval is above $0.50$; that there is convincing evidence that the true proportion is less than $0.70$, because $0.70$ is not in the interval; and that the 99% interval $(0.516,\,0.644)$ leads to the same conclusion about a majority.
Why this works: one interval answers every claim about the same parameter, because it is the set of values the data make plausible. A higher confidence level widens it, so a conclusion that survives at 99% is more secure.
某市随机调查 400 名成年居民(远少于该市成年人的 10%),其中 232 人表示支持新建自行车道。一位议员说“该市多数成年人支持这条车道”,另一位议员说“该市 70% 的成年人支持”。用 95% 置信区间评价这两个说法,然后说明 99% 区间是否会改变第一个结论。(示意数据。)
- 参数与条件。设 $p$ 为该市支持车道的成年居民的真实比例。随机样本;400 不到成年人的 10%;$232\ge 10$,$168\ge 10$。
- 区间。$\hat{p}=232/400=0.58$;$SE=\sqrt{\dfrac{0.58(0.42)}{400}}\approx 0.0247$;$ME=1.960(0.0247)\approx 0.0484$。95% 区间为 $(0.532,\,0.628)$。
- 多数说法($p>0.50$)。区间内每个值都大于 $0.50$,所以 $0.50$ 不合理,更小的值也不合理。
- 70% 的说法。区间不含 $0.70$,且区间内每个值都小于 $0.70$。
- 99% 区间。$z^*=2.576$,所以 $ME\approx 2.576(0.0247)\approx 0.0636$,区间为 $(0.516,\,0.644)$。区间变宽了,但仍完全位于 $0.50$ 之上,所以第一个结论不变。
完整答案要点:写出 95% 区间 $(0.532,\,0.628)$ 并检查条件;因整个区间都在 $0.50$ 之上,有令人信服的证据表明该市多于一半的成年人支持车道;因 $0.70$ 不在区间内,有令人信服的证据表明真实比例小于 $0.70$;99% 区间 $(0.516,\,0.644)$ 对多数说法得出相同结论。
为什么可行:同一个区间可以回答关于同一参数的所有说法,因为它是数据认为合理的取值集合。置信水平越高区间越宽,所以在 99% 下仍成立的结论更稳妥。
An interval containing $0.50$ does not show that $p=0.50$; it only shows that $0.50$ cannot be ruled out. Equally, the interval is a range of plausible values, not a probability distribution: you cannot say that values near the middle are a stated percentage more likely.
区间含有 $0.50$ 并不说明 $p=0.50$,只说明不能排除 $0.50$。同样,区间是一组合理取值,而不是概率分布:不能说靠近中部的值有某个百分比的“更大可能”。
A justification has two parts: the statement about the interval ("the interval $(0.791,\,0.876)$ does not contain $0.90$") and the conclusion about the claim in context ("convincing evidence the true on-time proportion is below $0.90$"). Do not write "the claim is false" or "the claim is true"; use "convincing evidence" or "not convincing evidence."
完整的论证有两部分:关于区间的陈述(“区间 $(0.791,\,0.876)$ 不含 $0.90$”)和结合情境对说法的结论(“有令人信服的证据表明真实准时比例低于 $0.90$”)。不要写“该说法是假的”或“是真的”,而要用“有令人信服的证据”或“没有令人信服的证据”。
A 95% confidence interval for the proportion of teens who own a smartphone is $(0.88,\,0.94)$. A report claims the proportion is $0.95$. What does the interval say about the claim?拥有智能手机的青少年比例的 95% 置信区间为 $(0.88,\,0.94)$。一份报告声称该比例为 $0.95$。区间对该说法说明了什么?
The interval does not contain $0.95$, so $0.95$ is not plausible; there is convincing evidence that the true proportion of teens who own a smartphone is less than $0.95$.
区间不含 $0.95$,所以 $0.95$ 不合理;有令人信服的证据表明拥有智能手机的青少年真实比例小于 $0.95$。
A 95% interval for a proportion is $(0.42,\,0.58)$. Is $p=0.50$ plausible? Is $p=0.50$ proven?某比例的 95% 区间为 $(0.42,\,0.58)$。$p=0.50$ 合理吗?$p=0.50$ 被证明了吗?
$0.50$ is plausible because the interval contains it. It is not proven: every value from $0.42$ to $0.58$ is also plausible.
$0.50$ 合理,因为区间含有它。但它没有被证明:从 $0.42$ 到 $0.58$ 的每个值同样合理。
A school claims that at least 70% of graduates attend college. A 95% interval from a random sample is $(0.55,\,0.67)$. Does the interval support the claim? Explain.某校声称至少 70% 的毕业生上大学。随机样本的 95% 区间为 $(0.55,\,0.67)$。区间支持该说法吗?说明理由。
No. Every plausible value is below $0.70$, so the interval does not capture $0.70$ and there is convincing evidence that the true proportion is less than $0.70$.
不支持。所有合理取值都低于 $0.70$,区间不覆盖 $0.70$,有令人信服的证据表明真实比例小于 $0.70$。
Why Use t? Introducing the t Distribution为什么用 t?t 分布入门
- Explain why inference about a mean uses a $t$ distribution rather than a normal distribution when the population standard deviation is unknown.
- Calculate the standard error $s/\sqrt{n}$ of a sample mean and distinguish it from the standard deviation $\sigma$.
- State the degrees of freedom for a one-sample $t$ procedure and describe how the shape of a $t$ distribution changes as $df$ grows.
- Find $t^*$ critical values and $t$ probabilities with a table or a calculator (
invT,tcdf). - Decide whether a graph and a sample size make a $t$ procedure reasonable.
- 解释当总体标准差未知时,为什么对均值的推断使用 $t$ 分布而不是正态分布。
- 计算样本均值的标准误 $s/\sqrt{n}$,并区分它与标准差 $\sigma$。
- 写出单样本 $t$ 程序的自由度,并描述 $df$ 增大时 $t$ 分布形状的变化。
- 用表或计算器(
invT、tcdf)求 $t^*$ 临界值与 $t$ 分布的概率。 - 根据图形与样本量判断 $t$ 程序是否合理。
Topics 8.1 to 8.3 built inference for a proportion on a simple fact: when $np$ and $n(1-p)$ are large, $\hat{p}$ varies in a nearly normal way with a standard deviation you can write down. For a population mean $\mu$ the sample statistic is $\bar{x}$, and its sampling distribution has mean $\mu$ and standard deviation $\sigma_{\bar{x}}=\sigma/\sqrt{n}$. The difficulty is the population standard deviation $\sigma$: in practice it is almost never known. If you knew $\sigma$ you would usually already know $\mu$.
主题 8.1 至 8.3 为比例的推断建立在一个简单事实上:当 $np$ 与 $n(1-p)$ 都较大时,$\hat{p}$ 近似服从正态分布,其标准差可以直接写出。对于总体均值 $\mu$,样本统计量是 $\bar{x}$,其抽样分布的均值为 $\mu$,标准差为 $\sigma_{\bar{x}}=\sigma/\sqrt{n}$。困难在于总体标准差 $\sigma$:实际中几乎从不已知。如果你知道 $\sigma$,通常也就已经知道 $\mu$ 了。
The fix is to replace $\sigma$ with the sample standard deviation $s$. The result, $\dfrac{s}{\sqrt{n}}$, is the standard error of $\bar{x}$: an estimate, from the sample, of how far $\bar{x}$ typically falls from $\mu$. But $s$ itself changes from sample to sample, and that extra variation means the standardized statistic $\dfrac{\bar{x}-\mu}{s/\sqrt{n}}$ is not exactly normal. It follows a t-distribution (also called the t distribution), which was derived for exactly this situation.
解决办法是用样本标准差 $s$ 代替 $\sigma$。得到的 $\dfrac{s}{\sqrt{n}}$ 叫做 $\bar{x}$ 的标准误(standard error):用样本估计 $\bar{x}$ 通常偏离 $\mu$ 多远。但 $s$ 本身也随样本而变,这一额外的变异使标准化统计量 $\dfrac{\bar{x}-\mu}{s/\sqrt{n}}$ 不再严格服从正态分布,而是服从 t 分布(t-distribution),它正是为这种情形推导出来的。
Standard deviation of $\bar{x}$: $\sigma_{\bar{x}}=\dfrac{\sigma}{\sqrt{n}}$, requires the unknown population standard deviation. Standard error of $\bar{x}$: $s_{\bar{x}}=\dfrac{s}{\sqrt{n}}$, computed from the sample. When the conditions are met, $t=\dfrac{\bar{x}-\mu}{s/\sqrt{n}}$ follows a $t$ distribution with $df=n-1$.
$\bar{x}$ 的标准差:$\sigma_{\bar{x}}=\dfrac{\sigma}{\sqrt{n}}$,需要未知的总体标准差。$\bar{x}$ 的标准误:$s_{\bar{x}}=\dfrac{s}{\sqrt{n}}$,由样本计算。条件满足时,$t=\dfrac{\bar{x}-\mu}{s/\sqrt{n}}$ 服从自由度 $df=n-1$ 的 $t$ 分布。
Degrees of freedom and the shape of the t distribution自由度与 t 分布的形状
A $t$ distribution is a family of curves indexed by its degrees of freedom ($df$). For a one-sample procedure $df=n-1$: the sample standard deviation is computed from $n$ deviations about $\bar{x}$, but those deviations must sum to zero, so only $n-1$ of them are free to vary. Every $t$ curve is bell-shaped, symmetric, and centered at 0, like the standard normal curve. Compared with the normal curve it is wider and flatter in the center and has heavier tails (thicker tails), because an estimated $s$ sometimes comes out too small and produces an extreme $t$ value. The smaller the $df$, the heavier the tails (Figure 7.1).
$t$ 分布是由自由度(degrees of freedom,$df$)标记的一族曲线。单样本程序中 $df=n-1$:样本标准差由 $n$ 个相对 $\bar{x}$ 的离差算出,但这些离差之和必为零,所以只有 $n-1$ 个可以自由变化。每条 $t$ 曲线都是钟形、对称、中心在 0,与标准正态曲线类似。与正态曲线相比,它中心更矮更宽、尾部更重(heavier tails),因为估计出的 $s$ 有时偏小,会产生极端的 $t$ 值。$df$ 越小,尾部越重(图 7.1)。
As $df$ increases, the $t$ distribution approaches the normal distribution: with $df$ near 30 the two are hard to tell apart, and with $df=\infty$ they coincide. That is why a $t$ critical value is always larger than the matching $z^*$, and why the gap shrinks as the sample grows. For a 95% interval, $z^*=1.960$ while $t^*=2.776$ for $df=4$, $2.262$ for $df=9$, $2.064$ for $df=24$, and $1.984$ for $df=99$. The larger $t^*$ is the price of not knowing $\sigma$: wider intervals and less extreme evidence for the same $\bar{x}$.
随着 $df$ 增大,$t$ 分布趋近正态分布(approaches the normal distribution):$df$ 接近 30 时两者已难以区分,$df=\infty$ 时完全重合。因此 $t$ 临界值总比对应的 $z^*$ 大,且样本越大差距越小。对于 95% 的区间,$z^*=1.960$,而 $df=4$ 时 $t^*=2.776$,$df=9$ 时 $2.262$,$df=24$ 时 $2.064$,$df=99$ 时 $1.984$。较大的 $t^*$ 是不知道 $\sigma$ 所付出的代价:区间更宽,同样的 $\bar{x}$ 所给出的证据也更不极端。
When may we use t? Graph and sample size何时可以使用 t?图形与样本量
The $t$ model assumes the sampling distribution of $\bar{x}$ is approximately normal. Two situations guarantee this well enough. If the population is approximately normal, $\bar{x}$ is approximately normal for any $n$. If $n\ge 30$, the Central Limit Theorem makes $\bar{x}$ approximately normal even for a skewed population. If $n<30$ and the shape of the population is unknown, look at a graph of the sample (dotplot, boxplot or histogram): proceed if it shows no strong skewness and no outliers, and stop if it does. With very small samples a graph cannot prove normality, so state what you saw and why it makes the procedure reasonable.
$t$ 模型假定 $\bar{x}$ 的抽样分布近似正态。有两种情形足以保证这一点:若总体近似正态,则任何 $n$ 下 $\bar{x}$ 都近似正态;若 $n\ge 30$,中心极限定理使 $\bar{x}$ 即使在总体偏斜时也近似正态。若 $n<30$ 且总体形状未知,要看样本的图形(点图、箱线图或直方图):没有明显偏斜且没有离群点就可以继续,否则就不要继续。样本很小时,图形无法证明正态性,所以要写出你看到了什么以及为何这使程序合理。
Worked Example 7.1a: standard error and degrees of freedom例题 7.1a:标准误与自由度
A random sample of $n=16$ students has a mean commute time of $\bar{x}=24.5$ minutes with $s=9.2$ minutes. The population standard deviation is not known.
- Standard error: $\dfrac{s}{\sqrt{n}}=\dfrac{9.2}{\sqrt{16}}=\dfrac{9.2}{4}=2.3$ minutes.
- Degrees of freedom: $df=n-1=15$.
- In context: the sample mean commute time typically differs from the true mean commute time of all students in the population by about 2.3 minutes. We cannot write $\sigma/\sqrt{n}$ because $\sigma$ is unknown; this is why the standard error is used.
Why this works: $s$ estimates $\sigma$, and dividing by $\sqrt{n}$ shrinks the spread of the mean as the sample grows.
随机抽取 $n=16$ 名学生,平均通勤时间 $\bar{x}=24.5$ 分钟,$s=9.2$ 分钟。总体标准差未知。
- 标准误:$\dfrac{s}{\sqrt{n}}=\dfrac{9.2}{\sqrt{16}}=\dfrac{9.2}{4}=2.3$ 分钟。
- 自由度:$df=n-1=15$。
- 结合情境:样本平均通勤时间与总体中全体学生的真实平均通勤时间通常相差约 2.3 分钟。因 $\sigma$ 未知,不能写 $\sigma/\sqrt{n}$,所以使用标准误。
为什么可行:$s$ 估计 $\sigma$,除以 $\sqrt{n}$ 反映样本越大均值的波动越小。
Worked Example 7.1b: a t probability is bigger than the normal one例题 7.1b:t 概率比正态概率大
A one-sided test of a mean from a sample of $n=10$ gives $t=2.10$. Find $P(T>2.10)$ and compare it with the normal answer.
- Degrees of freedom: $df=10-1=9$.
- Calculator:
tcdf(2.10,1E99,9)$\approx 0.0326$. - Compare: the normal curve gives $P(Z>2.10)=0.0179$, about half as large.
- Meaning: using $z$ instead of $t$ would make the evidence look nearly twice as strong as it is.
Why this works: the heavier tails of $t_{9}$ put more area beyond 2.10.
对 $n=10$ 的样本做均值的单侧检验,得 $t=2.10$。求 $P(T>2.10)$ 并与正态结果比较。
- 自由度:$df=10-1=9$。
- 计算器:
tcdf(2.10,1E99,9)$\approx 0.0326$。 - 比较:正态曲线给出 $P(Z>2.10)=0.0179$,约小一半。
- 含义:用 $z$ 代替 $t$ 会使证据看起来比实际强近一倍。
为什么可行:$t_{9}$ 的重尾使 2.10 之外的面积更大。
Worked Example 7.1c: is a t procedure reasonable for each sample?例题 7.1c:每个样本是否适合 t 程序?
Three random samples will each be used for a one-sample $t$ interval for a mean. (A) Lengths of $n=14$ trout: the dotplot is roughly symmetric with no outliers, and $s=3.2$ cm. (B) Salaries of $n=12$ graduates: the dotplot is strongly right skewed with one extreme high value. (C) Waiting times of $n=45$ patients: the histogram is right skewed with no extreme outliers. Decide whether a $t$ procedure is reasonable for each; for (A) find the 90% critical value and margin of error. (Illustrative data.)
- (A) Decision. $n=14<30$, but the graph shows no strong skewness and no outliers, so the sampling distribution of $\bar{x}$ is plausibly approximately normal and $t$ is reasonable.
- (A) Critical value. $df=14-1=13$;
invT(0.95,13)$\approx 1.771$, larger than $z^*=1.645$. - (A) Margin of error. $SE=\dfrac{3.2}{\sqrt{14}}\approx 0.855$ cm and $ME\approx 1.771(0.855)\approx 1.515$ cm.
- (B) Decision. $n=12<30$ and the graph shows strong skewness and an extreme value, so we cannot treat $\bar{x}$ as approximately normal. A $t$ interval is not reasonable; do not compute one.
- (C) Decision. The graph is skewed, but $n=45\ge 30$ and there are no extreme outliers, so the Central Limit Theorem makes $\bar{x}$ approximately normal and $t$ with $df=44$ is reasonable.
Why this works: the $t$ model needs $\bar{x}$ to be approximately normal. A large $n$ or a graph without strong skewness or outliers supplies that; a small sample with a strongly skewed graph does not.
三个随机样本都准备用于均值的单样本 $t$ 区间。(A) $n=14$ 条鳟鱼的体长:点图大致对称且无离群点,$s=3.2$ cm。(B) $n=12$ 名毕业生的薪资:点图强烈右偏,且有一个极端高值。(C) $n=45$ 名患者的候诊时间:直方图右偏,但无极端离群点。判断每个样本是否适合 $t$ 程序;对 (A) 求 90% 临界值与误差范围。(示意数据。)
- (A) 判断。$n=14<30$,但图形没有明显偏斜且无离群点,所以 $\bar{x}$ 的抽样分布可能近似正态,使用 $t$ 是合理的。
- (A) 临界值。$df=14-1=13$;
invT(0.95,13)$\approx 1.771$,大于 $z^*=1.645$。 - (A) 误差范围。$SE=\dfrac{3.2}{\sqrt{14}}\approx 0.855$ cm,$ME\approx 1.771(0.855)\approx 1.515$ cm。
- (B) 判断。$n=12<30$,而且图形强烈偏斜并有极端值,所以不能把 $\bar{x}$ 视为近似正态。$t$ 区间不合理,不要计算。
- (C) 判断。图形偏斜,但 $n=45\ge 30$ 且无极端离群点,中心极限定理使 $\bar{x}$ 近似正态,所以使用 $df=44$ 的 $t$ 是合理的。
为什么可行:$t$ 模型要求 $\bar{x}$ 近似正态。样本量 $n$ 大,或图形没有明显偏斜与离群点,可以满足这一要求;小样本加上强烈偏斜的图形则不行。
Write which distribution you use and why: "unknown $\sigma$, so use $t$ with $df=n-1$." When $n<30$ and a graph is not provided, say that you cannot check normality and ask for a graph; when $n\ge 30$, cite the large sample size. Never use $z$ for a mean when only $s$ is given.
写明所用分布及理由:“$\sigma$ 未知,故用 $df=n-1$ 的 $t$。”当 $n<30$ 且没有给出图形时,要说明无法检验正态性;当 $n\ge 30$ 时,引用大样本。只给了 $s$ 时,绝不能对均值使用 $z$。
Saying the $t$ curve has a larger standard deviation than the normal curve is true, but writing "$df=n$" or reading a table row for $n$ instead of $n-1$ gives a $t^*$ that is too small.
说 $t$ 曲线的标准差比正态曲线大是对的,但写成“$df=n$”或在表中取 $n$ 而不是 $n-1$ 所在的行,会得到偏小的 $t^*$。
Why is $z$ not used for a sample mean when only $s$ is known?当只知道 $s$ 时,为什么不对样本均值使用 $z$?
Because $s$ varies from sample to sample, the statistic $\dfrac{\bar{x}-\mu}{s/\sqrt{n}}$ has more spread than a standard normal; it follows a $t$ distribution with $n-1$ degrees of freedom.
因为 $s$ 随样本而变,统计量 $\dfrac{\bar{x}-\mu}{s/\sqrt{n}}$ 的波动比标准正态大;它服从自由度为 $n-1$ 的 $t$ 分布。
A sample of 20 batteries is used for a one-sample $t$ procedure. What are the degrees of freedom, and is $t^*$ for 95% larger or smaller than 1.960?用 20 节电池的样本做单样本 $t$ 程序。自由度是多少?95% 的 $t^*$ 比 1.960 大还是小?
$df=20-1=19$. The critical value $t^*=2.093$ is larger than 1.960 because the $t$ curve has heavier tails.
$df=20-1=19$。临界值 $t^*=2.093$ 比 1.960 大,因为 $t$ 曲线尾部更重。
A sample of $n=12$ has a dotplot with a clear outlier. May a $t$ procedure be used? Explain.$n=12$ 的样本点图中有一个明显离群点。可以用 $t$ 程序吗?说明理由。
No. With $n<30$ the procedure needs a graph with no strong skew and no outliers; an outlier can pull $\bar{x}$ and inflate $s$, and the sample is too small for the Central Limit Theorem to help.
不可以。$n<30$ 时程序要求图形没有明显偏斜和离群点;离群点会拉动 $\bar{x}$ 并增大 $s$,而样本太小,中心极限定理帮不上忙。
Constructing a Confidence Interval for a Population Mean构造总体均值的置信区间
- State and check the conditions for a one-sample $t$ interval: random, 10% condition, Normal or large sample.
- Construct a one-sample $t$ interval by hand and with
TInterval. - Interpret a confidence interval and a confidence level in context.
- Calculate the margin of error and explain how $n$, $s$ and the confidence level affect it.
- Estimate the sample size needed for a target margin of error.
- 陈述并检验单样本 $t$ 区间的条件:随机、10% 条件、正态或大样本。
- 手算并用
TInterval构造单样本 $t$ 区间。 - 结合情境解释置信区间与置信水平。
- 计算误差范围,并说明 $n$、$s$ 与置信水平如何影响它。
- 估计达到目标误差范围所需的样本量。
A one-sample t-interval estimates a population mean $\mu$ from a sample. The interval has the familiar form statistic $\pm$ margin of error, with the standard error in place of $\sigma/\sqrt{n}$:
单样本 t 区间(one-sample t-interval)用样本估计总体均值 $\mu$。区间具有熟悉的形式:统计量 $\pm$ 误差范围,其中用标准误代替 $\sigma/\sqrt{n}$:
$$\bar{x}\pm t^*\dfrac{s}{\sqrt{n}},\qquad df=n-1$$ Here $t^*$ is the critical value (the number of standard errors) that captures the middle $C\%$ of a $t$ distribution with $n-1$ degrees of freedom. The margin of error is $ME=t^*\dfrac{s}{\sqrt{n}}$. On the TI-84: STAT → TESTS → 8:TInterval, then choose Data or Stats.
$$\bar{x}\pm t^*\dfrac{s}{\sqrt{n}},\qquad df=n-1$$ 其中 $t^*$ 是临界值(标准误的个数),它截取自由度为 $n-1$ 的 $t$ 分布中间 $C\%$ 的面积。误差范围为 $ME=t^*\dfrac{s}{\sqrt{n}}$。TI-84 路径:STAT → TESTS → 8:TInterval,再选择 Data 或 Stats。
Conditions条件
Check three conditions, in context, before computing. Random: the data come from a random sample from the population of interest, or from a randomized experiment. 10% condition: when sampling without replacement, $n$ is less than 10% of the population, so observations are close to independent. Normal or large sample: the population is approximately normal, or $n\ge 30$, or (for $n<30$) a graph of the sample shows no strong skewness and no outliers. For small samples, sketch or describe the graph; writing "it is approximately normal" without evidence is not a justification; describe the graph.
计算前要结合情境检验三个条件。随机:数据来自感兴趣总体的随机样本,或来自随机化实验。10% 条件(10% condition):不放回抽样时,$n$ 小于总体的 10%,使各观测近似独立。正态或大样本:总体近似正态(approximately normal),或 $n\ge 30$,或($n<30$ 时)样本图形没有明显偏斜和离群点。小样本要画出或描述图形;没有依据就写“近似正态”不构成理由,要描述图形。
Interpreting the interval and the confidence level解释区间与置信水平
Interpret the interval: "We are 95% confident that the interval from 495.72 g to 501.08 g captures the true mean weight of all bags of rice produced that day." Interpret the level: if we took many random samples of the same size and built a 95% interval from each, about 95% of those intervals would capture the true mean. Do not say that there is a 95% probability that $\mu$ is in this particular interval (once computed it either captures $\mu$ or it does not), and do not say that 95% of the individual bags lie in the interval. The interval estimates a mean, not individual values. Always give the answer in context: name the population, the variable and the units.
解释区间:“我们有 95% 的把握认为,区间 495.72 克至 501.08 克包含当天生产的所有米袋的真实平均重量。”解释水平:如果用同样大小的样本重复抽样很多次,并各自构造 95% 的区间,大约 95% 的区间会包含真实均值。不要说“$\mu$ 落在这个具体区间内的概率是 95%”(区间一旦算出,要么包含 $\mu$,要么不包含),也不要说 95% 的单个米袋落在该区间内。区间估计的是均值,不是单个数值。务必结合情境(in context)作答:写出总体、变量与单位。
Margin of error and sample size误差范围与样本量
The margin of error $t^*\dfrac{s}{\sqrt{n}}$ shrinks when $n$ increases, when $s$ is smaller, or when the confidence level is lowered (a smaller $t^*$). To halve the margin of error you need about four times the sample size, because $n$ sits under a square root. To plan a study, set the target margin of error $ME$ and use a prior estimate of the spread (a pilot sample or earlier study) in place of $s$. Because $t^*$ depends on $n$, planning uses $z^*$ as an approximation: $n\ge\left(\dfrac{z^*\sigma}{ME}\right)^2$, rounded up.
误差范围 $t^*\dfrac{s}{\sqrt{n}}$ 在 $n$ 增大、$s$ 变小或降低置信水平($t^*$ 变小)时缩小。要使误差范围减半,样本量大约要变成四倍,因为 $n$ 在根号下。规划研究时,先设定目标误差范围 $ME$,并用先前估计的离散程度(预试验样本或早期研究)代替 $s$。由于 $t^*$ 依赖于 $n$,规划时用 $z^*$ 作近似:$n\ge\left(\dfrac{z^*\sigma}{ME}\right)^2$,向上取整。
Worked Example 7.2a: a 95% t interval from summary statistics例题 7.2a:由汇总统计量构造 95% t 区间
A packing plant produces thousands of bags of rice per day, each labeled 500 g. A random sample of $n=25$ bags has $\bar{x}=498.4$ g and $s=6.5$ g. A dotplot of the 25 weights is roughly symmetric with no outliers. Construct and interpret a 95% confidence interval for the mean weight $\mu$ of all bags produced that day.
- Parameter: $\mu$ = true mean weight (g) of all bags of rice produced at the plant that day.
- Conditions: random sample (given); $25$ is less than 10% of the thousands of bags; $n<30$ but the dotplot is roughly symmetric with no outliers, so the Normal condition is reasonable.
- Critical value: $df=24$, so $t^*=2.064$ (
invT(0.975,24)). - Standard error: $\dfrac{6.5}{\sqrt{25}}=1.30$; margin of error $2.064(1.30)=2.68$ g.
- Interval: $498.4\pm 2.68$ gives $(495.72,\,501.08)$ g. Calculator:
TInterval,Stats, $\bar{x}=498.4$,Sx$=6.5$, $n=25$,C-Level$0.95$. - In context: we are 95% confident that the interval from 495.72 g to 501.08 g captures the true mean weight of all bags of rice produced at the plant that day.
某包装厂每天生产数千袋大米,每袋标称 500 克。随机抽取 $n=25$ 袋,$\bar{x}=498.4$ 克,$s=6.5$ 克。这 25 个重量的点图大致对称且无离群点。构造并解释当天所有米袋平均重量 $\mu$ 的 95% 置信区间。
- 参数:$\mu$ = 该厂当天生产的全部米袋的真实平均重量(克)。
- 条件:随机样本(已知);$25$ 袋少于数千袋的 10%;$n<30$ 但点图大致对称且无离群点,故正态条件合理。
- 临界值:$df=24$,所以 $t^*=2.064$(
invT(0.975,24))。 - 标准误:$\dfrac{6.5}{\sqrt{25}}=1.30$;误差范围 $2.064(1.30)=2.68$ 克。
- 区间:$498.4\pm 2.68$ 得 $(495.72,\,501.08)$ 克。计算器:
TInterval、Stats、$\bar{x}=498.4$、Sx$=6.5$、$n=25$、C-Level$0.95$。 - 结合情境:我们有 95% 的把握认为,从 495.72 克到 501.08 克的区间包含该厂当天生产的全部米袋的真实平均重量。
Worked Example 7.2b: a 90% t interval from raw data例题 7.2b:由原始数据构造 90% t 区间
A teacher randomly selects $n=12$ students from a very large online course and records the minutes each needs to finish a quiz: 41.2, 38.5, 44.1, 39.8, 42.7, 40.3, 37.9, 43.5, 41.0, 39.2, 42.1, 40.6. A boxplot shows no outliers and no strong skew. Find a 90% confidence interval for the mean completion time $\mu$.
- Statistics: enter the data in
L1;1-Var Statsgives $\bar{x}=40.91$ and $s=1.93$ minutes. - Conditions: random sample; 12 is under 10% of a very large course; the boxplot shows no outliers or strong skew, so a $t$ procedure is reasonable.
- Critical value: $df=11$, $t^*=1.796$ for 90%.
- Margin of error: $1.796\cdot\dfrac{1.93}{\sqrt{12}}\approx 1.00$ minutes.
- Interval: $(39.91,\,41.91)$ minutes (
TIntervalwithData, listL1,C-Level$0.90$). - In context: we are 90% confident that the mean time that all students in this course need to finish the quiz is between 39.91 and 41.91 minutes.
老师从一门很大的在线课程中随机选出 $n=12$ 名学生,记录各自完成测验的分钟数:41.2、38.5、44.1、39.8、42.7、40.3、37.9、43.5、41.0、39.2、42.1、40.6。箱线图无离群点、无明显偏斜。求平均完成时间 $\mu$ 的 90% 置信区间。
- 统计量:把数据输入
L1;1-Var Stats得 $\bar{x}=40.91$,$s=1.93$ 分钟。 - 条件:随机样本;12 人少于很大课程的 10%;箱线图无离群点和明显偏斜,故可用 $t$ 程序。
- 临界值:$df=11$,90% 对应 $t^*=1.796$。
- 误差范围:$1.796\cdot\dfrac{1.93}{\sqrt{12}}\approx 1.00$ 分钟。
- 区间:$(39.91,\,41.91)$ 分钟(
TInterval,选Data,列表L1,C-Level$0.90$)。 - 结合情境:我们有 90% 的把握认为,该课程全体学生完成测验的平均时间在 39.91 与 41.91 分钟之间。
Worked Example 7.2c: how many bags to sample for a margin of error of 1 g例题 7.2c:要使误差范围为 1 克需要抽多少袋
The rice plant wants a 95% interval with margin of error at most 1 g. A pilot sample gave $s=6.5$ g.
- Set up: $n\ge\left(\dfrac{z^*\sigma}{ME}\right)^2$ with $z^*=1.96$, the pilot value $6.5$ in place of $\sigma$, and $ME=1$.
- Compute: $\left(\dfrac{1.96(6.5)}{1}\right)^2=162.3$.
- Round up: $n=163$ bags.
- Check the effect: the sample of 25 gave a margin of error of 2.68 g; shrinking it to 1 g takes about 163 bags, about 6.5 times as many ($163/25$).
Why this works: it is a planning estimate; the final interval will use $t^*$ with the actual $s$ and may differ slightly.
大米厂想要误差范围至多为 1 克的 95% 区间。预试验样本给出 $s=6.5$ 克。
- 设定:$n\ge\left(\dfrac{z^*\sigma}{ME}\right)^2$,取 $z^*=1.96$,用预试验值 $6.5$ 代替 $\sigma$,$ME=1$。
- 计算:$\left(\dfrac{1.96(6.5)}{1}\right)^2=162.3$。
- 向上取整:$n=163$ 袋。
- 核对效果:25 袋的样本给出的误差范围为 2.68 克;缩小到 1 克需要约 163 袋,大约是 6.5 倍($163/25$)。
为什么可行:这是规划用的估计;最终区间会用 $t^*$ 和实际的 $s$,结果可能略有不同。
Synthetic illustrative data. A sleep study records nightly sleep hours for 12 students chosen at random from a school of 500 students: $6.2$, $6.8$, $7.1$, $5.9$, $7.4$, $6.5$, $6.0$, $7.2$, $6.9$, $6.3$, $7.5$, $6.6$. A dotplot of the 12 values shows no strong skew and no outliers. Estimate the mean nightly sleep of all students at this school with 95% confidence.
- Conditions. Random sample; $12\le 0.10(500)=50$; $n<30$, but the dotplot has no strong skew and no outliers, so a $t$ interval is reasonable.
- Enter the data. Press
STAT, choose1:Edit, and type the 12 values intoL1. - Keys. Press
STAT, arrow right toTESTS, and choose8:TInterval. SelectData, setList: L1,Freq: 1andC-Level: .95, highlightCalculate, then pressENTER. - Read the screen. The interval is about $(6.35838,\,7.04162)$, with $\bar{x}=6.7$, $Sx\approx 0.5377$ (the sample standard deviation, not $\sigma$) and $n=12$. Values here are rounded transcriptions of the screen.
- Hand check. $df=11$, so $t^*\approx 2.2010$. $SE=\dfrac{0.5377}{\sqrt{12}}\approx 0.1552$ and $ME\approx 2.2010(0.1552)\approx 0.3416$, so $6.7\pm 0.3416$ gives $(6.358,\,7.042)$ hours.
- Conclude. We are 95% confident that the interval from $6.36$ to $7.04$ hours captures the true mean nightly sleep of all students at this school.
Open the one-sample $t$-interval stepper to see these steps one at a time.
合成教学数据。一项睡眠研究记录了从一所有 500 名学生的学校随机抽取的 12 名学生的每晚睡眠小时数:$6.2$、$6.8$、$7.1$、$5.9$、$7.4$、$6.5$、$6.0$、$7.2$、$6.9$、$6.3$、$7.5$、$6.6$。这 12 个值的点图没有明显偏斜,也没有离群点。以 95% 的置信水平估计该校全体学生每晚睡眠的平均时间。
- 条件。随机样本;$12\le 0.10(500)=50$;$n<30$,但点图没有明显偏斜且无离群点,所以可以使用 $t$ 区间。
- 输入数据。按
STAT,选择1:Edit,把 12 个值输入L1。 - 按键。按
STAT,用右箭头移到TESTS,选择8:TInterval。选Data,设置List: L1、Freq: 1、C-Level: .95,高亮Calculate,再按ENTER。 - 读屏幕。区间约为 $(6.35838,\,7.04162)$,$\bar{x}=6.7$,$Sx\approx 0.5377$(样本标准差,不是 $\sigma$),$n=12$。这里的数值是屏幕内容四舍五入后的转录。
- 手算核对。$df=11$,所以 $t^*\approx 2.2010$。$SE=\dfrac{0.5377}{\sqrt{12}}\approx 0.1552$,$ME\approx 2.2010(0.1552)\approx 0.3416$,所以 $6.7\pm 0.3416$ 得 $(6.358,\,7.042)$ 小时。
- 结论。我们有 95% 的把握认为,从 $6.36$ 到 $7.04$ 小时的区间覆盖了该校全体学生每晚睡眠的真实平均时间。
打开单样本 $t$ 区间逐步演示,可逐步查看这些步骤。
Prompt. An egg farm collects about 4,000 eggs a day. A worker weighs a random sample of 18 eggs from one day's collection. The masses, in grams, are 60.1, 63.4, 58.9, 61.7, 64.2, 59.5, 62.8, 60.6, 63.0, 61.2, 57.8, 62.3, 65.1, 60.9, 61.9, 59.2, 63.7, 62.0. A dotplot of the 18 masses is roughly symmetric with no outliers. (a) Check the conditions for a one-sample $t$ interval. (b) Construct a 95% confidence interval for the mean mass. (c) Interpret the interval in context. (d) A carton label says the mean egg mass is 60 g. What does the interval say about that claim? (Synthetic data.)
| Part | What a complete answer states |
|---|---|
| (a) | Random: the 18 eggs were selected at random. 10%: $18$ is less than 10% of about $4000$ eggs. Normal: $n=18<30$, but the dotplot is roughly symmetric with no outliers, so a $t$ procedure is reasonable. |
| (b) | Let $\mu$ be the true mean mass, in grams, of all eggs collected that day. From the data, $\bar{x}\approx 61.572$ and $s\approx 1.979$. With $df=17$, $t^*=2.110$; $SE=\dfrac{1.979}{\sqrt{18}}\approx 0.4665$; $ME=2.110(0.4665)\approx 0.984$. The interval is $61.572\pm 0.984$, that is $(60.59,\,62.56)$ g. |
| (c) | We are 95% confident that the interval from $60.59$ g to $62.56$ g captures the true mean mass of all eggs collected on this farm that day. |
| (d) | The interval does not contain $60$, and every value in it is above $60$. There is convincing evidence that the true mean mass of the eggs collected that day is greater than the labelled 60 g. |
题目。一家养殖场每天收集约 4,000 枚鸡蛋。工人从某一天收集的鸡蛋中随机称量 18 枚,质量(克)为 60.1、63.4、58.9、61.7、64.2、59.5、62.8、60.6、63.0、61.2、57.8、62.3、65.1、60.9、61.9、59.2、63.7、62.0。这 18 个质量的点图大致对称且无离群点。(a) 检验单样本 $t$ 区间的条件。(b) 构造平均质量的 95% 置信区间。(c) 结合情境解释该区间。(d) 蛋盒标签称平均每枚 60 克。区间对这个说法说明了什么?(合成数据。)
| 部分 | 完整答案要点 |
|---|---|
| (a) | 随机:18 枚鸡蛋是随机抽取的。10%:$18$ 枚少于约 $4000$ 枚鸡蛋的 10%。正态:$n=18<30$,但点图大致对称且无离群点,所以可以使用 $t$ 程序。 |
| (b) | 设 $\mu$ 为当天收集的全部鸡蛋的真实平均质量(克)。由数据得 $\bar{x}\approx 61.572$,$s\approx 1.979$。$df=17$ 时 $t^*=2.110$;$SE=\dfrac{1.979}{\sqrt{18}}\approx 0.4665$;$ME=2.110(0.4665)\approx 0.984$。区间为 $61.572\pm 0.984$,即 $(60.59,\,62.56)$ 克。 |
| (c) | 我们有 95% 的把握认为,从 $60.59$ 克到 $62.56$ 克的区间覆盖了该养殖场当天收集的全部鸡蛋的真实平均质量。 |
| (d) | 区间不含 $60$,且区间内每个值都大于 $60$。有令人信服的证据表明,当天收集的鸡蛋的真实平均质量大于标签上的 60 克。 |
A complete interval answer has four parts: the name of the procedure (one-sample $t$ interval), each condition checked in context (with the graph description when $n<30$), the interval with units, and a sentence starting "We are __% confident that the interval from __ to __ captures the true mean ... of ...". A bare interval copied from the calculator is not a complete answer.
完整的区间作答有四部分:程序名称(单样本 $t$ 区间)、结合情境检验的各条件($n<30$ 时要描述图形)、带单位的区间,以及以“我们有 __% 的把握认为从 __ 到 __ 的区间包含……的真实平均……”开头的句子。只照抄计算器给出的区间不是完整的作答。
- Saying "95% of the data lie in the interval". The interval is for the mean, not for individual values.
- Writing "there is a 95% chance $\mu$ is in the interval" after the interval is computed.
- Skipping the graph check when $n<30$.
- 说“95% 的数据落在区间内”。区间针对的是均值,而不是单个数值。
- 区间算出之后写“$\mu$ 在区间内的概率是 95%”。
- $n<30$ 时省略图形检验。
A 95% interval for a mean is $(12.4,\,15.8)$. What is the sample mean and the margin of error?均值的 95% 区间为 $(12.4,\,15.8)$。样本均值与误差范围各是多少?
$\bar{x}$ is the midpoint: $\dfrac{12.4+15.8}{2}=14.1$. The margin of error is half the width: $\dfrac{15.8-12.4}{2}=1.7$.
$\bar{x}$ 是中点:$\dfrac{12.4+15.8}{2}=14.1$。误差范围是宽度的一半:$\dfrac{15.8-12.4}{2}=1.7$。
Without changing the data, how does the width of the interval change if the confidence level is raised from 90% to 99%? Why?数据不变,把置信水平从 90% 提高到 99%,区间宽度如何变化?为什么?
It becomes wider. A higher level needs a larger $t^*$ to capture the middle 99% of the $t$ distribution, which increases the margin of error.
变宽。更高的水平需要更大的 $t^*$ 才能截取 $t$ 分布中间 99% 的面积,从而增大误差范围。
A sample of $n=40$ has $\bar{x}=18.2$ and $s=5.0$. Find the 95% $t$ interval. (Use $t^*=2.023$ for $df=39$.)$n=40$ 的样本有 $\bar{x}=18.2$、$s=5.0$。求 95% 的 $t$ 区间。($df=39$ 时取 $t^*=2.023$。)
$ME=2.023\cdot\dfrac{5.0}{\sqrt{40}}=2.023(0.7906)\approx 1.60$, so the interval is $18.2\pm 1.60=(16.60,\,19.80)$.
$ME=2.023\cdot\dfrac{5.0}{\sqrt{40}}=2.023(0.7906)\approx 1.60$,所以区间为 $18.2\pm 1.60=(16.60,\,19.80)$。
Justifying a Claim About a Population Mean Based on a Confidence Interval利用置信区间论证关于总体均值的说法
- Use a confidence interval to decide whether a claimed value of a mean is plausible.
- Explain why an interval that contains a value does not prove the value is the mean.
- Justify a claim that a mean is above or below a stated value using an entire interval.
- Connect the confidence level of an interval to the significance level of a two-sided test.
- 用置信区间判断所声称的均值是否合理。
- 解释为什么区间包含某个值并不能证明该值就是均值。
- 用整个区间论证均值高于或低于某个给定值的说法。
- 把区间的置信水平与双侧检验的显著性水平联系起来。
A confidence interval is a set of plausible values for the parameter: values that are consistent with the data. This makes an interval a tool to justify a claim about a population mean. If the claimed value is inside the interval, the interval contains it: the claim is plausible, and the data do not provide convincing evidence against it. If the claimed value lies outside the interval (the interval does not contain it), the value is not plausible at that confidence level, and because the whole interval is on one side of the claim, you can say in which direction the mean seems to differ.
置信区间是参数的一组合理取值(plausible):与数据相容的取值。这使区间成为论证关于总体均值的说法(justify a claim)的工具。若所声称的值在区间内,即区间包含(contains)它:该说法是合理的(consistent with 数据),数据没有提供令人信服的证据来反对它。若所声称的值在区间之外(区间不包含它),则在该置信水平下此值不合理;又因整个区间位于说法的一侧,可以指出均值看来朝哪个方向偏离。
Claim $\mu=\mu_0$. If the interval contains $\mu_0$: $\mu_0$ is plausible; no convincing evidence that $\mu\ne\mu_0$. If the interval does not contain $\mu_0$: convincing evidence that $\mu\ne\mu_0$, and the interval shows the direction. A $C\%$ interval agrees with a two-sided test at significance level $\alpha=1-C/100$ (for example 95% and $\alpha=0.05$).
说法为 $\mu=\mu_0$。若区间包含 $\mu_0$:$\mu_0$ 合理,没有令人信服的证据表明 $\mu\ne\mu_0$。若区间不包含 $\mu_0$:有令人信服的证据表明 $\mu\ne\mu_0$,且区间显示方向。$C\%$ 的区间与显著性水平 $\alpha=1-C/100$ 的双侧检验结论一致(例如 95% 对应 $\alpha=0.05$)。
Notice what an interval cannot do. Containing 500 does not show that 500 is the mean: every value in the interval is also plausible, and a different sample would give a different interval. The only safe conclusion is that the claim is consistent with the data. The match between intervals and tests holds only for two-sided alternatives; a one-sided claim needs a one-sided test or a confidence level adjusted accordingly (a 90% interval corresponds to a one-sided test at $\alpha=0.05$).
注意区间做不到什么。包含 500 并不表明 500 就是均值:区间内的每个值都同样合理,换一个样本会得到不同的区间。唯一稳妥的结论是该说法与数据相容。区间与检验的对应只对双侧备择假设成立;单侧说法需要单侧检验,或相应调整置信水平(90% 的区间对应 $\alpha=0.05$ 的单侧检验)。
Worked Example 7.3a: a rice-bag label claim that is plausible例题 7.3a:合理的米袋标签说法
The label says each bag contains 500 g. From Worked Example 7.2a, the 95% interval for the true mean weight is $(495.72,\,501.08)$ g. Does the interval support or contradict the label claim?
- Compare: $495.72<500<501.08$, so the interval contains 500.
- Conclusion: a true mean of 500 g is plausible; the data are consistent with the claim.
- What is not concluded: the interval does not prove the mean is 500 g, since values such as 497 g and 501 g are plausible too.
- In context: the sample gives no convincing evidence that the mean weight of the bags produced that day differs from the labeled 500 g.
标签称每袋含 500 克。由例题 7.2a,真实平均重量的 95% 区间为 $(495.72,\,501.08)$ 克。该区间支持还是反驳标签说法?
- 比较:$495.72<500<501.08$,所以区间包含 500。
- 结论:真实均值为 500 克是合理的;数据与说法相容。
- 不能得出的结论:区间并不证明均值就是 500 克,因为 497 克、501 克等值也同样合理。
- 结合情境:样本没有提供令人信服的证据表明当天所生产米袋的平均重量不同于标称的 500 克。
Worked Example 7.3b: a battery-life claim contradicted by the interval例题 7.3b:被区间驳斥的电池寿命说法
A manufacturer claims its batteries last a mean of 10 hours. A random sample of $n=30$ batteries from a large shipment has $\bar{x}=9.42$ hours and $s=1.1$ hours, and the sample graph shows no strong skew or outliers (also $n\ge 30$). Use a 95% interval to evaluate the claim.
- Conditions: random sample; 30 is under 10% of a large shipment; $n\ge 30$.
- Interval: $df=29$, $t^*=2.045$, $ME=2.045\cdot\dfrac{1.1}{\sqrt{30}}=0.411$, so $9.42\pm 0.411=(9.01,\,9.83)$ hours.
- Compare: the interval does not contain 10; every plausible value is below 10.
- In context: there is convincing evidence that the true mean life of batteries in this shipment is less than the claimed 10 hours; plausible means run from 9.01 to 9.83 hours.
制造商声称其电池平均寿命为 10 小时。从一大批货中随机抽取 $n=30$ 节电池,$\bar{x}=9.42$ 小时,$s=1.1$ 小时,样本图形无明显偏斜或离群点(且 $n\ge 30$)。用 95% 区间评价该说法。
- 条件:随机样本;30 节少于一大批货的 10%;$n\ge 30$。
- 区间:$df=29$,$t^*=2.045$,$ME=2.045\cdot\dfrac{1.1}{\sqrt{30}}=0.411$,所以 $9.42\pm 0.411=(9.01,\,9.83)$ 小时。
- 比较:区间不包含 10;所有合理取值都低于 10。
- 结合情境:有令人信服的证据表明这批电池的真实平均寿命低于所声称的 10 小时;合理的均值范围是 9.01 至 9.83 小时。
Use the phrases "consistent with" and "plausible" when the interval contains the claimed value, and "convincing evidence that the mean is less than (or greater than) ..." only when the whole interval is on one side of the claimed value. Never write that the interval "proves" the claim.
区间包含所声称的值时,用“与……相容”和“合理”;只有整个区间在所声称的值的一侧时,才写“有令人信服的证据表明均值小于(或大于)……”。绝不要写区间“证明”了某说法。
Concluding "the claim is true" because the interval contains it. An interval can contain many values; each is plausible, none is proven.
因为区间包含声称的值就得出“该说法为真”。区间可以包含许多值,每个都合理,没有一个被证明。
A 99% interval for the mean number of hours of sleep of teenagers in a city is $(6.8,\,7.6)$. A health site says teens average 8 hours. Is the claim plausible?某城市青少年平均睡眠小时数的 99% 区间是 $(6.8,\,7.6)$。某健康网站称青少年平均睡 8 小时。该说法合理吗?
No. The interval does not contain 8, and every value in the interval is below 8. There is convincing evidence that the mean sleep time of teenagers in the city is less than 8 hours.
不合理。区间不包含 8,且区间内每个值都低于 8。有令人信服的证据表明该市青少年的平均睡眠时间少于 8 小时。
A 95% interval for a mean is $(48.2,\,52.9)$. Is a mean of 50 plausible? Does the interval prove the mean is 50?某均值的 95% 区间是 $(48.2,\,52.9)$。均值为 50 合理吗?区间是否证明均值就是 50?
50 is plausible because it is inside the interval. The interval does not prove the mean is 50, since 49 or 52 are equally consistent with the data.
50 在区间内,所以合理。区间并不证明均值是 50,因为 49 或 52 同样与数据相容。
A 95% interval for $\mu$ does not contain the hypothesized value $\mu_0$. At what significance level would a two-sided test of $H_0:\mu=\mu_0$ reject?$\mu$ 的 95% 区间不包含假设值 $\mu_0$。对 $H_0:\mu=\mu_0$ 的双侧检验在什么显著性水平下会拒绝?
At $\alpha=1-0.95=0.05$ (and at any larger $\alpha$), because the 95% interval and the two-sided 0.05 test agree.
在 $\alpha=1-0.95=0.05$(以及任何更大的 $\alpha$)下,因为 95% 区间与双侧 0.05 水平的检验结论一致。
Flashcards闪卡
Select a card to reveal the answer.
点击卡片查看答案。
Unit Quiz单元自测
Choose an answer to see feedback.
选择答案查看反馈。
C. There are only $4$ defective items, which is fewer than 10.
C。次品只有 $4$ 件,少于 10。
C. The level describes the long-run success rate of the method.
C。水平描述的是方法的长期成功率。
B. The margin of error is proportional to $1/\sqrt{n}$, so $n$ must be quadrupled.
B。误差范围与 $1/\sqrt{n}$ 成正比,所以 $n$ 须变为 4 倍。
B. Replacing $\sigma$ with $s$ adds variability, so the standardized mean follows a $t$ distribution.
B。用 $s$ 代替 $\sigma$ 增加了变异,所以标准化的均值服从 $t$ 分布。
C. With $df=19$ the critical value is $2.093$, larger than $z^*$ because of heavier tails.
C。$df=19$ 时临界值为 $2.093$,因尾部更重而大于 $z^*$。
A. $t^*=2.131$ for $df=15$ and $ME=2.131(8/4)=4.26$, giving $(45.74,\,54.26)$. Choice B wrongly uses $z^*=1.96$.
A。$df=15$ 时 $t^*=2.131$,$ME=2.131(8/4)=4.26$,得 $(45.74,\,54.26)$。选项 B 错误地使用了 $z^*=1.96$。
C. The interval is for the population mean; the level describes the method's long-run capture rate.
C。区间针对总体均值;置信水平描述的是该方法长期的覆盖率。
C. With $p^*=0.5$, $n\ge\left(\dfrac{1.960}{0.04}\right)^2(0.25)=600.25$, and sample size is always rounded up, so $n=601$. Choice B rounds down; choice D leaves out the factor $0.25$.
C。取 $p^*=0.5$,$n\ge\left(\dfrac{1.960}{0.04}\right)^2(0.25)=600.25$,样本容量必须向上取整,所以 $n=601$。选项 B 是向下取整;选项 D 漏掉了因子 $0.25$。
D. The interval does not contain $10$ and every value in it is below $10$. An interval gives evidence about the mean, not a proof, and the 95% describes the method, not the batteries.
D。区间不含 $10$,且区间内每个值都低于 $10$。区间给出的是关于均值的证据,而不是证明;95% 描述的是方法,不是电池。
D. $SE=\sqrt{0.58(0.42)/400}\approx 0.0247$ and $ME=1.960(0.0247)\approx 0.0484$. Choice A uses $z^*=1.645$ (a 90% interval), choice B uses $z^*=2.576$ (99%), and choice C leaves out the square root in the standard error.
D。$SE=\sqrt{0.58(0.42)/400}\approx 0.0247$,$ME=1.960(0.0247)\approx 0.0484$。选项 A 用了 $z^*=1.645$(90% 区间),选项 B 用了 $z^*=2.576$(99%),选项 C 在标准误中漏掉了平方根。
B. $\bar{x}=45$ and $ME=5=2.064\,s/5$, so $s\approx 12.11$. For $n=100$, $ME=1.984(12.11/10)\approx 2.40$. The margin is about half as large (not a quarter, as in choice C, because $\sqrt{100/25}=2$), and $t^*$ also falls a little.
B。$\bar{x}=45$,$ME=5=2.064\,s/5$,所以 $s\approx 12.11$。$n=100$ 时,$ME=1.984(12.11/10)\approx 2.40$。误差范围约为原来的一半(不是选项 C 的四分之一,因为 $\sqrt{100/25}=2$),同时 $t^*$ 也略有减小。
A. With $n<30$ a strong skew and an extreme value mean $\bar{x}$ cannot be treated as approximately normal. Choices B and D have $n\ge 30$, and choice C has a graph with no strong skewness and no outliers.
A。$n<30$ 时,强烈偏斜加极端值意味着不能把 $\bar{x}$ 视为近似正态。选项 B 与 D 的 $n\ge 30$,选项 C 的图形没有明显偏斜且无离群点。