Computing the Binomial Distribution Function
設 X 為參數是 (n,p)的二項隨機變數. 計算其分布函數


![$\begin{array}{rcl}
P\{X=0\}&=&(0.6)^6 \approx 0.0467 \\ \\
P\{X=1\}&=&\display...
...}{66}P\{X=5\}\approx 0.0041 \qquad\rule[0.02em]{1.0mm}{1.5mm}\\ \\
\end{array}$](img6.gif)
To compute
the program should compute first
and then
use the recursion the compute successively
,
,
and so
on. The computation of

can be accomplished by first taking logrithms to obtain

and then taking