# Thread: finding R^2 and R^2(bar)

1. ## finding R^2 and R^2(bar)

Hello,

I have attached a picture of my problem (it is number 2 in the book). Ignore part a because I have managed to answer that. My problem is part b. It's my understanding that you need RSS and TSS to make the calculations, but they are not given in this question.

Any pointers would be great,

Thanks

2. ## Re: finding R^2 and R^2(bar)

Hey Walowizard.

Are you doing a statistics subject? The formulas for simple linear regression are well known and you either should have derived them (possibly in class with the lecturer) or they should be given to you.

Is this the case? The formulas are very simple for the Y,X case but if you haven't done this I can give you some pointers.

3. ## Re: finding R^2 and R^2(bar)

I have the formula for:

TSS = (y-y(bar))^2
ESS = (y(hat) - y(bar))^2

For example, if I want RSS...... I do not know what "e" is, in order to plug it in the formula.

4. ## Re: finding R^2 and R^2(bar)

The e refer to the errors from the parameterized model to the real data.

There are much simpler formulas though for a simple linear regression in that B0_hat = y_bar - B1_hat*x_bar and B1_hat = SXY/SXX where SXY = sum from 1 to n (x_i - x_bar)*(y_i - y_bar) and SXX = sum from 1 to n (x_i - x_bar)^2.