Poisson 分布の確率密度
この演習では、Poisson 確率変数が 0 になる確率を、シミュレーションと厳密解を与える dpois() 関数の両方で求めます。
この演習はコースの一部です
Rで学ぶ確率の基礎
演習の手順
- 平均が 2 の Poisson 分布から 100,000 回の乱数を生成します。
- このシミュレーションを使って、この Poisson 分布からの標本が 0 になる確率を推定します。
dpois()関数を使って、Poisson(2) 分布で 0 となる厳密な確率を求めます。
実践的なインタラクティブ演習
このサンプルコードを完成させて、この演習に挑戦してみましょう。
# Simulate 100,000 draws from Poisson(2)
poisson_sample <-
# Find the percentage of simulated values that are 0
# Use dpois to find the exact probability that a draw is 0