Google Sheets PEARSON Function: Syntax, Examples & Tips

The PEARSON function calculates the Pearson correlation coefficient between two data sets, measuring their linear relationship strength.
Google Sheets
PEARSON(data_y, data_x)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is a PEARSON?
  3. A Practical Example
  4. PEARSON Formula
  5. Result of the Formula
  6. Why Use PEARSON?
  7. Key Takeaways:
  8. Example use case

Parameters

data_y:
The range of cells that contains the dependent variable data points for which you want to calculate the Pearson correlation coefficient.

data_x:
The range of cells that contains the independent variable data points that you want to compare against the data_y values for correlation.

What is a PEARSON?

The PEARSON function in Google Sheets is a statistical tool used to calculate the Pearson correlation coefficient between two sets of data. This coefficient measures the strength and direction of the linear relationship between two variables, providing insights into how closely related they are. The value of the Pearson correlation coefficient ranges from -1 to 1, where -1 indicates a perfect negative correlation, 1 indicates a perfect positive correlation, and 0 indicates no correlation.

In simpler terms, the PEARSON function helps you understand how two variables move in relation to each other.

A Practical Example

Imagine you are analyzing the relationship between the hours studied and exam scores for a group of students:

Study Hours Table:

StudentHours StudiedExam Score
A275
B380
C590
D485
E170

You want to determine if there is a correlation between the hours studied and the exam scores.

PEARSON Formula

To achieve this, you would use the PEARSON function as follows:

Google Sheets
=PEARSON(B2:B6, C2:C6)

In this formula:

  • B2:B6 is the range containing the Hours Studied.
  • C2:C6 is the range containing the Exam Scores.

Result of the Formula

When you apply the PEARSON formula to the data, it will return a correlation coefficient value. For example, if the output is 0.9, this indicates a strong positive correlation between hours studied and exam scores, suggesting that as students study more hours, their exam scores tend to increase.

Why Use PEARSON?

The PEARSON function is beneficial because it provides a quick and easy way to assess the relationship between two variables. Understanding correlations can help in making informed decisions, predicting outcomes, and identifying trends in data. Additionally, it is a straightforward function that can be used in various fields, including education, finance, and research.

Key Takeaways:

  • PEARSON: A statistical function that calculates the Pearson correlation coefficient between two sets of data.
  • Correlation Measurement: Indicates the strength and direction of the linear relationship between two variables.
  • Easy to Use: Simple syntax allows for quick analysis of data relationships.
  • Common Use Cases: Useful in research, education, finance, and any scenario where understanding relationships between variables is necessary.

The PEARSON function is an essential tool for anyone working with data analysis, providing valuable insights into the relationships between different variables.

Happy analyzing!

Example use case

You have a table with sales data in Column A and customer satisfaction scores in Column B. Use the PEARSON formula to calculate the correlation between sales and satisfaction, helping to identify if higher sales are linked to better customer experiences.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.