ASSOCIATION BETWEEN VARIABLES / TRANSPARENT METHOD

Spearman rank correlation

Compare the ordering of two series, including ties and a Pearson comparison.

◈

Your numbers are processed in your browser. They are not sent to a server.

Details ↗
This tab’s workspace

Optional sessionStorage, off by default. Keeps text, table and settings across tools and languages in this tab. Browser session restoration can retain it. Use “Delete saved data” on a shared device. Nothing is uploaded.

Temporary storage is off unless you select the option.

Interactive examples

Predefined synthetic data only. The link shares the example, never your numbers or metadata. Loading an example replaces current fields.

01Enter your data

Example
Analysis name and unit (optional)

Report labels only, not conversions. Variance uses squared units; z-score is dimensionless.

One number per line in each box. Row 1 must refer to the same observation in both series. Empty cells are errors, never skipped.

Labels do not convert units. Slope has Y/X units, covariance has X·Y units, r and R² are dimensionless.

⇧ Import or paste a table

Choose options explicitly. Missing cells are flagged, not skipped.

X and Y must describe the same rows. Selecting one column twice is allowed but yields a self-comparison, not independent evidence.

Download an example CSV ↓
Review the table before importing

Uses the columns and decimal format selected above. Row numbers refer to the parsed table including the header; completely blank rows may already have been ignored. No correction or exclusion is automatic.

At most 80 notices are displayed; every row is checked.

Compare table columns

Select up to 8 numeric columns. Every selected cell must be valid; no individual missing values are removed. This is a descriptive comparison, not a test between groups.

Select columns
Resume an analysis from a file

Open a .json file exported by StatNivo. Replaces current data and recalculates in this calculator; nothing is uploaded.

Raw data: up to 10,000 values per series.

Temporary storage is off unless you select the option.

02Read your result

Loading the local calculator…
Export, save and share

Undefined values: empty cells. No additional rounding in CSV files. CSV headings use stable English identifiers for software compatibility.

Temporary storage is off unless you select the option. Optional sessionStorage, off by default. Keeps text, table and settings across tools and languages in this tab. Browser session restoration can retain it. Use “Delete saved data” on a shared device. Nothing is uploaded.

UNDERSTAND, DON’T JUST CALCULATE

The method in practice

Methodology and sources ↗
ρ = Pearson(rank(X), rank(Y))

Spearman rank correlation

Pearson computed on average ranks, accounting for ties. Describes monotonic association, not causation. No p-value or significance test. If either series is constant, ρ is undefined.

Pearson on raw data

Y = X² for positive X: ordering is perfectly increasing (Spearman = 1), but the points are not on a straight line (Pearson < 1).

Average rank X

For values 10, 10 and 30, the first two share positions 1 and 2: both receive rank 1.5; the third receives 3. Spearman applies Pearson to average ranks, not the shortcut that omits tie adjustments.

Interactive examples

Reversing just one ordering changes the coefficient’s sign. A constant series has no variation in ranks, so the result is undefined. Keep row pairs together: sorting X and Y separately changes the question.

Practical checks before using a result

Sample or population?

For 2, 4, 4, 4, 5, 5, 7, 9 the population SD is 2; sample SD is √(32/7) ≈ 2.13809. Choose the population formula when describing the full population of interest, not because the number is smaller.

Standard deviation or standard error?

Standard deviation describes the spread of observations. The usual standard error of the mean is sample SD / √n under independent sampling with finite variance. For sample SD 10 and n = 25, SEM = 2. Repeated dependent readings do not automatically count as 25 independent measurements.

Importing from Excel without shifting pairs

Paste the entire table, select its real delimiter and header, then preview it. In decimal-comma data, use a semicolon or tab as the column delimiter. If Y is missing in row 3, fix that row rather than moving row 4 up.