The concept of postive definite(PD) has puzzled me when I first saw it. It’s intuitive to think about the positive number, e.g. +5. But what does it mean by saying a matrix is positive? And you can see a lot of positive definite or positive semi-definite(PSD) as the requirement for some mathematical tools. In this article, I will try to summarize my knowledge regarding the PD.

Definition

First, let’s define what is positive definite. In linear algebra, a symmetric real matrix is said to be positve definite if is postive for every non-zero vector . It’s PSD if can be zero. What does the definition tell us? It can be really helpful to understand the concept if we discuss it int the context of applications.

Quadratic real function

I guess everyone should be familiar with quadratic real function, which can be expressed as

The above is just a vectorized form of quadratic function. We can generalize it to any dimensional function. Lots of real applications can be modeled using quadratic function. Often the goal is to maximize the function to get the maximal profit/gain. When we apply the gradient descent method, the second derivative ( Hessian) tells about the convexity or concavity.

Here is the Hessian matrix for the function . If we let be a PD matrix, we would know that the function is convex is the local region. With the property, we could search the local minimum using the gradient method.

Covariance matrix

First, let us have a quick review about the definition of covariance. It’s defined as

It’s straightforward to derive that

PSD is the important property for the covariance. Every positive PSD matrix is the covariance matrix of some multivariate distribution.

Conditional variance

Conditional probability or posterior distribution is often used in Bayesian prediciton application. For general distribution, it’s not that trival to work out the posterior distribution. To get the close-form expression, we usually require conjugate pair. For example, the following table shows some common used conjugate distributions.

likelihood prior
Normal Normal
Multinomial Dirichlet

Let us dive into multivariate normal distribution. Nowadays, big data application is very popular. With the big data, actually Gaussian distribution can be more useful if you remember law of large numbers. The multivariate Gaussian distribution is defined as

here and .

Imaging that is the data we observed and is data we would like to predict, we assume that the likelihood is a multivariate Gaussian distribution as above and is another multivariate Gaussian distribution. With the conjugate property, we know that posterior distribution would also follow multivariate Gaussian distribution. The question is how to derive the expression for that posterior distribution. The trick is called Completing the square. I found one tutorial very useful Completing the square. According to Bayesian rule, we have that

To simple the derivation, we use the precision matrix instead of covariance matrix, which is

Let us forget about the constant part but only focus on the exponential part, so we have that

Where

We need one more tool to get the expression for conditional probability, which is matrix inverse lemma, and then we can get that

Based on the following discussion, we know that the conditional covariance matrix is positive semi-definite, which makes sense since it is also another distribution.

Matrix inverse lemma

We have the following inverse lemma for any invertible M which is

Where is called the Schur Complement of in . One interesting property for symmetric matrix is that

if is invertible, then is positive semi-definite if only if Schur Complement of is positive semi-definite.

For detail proof, please refer to Schur Complement. The basic idea is that

Basically, We know that

We need more careful discussion in case of , which should not be a problem.

Eigenvalue

TBA

Summary

TBA