Uniform sampling from general simplex with a twist
Has 1 answer on MathOverflow, none accepted. It may be fully or partly answered there; read them before working on it.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
This is part of a question I had asked elsewhere, and then some of the links redirected me to CS stack exchange.
Given \(0\leq a_1\leq\dots\leq a_D\leq1\) (all strictly positive), I want to draw points uniformly from
$\qquad X =\{(x_1, x_2, ..., x_D) \mid 0 \leq x_D \leq x_{D-1} \leq \dots \leq x_1\ , \sum_{i=1}^D a_i x_i = 1 \} $
How do I achieve this? I would also like to understand how \(x_1\) might be distributed over \([\frac {1} {\sum_i a_i}, \frac {1} {a_1}\)] (a theoretical query).
This question solves it for \(a_i=1\) and without the \(x_i\)'s having a prior order, but I do not see any obvious way to generalize from that answer.
There is a similar question on MO, but without the weights \(a_1,\dots,a_D\).
Edit for possible solution clue:
I think this page from Devroy[1] page 568 is really helpful. To the best of my understanding, it solves my problem except for the part of $x_1 …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.