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
2020 Award
36,080
6,733
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
2K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
4
Views
957
  • Last Post
Replies
3
Views
2K
Replies
5
Views
2K
Replies
6
Views
932
Top