# Thread: Least squares line of regression

1. ## Least squares line of regression

Hi folks, not sure I'm in the right topic but here goes. Im massively stuck on working out this least sqaures line of regression question, any help will be greatly appreciated (im using E is my symbol as I have no idea how to type the correct one! and ^2 means sqaured)

EX=63 EY=2340 EX^2=535 EXY=19792 EY^2=752388

Calculate the least squares line of regression of Y on X in the form Y=a+bX and the correlation coefficient r. Show your working.

I have the following formula but it doesnt seem to work and gives me a high figure of something like 35.09. (n = 8 by the way!)

nExy-ExEy / nEx^2-(Ex)^2

Please help guys!

2. Originally Posted by scally328
Hi folks, not sure I'm in the right topic but here goes. Im massively stuck on working out this least sqaures line of regression question, any help will be greatly appreciated (im using E is my symbol as I have no idea how to type the correct one! and ^2 means sqaured)

EX=63 EY=2340 EX^2=535 EXY=19792 EY^2=752388

Calculate the least squares line of regression of Y on X in the form Y=a+bX and the correlation coefficient r. Show your working.

I have the following formula but it doesnt seem to work and gives me a high figure of something like 35.09. (n = 8 by the way!)

nExy-ExEy / nEx^2-(Ex)^2

Please help guys!
What is that formula for, a or b?

3. Sorry, thats a pretty vital piece of info I missed! It is the formula for b. The formula I have for a is:

EY/n - b EX/2

4. Anyone got an idea? Ridiculously stuck.