Find the equation of the regression line of ##x## on ##y##

In summary: ## and come up with a different solution that takes into account the fact that correlation might not be perfect.
  • #1
chwala
Gold Member
2,650
351
Homework Statement
See attached.
Relevant Equations
Stats
The question is as shown below. ( Text book question).

1662756688885.png


The textbook solution is indicated below.

1662756728918.png
Discussion;
Now they seemingly used ##r=1## to arrive at ##x=0.8+0.2y##. That is,
##y=-4+5x##
then, since ##r=1##, ...implying perfect correlation therefore,
##5x=4+y##
##x=0.8+0.2y##

My other way of doing this (as we we would not always have ##r=1##) would be;

##\bar x=a+b\bar y##

##b=\dfrac{S_{xy}}{S_{yy}}##=##\dfrac{87.5}{437.5}=0.2##

##a=\dfrac{21}{6}-\dfrac{0.2×81}{6}=0.8## therefore,

##x=0.8+0.2y##

Any other approach or insight is highly welcome.
 
Last edited:
Physics news on Phys.org
  • #2
IIRC , Given a dataset ##\{(x_i, y_i)\}## , it doesn't quite workout this way. the line that minimizes the sum of squares of distances to the ##\{y_i\}## data points is not quite orthogonal to the line that minimizes the sum of squares of distances to the ##\{x_i\} ## data points. Maybe @pbuk or @Stephen Tashi can verify?
Ortho projections along axes don't, afaik, work that nicely. EDIT: But there's also a "Situational" issue: Assume that calories lost , 'C'is related to hours of exercise, 'H', by the line C=200H. Does it eve make sense to say that H=C/200; that hours of exercise relates to calories used ?
 
Last edited:
  • Like
Likes chwala
  • #3
This isn't asserting orthogonality, it's reflection across ##x=y##. In general ##\beta_x \beta_y = r^2## so there's nothing inconsistent here between ##r## and the ##\beta##s that are computed - if the correlation is perfect, the best fit lines do reflect like you want them to.
 
Last edited:
  • Like
Likes SammyS and chwala
  • #4
Office_Shredder said:
This isn't asserting orthogonality, it's reflection across ##x=y##. In general ##\beta_x \beta_y = r^2## so there's nothing inconsistent here between ##r## and the ##\beta##s that are computed - if the correlation is perfect, the best fit lines do reflect like you want them to.
I was referring to the orthogonal projection from data points to the x -axis used to determine the line of best fit. It's the sum of squares of such projections that is minimized in order to determine the coefficients of the line of best fit.
Say your original line of best fit for the original data was y=mx+b and If you were to do the same when plotting x vs y instead of y vs x, your line of best fit would not be given by x=(y-b)/m, and, in particular, its slope would not be -1/m. Notice (m)(-1/m)=-1.
 
  • #5
The point of this question is in its last words "...with a minumum of calculation". Of course you can calculate ## x = f_x(y) ## from first principals, but the point is that once you have calculated ## r = 1 ## and ## y = f_y(x) ## you don't have to and the question is telling you not to.

@chwala you seem to be obsessed with "finding other ways to answer questions": this is often not IMHO a good thing.
 
  • #6
Last edited:
  • #7
pbuk said:
The point of this question is in its last words "...with a minumum of calculation". Of course you can calculate ## x = f_x(y) ## from first principals, but the point is that once you have calculated ## r = 1 ## and ## y = f_y(x) ## you don't have to and the question is telling you not to.

@chwala you seem to be obsessed with "finding other ways to answer questions": this is often not IMHO a good thing.
I appreciate your remarks...that's one way that has and will always help me into having an indepth understanding of math problems...cheers mate.
 
  • #8
pbuk said:
The point of this question is in its last words "...with a minumum of calculation". Of course you can calculate ## x = f_x(y) ## from first principals, but the point is that once you have calculated ## r = 1 ## and ## y = f_y(x) ## you don't have to and the question is telling you not to.

@chwala you seem to be obsessed with "finding other ways to answer questions": this is often not IMHO a good thing.
...just to get some insight from you...why is it not a good thing in trying to seek out other solutions or some insight on Math problems? In the best of my knowledge, I have gained immensely by doing exactly that! ...particularly on this forum. Let me know...
 
Last edited:
  • #9
chwala said:
...just to get some insight from you...why is it not a good thing in trying to seek out other solutions
Sometimes it is, but often it isn't. This is an example: you can solve for ## y = f_y(x) ## simply by plugging numbers into an equation. Your "other solution" solves for ## x = f_x(y) ## simply by plugging different numbers into the same equation - there is no insight here. However the question is asking you to look at the fact that ## r = 1 ## and realize that this means that you can simply solve ## f_y ## for ## x ## to get ## f_x ##.
 
  • Like
Likes chwala

1. What is the regression line equation?

The regression line equation is a mathematical representation of the relationship between two variables, x and y, in a data set. It is used to predict the value of y based on a given value of x.

2. How is the regression line equation calculated?

The regression line equation is calculated using a statistical method called linear regression. This involves finding the line that best fits the data points and minimizing the distance between the line and the data points.

3. What is the significance of the regression line equation?

The regression line equation is significant because it allows us to make predictions about the relationship between two variables. It also helps us understand the strength and direction of the relationship between the variables.

4. Can the regression line equation be used for all types of data?

No, the regression line equation is only appropriate for data that shows a linear relationship between the two variables. If the relationship is not linear, other regression methods may be more suitable.

5. What is the difference between the regression line equation and correlation?

The regression line equation shows the mathematical relationship between two variables, while correlation measures the strength and direction of the relationship. The regression line equation can be used to make predictions, while correlation cannot.

Similar threads

  • Calculus and Beyond Homework Help
Replies
10
Views
448
  • Calculus and Beyond Homework Help
Replies
2
Views
393
  • Calculus and Beyond Homework Help
Replies
1
Views
465
  • Calculus and Beyond Homework Help
Replies
2
Views
513
  • Calculus and Beyond Homework Help
Replies
2
Views
263
  • Calculus and Beyond Homework Help
Replies
4
Views
817
  • Calculus and Beyond Homework Help
Replies
2
Views
454
  • Calculus and Beyond Homework Help
Replies
3
Views
821
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
Back
Top