How to derive the multivariate normal distribution

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 9K views
jone
Messages
4
Reaction score
0
If the covariance matrix [itex]\mathbf{\Sigma}[/itex] of the multivariate normal distribution is invertible one can derive the density function:

[itex]f(x_1,...,x_n) = f(\mathbf{x}) = \frac{1}{(\sqrt(2\pi))^n\sqrt(\det(\mathbf{\Sigma)}}\exp(-\frac{1}{2}(\mathbf{x}-\mathbf{\mu})^T\mathbf{\Sigma}^{-1}(\mathbf{x}-\mathbf{\mu}))[/itex]

So, how do I derive the above?
 
Physics news on Phys.org
I was on that track before, make use of the CDF and then differentiate back to get the PDF. This is how far I get: Let Y be a standard i.i.d. Gaussian vector. Then use the transformation

[itex] \mathbf{X} = \mathbf{A}\mathbf{Y} + \mathbf{\mu}[/itex]

[itex] P(\mathbf{X} < \mathbf{x}) = P(\mathbf{A}\mathbf{Y} + \mathbf{\mu} < \mathbf{x}) = P(\mathbf{Y} < \mathbf{A}^{-1}(\mathbf{x}-\mathbf{\mu}))[/itex]
Now I differentiate this to get the PDF

[itex] f_{\mathbf{X}}(\mathbf{x}) = f_{\mathbf{Y}}(\mathbf{A}^{-1}\mathbf{x-\mu})\det(\mathbf{A}^{-1}) = f_{\mathbf{Y}}(\mathbf{A}^{-1}\mathbf{x-\mu})\frac{1}{\det(\mathbf{A})} = \frac{1}{(2\pi)^{n/2}\det(A)}\exp\left(\frac{1}{2}(\mathbf{x-\mu})^{T}(\mathbf{AA^T})^{-1}(\mathbf{x-\mu})\right)[/itex]

So [itex]\det(\mathbf{A})}[/itex] pops out in the denominator, instead of [itex]\det(\mathbf{AA^T})}[/itex] it as it should be. Something is wrong in my differentiation here but I can't figure it out.
 
jone said:
So [itex]\det(\mathbf{A})}[/itex] pops out in the denominator, instead of [itex]\det(\mathbf{AA^T})}[/itex] it as it should be. Something is wrong in my differentiation here but I can't figure it out.

Why do you think the denominator should be [itex]\det(\mathbf{AA^T})}[/itex].

That would give you something analogies to the variance while the denominator of the Gaussian function is the standard deviation.

You want:

[itex]\sqrt{|\mathbf{AA^T}|}=\sqrt{|\mathbf{A}|}\sqrt{|\mathbf{A^T}|}=|\mathbf{A}|[/itex]
 
Ok, so now it works out. [itex]\mathbf{\Sigma} = \mathbf{A}\mathbf{A}^T[/itex] is the covariance matrix. Thank you for your help!
 
jone said:
Ok, so now it works out. [itex]\mathbf{\Sigma} = \mathbf{A}\mathbf{A}^T[/itex] is the covariance matrix. Thank you for your help!

exactly! And, your welcome :)