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
1 answer
Using mixture of Multivariate Normal distributions with Tensorflow-probability.layers
I'm trying to use tensorflow-probability layers to create a mixture of multivariate normal distributions. When I use IndependentNormal layers for this it works fine, but when I use MultivariateNormalTriL layers I run into a problem with the…

simon
- 796
- 1
- 6
- 11
0
votes
1 answer
Binomial distribution with loc parameter in pymc3
I would like to use a Binomial distribution that is shifted by the parameter loc (as in scipy) in a pymc3 model.
E.g.:
with pm.Model() as m1:
prob = pm.Beta('prob',alpha=2,beta=2)
x = pm.Binomial('x',n=20,p=prob,loc=5)
But Binomial does not…

user3820991
- 2,310
- 5
- 23
- 32
0
votes
1 answer
Messy graph when plotting fitted values from flexmix
I am trying to plot 3 regression lines for 3 components in the data estimated via flexmix package.
However, when I try to plot predicted values for the first component, the result is a messy graph with lines connecting to each other.
These are my…

userIT8991
- 47
- 8
0
votes
0 answers
How to perform survival analysis using a mixture distribution
I want to use a mixture of Gamma distribution as a parametric model for survival analysis on censored data using R. In the "flexsurv" package there are different distributions but I couldn't find a Gamma mixture distribution. In that package, it…

KRL
- 195
- 1
- 1
- 5
0
votes
1 answer
Gaussain mixture Model _ Scikit Learn _ How to fit for single D data?
I have started working with GMM in Sklearn library.
I have 1 D data like below
np.random.seed(2)
x = np.concatenate([np.random.normal(0, 2, 2000),
np.random.normal(5, 5, 2000),
np.random.normal(3, 0.5,…

Mari
- 698
- 1
- 8
- 27
0
votes
0 answers
Hierarchical Linear Mixture Model
I have implemented a stan hierarchical model with level 1 within groups to be a linear model and level 2 within subjects Gaussian mixture model. It means the slope obtained from level 1 is used by level model GMM to cluster. When I run the model it…

ADITYA
- 1
- 1
0
votes
0 answers
error for secr.fit when trying to fit a hybrid mixture model 'Error in FUN(X[[i]], ...) : '
I cannot resolve the below error after having already considered the vignettes and a search on forums.
I am undertaking a multi session analysis using the package secr in R (developed by Murray Efford).
When I run this model
fit_age0 <-…

Shannon.b.ltu
- 1
- 1
0
votes
1 answer
'None' gradients in pytorch
I am trying to implement a simple MDN that predicts the parameters of a distribution over a target variable instead of a point value, and then assigns probabilities to discrete bins of the point value. Narrowing down the issue, the code from which…

user2780519
- 93
- 1
- 2
- 8
0
votes
1 answer
JAGS - pow function does not work properly in mixture model with label switching
I am fitting a mixture model to estimate the average of a trait in each of 3 populations.
I have a label switching issue and I am trying to compute the distance between the observed and expected numbers of individuals of each genotype in each…

Nicolas
- 105
- 2
- 9
0
votes
1 answer
Gaussian Mixture Model in MATLAB - Calculation of the Empirical Variance Covariance Matrix
I am having issues in reconciling some basic theoretical results on Gaussian mixtures and the output of the commands gmdistribution, random in Matlab.
Consider a mixture of two independent 3-variate normal distributions with weights 1/2,1/2.
The…

TEX
- 2,249
- 20
- 43
0
votes
1 answer
Using UniformDiscrete and DensityDist for Mixture distribution throws IndexError: axis 1 is out of bounds [-1, 1)
I have the following model in which it uses Jeffrey's prior for Geometric distribution for one of the distributions. I have one of the distributions that is derived from the others and uses that in Mixture distribution. I am getting
IndexError:…

manjula
- 35
- 7
0
votes
1 answer
Equivalent of Matlab's 'fit' for Gaussian mixture models in R?
I have some time series data that looks like this:
x <- c(0.5833, 0.95041, 1.722, 3.1928, 3.941, 5.1202, 6.2125, 5.8828,
4.3406, 5.1353, 3.8468, 4.233, 5.8468, 6.1872, 6.1245, 7.6262,
8.6887, 7.7549, 6.9805, 4.3217, 3.0347, 2.4026, 1.9317, 1.7305,…

dentist_inedible
- 311
- 3
- 7
0
votes
1 answer
CheckNumerics finds Nans in "dense_1/kernel/read:0" after training MDN for a while
I am training a mixture density network and after a while (57 epochs) I get an error about NaN values from tf.add_check_numerics_ops()
The error message is:
dense_1/kernel/read:0 : Tensor had NaN values
[[Node: CheckNumerics_9 =…

Marvin Thielk
- 101
- 2
- 8
0
votes
0 answers
SciKit's BayesianGaussianMixture.predict(...) function returns an int64 datatype which seems wrong
I've trained a BayesianGaussianMixture model on float64 data generated from two np.random.multivariate_normal guassians.
The weights, means, and covariances all match closely to the original distribution. As far as I can tell it got trained…

David Parks
- 30,789
- 47
- 185
- 328
0
votes
0 answers
How to estimate parameter using mixture model from data made by geom_density()
I have the following data frame:
dat <- structure(list(crt = c(0.049, 0.098, 0.06, 0.06, 0.09951, 0.09939,
0.09963, 0.09939, 0.09926, 0.0996, 0.09938, 0.09933, 0.09946,
0.09955, 0.09972, 0.09941, 0.09982, 0.09962, 0.09934, 0.0995,
0.09985,…

pdubois
- 7,640
- 21
- 70
- 99