52 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
39
views
Python sklearn Gaussian mixture model does not fit a bimodal distribution very well
I have read around a bit and never asked a question on stackoverflow before.
It seems there is a solution to my problem, but I don't understand the way it is written and computed.
Fit mixture of two ...
1
vote
1
answer
155
views
How to solve for mixed copula weight coefficients using EM algorithm?
In R language, I want to solve the weight coefficients of a multidimensional hybrid copula, it is better to be able to use different copula functions, or for a fixed copula function(clayton,gumbel,...
1
vote
0
answers
295
views
Bootstrapped likelihood ratio test for mixture models in R
I'm using R (MixAll package) to conduct a mixture model analysis that includes continuous and categorical indicators. I want to calculate a bootstrapped likelihood ratio test (BLRT) to compare model ...
1
vote
1
answer
450
views
Sampling from a mixture of two Gamma distributions
My intention was to generate samples from two mixed and heavily right-skewed Gamma distributions using the package called bmixture. Some examples are provided at https://stats.stackexchange.com/...
1
vote
1
answer
449
views
How to construct mixture copula in R
I want to study mixture Copula for reliability analysis.however I can't construct RVINEMatrix ,
Therefore, the probability integral transformation (PIT) cannot be performed、 The copula used in H-...
2
votes
1
answer
83
views
Why `x` is now the mixture of these five gamma distributions from the following R code?
I try to sample from the following mixture models of gamma distribution:
enter image description here
The R code is as follows:
The algorithm can be translated into a vectorized approach.
Step 1: ...
0
votes
0
answers
348
views
How to show the Gaussian mixture models for clustering an image?
I used the attached code to get the GMM for some images. I also want to show the GMM on the histogram of the image. I already did that. However, I also wanna show the GMM clusters distribution. I ...
0
votes
1
answer
313
views
Mixture function in python thermo library
I am trying the thermo library in python and want to calculate composition of 'milk of lime' and water however when I run the code below:
from thermo.chemical import Mixture
mix = Mixture(['water', '...
1
vote
1
answer
724
views
I want to generate WSJ0-kspeakers-mixture. Where and how can I get the WSJ0 dataset?
I'm trying to create the WSJ0 mixtures, but I'm having trouble. I downloaded the create-speaker-mixtures.zip and spatialize_wsj0-mix.zip from https://www.merl.com/demos/deep-clustering. However, the ...
0
votes
1
answer
165
views
Importance Sampling To Create Gaussian Mixture Model in R
How do I implement the following: Create a Gaussian mixture model sampler. In this sampler, a datum has a 40% chance of being sampled from a N(-1,1) distribution, and a 60% chance of being sampled ...
3
votes
0
answers
611
views
Monte Carlo simulations for VAR models
I've been trying to estimate VAR models using Monte Carlo Simulation. I have 3 endogenous variables. I need some guidance regarding this.
First of all, I want to add an outlier as a percentage of the ...
0
votes
1
answer
1k
views
A mixture of beta distribution in R
I was given a function (a mixture of beta distribution):
f(x) = beta(1,6)/3 + beta(3,6)/3 + beta(10,6)/3
My task is to plot the density of f(x).
Here is my code:
par(mfrow=c(1,1))
x <- seq(0,1,0....
0
votes
1
answer
115
views
Is it possible to do Dynamic Call to ggplot stat_function?
This is some snippets of How to draw a ggplot curve over a mixture gaussian model
ggplot(mix_example) + geom_histogram(aes(x = x, y = ..density..)) +
stat_function(geom = "line", fun = ...
1
vote
1
answer
573
views
Estimating parameters of a mixture distribution of 2 normals given quantile values
I have a mixture distribution of two normals with known weights 0.6 and 0.4.
I know the true values of the parameters -in this case the first is a normal with mean = 10030, sd = 2 and the second is ...
1
vote
0
answers
61
views
Constraining parameters with an inequality astropy mixture modelling
I am trying to do a mixture of two Gaussians but I do not know how to make it that the parameters of one Gaussian are greater than the parameters of the other.
# Generate fake data
np.random.seed(42)
...