Skip to main content

Stirling Approximation

Exampleโ€‹

b(n,ย 2n,ย p)โ‰ˆ(4pq)ฯ€nb(n, ~2n, ~p) \approx {(4pq) \over \sqrt{\pi n}}

where nn is the number of heads, 2n2n is the number of trials, and pp is the probability of success.

b(n,ย 2n,ย p)=(2nn)pn(1โˆ’p)2nโˆ’nb(n, ~2n, ~p) = {2n \choose n} p^n (1-p)^{2n-n} =(2n)!n!n!pnqn= {(2n)! \over {n!n!}} p^n q^n

By Stirling's approximation,

โ‰ˆ2ฯ€ย 2nย 2n2nย eโˆ’2nย pnย qn2ฯ€nย nnย eโˆ’n\approx {{\sqrt{2\pi ~ 2n} ~ {2n}^{2n} ~ e^{-2n} ~ p^n ~ q^n} \over {\sqrt{2 \pi n} ~ n^n ~ e^{-n}}}

Cleaning up,

=(4pq)ฯ€nย ย ย ย ย ย ย ย ย ย โ– = {(4pq) \over \sqrt{\pi n}} ~~~~~~~~~~ \blacksquare