Speed of Convergence and Error Estimates
More precisely,
with
Stirling's formula is in fact the first approximation to the following series (now called the Stirling series):
Explicit formula for the coefficients in this series was given by G. Nemes. The first graph in this section shows the relative error vs. n, for 1 through all 5 terms listed above.
As n → ∞, the error in the truncated series is asymptotically equal to the first omitted term. This is an example of an asymptotic expansion. It is not a convergent series; for any particular value of n there are only so many terms of the series that improve accuracy, after which point accuracy actually gets worse. This is shown in the next graph, which shows the relative error versus the number of terms in the series, for larger numbers of terms. More precisely, let S(n, t) be the Stirling series to t terms evaluated at n. The graphs show
which, when small, is essentially the relative error.
Writing Stirling's series in the form:
it is known that the error in truncating the series is always of the same sign and at most the same magnitude as the first omitted term.
Read more about this topic: Stirling's Theorem
Famous quotes containing the words speed of, speed, error and/or estimates:
“For myself and my loved ones, I want the heat, which comes at the speed of light. I dont want to have to hang about for the blast, which idles along at the speed of sound.”
—Martin Amis (b. 1949)
“The correct rate of speed in innovating changes in long-standing social customs has not yet been determined by even the most expert of the experts. Personally I am beginning to think there is more danger in lagging than in speeding up cultural change to keep pace with mechanical change.”
—Mary Barnett Gilson (1877?)
“It is the very error of the moon,
She comes more near the earth than she was wont,
And makes men mad.”
—William Shakespeare (15641616)
“And, by the way, who estimates the value of the crop which nature yields in the still wilder fields unimproved by man? The crop of English hay is carefully weighed, the moisture calculated, the silicates and the potash; but in all dells and pond-holes in the woods and pastures and swamps grows a rich and various crop only unreaped by man.”
—Henry David Thoreau (18171862)

