Échantillonnez une densité polynomiale
Définissez une loi multivariée de formule avec une fonction polynomiale de densité de probabilité.
In[1]:=

dist = ProbabilityDistribution[ \[FormalX]1 (1 - \[FormalX]1 (1 - \
\[FormalX]2) \[FormalX]2), {\[FormalX]1, 0, 1}, {\[FormalX]2, 0, 1},
Method -> "Normalize"]
Out[1]=

La densité s'intègre à 1 dans le domaine donné.
In[2]:=

Integrate[PDF[dist, {x, y}], {x, 0, 1}, {y, 0, 1}]
Out[2]=

Échantillonnez à partir de la loi et comparez l'histogramme avec la fonction de densité.
Afficher l'entrée complète de Wolfram Language
Out[3]=
