Dear all,
I would like to plot the contour plots of a Dirichlet distribution with 4 components. It is usually challenging to plot a Dirichlet for more than 3 components, as I need to generate first the mesh over a tetrahedron and then evaluate the density over the 3D mesh. I was wondering if this is something that Wolfram can do more straightforwardly, by mainly plotting the contour plots over the tetrahedron. I tried the following basic change: but this did not render any plot.
Table[Plot3D[
PDF[DirichletDistribution[{\[Alpha]1, 3, 2, 4}], {x, y}], {x, 0,
1}, {y, 0, 1}, PlotRange -> All, MeshFunctions -> {#3 &},
MeshShading -> {None, Red, None, Yellow},
PlotPoints -> 10], {\[Alpha]1, {1, 2, 3}}]