Skip to content

Correlation

Measure how strongly a table's numeric columns move together. Open it via Analyse → Correlation..., choose a method, and press Compute. The result opens in a new detached tab, so your original table is never changed. It runs on the table as you currently see it, including unsaved edits.

Methods

  • Pearson measures linear association: do two columns rise and fall together in a straight-line way.
  • Spearman measures monotonic association by correlating the value ranks, so it picks up relationships where one column consistently rises or falls with the other, even when the trend is not perfectly straight.

If you are unsure, start with Pearson; switch to Spearman when the relationship looks curved or when you have ordinal data.

Reading the result

Every numeric column is correlated with every other numeric column. The result is a square table: the first column, variable, lists each column name, and there is one further column per variable. Each cell holds a correlation coefficient:

  • +1: the two columns move together perfectly.
  • 0: no linear (or monotonic) relationship.
  • -1: they move in perfectly opposite directions.

The diagonal is always 1 (a column correlated with itself). A pair with too few overlapping numeric values, or with no variation in one of the columns, is left blank. Non-numeric columns are skipped automatically, so you do not need to select columns by hand.

Because the result is a normal table, you can sort it, copy it, colour-mark extreme values with conditional formatting, or export it like any other tab.

An example

Five weeks of a shop's numbers:

ad_spend visitors returns
10 120 9
20 210 7
30 330 8
40 390 4
50 520 5

Pearson gives, rounded:

variable ad_spend visitors returns
ad_spend 1 0.995 -0.839
visitors 0.995 1 -0.784
returns -0.839 -0.784 1

Visitors rise almost exactly with ad spend (0.995). Returns fall as spend rises (-0.839), less tightly. A correlation says the columns move together, not that one causes the other.

Command line and MCP

The same job without the GUI:

See also

  • Summary for per-column descriptive statistics.
  • Chart to plot a relationship you spotted in the matrix.