Biostatistics · Asen Zlatarov University

Correlation analysis (Pearson, Spearman, scatter diagram)

Inside: 7 sections · 1 table · 2 formulas · 15 flashcards · 5 min

Topic 16 of 18 in the Asen Zlatarov University syllabus for Biostatistics (Medicine, Year 2). The free AceMed note covers it in 7 sections, about 640 words (5 min of reading), with 15 flashcards. Made by senior students who got a full 6 and reviewed by professors: how our notes are made.

In this note

  1. Introduction
  2. Basic idea of association
  3. Pearson correlation coefficient
  4. Spearman rank correlation
  5. Coefficient of determination
  6. Significance testing and sample size
  7. Correlation is not causation

Introduction

Correlation analysis is the group of methods used to measure how strongly two variables are associated, and in which direction they change together. It is widely used in social medicine and epidemiology to describe relationships such as income and life expectancy, or body mass index and blood pressure, before any causal conclusion is considered.

Basic idea of association

Two variables are correlated when knowing the value of one gives information about the value of the other. The association may be:

  • Positive: both variables tend to increase together.
  • Negative: one variable tends to increase as the other decreases.
  • None: no consistent pattern, with a coefficient close to zero.

Correlation measures association, not cause. It also captures only the direction and strength of the relationship, so a strong curved (non-linear) relationship can still produce a coefficient close to zero.

Pearson correlation coefficient

The Pearson correlation coefficient (r) measures the strength and direction of a linear relationship between two continuous variables measured on an interval or ratio scale. It equals the covariance of the two variables divided by the product of their standard deviations:

  • r ranges from -1 to +1: +1 is a perfect positive linear relationship, -1 a perfect negative one, and 0 means no linear relationship.
  • r is unitless, so it does not change when measurement units are altered.
  • r is symmetric: the correlation of X with Y equals that of Y with X.
  • Assumptions: paired observations, a roughly linear relationship, approximately normal distributions for valid inference, and no strong outliers that drive the result.

A commonly used rough guide to the strength of the coefficient (absolute value) is:

These cut-offs are conventions, not laws; in clinical or social data, an r of 0.3 may be important, and the description must always be read against the context and the sample size.

Continue reading free

The whole note, all 7 sections, is free with an AceMed account, with its 15 flashcards. Standard adds flashcard recall, highlights and Ask AI.