Correlation

Correlation Tutorial with R

Correlation

Correlation Tutorial with R

Correlation is a way of measuring the extent to which two variables are related. This means we need to analyze whether as one variable increases, the other

  • (1) increases,
  • (2) decreases or
  • (3) stays the same.

This can be done by calculating the covariance or correlation of two variables.

In this Correlation Tutorial in R, we use a small dataset to illustrate the concepts of covariance and correlation. You may also download the Rmarkdown file and open it in RStudio.

Check your understanding with multiple choice tasks

Avatar
Jan Kirenz
Professor

I’m a data scientist educator and consultant.