# Correlation

*noun*

say it: **“kor-uh-LAY-shun”** **/ˌkɔrəˈleɪʃən/**

How closely two things move together, given as a number from -1 to 1; it doesn't prove that one causes the other.

## What is **correlation**?

**Correlation** says how closely two columns move together in a straight-line pattern, as a number from -1 to 1:
near 1 they rise together, near -1 one falls as the other rises, and near 0 there's no straight-line pattern. It
doesn't show that one causes the other: two things can move together because something else drives both.

```python
r = daily["high_temp_f"].corr(daily["cones_sold"])
print(round(r, 2))   # close to 1: hotter days, more cones sold
```

## In a sentence

- “A strong **correlation** between free classes and no-shows doesn't mean the price causes them.”
- “The **correlation** between temperature and cones sold was close to 1.”

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/correlation
