View on GitHub
memo
Multinomial distribution
Multinomial distribution
N
∈
N
,
given
K
∈
N
,
given
p
i
∈
[
0
,
1
]
,
given
probability
[
0
:
K
]
:=
{
0
,
1
,
…
,
K
}
,
X
1
,
…
,
X
N
∈
[
0
:
K
]
,
r.v.
A
:=
{
(
x
1
,
…
,
x
N
)
∈
[
0
:
K
]
N
∣
∑
i
=
1
N
x
i
=
K
}
.
Mult
(
x
1
,
…
,
x
N
;
p
1
,
…
,
p
N
)
is a p.d.f. of binomial distribution given
p
and
N
defined by
(
x
1
,
…
,
x
N
)
∈
A
,
Mult
(
x
1
,
…
,
x
N
;
p
)
:=
K
!
x
1
!
⋯
x
N
!
p
1
x
1
…
p
N
x
N
.
Reference