User Tools

Site Tools


binomial_distribution

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
binomial_distribution [2019/11/04 14:43]
hkimscil
binomial_distribution [2019/11/04 14:58] (current)
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}} (\frac{1}{6})^{2} (\frac{5}{6})^{3-2} \\
 +& = & 0.0694
 +\end{eqnarray*}
 +
 +<​code>​
 +> dbinom(2, 3, 1/6)
 +[1] 0.06944444
 +
 +</​code>​
  
  
binomial_distribution.txt · Last modified: 2019/11/04 14:58 by hkimscil