メインコンテンツへスキップ

Confidence Interval Coverage Binomial

二項分布の平均の信頼区間のカバレッジを示す学習コンポーネント。

オプション

  • intro | (node|string): デフォルトの (インタラクティブな) イントロテキストを上書きします。. Default: none.
  • quartileNotation | boolean: イントロのテキストで四分位表記を使用するかどうかを制御します。. Default: true.
  • sampleStats | boolean: は,標準誤差を計算する際に,標本の比率を使用するか,既知の母集団の成功確率を使用するかを切り替えることができるかどうかを制御する. Default: true.

例としては、以下のようなものがあります。

ライブエディター
結果

Confidence Interval Coverage for Sample Proportion

Now we will switch to asking a Yes/No question about a population. We are interested in estimating the true population proportion of "Yes" answers (for example, what proportion of the population has blue eyes?). We can take a sample of size , find how many observations in our sample are a "Yes" (X), and then estimate the true proportion with . Then . Our confidence interval is then .

For our choice of sample size (n), true proportion , and confidence level, we will simulate different samples from our normal distribution and calculate the corresponding sample proportions and confidence intervals.

Change parameters


0.010.99

Confidence Intervals

12345678910111213141516171819200.20.40.60.81.0

Of the 20 confidence intervals, 20 capture the true proportion (coverage: 1).