[section] [section] [section]
[chapter] Theorem]Corollary Theorem]Lemma Theorem]Proposition
[chapter] [chapter]
[section]
A more more careful analysis is presented in Feller [] Vol. I. We represent the expression ln(n!/Ön) = ln2+ln3+...+ln(n-1) +1/2 lnn in two different ways as the area of polygonal regions that lie above, or below, the curve y = lnx. First, write it as
1/2(ln1+ln2)+1/2(ln 2+ln3)+1/2(ln3+ln4)+...+ln(n-1) +1/2(ln(n-1)+ lnn) which are trapezoids under the curve y = lnx. This shows that ln(n!/Ön) £ ò1n lnx dx.
Now notice that lnk is the area of a trapezoid bounded by k-1/2 < x < k+1/2 and the tangent line to y = lnx at x = k. Therefore ln2+ln3+...+ln(n-1) > ò3/2n-1/2 lnx dx. Since 1/2lnn > òn-1/2n lnx dx, we get the lower bound in the following inequality.
|
|
Theorem 1 [{BS}] 2.4 nn+1/2e-n £ n! £ 2.8 nn+1/2e-n
| (1) |
| (2) |
Remark: The main advantage of Theorem 1 or (1) over Stirling's formula are explicit error bounds for finite n.
|
| Stirling's approx | relative | lower bound | upper bound | |
| n | n! | Ö{2p}nn+1/2e-n | error | Ö{2p}nn+1/2e-ne[1/( 12n+1)] | Ö{2p}nn+1/2e-ne[1/ 12n] |
|
1 | 1 | 0.9 | 0.078 | 1.0 | 1.0 |
| 2 | 2 | 1.9 | 0.040 | 2.0 | 2.0 |
| 3 | 6 | 5.8 | 0.027 | 6.0 | 6.0 |
| 4 | 24 | 23.5 | 0.021 | 24.0 | 24.0 |
| 5 | 120 | 118.0 | 0.017 | 120.0 | 120.0 |
| 6 | 720 | 710.1 | 0.014 | 719.9 | 720.0 |
| 7 | 5040 | 4980.4 | 0.012 | 5039.3 | 5040.0 |
| 8 | 40320 | 39902.4 | 0.010 | 40315.9 | 40320.2 |
| 9 | 362880 | 359536.9 | 0.009 | 362850.6 | 362881.4 |
| 10 | 3628800 | 3598695.6 | 0.008 | 3628560.1 | 3628810.0 |
| 11 | 39916800 | 39615624.7 | 0.008 | 39914609.1 | 39916882.8 |
| 12 | 479001600 | 475687482.4 | 0.007 | 478979424.2 | 479002364.4 |
| 13 | 6227020800 | 6187239422.4 | 0.006 | 6226774364.5 | 6227028606.8 |
| 14 | 87178291200 | 86661001001.5 | 0.006 | 87175308107.7 | 87178378579.8 |
| 15 | 1307674368000 | 1300430711108.0 | 0.006 | 1307635295008.7 | 1307675431760.2 |
|
|
|
Our first task is to follow the idea indicated by the computer generated data in Lecture and find explicit inequalities for Pr(1/n X > x) when x > p.
Theorem 2 [{LD-Bin}]
Let
Moreover, for all x > p and n > [1/( x-p)]
we have
Similarly, for all x < p and n large enough we have
[{BinRate}]\mathbbI(x) = xln
x
p
+(1-x)ln
1-x
1-p
(3)
[{BinLD1a}]
Pr
(X > nx) £
C
Ön
exp(-n\mathbbI(x)) (4)
[{BinLD1b}]
Pr
(X > nx) ³ c
1
Ön
exp(-n\mathbbI(x)) (5)
c
Ön
exp(-n\mathbbI(x)) £
Pr
(X < nx) £
C
Ön
exp(-n\mathbbI(x))
This implies that \mathbbI(x) is an increasing function for x > p.
Remark: In Lecture (Theorem and Corollary ) we give a simpler proof of another version of bound (4).
To prove the lower bound (5) let k = [xn]. Since n > [1/( x-p)] we have p < x-1/n < k/n £ x. In particular, since \mathbbI(x) is increasing for x > p, we have
| (6) |
| (7) |
Pr(X = k) ³ [2.4/( 2.82)][1/( Ön)][1/( Ö{k/n(1-k/n)})](([p/( k/n)])k/n([(1-p)/( 1-k/n)])1-k/n)n = [2.4/( 2.82)][1/( Ön)][1/( Ö{k/n(1-k/n)})]exp(-n\mathbbI(k/n)) ³ 0.3 [1/( Ön)] [1/( [Ö(x(1-p))])] exp(-n\mathbbI(x)) .
To prove the upper bound, we will show that Pr(X > nx) is up to a multimplicative factor comparable to Pr(X = k+1) for k = [nx]. To see this notice that similarly as in (7) we have
|
Therefore for j ³ 0
|
|
|
Now we proceede similarly as in the proof of the lower bound.
|
|
Theorem 3 yields the following rough asymptotic: Pr(X > nx) \asymp e-n \mathbbI(x) for x > p. Using more advanced methods one can show that Pr(X > nx) » [c(x,p)/( Ön)] exp(-n\mathbbI(x)) as n®¥ which shows that (5) is sharp up to a multiplicative constant.
Example 1
Celatrams is a startup insurance
company that
plans to insure
n = 10,000 computer owners in Cincinnati area against lightning damage to
their computers.
According to the insurance policy, in case of an accident the computer owner
will receives $5,000 regardless of the actual
damage.
If the probability of lightning hitting a computer in Cincinnati area is
about p = 0.001 (Cincinnati is a lightning capital of the U.S.A.),
what yearly premium should they charge in order to have a chance
less than 10-5
of going out of business due to claims exceeding their assets, which consist solely of the
premium collected?
We model the number of claims X as a binomial Bin(n = 104,p = 10-3)
random variable. The equation is
Pr(5000 X > 10000P) » 10-5
To solve this equation we may try normal approximation, rough asymptotic,
Poisson approximation, and compare them with exact answers
(symbolic programs are good at manipulating large integers!).
We expect good accuracy from the Poisson approximation, conservative answer
from rough asymptotic, and perhaps an inaccurate answer from the normal distribution.
In fact, a company that charges a premium of only 11.5
is almost 20 times more likely to fail
(the failure probability is still low:
1.2*10-4). With the premium of $12,
failure probability is still 4 times too large and does not meet ``regulator's specification".
A company that charges $14 premium satisfies ``specifications" but
has failure probability 8 times
smaller than the
the competition that uses optimal (and more competitive)
premium of $13.5.
The following exercises illustrate the concept of rough asymptotic.
Exercise 1 Let pn = 1/n, an = [1/( n2)]. Can we claim that pn-an® 0? Can we claim that pn » an? Can we claim that pn\asymp an?
Exercise 2 Let pn = 2-n, an = 3-n. Can we claim that pn-an® 0? Can we claim that pn » an? Can we claim that pn\asymp an?
Exercise 3 Let pn = 2-n, an = n2-n. Can we claim that pn-an® 0? Can we claim that pn » an? Can we claim that pn\asymp an?
The next exercises illustrate the use of rough expansions for binomial tail probabilities.
Exercise 4
Suppose X is Bin(n,p) with p = 0.5. Determine n such that
Pr(X > 0.7n) = 10-5
Exercise 5 For a binomial X use the approximation Pr(X > k)\asymp exp(-n(\mathbbI(k/n) and formula (3)) to solve the äirline overbooking problem" from Example ; for a sketch of the solution see page .
Answer: For no-show probability of p = 0.2 and an airplane of capacity 300 passengers, the airline can overbook by about B » .... without exceeding the probability of 10-8 for a bumped flight, a requirement that could have been emposed by a regulating agency.
(the exact answer according to Excel is B = 29; but we will not know how accurate this answer is until we try other methods!)
Exercise 6 Show that for x > p we have rough asymptotic Pr( x £ [`X]n £ y)\asymp exp(-n\mathbbI(x)) for all y > x
Exercise 7
Show that if \mathbbI(x) given by (3) then \mathbbI(x) ³ 2 (x-p)2.
Hint: What is \mathbbI¢¢(x)?
Exercise 8 Expand the rate function \mathbbI(x) given by (3) into a power series at x = p.