Generalized Dirichlet distribution explained

In statistics, the generalized Dirichlet distribution (GD) is a generalization of the Dirichlet distribution with a more general covariance structure and almost twice the number of parameters. Random vectors with a GD distribution are completely neutral.[1]

The density function of

p1,\ldots,pk-1

is
k-1
\left[ \prod
i=1

B(ai,b

-1
i)\right]
bk-1-1
p
k
k-1
\prod
i=1
ai-1
\left[ p
i
bi-1-(ai+bi)
\left(\sum
j\right)

\right]

where we define p_k= 1- \sum_^p_i. Here

B(x,y)

denotes the Beta function. This reduces to the standard Dirichlet distribution if

bi-1=ai+bi

for

2\leqslanti\leqslantk-1

(

b0

is arbitrary).

For example, if k=4, then the density function of

p1,p2,p3

is
3
\left[\prod
i=1

B(ai,b

-1
i)\right]
a1-1
p
1
a2-1
p
2
a3-1
p
3
b3-1
p
4

\left(p2+p3+p

b1-\left(a2+b2\right)
4\right)

\left(p3+p

b2-\left(a3+b3\right)
4\right)

where

p1+p2+p3<1

and

p4=1-p1-p2-p3

.

Connor and Mosimann define the PDF as they did for the following reason. Define random variables

z1,\ldots,zk-1

with

z1=p1,z2=p2/\left(1-p1\right),z3=p3/\left(1-(p1+p2)\right),\ldots,zi=pi/\left(1-\left(p1+ … +pi-1\right)\right)

. Then

p1,\ldots,pk

have the generalized Dirichlet distribution as parametrized above, if the

zi

are independent beta with parameters

ai,bi

,

i=1,\ldots,k-1

.

Alternative form given by Wong

Wong[2] gives the slightly more concise form for

x1+ … +xk\leq1

k
\alphai-1
x\left(1-x1- … -x
\gammai
i\right)
i
B(\alphai,\betai)
\prod
i=1

where

\gammaj=\betaj-\alphaj+1-\betaj+1

for

1\leqj\leqk-1

and

\gammak=\betak-1

. Note that Wong defines a distribution over a

k

dimensional space (implicitly defining x_ = 1 - \sum_^k x_i) while Connor and Mosiman use a

k-1

dimensional space with x_k = 1 - \sum_^ x_i.

General moment function

If

X=\left(X1,\ldots,Xk\right)\simGDk\left(\alpha1,\ldots,\alphak;\beta1,\ldots,\betak\right)

, then
r1
E\left[X
1
r2
X
2

rk
X
k
k \Gamma\left(\alphaj+\betaj\right) \Gamma\left(\alphaj+rj\right) \Gamma\left(\betaj+\deltaj\right)
\Gamma\left(\alphaj\right) \Gamma\left(\betaj\right) \Gamma\left(\alphaj+\betaj+rj+\deltaj\right)
\right]= \prod
j=1

where

\deltaj=rj+1+rj+2+ … +rk

for

j=1,2,,k-1

and

\deltak=0

. Thus
E\left(X
j\right)=\alphaj
\alphaj+\betaj
j-1
\prod
m=1
\betam
\alpham+\betam

.

Reduction to standard Dirichlet distribution

As stated above, if

bi-1=ai+bi

for

2\leqi\leqk

then the distribution reduces to a standard Dirichlet. This condition is different from the usual case, in which setting the additional parameters of the generalized distribution to zero results in the original distribution. However, in the case of the GDD, this results in a very complicated density function.

Bayesian analysis

Suppose

X=\left(X1,\ldots,Xk\right)\simGDk\left(\alpha1,\ldots,\alphak;\beta1,\ldots,\betak\right)

is generalized Dirichlet, and that

Y\midX

is multinomial with

n

trials (here

Y=\left(Y1,\ldots,Yk\right)

). Writing

Yj=yj

for

1\leqj\leqk

and y_=n-\sum_^ky_i the joint posterior of

X|Y

is a generalized Dirichlet distribution with

X\midY\simGDk\left({\alpha'}1,\ldots,{\alpha'}k; {\beta'}1,\ldots,{\beta'}k \right)

where

{\alpha'}j=\alphaj+yj

and

{\beta'}j=\betaj+\sum

k+1
i=j+1

yi

for

1\leqslantj\leqslantk.

Sampling experiment

Wong gives the following system as an example of how the Dirichlet and generalized Dirichlet distributions differ. He posits that a large urn contains balls of

k+1

different colours. The proportion of each colour is unknown. Write

X=(X1,\ldots,Xk)

for the proportion of the balls with colour

j

in the urn.

Experiment 1. Analyst 1 believes that

X\simD(\alpha1,\ldots,\alphak,\alphak+1)

(ie,

X

is Dirichlet with parameters

\alphai

). The analyst then makes

k+1

glass boxes and puts

\alphai

marbles of colour

i

in box

i

(it is assumed that the

\alphai

are integers

\geq1

). Then analyst 1 draws a ball from the urn, observes its colour (say colour

j

) and puts it in box

j

. He can identify the correct box because they are transparent and the colours of the marbles within are visible. The process continues until

n

balls have been drawn. The posterior distribution is then Dirichlet with parameters being the number of marbles in each box.

Experiment 2. Analyst 2 believes that

X

follows a generalized Dirichlet distribution:

X\simGD(\alpha1,\ldots,\alphak;\beta1,\ldots,\betak)

. All parameters are again assumed to be positive integers. The analyst makes

k+1

wooden boxes. The boxes have two areas: one for balls and one for marbles. The balls are coloured but the marbles are not coloured. Then for

j=1,\ldots,k

, he puts

\alphaj

balls of colour

j

, and

\betaj

marbles, in to box

j

. He then puts a ball of colour

k+1

in box

k+1

. The analyst then draws a ball from the urn. Because the boxes are wood, the analyst cannot tell which box to put the ball in (as he could in experiment 1 above); he also has a poor memory and cannot remember which box contains which colour balls. He has to discover which box is the correct one to put the ball in. He does this by opening box 1 and comparing the balls in it to the drawn ball. If the colours differ, the box is the wrong one. The analyst places a marble in box 1 and proceeds to box 2. He repeats the process until the balls in the box match the drawn ball, at which point he places the ball in the box with the other balls of matching colour. The analyst then draws another ball from the urn and repeats until

n

balls are drawn. The posterior is then generalized Dirichlet with parameters

\alpha

being the number of balls, and

\beta

the number of marbles, in each box.

Note that in experiment 2, changing the order of the boxes has a non-trivial effect, unlike experiment 1.

See also

Notes and References

  1. R. J. Connor and J. E. Mosiman 1969. Concepts of independence for proportions with a generalization of the Dirichlet distribution. Journal of the American Statistical Association, volume 64, pp. 194–206
  2. T.-T. Wong 1998. Generalized Dirichlet distribution in Bayesian analysis. Applied Mathematics and Computation, volume 97, pp. 165–181