Suppose we have $N$ fixed reals $p_1, p_2, \dots, p_N$ satisfying $p_i\in [0, 0.5]$ and $N$ variables $q_1, q_2, \dots, q_N$ in the range $[0, 0.5]$ such that $$\sum_{i=1}^{N}p_i\log (q_i) + (1-p_i)\log(1-q_i) = D$$ for some constant $D$. I am struggling to find ways to uniformly sample from the space of all possible distributions in $q_1\times q_2\times\dots\times q_N$ satisfying this constraint. I've looked around the internet and have found methods for uniformly sampling from convex polytopes, but haven't found anything about nonlinear constraints in general. Any help or links to relevant literature would be appreciated.
2026-03-29 07:33:44.1774769624
Uniformly sampling with a constraint on a linear combination of logarithms
76 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in PROBABILITY
- How to prove $\lim_{n \rightarrow\infty} e^{-n}\sum_{k=0}^{n}\frac{n^k}{k!} = \frac{1}{2}$?
- Is this a commonly known paradox?
- What's $P(A_1\cap A_2\cap A_3\cap A_4) $?
- Prove or disprove the following inequality
- Another application of the Central Limit Theorem
- Given is $2$ dimensional random variable $(X,Y)$ with table. Determine the correlation between $X$ and $Y$
- A random point $(a,b)$ is uniformly distributed in a unit square $K=[(u,v):0<u<1,0<v<1]$
- proving Kochen-Stone lemma...
- Solution Check. (Probability)
- Interpreting stationary distribution $P_{\infty}(X,V)$ of a random process
Related Questions in INFORMATION-THEORY
- KL divergence between two multivariate Bernoulli distribution
- convexity of mutual information-like function
- Maximizing a mutual information w.r.t. (i.i.d.) variation of the channel.
- Kac Lemma for Ergodic Stationary Process
- Encryption with $|K| = |P| = |C| = 1$ is perfectly secure?
- How to maximise the difference between entropy and expected length of an Huffman code?
- Number of codes with max codeword length over an alphabet
- Aggregating information and bayesian information
- Compactness of the Gaussian random variable distribution as a statistical manifold?
- Information transmitting rate of a noisy discrete channel with Omission/Adding errors
Related Questions in SAMPLING
- Defintion Ideally sampled image
- What is expected value of a sample mean?
- Why does k-fold cross validation generate an MSE estimator that has higher bias, but lower variance then leave-one-out cross-validation?
- Sampling Question
- Limit of chi square distribution.
- Sampling Distribution of Difference of Normal Random Variables
- Sampling Distribution and Chi Squared Random Variables
- Variance of $S^2$ taken from Normal Distribution
- Sample Variance Definition Disparity
- [data generating process]-[sampling from an infinite population]-[i.i.d.]: some clarifications
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
The issue with your case is not that the set is not polytopal: methods like hit and run or rejection sampling are perfectly fine working with any set of full dimension, and are computationally efficient if that set is convex (depending on how its specified to the routines). Instead the problem is that you're sampling from a boundary of the convex set $\{f(q;p) \ge D\}$, which is dimension-deficient (i.e., it's a $N-1$ dimensional submanifold of $\mathbb{R}^N$). This makes vanilla rejection sampling or hit and run fail: e.g., a uniform over the simplex proposal distribution will a.s. never propose a point in the set, and for hit and run, almost all proposal directions are useless and don't lead to any diffusion. Note that this would also be an issue if you were trying to sample from $\{ q: \sum \alpha_i q_i = a\}$.
Nevertheless, given that your set is the boundary of a convex set, there are algorithmic techniques that are viable. One reference I know is Narayanan, Hariharan, and Partha Niyogi. "Sampling hypersurfaces through diffusion. APPROX 2008". There may well be other methods for this, but I guess this should be enough to give you a start into what kind of terms to search for et c. I'll conclude with a quick description of the scheme from this paper.
Here's a description of the scheme: suppose $A$ is a convex set with piecewise smooth boundary, and you have access to a uniform sampler from $A$, and a membership oracle from $A$. In your case $A = [0,0.5]^N \cap \{f(q;p) \ge D\},$ and you can generate an (approximately) uniform sampler via, say, hit and run, and the membership oracle would just evaluate the function and check the level.
Let $\kappa$ be the smallest eigenvalue of $\mathrm{Cov}(X)$ where $X \sim \mathrm{Unif}(A)$, which can be approximated quickly. Then their sampler repeatedly essentially samples $Y = X + \mathcal{N}(0, \sigma^2I),$ where $\sigma^2 \propto \varepsilon^2\kappa/d^2$ and $X \sim \mathrm{Unif}(A)$, until $Y \not\in A,$ and then gives the unique point of $\partial A$ that lies on the line from $X$ to $Y$. Remarkably, this is shown to be $\varepsilon$-accurate in total variation, and to stop in time $O(N^4/\varepsilon).$
There's a small hitch in that instead of a drawing a point uniformly from $A$, you can only do this approximately. This is not a big deal though, because if you can ensure that the distribution of $X$ is $\varepsilon$-close to $\mathrm{Unif}(A),$ then this just increases the error rate of the boundary sample by another $\varepsilon$.