Covariance Matrix & Correlation Matrix Calculator

Calculate the covariance matrix and correlation matrix of several variables from a data table (rows = observations).

Results

Enter your details and click Calculate to see your results.
About This Calculator

Cᵢⱼ = Σ(xᵢ − x̄ᵢ)(xⱼ − x̄ⱼ)/(n − 1); correlation Rᵢⱼ = Cᵢⱼ/√(CᵢᵢCⱼⱼ).

Example

Example: 5 observations of 3 variables → total variance 7.7.

Assumptions

Each row is one observation; the diagonal holds the variances.

Frequently Asked Questions

What is the covariance matrix used for?

Principal component analysis, portfolio risk and multivariate normal models.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile