描述统计:平均数是总和除以 n;中位数是排序后数据的中间值(n 为偶数时取中间两个数的平均)。样本标准差 s = √(Σ(x − x̄)²/(n − 1))。z 分数 z = (x − μ)/σ 表示某个值离平均数多少个标准差。
标准化
z = 1.5
标准正态分布表
Φ(1.5) = 0.9332
P = 0.9332
答案
P = 0.9332
5.置信区间
答案: 上限 = 12.01 h
Interval for a difference: estimate ± critical value × standard error. For two independent means with known σ: SE = √(σ₁²/n₁ + σ₂²/n₂) and z. With equal unknown variances: pooled s_p and t with n₁ + n₂ − 2 degrees of freedom. For paired data, work with the differences: d̄ ± t·s_d/√n.
点估计
x̄₁ − x̄₂ = 59 − 54 = 5
标准误
SE = √(7²/30 + 17²/50) = 2.723
误差范围
E = 2.576·2.723 = 7.014
区间
5 ± 7.014 → [−2.014, 12.01]
答案
上限 = 12.01 h
区间包含 0,所以数据没有显示出显著差异。
6.置信区间
答案: n = 146
均值的置信区间:x̄ ± 误差范围。总体 σ 已知时,误差范围为 z·σ/√n;只有样本标准差 s 时,用自由度为 n − 1 的 t:t·s/√n。临界值:z = 1.645(90%)、1.96(95%)、2.576(99%)。要使误差范围不超过 E,需要 n ≥ (z·σ/E)²,并向上取整。
解出 n
n = (1.645·22/3)² = 145.5
向上取整
样本量是整数,向下取整会使误差范围过大。
n = 146
答案
n = 146
7.假设检验与置信区间
答案: t = 2.1
Testing a mean: the test statistic measures how many standard errors the sample mean lies from the value claimed in H₀: z = (x̄ − μ₀)/(σ/√n) when σ is known, t = (x̄ − μ₀)/(s/√n) when it is estimated from the sample. A confidence interval is x̄ ± (critical value)·(standard error).
平均差值的标准误
SE = 6.4/√12 = 1.848
检验统计量
t = 3.88/1.848 = 2.1
答案
t = 2.1
df = 11 时,双侧 5% 的临界值为 2.201;|t| 更小,所以不拒绝 H₀。
8.假设检验与置信区间
答案: L = 42.31
均值检验:检验统计量衡量样本均值离 H₀ 所声称的值有多少个标准误:σ 已知时 z = (x̄ − μ₀)/(σ/√n),由样本估计时 t = (x̄ − μ₀)/(s/√n)。置信区间为 x̄ ±(临界值)·(标准误)。