It is a matter of definition, of course. Mathematica defines DirichletDistribution[{a1, a2, a3, a4}]
to be a 3D distribution, compatible with 3D Lebesgue measure.
The definition you have in mind is
DirichletDistribution2[avec_List] :=
Block[{x, n = Length[avec] - 1},
TransformedDistribution[Append[Array[x, n], 1 - Total[Array[x, n]]],
Distributed[Array[x, n], DirichletDistribution[avec]]]]
That is
In[249]:= DirichletDistribution2[{a, b, c, d}]
Out[249]= TransformedDistribution[{x1, x2, x3, 1 - x1 - x2 - x3},
{x1, x2, 3} ~Distributed~ DirichletDistribution[{a, b, c, d}]]
The marginal distribution then works as you would expect, however the transformed distribution does not recognize the 4-th marginal as a beta distribution out of the box:
In[242]:= Table[
MarginalDistribution[DirichletDistribution2[{a, b, c, d}], k], {k, 4}]
Out[242]= {BetaDistribution[a, b + c + d],
BetaDistribution[b, a + c + d], BetaDistribution[c, a + b + d],
TransformedDistribution[
1 - x1 - x2 - x3, {x1, x2, x3} ~Distributed~
DirichletDistribution[{a, b, c, d}]]}
This can be determined by a method of moments, for example:
In[257]:=
m4moments =
Table[Moment[
TransformedDistribution[
1 - x1 - x2 - x3, {x1, x2, x3} \[Distributed]
DirichletDistribution[{a, b, c, d}]], r], {r, 4}];
In[258]:=
betamoments = Table[Moment[BetaDistribution[alpha, beta], r], {r, 4}];
In[259]:= Solve[
FunctionExpand[m4moments] == FunctionExpand[betamoments], {alpha,
beta}]
Out[259]= {{alpha -> d, beta -> a + b + c}}
MarginalDistribution
function, which I find unsatisfying in this case: I have to manually create the MD for the Kth paramter. $\endgroup$