logo

라플라스 분포 📂확률분포론

라플라스 분포

정의1

μR\mu \in \mathbb{R}b>0b > 0에 대해, 다음과 같은 확률밀도함수를 가지는 연속확률분포 Laplace(μ,b)\operatorname{Laplace}(\mu, b)라플라스 분포Laplace distribution라고 한다.

f(x)=12bexp(xμb) f(x) = \dfrac{1}{2b} \exp \left( -\dfrac{|x - \mu|}{b} \right)

설명

정규분포와의 관계

정규분포와 비슷하게 생겼지만, 제곱이 아니라 절댓값 xμ| x - \mu |가 있어서 뾰족한 모양을 갖는다. 00 근처에서는 라플라스분포가 훨씬 빠르게 감소하며, 00에서 멀면 정규분포가 더 빠르게 감소한다.

지수분포와의 관계

특히 μ=0\mu = 0이고, b=1b = 1인 라플라스 분포에서 x0x \ge 0인 경우에는, 지수 분포 12exp(1)\frac{1}{2} \exp(1)과 같다. x0x \ge 0에서 정의된 지수분포를 xRx \in \mathbb{R}로 확장한 것으로 볼 수 있다. XLaplace(0,b)X \sim \operatorname{Laplace}(0, b)이면, Xexp(b1)|X| \sim \exp(b^{-1})이다.

기초 성질

🔒(25/05/20)적률 생성 함수

라플라스 분포의 적률생성함수는 다음과 같다.

m(t)=11t2b2exp(μt)for t<1b m(t) = \dfrac{1}{1 - t^{2}b^{2}}\exp(\mu t) \qquad \text{for } |t| < \dfrac{1}{b}

🔒(25/05/18)평균과 분산

XLaplace(μ,b)X \sim \operatorname{Laplace}(\mu, b)이면

E(X)=μ E(X) = \mu Var(X)=2b2 \Var(X) = 2b^{2}

🔒(25/05/22)최대우도추정량

랜덤샘플 X:=(X1,,Xn)Laplace(μ,b)\mathbf{X} := \left( X_{1} , \cdots , X_{n} \right) \sim \operatorname{Laplace}(\mu, b)가 주어져 있다고 하자.

(μ,b)(\mu, b)에 대한 최대우도추정량 (μ^,b^)(\hat{\mu}, \hat{b})는 다음과 같다.

μ^=median(x1,,xn) \hat{\mu} = \text{median}(\mathbf{x}_{1}, \cdots, \mathbf{x}_{n})

b^=1nk=1nxkμ \hat{b} = \dfrac{1}{n} \sum\limits_{k=1}^{n} |x_{k} - \mu|

시각화

다음은 라플라스분포의 확률밀도함수를 움짤로 보여주는 줄리아 코드이다.

@time using LaTeXStrings
@time using Distributions
@time using Plots

cd(@__DIR__)

x = -10:0.1:10
B = collect(0.1:0.1:5.0); append!(B, reverse(B))

animation = @animate for b ∈ B
    plot(x, pdf.(Laplace(0, b), x),
     color = :black,
     label = "b = $(round(b, digits = 2))", size = (400,300))
    xlims!(-10,10); ylims!(0,1); title!(L"\mathrm{pdf\,of\,} \operatorname{Laplace}(0, b)")
end
gif(animation, "pdf.gif", fps = 15)

plot(x, pdf.(Laplace(0, 1), x), lw=2, label="Laplace(0, 1)", color=:royalblue, dpi=200)
plot!(x, pdf.(Normal(0, 1), x), lw=2, label="Normal(0, 1)", color=:tomato)

  1. Hogg et al. (2018). Introduction to Mathematical Statistcs(8th Edition): p77 ↩︎