• Support PF! Buy your school textbooks, materials and every day products Here!

Residuals (for 2 values)

  • Thread starter pyroknife
  • Start date
  • #1
613
3
Let's say I have a 2 variable data set x and y.
The linear fit through the line is some y(x). Let's say y=x for simplicity.

So a residual is defined as the actual value minus the estimated value (using y).

My question is, let's say for one x value there are two y values.
e.g., for x=2; y=4 and y=6

If you wanted to calculate the residual at x=2, would you have two separate values or is there someway to combine it?
The estimated value would be y=2.
residuals are: 2-4 and 2-6, which is -2 and -4. So in other words do you add the two values?
 

Answers and Replies

  • #2
haruspex
Science Advisor
Homework Helper
Insights Author
Gold Member
33,229
5,283
You should count them as two separate residuals. To do otherwise would overestimate the goodness of fit.
 

Related Threads on Residuals (for 2 values)

  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
1
Views
3K
Replies
1
Views
834
Replies
6
Views
895
Replies
1
Views
3K
  • Last Post
Replies
8
Views
677
Replies
2
Views
2K
  • Last Post
Replies
1
Views
3K
Top