R 統計學入門
Maggie Matsui
Content Developer, DataCamp



若每週平均領養數為 8,則 $P(\text{\# 一週領養數} = 5)$ 是多少?
dpois(5, lambda = 8)
0.09160366
若每週平均領養數為 8,則 $P(\text{\# 一週領養數} \le 5)$ 是多少?
ppois(5, lambda = 8)
0.1912361
若每週平均領養數為 8,則 $P(\text{\# 一週領養數} \gt 5)$ 是多少?
ppois(5, lambda = 8, lower.tail = FALSE)
0.8087639
若每週平均領養數為 10,則 $P(\text{\# 一週領養數} \gt 5)$ 是多少?
ppois(5, lambda = 10, lower.tail = FALSE)
0.932914
rpois(10, lambda = 8)
13 6 11 7 10 8 7 3 7 6

R 統計學入門