Stirling's approximation
Asymptotic formulas and bounds for factorials and log-factorials for large n.
Stirling’s approximation
Stirling’s approximation gives accurate large- estimates for the factorial (factorial function) and related quantities such as binomial and multinomial coefficients.
Core asymptotic form
For integers ,
A common refined statement is
Logarithmic form
Taking logs (natural logarithm),
This form is often numerically stable and is the starting point for entropy-based approximations (see entropy-multinomial-coefficients ).
Explicit error bounds (one standard version)
There are classical two-sided bounds of the form
Equivalently, for ,
Asymptotic series refinement
Stirling’s approximation admits an asymptotic expansion in inverse powers of :
which is useful for high-precision approximations (typically truncated after a few terms).
Typical use cases
- Approximating combinatorial counts such as and multinomial coefficients.
- Converting counts into entropy-like expressions in information theory and large deviations (see method-of-types ).
- Approximating integrals via local quadratic expansions (conceptually similar to laplaces-method ).