RSQ(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 dependent data points (y-values) that you want to analyze.
data_x:
The range of independent data points (x-values) that correspond to the y-values in data_y.
The RSQ function in Google Sheets is a statistical tool used to calculate the square of the Pearson product-moment correlation coefficient, which measures the strength and direction of a linear relationship between two datasets. The RSQ function returns a value between 0 and 1, where 0 indicates no correlation and 1 indicates a perfect positive correlation. This function is particularly useful in regression analysis and helps in understanding how well the data fits a linear model.
In simpler terms, RSQ allows you to quantify how closely two sets of data are related to each other.
Imagine you are analyzing the relationship between advertising spend and sales revenue for a business:
| Month | Advertising Spend ($) | Sales Revenue ($) |
|---|---|---|
| Jan | 2000 | 5000 |
| Feb | 3000 | 7000 |
| Mar | 4000 | 9000 |
| Apr | 5000 | 11000 |
You want to determine how well the advertising spend correlates with sales revenue.
To achieve this, you would use the RSQ function as follows:
=RSQ(B2:B5, C2:C5)In this formula:
B2:B5 is the range containing the Advertising Spend data.C2:C5 is the range containing the Sales Revenue data.When you apply the RSQ formula to the data, the output will be a single value that indicates the correlation between advertising spend and sales revenue. For example, if the result is 0.99, it suggests a very strong positive correlation, meaning that as advertising spend increases, sales revenue tends to increase as well.
RSQ is beneficial because it provides a quick and easy way to assess the strength of a relationship between two variables. It helps in making informed decisions based on data analysis, especially in fields like marketing, finance, and research. Understanding the correlation can guide strategies for resource allocation and forecasting.
RSQ is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a dataset with sales figures in Column A and corresponding advertising spend in Column B. Use the RSQ formula to calculate the correlation between advertising spend and sales, helping to determine the effectiveness of marketing strategies.
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.