隨機變數乘法後的變異數
在上一題中,你從參數 size = 20、p = 0.1 的二項分配模擬了 X。現在你會用同一組模擬來探討變異數。
本練習屬於課程
R 的機率基礎
練習說明
用這個模擬來估計 X 的變異數。
估計 5 * X 的變異數。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# X is simulated from 100,000 draws of a binomial with size 20 and p = .1
X <- rbinom(100000, 20, .1)
# Estimate the variance of X
# Estimate the variance of 5 * X