Central Limit Theorem on R

MINAKA Nobuhiro — May 22, 2014, 8:39 AM

# ーーーーーー【中心極限定理の可視化】ーーーーーーー
#
#  正規分布・ガンマ分布・一様分布・ベータ分布に
#  対して,乱数抽出の個数を増やし,その標本平均
#  に関する中心極限定理の成立を視覚的に理解する.
# ーーーーーーーーーーーーーーーーーーーーーーーーー

# 教育用デモパッケージ「TeachingDemos」を組み込む

   library(TeachingDemos)

# 中心極限定理デモ関数の実行(データ数:1〜100)
# データ数が増加すると標本平均は漸近的に正規分布

   clt.examp(1)

plot of chunk unnamed-chunk-1

   clt.examp(2)

plot of chunk unnamed-chunk-1

   clt.examp(3)

plot of chunk unnamed-chunk-1

   clt.examp(4)

plot of chunk unnamed-chunk-1

   clt.examp(5)

plot of chunk unnamed-chunk-1

   clt.examp(10)

plot of chunk unnamed-chunk-1

   clt.examp(25)

plot of chunk unnamed-chunk-1

   clt.examp(50)

plot of chunk unnamed-chunk-1

   clt.examp(100)

plot of chunk unnamed-chunk-1