Skip to main content

Measures of Linear Relationships: Covariance and Correlation

This document explains covariance and correlation as measures of linear relationships between variables. It covers their definitions, formulas for population and sample calculations, and their interpretation, including a worked example.

Save this reading to your study set

Sign up free

In statistics, understanding how two different variables interact is fundamental to data analysis. When we observe two sets of data, we often want to know if they move together in a predictable way. This relationship is known as a linear relationship. By using mathematical tools like covariance and correlation, we can quantify whether a change in one variable is associated with a consistent change in another.

Variables and Relationships

Before calculating measures of relationship, we must distinguish between the types of variables involved in a dataset.

Independent and Dependent Variables

In many experimental setups, we distinguish variables based on their role in the relationship:

  • Independent Variables: These are the variables that are manipulated or controlled to observe an effect.
  • Dependent Variables: These are the variables that change in response to the independent variable.

For example, in a chemical engineering context, "Catalyst Purity" might be an independent variable used to predict the "Yield of Product," which is the dependent variable.

Linearly Related Random Variables

When two random variables exhibit a pattern where they increase or decrease together at a relatively constant rate, they are considered linearly related. If the variables are completely unrelated, they are considered independent. It is important to note that if XX and YY are independent random variables, both their covariance and their correlation will be zero.

A scatter plot illustrating a positive linear relationship between two variables, Variable X and Variable Y, with explanations for data points, linear trend, and point clusters.
A scatter plot illustrating a positive linear relationship between two variables, Variable X and Variable Y, with explanations for data points, linear trend, and point clusters.

Understanding Covariance

Covariance is a measure of the linear relationship between two variables. It tells us the direction of the relationship: a positive covariance indicates that the variables tend to move in the same direction, while a negative covariance indicates they move in opposite directions.

Keep reading for free.

Create an account to finish this reading and make it part of your study routine.

Continue reading free

Already have an account? Log in

Updated

Study it your way.

Import this reading into your study set to get started with another study mode.

Make it your own.

Keep this reading in a new study set, or add it to one you already use.