Regression Sum of Squares Calculator


Instructions: Use this regression sum of squares calculator to compute SSRSS_R, the sum of squared deviations of predicted values with respect to the mean. Please input the data for the independent variable (X)(X) and the dependent variable (YY), in the form below:

Independent variable XX sample data (comma or space separated) =
Dependent variable YY sample data (comma or space separated) =
Independent variable Name (optional) =
Dependent variable Name (optional) =

More about this Regression Sum of Squares Calculator

In general terms, a sum of squares it is the sum of squared deviation of a certain sample from its mean. For a simple sample of data X1,X2,...,XnX_1, X_2, ..., X_n, the sum of squares (SSSS) is simply:

SS=i=1n(XiXˉ)2 SS = \displaystyle \sum_{i=1}^n (X_i - \bar X)^2

So, in the context of a linear regression analysis, what is the meaning of a Regression Sum of Squares? Well, it is quite similar. In this case we have sample data {Xi}\{X_i\} and {Yi}\{Y_i\}, where X is the independent variable and Y is the dependent variable. The regression sum of squares SSRSS_R is computed as the sum of squared deviation of predicted values Y^i\hat Y_i with respect to the mean barYbar Y. Mathematically:

SSR=i=1n(Y^iYˉ)2 SS_R = \displaystyle \sum_{i=1}^n (\hat Y_i - \bar Y)^2

A simpler way of computing SSRSS_R, which leads to the same value, is

SSR=β^1(i=1nXiYi1n(i=1nXi)(i=1nYi))=β^1×SSXY SS_R = \displaystyle \hat \beta_1 \left( \sum_{i=1}^n X_i Y_i - \frac{1}{n}\left(\sum_{i=1}^n X_i\right)\left(\sum_{i=1}^n Y_i\right) \right)= \hat \beta_1 \times SS_{XY}

Other Sums of Squares

There are other types of sum of squares. For example, if instead you are interested in the squared deviations of predicted values with respect to observed values, then you should use this residual sum of squares calculator. There is also the cross product sum of squares, SSXXSS_{XX}, SSXYSS_{XY} and SSYYSS_{YY}.

Other things you can do with these data

So, what else could you do when you have samples {Xi}\{X_i\} and {Yi}\{Y_i\}? Well, you can compute the correlation coefficient , or you may want to compute the linear regression equation with all the steps .

log in to your account

Don't have a membership account?
REGISTER

reset password

Back to
log in

sign up

Back to
log in