# Pearson’s Correlation

**Use:** Pearson’s correlation measures the linear relationship between two continuous variables. It produces a correlation coefficient that ranges from -1 to 1, indicating the **strength and direction of the relationship.**

**Example:** Examining the relationship between hours of study and exam scores for a group of students to see if there's a linear correlation.

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

{% hint style="info" %}
**Column Requirement:** Continuous data for both variables.
{% endhint %}

**Steps:**

1. Select two columns with continuous data (e.g., height and weight).
2. Check for a linear relationship between the variables.
3. Compute the Pearson correlation coefficient.
4. The coefficient ranges from -1 to 1, where 1 indicates a perfect positive linear relationship, -1 a perfect negative linear relationship, and 0 no linear 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/pearsons-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.
