1. 程式人生 > >R語言學習(四)——泊松分佈

R語言學習(四)——泊松分佈

dpois(x, lambda, log = FALSE)
ppois(q, lambda, lower.tail = TRUE, log.p = FALSE)
qpois(p, lambda, lower.tail = TRUE, log.p = FALSE)
rpois(n, lambda)
lower.tail = FALSE允許在預設情況下獲得更精確的結果,lower.tail = TRUE將返回1

假設檢驗

poisson.test(x, T = 1, r = 1,alternative = c(“two.sided”, “less”, “greater”), conf.level = 0.95)

例:
程式碼