binomial_distribution
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
binomial_distribution [2019/11/04 15:13] – hkimscil | binomial_distribution [2020/11/27 19:37] – hkimscil | ||
---|---|---|---|
Line 18: | Line 18: | ||
\end{eqnarray*} | \end{eqnarray*} | ||
+ | A balanced dice is rolled 3 times. What is probability a 5 comes up exactly twice? | ||
+ | |||
+ | p = 1/6 | ||
+ | n = 3 | ||
+ | x = 2 | ||
+ | |||
+ | \begin{eqnarray*} | ||
+ | P(X=2) & = & {{3} \choose {2}} \left(\frac{1}{6}\right)^{2} \left(\frac{5}{6}\right)^{3-2} \\ | ||
+ | & = & 0.0694 | ||
+ | \end{eqnarray*} | ||
+ | |||
+ | < | ||
+ | > dbinom(2, 3, 1/6) | ||
+ | [1] 0.06944444 | ||
+ | > | ||
+ | </ | ||
binomial_distribution.txt · Last modified: 2020/11/27 19:42 by hkimscil