MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 56 of 208 Ask a Question
Gaussian mixture model sometimes seems to fit very badly
the cyclist · Jun 13, 2022 · fitgmdist , Statistics and Machine Learning Toolbox , Cluster Analysis , Gaussian Mixture Models

In the following code, I fit a gaussian mixture model (GMM) to some randomly sampled data. I do this twice. Each time, the data represent two well separated gaussians, the only dif…

How dist function works??
Archana Goyal · Jun 11, 2022 · eulidean distance , Define Shallow Neural Network Architectures , AI, Data Science, and Statistics

If w=rand(4,3); p=rand(3,1);   z=dist(w,p)   ans is 0.4278 0.6786 0.3725 0.6324 how these values comes?  …

Log likelihood
Nuchto · Jun 11, 2022 · likelihood , AI, Data Science, and Statistics , Statistics and Machine Learning Toolbox , Half-Nor

Hi!   I was wondering how to compute (which function to use) in Matlab the log likelihood but when the data is not normally distributed.   Thanks!…

Compound Poisson Distribution Model
Yasmin Tamimi · Jun 11, 2022 · probability , random , distribution , AI, Data Science, and Statistics , Statistics and Machine Le

Hey Everyone,   I have the probability density function of a Negative-binomial Distribution (Compound Poisson Distribution) and I would like to generate random numbers based on pr…

how to make a function that generate uniformely distributed random matrix
Muhammad Usman Saleem · Jun 11, 2022 · stack overflow , random number gene...f , or loop , Probability Distributions , Multivariate Dis

Hi every one..   I am going to make a function which takes three input arguments limit,a,b in that order. The function returns an a-by-b matrix of uniformly distributed random int…

Avoiding for loop with anova1
Zach · Jun 11, 2022 · ttest2 , ttest , anova1 , Statistics and Machine Learning Toolbox , ANOVA , Analysis of Variance

I have 2 large 3D matrices, and I've noticed that passing a DIM argument for the ttest2 function decreases the computational time on my computer substantially as opposed to looping…

How to plot a normalised cumulative histogram
Riti Patel · Jun 11, 2022 · cumulative histogram , histogram , AI, Data Science, and Statistics , Statistics and Machine Learnin

I've got a vector of data of length around 5000000. I'm trying to plot a cumulative histogram of this data. I've previously plotted a normalised histogram using the trapz command: …

Generating Poisson Distributions for a Fixed Number of Events
mttxc12 · Jun 9, 2022 · poisson , poissrnd , fixed , events , AI, Data Science, and Statistics , Statistics and Machine Lea

I'm wondering if there's a straight forward way to generate a poisson distribution for a distribution for a fixed number of events. For example, I have a vector of means for a pois…

Applying z-score before scaling to [0,1]?
Sepp · Jun 9, 2022 · z-score , normalization , standardization , statistics , Descriptive Statistics and Visualization ,

Hello   I'm currently using neural network for classification of a dataset. Of course before doing classification either the data points or the features should be normalized. The …

Get a Free Consultation or a Sample Assignment Review!