vibe3
- 39
- 1
Hello,
When doing a weighted least squares fit of a model to data, I want to examine the residuals to see if their histogram matches the expected probability distribution. Since I am minimizing
<br /> \chi^2 = \sum_i w_i \left[ y_i - Y(x_i) \right]^2<br />
would I define my (normalized/studentized) residuals as
<br /> r_i = \frac{\sqrt{w_i} ( y_i - Y(x_i) )}{\sigma \sqrt{1 - h_i}}<br />
or in the usual way as
<br /> r_i = \frac{y_i - Y(x_i)}{\sigma \sqrt{1 - h_i}}<br />
where h_i are the statistical leverages and \sigma is the residual standard deviation. I am using a robust (iterative) least squares procedure to determine the weights w_i in order to detect and eliminate outliers, so the residual histogram should match the expected distribution of the M-estimator function I'm using (Huber in my case).
When doing a weighted least squares fit of a model to data, I want to examine the residuals to see if their histogram matches the expected probability distribution. Since I am minimizing
<br /> \chi^2 = \sum_i w_i \left[ y_i - Y(x_i) \right]^2<br />
would I define my (normalized/studentized) residuals as
<br /> r_i = \frac{\sqrt{w_i} ( y_i - Y(x_i) )}{\sigma \sqrt{1 - h_i}}<br />
or in the usual way as
<br /> r_i = \frac{y_i - Y(x_i)}{\sigma \sqrt{1 - h_i}}<br />
where h_i are the statistical leverages and \sigma is the residual standard deviation. I am using a robust (iterative) least squares procedure to determine the weights w_i in order to detect and eliminate outliers, so the residual histogram should match the expected distribution of the M-estimator function I'm using (Huber in my case).