Calculate sample and population covariance between two variables. Find correlation coefficient, determine relationship strength and direction, with scatter plots and step-by-step calculations.
You might also find these calculators useful
Calculate Pearson and Spearman correlation between two variables
Calculate variance and analyze data spread
Calculate standard deviation and variance
Calculate arithmetic, geometric, harmonic, and weighted mean
Calculate covariance to measure how two variables change together. Compute both sample covariance (for statistical inference) and population covariance, along with correlation coefficient, means, standard deviations, and detailed step-by-step calculations with scatter plot visualization.
Covariance is a measure of the joint variability of two random variables. It indicates whether two variables tend to move in the same direction (positive covariance), opposite directions (negative covariance), or are independent (zero covariance). Unlike correlation, covariance is not standardized and its magnitude depends on the units of the variables, making it harder to interpret directly but useful for mathematical calculations.
Sample Covariance Formula
Cov(X,Y) = Σ(xᵢ - x̄)(yᵢ - ȳ) / (n - 1)Calculate covariance between asset returns to construct diversified portfolios and minimize risk through asset allocation.
Analyze relationships between economic indicators like GDP growth and unemployment rates, inflation and interest rates.
Measure how experimental variables vary together in biological, physical, and social science studies.
Used in Principal Component Analysis (PCA), feature selection, and multivariate Gaussian distributions.
Population covariance divides by N (total observations), while sample covariance divides by n-1 (Bessel's correction). Use sample covariance when working with a subset of data to get an unbiased estimate of the true population covariance. Population covariance is used when you have data for the entire population.