Premium problem50. How Often One Face Shows

Easy Locked

Roll a fair six-sided die n times and count how often one chosen face comes up. Return (expectation, variance) for that count.

The count is Binomial(n,1/6)\mathrm{Binomial}(n, 1/6), so E=npE = np and Var=np(1−p)\mathrm{Var} = np(1-p).

Input

60

Output

(10.0, 8.333333333333334)

Premium problem

This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.

Implement solve(...)