Introduction to Statistics in R
Maggie Matsui
Content Developer, DataCamp
$$P(4 \le \text{wait time} \le 7) = ~~ ?$$
$$P(4 \le \text{wait time} \le 7) = ~~ ?$$
$$P(4 \le \text{wait time} \le 7) = 3 \times 1/12 = 3/12$$
$$ P(\text{wait time} \le 7)$$
punif(7, min = 0, max = 12)
0.5833333
$$ P(\text{wait time} \ge 7)$$
punif(7, min = 0, max = 12, lower.tail = FALSE)
0.4166667
$$ P(4 \le \text{wait time} \le 7)$$
$$ P(4 \le \text{wait time} \le 7)$$
$$ P(4 \le \text{wait time} \le 7)$$
punif(7, min = 0, max = 12) - punif(4, min = 0, max = 12)
0.25
$$P(0 \le \text{wait time} \le 12) = ~~ ?$$
$$P(0 \le \text{outcome} \le 12) = 12 \times 1/12 = 1$$
Normal distribution
Poisson distribution
Introduction to Statistics in R