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
3
votes
1 answer
Ezcontour in Matlab missing contours
I've used the gmdistribution to fit data to a Gaussian mixture model. I wanted to plot a contour plot https://i.stack.imgur.com/d6Pdb.jpg where the contours are obviously missing. For a 1D problem I found fplot, but now I'm stumped.

Piotr Sokol
- 245
- 1
- 13
2
votes
1 answer
mixture copula in R
I want to use mixture copula for reliability analysis, now ,with the help of a friend ,I've already finished it ‘RVMs_fitted’ 。now i want to perform the probability integral transformation (PIT),but the function of RVINEPIT can’t use,because…

HIteWIng
- 33
- 5
2
votes
2 answers
Evaluating Gaussian Mixture model using a score metric?
I have 1D data (on column data). I used Gaussian Mixture Model (GMM) as a density estimation, using this implementation in Python: https://scikit-learn.org/stable/modules/generated/sklearn.mixture.GaussianMixture.html. By relying on AIC/BIC criteron…

MWH
- 353
- 1
- 3
- 18
2
votes
1 answer
PYMC3 Mixture model: help understanding multiple variables model
Let's say I have a dataframe with 4 variable. I want to see if I can generate a posterior of gamma mixtures over all the variables, with the goal to find clusters for each observation. I'm guessing I will need some sort of multivariate gamma…

James Stirling
- 37
- 4
2
votes
1 answer
Specifying number of trials, bootstrap
For an assignment, I am applying mixture modeling with the mixtools package on R. When I try to figure out the optimal amount of components with bootstrap. I get the following error
Error in boot.comp(y, x, N = NULL, max.comp = 2, B = 5, sig = 0.05,…

daantheboss
- 43
- 5
2
votes
1 answer
Fit a binomial mixture in flexmix - what am I doing wrong?
I'm trying to understand flexmix, and specifically what I am doing wrong trying to fit the simplest conceivable binomial mixture model (mixture of two intercept-only models).
set.seed(42)
data=data.frame(class=rbinom(1000,size=1,prob=0.3)) %>% # 30%…

Nicholas Root
- 535
- 3
- 15
2
votes
1 answer
How to vectorize likelihood calculation under multiple parameters?
I am trying to implement a bernoulli mixture and was wondering how to vectorize the calculations correctly without looping.
I have tried various versions of apply but can't get the desired output (dim = c(5,4,2). Should my component parameters be…

amerikashka
- 173
- 1
- 1
- 6
2
votes
1 answer
Parameterizing mixture density network covariances in tensorflow
I'm trying to build an MDN to learn P(y | x) where both y and x have dimension D, with K components with full (non-diagonal) covariances. From the output of the hidden layers of the NN I need to construct the component means, weights and…

jalsing
- 21
- 2
2
votes
0 answers
Hierarchical Mixture Model in Stan
I'm trying to implement a hierarchical mixture model in Stan that describes how performance on a task changes over time. In the model (see code below), there are three lower level parameters that are assumed to be drawn from a mixture of two normals…

Tim
- 69
- 6
2
votes
1 answer
Fitting a mixture of gamma and normal distribution to data in R
I would like to fit a mixture of gamma and normal distribution to my data in R.
The data:
dput(A)
0.0838, 0.081, 0.0816, 0.0838, 0.0824, 0.0871, 0.0899, 0.0938, 0.099, 0.1018, 0.0998, 0.1, 0.0955, 0.0972
Based on the data I believe (by looking at…

Is_PhD
- 21
- 2
2
votes
1 answer
Facenet: Using Ensembles of Face Embedding Sets
The Facenet is a deep learning model for facial recognition. It is trained for extracting features, that is to represent the image by a fixed length vector called embedding. After training, for each given image, we take the output of the second last…

Alireza Akhavan
- 639
- 5
- 9
2
votes
0 answers
General Mixture Model with PyMC3
I am new to PyMC3 and I have been attempting to create a mixture of independent Poisson's using the following code:
import pymc3 as pm
import numpy as np
from pymc3.distributions.continuous import Uniform
from pymc3.distributions.discrete import…

Hugo
- 21
- 2
2
votes
1 answer
Very large log probabilities from sklearn's BayesianGaussianMixture
I've been using python to experiment with sklearn's BayesianGaussianMixture (and with GaussianMixture, which shows the same issue).
I fit the model with a number of items drawn from a distribution, then tested the model with a held out data set…

Dave Challis
- 3,525
- 2
- 37
- 65
2
votes
1 answer
ggplot mixture model R
I have a dataset with numeric values and a categorical variable. The distribution of the numeric variable differs for each category. I want to plot "density plots" for each categorical variable so that they are visually below the entire density…

user3702510
- 23
- 2
2
votes
1 answer
How to fit a finite mixture of Dirichlet distributions
I have a compositional sample and I would like to fit a finite mixture of Dirichlet distributions. To be more precise, consider the following example:
library(gtools)
set.seed(1)
PROB = c(0.25, 0.15, 0.60)
ALPHA = list(
c(1,1,1),
c(2,1,1),
…

marc1s
- 779
- 6
- 24