# Spearman’s Rank Correlation

**Use:** Spearman’s correlation test assesses the **strength and direction of association** between two ranked variables. It's used when variables might not have a linear relationship, as it focuses on the monotonic relationship between variables.

**Example:** Research on how well people ranked in a music competition correlates with their years of training.

<figure><img src="/files/UW1sjAAij6L9JaDrCLQ9" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Column Requirement:** Ordinal or ranked data.
{% endhint %}

**Steps:**

1. Select two columns with ordinal or ranked data (e.g., ranks or orders).
2. Ensure that the relationship between the variables is monotonic, not necessarily linear.
3. Calculate the Spearman's rank correlation coefficient.
4. Interpret the correlation coefficient; a value close to +1 or -1 indicates a strong monotonic relationship.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.predicteasy.com/statistical-test/spearmans-rank-correlation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
