|
Hi,
I am trying to calculate the third central moment of a gaussian mixture model having 50 components. I want to know whether the following is a correct method to calculate its third central moment.
\int{(x-mu)^3 P(x)dx} = E[(x-mu)^3]
= E[x^3] - 3*mu*E[x^2] - mu^3
Where mu is the resultant mean of the mixture. and \int indicates the integration.
Or,
Should I calculate it as follows:
\int{(x-mu)^3 P(x)dx} = \int{(x-mu)^3 \SUM{1}{50}{w_i N(mu_i, sigma_i)}dx
where \SUM{1}{50}{w_i N(mu_i, sigma_i) indicates summation of the pdf of all the mixture components.
I get different answers with each of them. But I don't see any error with either of these methods. What do you think????
Thanks.
|