Introduzione alle statistiche in R



Se il numero medio di adozioni a settimana è di 8, qual è $P(\text{# adozioni in una settimana} = 5)$?
dpois(5, lambda = 8)
0.09160366
Se il numero medio di adozioni a settimana è 8, qual è $P(\text{# adozioni in una settimana} \le 5)$?
ppois(5, lambda = 8)
0.1912361
Se il numero medio di adozioni a settimana è 8, qual è $P(\text{# adozioni in una settimana} \gt 5)$?
ppois(5, lambda = 8, lower.tail = FALSE)
0.8087639
If the average number of adoptions per week is 10, what is $P(\text{\# adoptions in a week} \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

Introduzione alle statistiche in R