### Site Tools

binomial_distribution

# Differences

This shows you the differences between two versions of the page.

 binomial_distribution [2019/11/04 15:13]hkimscil binomial_distribution [2019/11/04 15:28] (current)hkimscil Both sides previous revision Previous revision 2019/11/04 15:28 hkimscil 2019/11/04 15:13 hkimscil 2019/11/04 15:01 hkimscil created 2019/11/04 15:28 hkimscil 2019/11/04 15:13 hkimscil 2019/11/04 15:01 hkimscil created 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}} (\frac{1}{6})^{2} (\frac{5}{6})^{3-2} \\ + & = & 0.0694 + \end{eqnarray*} + + <​code>​ + > dbinom(2, 3, 1/6) + [1] 0.06944444 + > +