How to use this tool
- Enter sample a, sample b.
- Select Calculate to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| Sample A | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | 8, 10, 9, 12, 11 |
| Sample B | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | 5, 7, 6, 8, 9 |
Result for these sample inputs
0.9
- Matched pairs
- 5
- Ties in A
- 0
- Ties in B
- 0
Measures monotonic association, which may be curved rather than linear. No small-sample approximate p-value is presented.
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
Rank both samples using average ranks for ties, then compute Pearson correlation of those ranks.
Using sample a = 8, 10, 9, 12, 11, sample b = 5, 7, 6, 8, 9, the result is 0.9 probability. Change these example inputs to match your task; use the method above to check each step.
What to keep in mind
Paired measurements must refer to the same observations. Correlation does not establish causation. A descriptive or probability calculation under the stated assumptions. Check the sample design and model before interpreting results.
Reference: SciPy: Spearman rank correlation
Common questions
How are tied values ranked?
Tied observations share the average of the ranks they occupy. The calculator then correlates these average ranks, which works when the shortcut formula for untied ranks does not.
Why is there no significance p-value?
A quick large-sample approximation can be misleading for small samples or ties. This page reports the rank association itself; an appropriate permutation or other inference procedure is a separate task.
Methodology maintained by ClarityKit. How these tools are built and checked.