Sample Mean and Sample Covariance - Sample Covariance

Sample Covariance

The sample covariance matrix is a K-by-K matrix with entries

where is an estimate of the covariance between the jth variable and the kth variable of the population underlying the data. In terms of the observation vectors, the sample covariance is

Alternatively, arranging the observation vectors as the columns of a matrix, so that

,

which is a matrix of K rows and N columns. Here, the sample covariance matrix can be computed as

,

where is an N by 1 vector of ones. If the observations are arranged as rows instead of columns, so is now a 1×K row vector and is an N×K matrix whose column j is the vector of N observations on variable j, then applying transposes in the appropriate places yields

Read more about this topic:  Sample Mean And Sample Covariance

Famous quotes containing the word sample:

    As a rule they will refuse even to sample a foreign dish, they regard such things as garlic and olive oil with disgust, life is unliveable to them unless they have tea and puddings.
    George Orwell (1903–1950)