Roll a fair six-sided die n times and count how often one chosen face comes up. Return (expectation, variance) for that count.
n
(expectation, variance)
The count is Binomial(n,1/6)\mathrm{Binomial}(n, 1/6)Binomial(n,1/6), so E=npE = npE=np and Var=np(1−p)\mathrm{Var} = np(1-p)Var=np(1−p).
Input
60
Output
(10.0, 8.333333333333334)
This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.
solve(...)