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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
binomial_distribution [2019/11/04 15:13] hkimscilbinomial_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*}
 +
 +<code>
 +> dbinom(2, 3, 1/6)
 +[1] 0.06944444
 +
 +</code>
  
  
binomial_distribution.txt · Last modified: 2020/11/27 19:42 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki