Difference between revisions of "Documentation/How Tos/Calc: RSQ function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | __NOTOC__ | + | {{DISPLAYTITLE:RSQ function}} |
| + | {{Documentation/CalcFunc StatisticalTOC | ||
| + | |ShowPrevNext=block | ||
| + | |PrevPage=Documentation/How_Tos/Calc:_PEARSON_function | ||
| + | |NextPage=Documentation/How_Tos/Calc:_SLOPE_function | ||
| + | }}__NOTOC__ | ||
== RSQ == | == RSQ == | ||
| Line 21: | Line 26: | ||
: returns the square of the Pearson correlation coefficient for the two sets of data in A1:A30 and B1:B30. | : returns the square of the Pearson correlation coefficient for the two sets of data in A1:A30 and B1:B30. | ||
| − | {{ | + | {{SeeAlso|EN| |
* [[Documentation/How_Tos/Calc: CORREL function|CORREL]] | * [[Documentation/How_Tos/Calc: CORREL function|CORREL]] | ||
* [[Documentation/How_Tos/Calc: PEARSON function|PEARSON]] | * [[Documentation/How_Tos/Calc: PEARSON function|PEARSON]] | ||
Latest revision as of 14:45, 2 February 2024
Spreadsheet Lookup functions
Measures of dispersion / spread
Probability and statistics
Correlation and line fitting
See also (in the Arrays Functions category); GROWTH, LINEST, LOGEST, TREND
Ranking
RSQ
Returns the square of the Pearson correlation coefficient of two sets of data.
Syntax:
RSQ(x; y)
- where x and y are ranges or arrays containing the two sets of data.
- Any text or empty entries are ignored.
- RSQ calculates the square of the Pearson correlation coefficient (which is conventionally given the letter r, hence "r squared"). See the * PEARSON function for more details.
- RSQ indicates how much of the variance in y is attributable to the variance in x.
- Advanced topic:
- The parameters x and y are always evaluated as array formulas.
Example:
RSQ(A1:A30; B1:B30)
- returns the square of the Pearson correlation coefficient for the two sets of data in A1:A30 and B1:B30.
See Also