Stirling's Approximation
Introduction
μμμ μΈκΈλ λ κΈμμλ κ°κ° λ€λ₯Έ λ°©λ²μΌλ‘ μ€νΈλ§ κ·Όμ¬λ₯Ό μ λνλ€. νλμ κΈμμλ ν©ν 리μΌμ κ°λ§ ν¨μλ‘ νννκ³ κ°λ§ λΆν¬μ μ±μ§μ μ΄μ©νμ¬ μ€νΈλ§ κ·Όμ¬λ₯Ό μ λνμκ³ , λ€λ₯Έ κΈμμλ ν©ν 리μΌμ μμ°λ‘κ·Έλ₯Ό μ·¨ν ν 리λ§ν©μ μ΄μ©νμ¬ μ€νΈλ§ κ·Όμ¬λ₯Ό μ λν΄λ΄μλ€. λ€μμ κ°κ°μ λ°©λ²μ λν μμΈ μ€λͺ μ΄λ€.
Proof 1 (κ°λ§ ν¨μ μ΄μ©)
λ¨Όμ , μ¦λͺ μ μν΄μ \(n!\) μ κ°λ§ ν¨μ ννμΌλ‘ κ³ μΉλλ‘ νμ.
\[n! = \Gamma(n+1) = \int\nolimits_{0}^{\infty}x^n e^{-x}\mathrm{d}x\]
μ΄λ, νΌμ λΆ ν¨μκ° κ°λ§ λΆν¬λ₯Ό λ°λ₯Έλ€λ κ²μ μ μ μλ€.
\[f(x;k,\theta) = x^{k-1}\frac{e^{-x/\theta}}{\theta^k\Gamma(k)}\space \texttt{for}\space x>0\]
μ΄λ, \(k(>0)\) λ νμλͺ¨μμ΄κ³ , \(\theta(>0)\) λ μ²λλͺ¨μμ΄λ€. λλ€ μμμ΄λ€.
κ°λ§ λΆν¬λ \(n\) μ΄ λ§€μ° ν΄ κ²½μ° μ€μ¬ κ·Ήν μ 리μ μν΄ μ κ· λΆν¬λ‘ κ·Όμ¬λ μ μλ€. κ·Έλ λ€λ©΄ κ·Όμ¬λ₯Ό μν΄μ μ°λ¦¬κ° λ λ€λ£¨κΈ° μ¬μ΄ κΌ΄μΈ μ κ· λΆν¬μ ννλ‘ μμ λ°κΏ 보μ.
νΌμ λΆ ν¨μμ κΌ΄μ λ°κΏλ³΄λ©΄,
\[x^n e^{-x} = e^{n\ln x -x}\]
μ΄μ \(y = x-n\)μΌλ‘ μΉννκ³ μμ μ κ°νλ©΄,
\[n\ln x -x = n\ln(n+y)-n-y\\ \space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space=n\ln\left[n\left(1+\frac{y}{n}\right)\right]-n-y\\ \space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space=n\ln n -n + n\ln\left(1+\frac{y}{n}\right)-y\]
μ΄μ , μ¬κΈ°μ μ κ· λΆν¬μ ννλ₯Ό μ»κΈ° μν΄μ \(\ln\left(1+\frac{y}{n}\right)\) λ₯Ό ν μΌλ¬ μ κ°νμ¬ 2 μ°¨ νκΉμ§ λνλ΄λ©΄,
\[\ln\left(1 + \frac{y}{n}\right) \approx \frac{y}{n} - \frac{1}{2} \left(\frac{y}{n}\right)^2\]
μμ μμ λμ νμ¬ μ΅μ’ μ μΈ νΌμ λΆ ν¨μμ κ·Όμ¬μμ ꡬνλ©΄,
\[x^n e^{-x} \approx n^n e^{-n} e^{-\frac{y^2}{2n}}\]
μ΄λ κ°λ§ λΆν¬λ₯Ό μ κ·λΆν¬μ κ·Όμ¬νμκΈ° λλ¬Έμ, \(y<0\)μΈ μμμ 0μ κ°κΉλ€. λ°λΌμ λͺ¨λ \(y\)μ λνμ¬ μ λΆνλ©΄,
\[n! = \int_0^\infty x^n e^{-x} \,\mathrm{d}x \approx n^n e^{-n} \int_{-\infty}^\infty e^{-\frac{y^2}{2n}} \, \mathrm{d}y = n^n e^{-n} \sqrt{2\pi n}\]
Proof 2 (리λ§ν© μ΄μ©)
ν©ν 리μΌμ λ€μκ³Ό κ°μ΄ λΉμ¨μ μΌλ‘ κ·Όμ¬λλ€.
\[ n! \approx \sqrt{2\pi n} \left(\frac{n}{e}\right)^n \]
κ³§,
\[ \lim_{n \to \infty} \, \frac{n!}{\sqrt{2\pi n} \left(\frac{n}{e}\right)^n} = 1\]
μ¦λͺ μ μμμ κ³±μ ν©μΌλ‘ λ°κΎΈλ κ²μ΄λ€. μ¦ \( \ln \)μ μ¬μ©νλ€.
\[ \ln(n!) = \sum_{k=1}^{n} \ln(k) \]
μ΄λ μ°λ³μ 보면 λ¦¬λ§ μ λΆμ κ·Όμ¬μμ²λΌ 보μΈλ€.
\[ \int_{a}^{b} f(x) dx = \lim_{n \to \infty} \sum_{k=0}^{n} f(a+ \frac{b-a}{n} k) \frac{b-a}{n} \]
μμ \( f(x) = \ln(x) \)μΌλ ꡬκ°μ λΆν κ°κ²©μ λνλ΄λ \( \frac{b-a}{n} \)μ \( 1\)λ‘ λ°κΏ μν©μ λ§λλ‘ κ·Όμ¬νμ.
\[ \int_{a}^{n+a} \ln x dx \approx \sum_{k=0}^{n} \ln(a+ k) \]
\( a=1\) μΈ μν©μμ \( n+1\) μ λ€μ \(n\)μΌλ‘ λ°κΎΌλ€.
\[ \int_{1}^{n} \ln x dx \approx \sum_{k=1}^{n} \ln(k) \]
μ΄ κ·Όμ¬μμ μμ΄λμ΄λ₯Ό μ»λλ€.

