Introduction aux statistiques en R
Maggie Matsui
Content Developer, DataCamp




Moyenne : 20
Écart-type : 3

Distribution normale standard
Moyenne : 0
Écart-type : 1

Moyenne : 20
Écart-type : 3

Distribution normale standard
Moyenne : 0
Écart-type : 1






Moyenne : 161 cm Écart-type : 7 cm


16 % des femmes interrogées mesurent moins de 154 cm
pnorm(154, mean = 161, sd = 7)
0.159

pnorm(154, mean = 161, sd = 7, 
      lower.tail = FALSE)
0.8413447

pnorm(157, mean = 161, sd = 7) - pnorm(154, mean = 161, sd = 7)

pnorm(157, mean = 161, sd = 7) - pnorm(154, mean = 161, sd = 7)
0.1252

qnorm(0.9, mean = 161, sd = 7)
169.9709

qnorm(0.9,
      mean = 161,
      sd = 7,
      lower.tail = FALSE)
152.03
# Generate 10 random heights
rnorm(10, mean = 161, sd = 7)
159.35 157.34 149.85 156.75 163.53 156.33 157.22 171.44 158.10 170.12
Introduction aux statistiques en R