# R Squared Formula

R Squared is also known as coefficient of determination, represented by R2or r2and pronounced as R Squared- is the number indicating the variance in the dependent variable that is to be predicted from the independent variable. It is a statistic model used for future prediction and outcomes, also regarded as testing of hypothesis. The linear relation between the dependent and independent variable is known through this formula.

FFollowing is the R Squared formula:

$\large R^{2}=\frac{N\sum xy-\sum x \sum y}{\sqrt{\left[N\sum x^{2}-\left(\sum x\right)^{2}\right]\left[N\sum y^{2}-\left(\sum y\right)^{2}\right]}}$

Where,
N = No of scores given
$\sum$ XY = Sum of paired product
$\sum$ X = X score sum
$\sum$ Y = Y score sum
$\sum$ X2 = square of X score sum
$\sum$ Y2 = square of Y score sum

### Solved Examples

Question 1: Find the coefficient of determination for the following set of data:

 X Y 2 2 5 5 6 4 7 3

Solution:

Given data is

 X Y 2 2 5 5 6 4 7 3

Create the table out of given scores

 X Y XY X2 Y2 2 2 4 4 4 5 5 10 25 25 6 4 24 36 16 7 3 21 49 9

Here

N = 4
The summation of each column has been given at the end of the column.
Now, according to the formula:

The coefficient of correlation is given by
$R^{2}=\frac{N\sum xy-\sum x \sum y}{\sqrt{\left[N\sum x^{2}-\left(\sum x\right)^{2}\right]\left[N\sum y^{2}-\left(\sum y\right)^{2}\right]}}$

= -12540 x 10976

= -0.003

 Related Formulas Percentage Formula Sample Size Formula Degree and Radian Measure Formula Polynomial Formula Statistical Significance Formula Probability Formulas Right Angle Formula Trigonometry Formulas