carl
2010-02-12 14:18:13 UTC
In my matlab code I use the mvnpdf function to compute the probability for a
set of samples based on the following covariance matrix (Sigma) and mean
(mu):
mu =
0.9556 0.2994 0.2569
Sigma =
0.0082 0.0052 0.0067
0.0052 0.0171 0.0199
0.0067 0.0199 0.0241
prob = mvnpdf(X , mu, Sigma);
where X is a 1000*3 matrix containing various samples.
If I do:
max(prob)
I get:
197.3913
And if I do:
sum(prob)
I get:
1.2987e+006
I would expect that max(prob) would be 1 (since probabilites lies in the
range [0;1]) and that max(prob) would also be 1 since the integral should
sum to 1.
I assume that me problem is that I mix the term:
probability density function
http://en.wikipedia.org/wiki/Probability_density_function
with the term:
probability distribution
http://en.wikipedia.org/wiki/Discrete_probability_distribution
But maybe someone could give me a hint to better understand the difference?
set of samples based on the following covariance matrix (Sigma) and mean
(mu):
mu =
0.9556 0.2994 0.2569
Sigma =
0.0082 0.0052 0.0067
0.0052 0.0171 0.0199
0.0067 0.0199 0.0241
prob = mvnpdf(X , mu, Sigma);
where X is a 1000*3 matrix containing various samples.
If I do:
max(prob)
I get:
197.3913
And if I do:
sum(prob)
I get:
1.2987e+006
I would expect that max(prob) would be 1 (since probabilites lies in the
range [0;1]) and that max(prob) would also be 1 since the integral should
sum to 1.
I assume that me problem is that I mix the term:
probability density function
http://en.wikipedia.org/wiki/Probability_density_function
with the term:
probability distribution
http://en.wikipedia.org/wiki/Discrete_probability_distribution
But maybe someone could give me a hint to better understand the difference?