Stirling's approximation

Approximation for factorials

Nº Q470877 ★★★

Rare · Knowledge

Stirling's approximation

Approximation for factorials

In mathematics, Stirling's approximation (or Stirling's formula) is an asymptotic approximation for factorials. It is a good approximation, leading to accurate results even for small values of n {\displaystyle n} .

Last price

—

Floor price

—

7-day median

—

30-day sales

0

30-day range

—

In circulation

0

Price history

Show table
Datemedian LowHighsales

Sales history

Last sale
—
30-day average
—
30-day low
—
30-day high
—
Sales 7d
0
Sales 30d
0

No sales yet.

Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.

№ Numbered editions · 0 minted Next #1 · Score ×3
From Wikipedia

In mathematics, Stirling's approximation (or Stirling's formula) is an asymptotic approximation for factorials. It is a good approximation, leading to accurate results even for small values of n {\displaystyle n} . It is named after James Stirling, though a related but less precise result was first stated by Abraham de Moivre. One way of stating the approximation involves the logarithm of the factorial: ln ⁡ n ! = n ln ⁡ n − n + O ( ln ⁡ n ) , {\displaystyle \ln n!=n\ln n-n+O(\ln n),} where the big O notation means that, for all sufficiently large values of n {\displaystyle n} , the difference between ln ⁡ n ! {\displaystyle \ln n!} and n ln ⁡ n − n {\displaystyle n\ln n-n} will be at most proportional to the logarithm of n {\displaystyle n} . In computer science applications such as the worst-case lower bound for comparison sorting, it is convenient to instead use the binary logarithm, giving the equivalent form log 2 ⁡ n ! = n log 2 ⁡ n − n log 2 ⁡ e + O ( log 2 ⁡ n ) . {\displaystyle \log _{2}n!=n\log _{2}n-n\log _{2}e+O(\log _{2}n).} The error term in either base can be expressed more precisely as 1 2 log ⁡ ( 2 π n ) + O ( 1 n ) {\displaystyle {\tfrac {1}{2}}\log(2\pi n)+O({\tfrac {1}{n}})} , corresponding to an approximate formula for the factorial itself, n ! ∼ 2 π n ( n e ) n . {\displaystyle n!\sim {\sqrt {2\pi n}}\left({\frac {n}{e}}\right)^{n}.} Here the sign ∼ {\displaystyle \sim } means that the two quantities are asymptotic, that is, their ratio tends to 1 as n {\displaystyle n} tends to infinity.

Text: Wikipédia, CC BY-SA 4.0. · Image: Geek3 (CC BY 3.0) ·

Related cards

Confirmation