PEARSON
The PEARSON
function in Google Sheets calculates r, the Pearson product-moment correlation coefficient of a dataset. This function is commonly used in statistical analysis to measure the strength and direction of the linear relationship between two sets of data.
Function Syntax and Parameters
Syntax: PEARSON(data_y, data_x)
Parameters:
data_y
: The array or range containing the dependent variable data points.data_x
: The array or range containing the independent variable data points.
Step-by-Step Tutorial
- Using
PEARSON
function:- Example: If
A1:A5
has the dependent variable values andB1:B5
has the independent variable values, then=PEARSON(A1:A5, B1:B5)
will return the Pearson correlation coefficient.
- Example: If
Use Cases and Scenarios
- Financial Analysis: Measure the correlation between stock prices of two companies.
- Economic Research: Analyze the relationship between income and expenditure.
- Marketing Analytics: Determine the correlation between advertising spend and sales revenue.
Related Functions
CORREL
: Calculate the correlation coefficient between two datasets.COVARIANCE.P
: Calculate the covariance between two datasets.