# PDF using two multimodal data sets?

Hi,

I was wondering if anyone would be able to shed light on how I would go about working out the probability density function of a data set with two variables when each data set has more than one mean?

Up until now I've just been using the example:

mu = [10.0160 226.9204]; Sigma = [6.7403 164.6693];
X = [A(:) B(:)];
p = mvnpdf(X, mu, Sigma);

but now I have to perform the same but with one variable that is bimodal and one that is trimodal. Is this possible??

Anytime I try it using the above but just with the mean and std dev as 2x3 matrices I get errors telling me that X and mu must have the same number of columns, if I do it as a 3x2 the error is that X and mu must have the same number of rows. Is there a way round this??

Thanks a lot for any help or suggestions!
Natalie
.

## Relevant Pages

• Re: PDF using two multimodal data sets?
... > I was wondering if anyone would be able to shed light on how I would go about working out the probability density function of a data set with two variables when each data set has more than one mean? ... I'm afraid to say that isn't really what I wanted. ...
(comp.soft-sys.matlab)
• Re: PDF using two multimodal data sets?
... I was wondering if anyone would be able to shed light on how I would go about working out the probability density function of a data set with two variables when each data set has more than one mean? ... p = mvnpdf(X, mu, Sigma); ...
(comp.soft-sys.matlab)
• Re: Probability density function
... is a convenient way of determining where the noise floor is. ... wouldn't think that would be a probability density function. ... Your distribution function is defined as: ... in your data set, then you can create a graph of your ...
(sci.math)
• Re: Fourier Analysis with Time-Dependent Spectrum
... assume the existence of periodic cycles in the data set. ... a cycle duration at random or with intent and test the sigma of that ... probability of being fundamental to the composite data set. ... over multiples of a fundamental frequency. ...
(sci.physics.research)