# 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="https://2063668468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9RcwqzNNsjo496JLJ2Ob%2Fuploads%2F0AdpvrjmqQ6plJym7Y55%2Fimage.png?alt=media&#x26;token=5400ddc8-90f1-4d33-abd4-e76de046f0fd" 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.
