In statistics, a mixture model is a probabilistic model that is formed by a combination of probabilistic models. For example, the Gaussian mixture model is the weighted sum of Gaussian distributions. Mixture models are mainly used in probabilistic clustering of data and modelling of unknown distributional shapes.
Questions tagged [mixture-model]
222 questions
0
votes
2 answers
What is the correct way to fit a gaussian mixture model to single feature data?
data is a one dimensional array of data.
data = [0.0, 7000.0, 0.0, 7000.0, -400.0, 0.0, 7000.0, -400.0, -7400.0, 7000.0, -400.0, -7000.0, -7000.0, 0.0, 0.0, 0.0, -7000.0, 7000.0, 7000.0, 7000.0, 0.0, -7000.0, 6600.0, -7400.0, -400.0, 6600.0, -400.0,…

Michael Palm
- 337
- 5
- 16
0
votes
0 answers
How to compute such a product of bernoullis in python?
I am trying to compute product of Bernoullis.
It is not a great idea to compute the product by brute force since it may underflow.
What I did is to take the log and then take the exp. But there would be warning when I have np.log(0). So usually how…

jack
- 883
- 2
- 9
- 21
0
votes
1 answer
Randomly selected data matrics and linear mixture in R
My intention is to generate a set of new data from two datasets by different proportions.
Dataset A looks like this
V1 V2 V3
17.73401882 15.57104835 38.38786527
17.46926296 15.51123547 38.15194112
17.7728391 15.57638409…

Gary Hsu
- 113
- 8
0
votes
1 answer
Mixture of Gaussian Python
I am trying to fit a gaussian mixture model to a one dimension array in python. I am using "mixture" from Sklearn library in Python.
My sample array includes 437 samples from a single normal distribution with mean = 70.2 and variance = 11.8 and I…

Sija
- 21
- 1
- 4
0
votes
1 answer
Latent variable with Gaussian mixture model to impute the missing data
I'm currently trying to impute the missing data through Gaussian mixture model.
My reference paper is from here:
http://mlg.eng.cam.ac.uk/zoubin/papers/nips93.pdf
I currently focus on bivariate dataset with 2 Gaussian components.
This is the code to…

Jas
- 21
- 5
0
votes
1 answer
Making progress on MATLAB fitgmdist for Gaussian Mixture models, but still getting error :(
Hello stack overflow fam. I have been trying to figure out how to use this pesty fitgmdist on MATLAB for fitting Gaussian Mixture models. I have made progress, but I am still getting an error when trying to set initial parameters. I get the…

Daniel López
- 13
- 8
0
votes
1 answer
Questions about fitting a normal+lognormal mixture model
I am now working on using a mixture model including two components: normal and lognormal to fit a vector.
I tried using JAGS, here is the code:
model {
for(i in 1:N) {
y[i] <- latent[i,index[i]+1]
index[i] ~dbern(pi)
latent[i,1]~…
0
votes
1 answer
Value for mixture distributions crossing using 'mixdist' in R
I have a plot (below) generated using the package "mixdist" and would like to know the exact value at which the two distributions cross one another rather than just estimating from the plot. I haven't come across this in any of the output…

Noosentin
- 71
- 9
0
votes
0 answers
Latent class analysis in R
I worked latent class analysis in R, and have two questions.
Question1; lca4-6 could analysis, but lca7 could'nt analysis.
lca7<- poLCA(f,LATENT,nclass=7, maxiter = 500, nrep = 100, graphs = TRUE)
summary(lca7$posterior, disits=2)
Error in…

MAKO
- 1
0
votes
0 answers
Fitting a More Complicated Distribution: A Mixture of Two Normals (MATLAB example)
I am following the MATLAB example found here
Is the formula to estimate the startpoint for the variance of a mixture in terms of the mean and variance of each component correct?
sigmaStart = sqrt(var(x) - .25*diff(muStart).^2)
with my data I have…

gabboshow
- 5,359
- 12
- 48
- 98
0
votes
1 answer
Classification using GMM with MATLAB
I'm trying to classify a testset using GMM. I have a trainset (n*4 matrix) with labels {1,2,3}, n means the number of training examples, which have 4 properties. And I also have a testset (m*4) to be classified.
My goal is to have a probability…
0
votes
1 answer
Is there any GMM (gaussian mixture model) background subtraction implementation for pcl (pointcloud)?
I want to know if there is any implementation of GMM (Gaussian Mixture Model) for PCL library?
Actually I have searched but I couldn't find any library or source code!
The main idea is using this GMM technique to detect moving object's point cloud…

hadi saadat
- 13
- 4
0
votes
2 answers
Loopless Gaussian mixture model in Matlab
I have several Gaussian distributions and I want to draw different values from all of them at the same time. Since this is basically what a GMM does, I have looked into Matlab GMM implementation (gmrnd) and I have seen that it performs a simple loop…

Simon
- 5,070
- 5
- 33
- 59
0
votes
0 answers
Mathematica Conditional Expectation using Mixture Distribution
I'm using Mathematica to find a closed-form solution for a conditional expectation. The distribution I am interested in is a mixture of two trivariate normals. In particular, I would like to know the conditional expectation of one random variable…

jackblun
- 1
- 2
0
votes
1 answer
python GMMHMM clarification
I am reading about gaussian mixture hmms and I want to implement one. I am using the hmmlearn package and I know it has been deprecated from scikit-learn. In the documentation it says that in the GMMHMM constructor it requires: "gmms (array of GMM…

notArefill
- 786
- 1
- 11
- 27