What is the method for calculating residuals for 2 variable data?

  • Thread starter Thread starter pyroknife
  • Start date Start date
pyroknife
Messages
611
Reaction score
4
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?
 
Physics news on Phys.org
You should count them as two separate residuals. To do otherwise would overestimate the goodness of fit.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top