21k views

### Generate sample data from Gaussian mixture model [duplicate]

I am given the values for mean, co-variance, initial_weights for a mixture of Gaussian Models. Now how can I generate samples given those: In brief, I need a function like ...
6k views

### Sampling from a multivariate Gaussian mixture model [duplicate]

How can I generate multi-dimensional data from a (estimated) Gaussian mixture pdf? In general, what would be ways to generate multi-dimensional data from a pdf? I read rejection sampling can be used, ...
102 views

### Getting random number from Weighted sum of Normal distribution functions [duplicate]

I've a weighted sum of the 2 Gaussian distribution functions as below. How can I get a random number based on this sum of functions. The number of functions can vary up to 10.
7k views

309 views

### Why the sample method of mixture distribution works?

For example this thread: Generating random variables from a mixture of Normal distributions First choose a distribution according to the weights. Then sample from the chosen distribution. How to ...
259 views

### Generating functional-form PDF from Max Likelihood Estimation

For the purpose of this question, please consider me a stats newbie. I'm working on a (very fun!) research project which involves estimating a pdf of "personal values" -- i.e. how much a certain ...
106 views

### Simulate mixture of betas

Suppose that we have $X_1, ..., X_n$ iid such that $X_i| \theta \sim Ber(\theta)$ and $\theta \sim g(\theta)$ such that $$g(\theta) = 0.6 Beta(2,1) + 0.4 Beta(1,1) = 1.2 \theta + 0.4$$ Doing the ...
118 views

### sample from a distribution raised to a power [closed]

If I know how to simulate the distribution $\pi(\mathbf{x})$, then is there a way to directly generate samples of $(\pi(\mathbf{x}))^\beta$ for some $\beta > 0$ ?(assume that it can be normalised ...
Suppose $u\sim N(0,I_p)$ and $Y|U\sim N(x(t),\sigma_e^2I_m)$, and the marginal distribution of $y$ is $f(y)=\int_u f(y|u)f(u)du$. $x(t)$ is composite function of $u$, basically $x(t)$ is a function of ...
I want to sample from a random variable $Z=\frac{X}{Y}$, where $X$ and $Y$ are mixtures of distributions. I figured out, how to sample from a mixture distribution (e.g. Generating random variables ...