TX Sheet Control

RSQ Function

Function

Return the square of the Pearson correlation coefficient, the share of the variance of known_y that a linear relation to known_x explains. known_y and known_x are ranges or arrays of the same size; the result is from 0 to 1. Ranges of different sizes return #N/A, and values without variance return #DIV/0!.

Syntax

RSQ(known_y, known_x, x)

Category: Statistics. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=RSQ({1,2,3},{2,4,6})

The formula returns 1, because the values 2, 4 and 6 are exactly twice 1, 2 and 3.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also