Questions tagged [mixture-model]

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.

222 questions
0
votes
2 answers

How to loop through many columns

I have about 88 columns in a pandas dataframe. I'm trying to apply a formula that calculates a single value for each column. How do I switch out the name of each column and then build a new single-row dataframe from the equation? Below is the…
domarom
  • 1
  • 4
0
votes
1 answer

Dot-notation not working with MixtureExpectation?

This is my first post so I apologize for any formatting issues. I'm trying to calculate the expected value of a collection of numbers in Julia, given a probability distribution that is the mixture of two Beta distributions. Using the following code…
0
votes
0 answers

Trying to plot a profile by cluster and output is wrong

I'm trying to make a plot like this: When I attempt with x=variable, y=value, and group=[an identified cluster], I get the following plot. I start with scaled model indicators, which are columns including age, vital signs, laboratory values, and…
kp_phd
  • 1
0
votes
0 answers

My data can be approximated with Normal mixture. How can I find the reasons and explain this behaviour?

I use DeLonge method to compare two ROC AUCS. The result of it is Z-score. Both ROC AUCs obtained from LDA (linear discriminant analysis) from sklearn package. The first one uses eigen solver inside LDA and the second one uses svd solver. The dotted…
0
votes
1 answer

How to create a matrix with for loop using qgcomp() in R

I always use a for loop to create a matrix of linear and logistic regression output, but I am having difficulty doing so with qgcomp(). If anyone has experience or advice, I would greatly appreciate it. I prefer this approach over functions since…
0
votes
0 answers

Fast Gaussian Mixture Information

I am wondering whether there are any libraries (or frankly techniques) for quickly obtaining data about a Gaussian mixture model (and other mixture models). That is to say, given a list of weights, means and standard deviations I'd like to be able…
Sam H
  • 91
  • 1
  • 9
0
votes
0 answers

Is there a library for solving gaussian mixture models in pure scala program?

I want to solve GMM problem in my pure scala program. But I found many entries were all about Apache Spark. In some libraries like Breeze and Smile, or even Github, I couldn't find something that met this requirement. If you know any libraries that…
nick
  • 41
  • 6
0
votes
1 answer

Gaussian Mixture: minvalue must be less than or equal to maxvalue

In my exploratory analysis, I am currently using Gaussian Mixture Model to exclude outliers by plotting the contour plot for each phone model (a total of 4 unique models). I am using these 2 variables (r_max, b_max) to detect whether a point is an…
0
votes
1 answer

Gaussian Mixture Models

I have already seen that the Gaussian Mixture model is found using maximum likelihood estimation. Is there another way to solve it without using maximum likelihood estimation?
0
votes
1 answer

Data is too long Error in R FlexmixNL package

I tried to search this online, but couldn't exactly figure out what my issue was. Here is my code: n = 10000 x1 <- runif(n,0,100) x2 <- runif(n,0,100) y1 <- 10*sin(x1/10) + 10 + rnorm(n, sd = 1) y2 <- x2 * cos(x2) - 2 * rnorm(n, sd = 2) x <- c(x1,…
Semzem
  • 73
  • 9
0
votes
1 answer

Gaussian mixture model - get the contour of given probability value : Matlab

I need to identify the 99% probability contour of a GMM fitted to data. Following this example, I'd like to be able to specify which contours to plot, and the x,y, of them. mu1 = [1 2]; Sigma1 = [2 0; 0 0.5]; mu2 = [-3 -5]; Sigma2 = [1 0;0 1]; X =…
Oliver Amundsen
  • 1,491
  • 2
  • 21
  • 40
0
votes
1 answer

Tensorflow ValueError: Dimensions must be equal: LSTM+MDN

I am trying to make a next-word prediction model with LSTM + Mixture Density Network Based on this implementation(https://www.katnoria.com/mdn/). Input: 300-dimensional word vectors*window size(5) and 21-dimensional array(c) representing topic…
0
votes
0 answers

Negative values in negative log likelihood loss function of mixture density networks

I am trying to implement mixture density networks (MDN), which can learn a mixture Gaussion distribution. I want to use MDN to fit a conditional probability distribution (p(y|x)). The dimensionality of the model input x is (batch_size, 1), y (label)…
0
votes
0 answers

How to assure that the covariance matrices are all positive definite in Pomigranate MultivariateGaussianDistribution

As in the ScikitLearn GaussianMixture model, reg_covar=1e-06 adds Non-negative regularization to the diagonal of covariance, which ensures covariance matrices are positive definite. sklearn.mixture.GaussianMixture(n_components=1, *,…
iforcebd
  • 87
  • 11
0
votes
1 answer

Correct number of samples, based on new mean and variance

I have a set of sample, sampled from a specific gaussian mixture. Then I update the mixture parameters (mean, variance, weights). Now, I want to correct (move) these samples by the new parameters. I don't want to randomly sample from the new…
Dr. Zezo
  • 395
  • 2
  • 17