← Back to Study Guide← 返回学习指南

Unit 3, topic 3.3第 3 单元,主题 3.3

Confidence interval capture rate置信区间的覆盖率

Draw many random samples from a population with true proportion p, build a one-proportion z-interval from each, and count how many capture p. The confidence level describes the long-run capture rate of the method, not the chance that one finished interval contains p.从真实比例为 p 的总体中反复抽取随机样本,对每个样本构造单比例 z 区间,并统计有多少个区间覆盖 p。置信水平描述的是该方法的长期覆盖率,而不是某一个已算出的区间包含 p 的概率。

Controls控制

Sample size n样本量 n
True proportion p真实比例 p
Confidence level置信水平
Intervals drawn绘制区间数

The same seed and settings always reproduce the same picture. Keyboard: Tab to a button, then press Enter or Space.相同的种子与设置总会得到相同的图形。键盘操作:用 Tab 移到按钮,再按 Enter 或空格。

Results结果

Simulated results next to the exact values (text version of the chart).模拟结果与精确值对照(图表的文字版)。
Quantity量Simulated模拟值Reference参考值

Reading the result如何解读结果

The capture rate in a short run wobbles around the confidence level. Run again with a new sample to see it move. Each finished interval either contains p or it does not; the level describes the method.短期运行中的覆盖率会围绕置信水平上下波动。换一个新样本再运行,观察其变化。每个已算出的区间要么包含 p,要么不包含;置信水平描述的是方法。

Intervals are p-hat plus or minus z* times sqrt(p-hat(1 - p-hat)/n). For small n or p near 0 or 1 the exact long-run rate falls below the nominal level. Synthetic teaching data; no network needed.区间为 p-hat 加减 z* 乘 sqrt(p-hat(1 - p-hat)/n)。当 n 较小或 p 接近 0 或 1 时,精确的长期覆盖率会低于名义水平。 合成教学数据,无需联网。