Desmosλ₯Ό μ λͺ» μ¨ κ·Έλ¦Όμ΄ μ’ λλ½λ€.
ν΄λΉ κ·Όμ¬λ₯Ό λ°λ‘ μ¬μ©νκΈ°μλ
\[ \ln n - \int_{n-1}^{n} \ln x dx \]
μ μ€μ°¨(μ μ¬κ°ν μ€ λΉ¨κ° κ³‘μ μμ μλ λΆλΆ)μ΄ μ‘°κΈ κ±°μ¬λ¦΄ μ μλ€.
μ΄λ₯Ό λ°©μ§νκΈ° μν΄ \( y= \ln(x+1) \)μ κ·Έλνλ₯Ό νμ©νλ€.
\[ \lim_{x \to \infty} \left( \frac{d^2}{dx^2} \ln x = - \frac{1}{x^2} \right) =0\]
μ΄λ―λ‘ \( y=\ln x \)μ κ·Έλνλ κ²°κ΅ μ§μ μΌλ‘ κ·Όμ¬λλ€.
μ¦, ν° μμ°μ \( n\)μ λν΄ \( \{(x, \, y) \vert \, n \le x \le n+1 \, , \, \ln x \le y \le \ln (n+1) \} \) μ λμ΄λ ννμ¬λ³νμΌλ‘ κ·Όμ¬λλ \( \{(x, \, y) \vert \, n \le x \le n+1 \, , \, \ln x \le y \le \ln (x+1) \} \)μ λμ΄λ₯Ό μ΄λ±λΆνλ€κ³ κ³μ°νλ€.
μ¦, \( \ln n! \)μ \( \int_{1}^{n} \ln x \, dx \) μ \( \int_{1}^{n} \ln (x+1) \, dx \)μ μ°μ νκ· μΌλ‘ κ³μ°νλ€. μ λΆμ κ³μ°νλ©΄
\[ \ln n! \approx \left( n + \frac{1}{2} \right) \ln n -n +a \]
μ΄λ aλ μ΄λ°μ λλλ¬μ§λ μ νμ μΈ μ€μ°¨λ₯Ό λνλΈλ€. νμ¬ μ°λ¦¬λ \( \ln n! \)μ κ·Όμ¬λ₯Ό κ³μ°νκ³ μλ€. λ°λΌμ μ΄μ μ νμ μΈ μ€μ°¨λ \( n! \) μ λΉμ¨μ μ€μ°¨λ₯Ό λ°μμν¨λ€. λΉμ¨ κ·Όμ¬λ₯Ό μν΄μλ μ΄λ₯Ό κ³ λ €ν΄μΌ νλ€.
μΌλ¨ μμ \( n! \) μ λν΄ μ 리νκ³ λ³΄κΈ° μ’κ² λ°κΎΈλ©΄ μμ cμ λν΄
\[ n! \approx c \sqrt{n} \left(\frac{n}{e}\right)^n \]
μ΄λ€.
cμ κ°μ ꡬνκΈ° μν΄μλ ν©ν 리μΌμ΄ λ€μ΄κ° λΉμ¨μ κ·Ήν μμ νμ©νλ©΄ λλ€. μ΄ κΈμμλ Wallis' formulaλ₯Ό μ¬μ©νκ² λ€. μ¦λͺ μ΄ μ΄λ§μ΄λ§νκ² λ€μνλ€.
\[ \prod_{n=1}^{\infty} \frac {(2n) \cdot (2n)}{(2n-1) \cdot (2n+1)} = \frac{\pi}{2} \]
루νΈλ₯Ό μμ°κ³ κ³±νλ κ°μκ° λ¬΄νλλ‘ κ°μ§ μκ³ μΆ©λΆν ν° μν©μ κ°μ νλ©΄
\[ \prod \frac {2n}{\sqrt{(2n-1) \cdot (2n+1)}} \approx \sqrt{\frac{\pi}{2}} \]
μ΄λ 첫 \( (2n-1)\)μ 1μ΄κ³ , λ§μ§λ§ \( (2n+1) \)μ λ°λ‘ μκ°νλ€.
\[ \frac {\prod_{k=1}^{n} (2k)}{\sqrt{2n+1} \prod_{k=1}^{n} (2k-1)} \approx \sqrt{\frac{\pi}{2}} \]
\( \prod_{k=1}^{n} (2k) = 2^n n! \) μ΄κ³ \( \prod_{k=1}^{n} (2k-1) = \frac{(2n)!}{2^n n!} \) μ΄λ―λ‘ \( n! \approx c \sqrt{n} \left(\frac{n}{e}\right)^n \) λ₯Ό λμ νλ©΄,
\[ \frac{c}{2} = \sqrt{\frac{\pi}{2}} \]
μ¦,
\[c = \sqrt{2\pi} \]
λ°λΌμ μ¦λͺ μ΄ μμ±λμλ€.
\[ n! \approx \sqrt{2\pi n} \left(\frac{n}{e}\right)^n \]
Conclusion
μ€νΈλ§ κ·Όμ¬λ 물리μμλ λ§μ΄ μ¬μ©λκ³ λ§μ λΆμΌμμ μ μ©νκ² μ°μ΄λ κ΅μ₯ν μ λͺ ν κ·Όμ¬μ΄λ―λ‘ μ μμλλλ‘ νμ.