1. Home
  2. Functions
  3. Statistical
  4. RSQ

RSQ function

Returns the square of the correlation coefficient (the R squared of a straight line fit).

Syntax

=RSQ(known_ys, known_xs)

Arguments

ArgumentRequiredDescription
known_ysRequiredThe dependent values
known_xsRequiredThe independent values

How to use RSQ

RSQ takes 2 required arguments. Type =RSQ( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=RSQ({2,3,9,1,8,7,5}, {6,5,11,7,5,4,4})Result 0.057950192

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.