5-7. Beta Distribution (*)

1. What is a Beta Distribution?

A Beta distribution is a type of probability distribution. This distribution represents a family of probabilities and is a versatile way to represent outcomes for percentages or proportions.

For example, how likely is it that Kanye West will win the next Presidential election? You might think the probability is 0.2. Your friend might think it’s 0.15. The beta distribution gives you a way to describe this.

One reason that this function is confusing is there are three “Betas” to contend with, and they all have different meanings:

  • Beta(α,β)Beta(α, β) : the name of the probability distribution.

  • B(α,β)B(α, β ) : the name of a function in the denominator of the pdf. This acts as a “normalizing constant” to ensure that the area under the curve of the pdf equals 1.

  • ββ : the name of the second shape parameter in the pdf.

The basic beta distribution is also called the beta distribution of the first kind. Beta distribution of the second kind is another name for the beta prime distribution.

베타분포는 두 개의 모수 ααββ 에 따라 [0,1][0, 1] 구간에서 다양한 분포형태를 갖는 분포로서, 베이지안 분석에서 어떤 사상의 발생확률 pp 의 사전분포로 많이 사용된다.

베타분포의 확률밀도함수는 다음과 같은 형태를 갖는다.

f(x)=cxα1(1x)β1,f(x) = c x^{\alpha-1}(1-x)^{\beta-1}, 0x1;0 \le x \le 1; α,β>0.\alpha, \beta >0.

위의 식이 확률분포를 만족하려면 0과 1 사이의 적분 값이 1이 되어야 하는데, 즉,

01f(x)dx=01cxα1(1x)β1dx=1\int _{0}^{1} f(x) dx = \int_{0}^{1} c x^{\alpha-1}(1-x)^{\beta-1} dx = 1 ,

다음과 같이 정의된 베타함수를 사용하면 계수 cc베타함수의 역수가 된다.

B(α,β)01xα1(1x)β1dx=Γ(α)Γ(β)Γ(α+β)B(\alpha ,\beta ) \equiv \int_{0}^{1}x^{\alpha -1}(1-x)^{\beta-1 }dx = \frac {\Gamma (\alpha )\Gamma (\beta )}{\Gamma (\alpha + \beta )}

베타분포는 다음과 같은 확률밀도함수를 갖는 확률분포이다.

f(x)=1B(α,β)xα1(1x)β1,f(x) = \frac{1}{B(\alpha ,\beta )} x^{\alpha-1}(1-x)^{\beta-1}, 0x1;0 \le x \le 1; α,β>0.\alpha, \beta >0.

베타분포의 기대값과 분산은 다음과 같이 계산된다.

E(X)=αα+β,E(X) = \frac {\alpha}{\alpha + \beta}, Var(X)=αβ(α+β)2(α+β+1)Var(X) = \frac { \alpha \beta } {(\alpha + \beta)^2 (\alpha + \beta+1) } .

만약 α=β=1\alpha = \beta =1 이면, f(x)=1f(x) =1 이므로 uniform distribution이 된다. 그리고, E(X)=1/2,E(X) = 1/2, Var(X)=1/12 Var(X) = 1/12 이 되는 것을 확인할 수 있다.

EXAMPLE 35. (α,β)=(0.5,0.5),(5,5),(2,5),(5,2)(\alpha, \beta) = (0.5, 0.5), (5, 5), (2, 5), (5,2) 인 베타분포의 확률밀도함수와 누적분포함수 그래프를 작성하시오.

library(Rstat)

# Parameter
alp <- c(0.5, 5, 2, 5)
bet <- c(0.5, 5, 5, 2)

# location of parameter on the plot
x1 <- (alp - 1)/(alp + bet - 2)
x2 <- c(0.3, 0.7, 0.5, 0.5)

# cont.mpdf()
cont.mpdf("beta", 0, 1, para=alp, para2=bet, ymax=3, xp1=x1, xp2=x2)

Last updated