PEARSON(data_y, data_x)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
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.
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.
Imagine you are analyzing the relationship between the hours studied and exam scores for a group of students:
| Student | Hours Studied | Exam Score |
|---|---|---|
| A | 2 | 75 |
| B | 3 | 80 |
| C | 5 | 90 |
| D | 4 | 85 |
| E | 1 | 70 |
You want to determine if there is a correlation between the hours studied and the exam scores.
To achieve this, you would use the PEARSON function as follows:
=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.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.
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.
The PEARSON function is an essential tool for anyone working with data analysis, providing valuable insights into the relationships between different variables.
Happy analyzing!
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.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.