0
$\begingroup$

enter image description here

How to analyse such type of residuals?

$\endgroup$
3
  • 3
    $\begingroup$ Would you mind provide some context? $\endgroup$ Commented Dec 29, 2022 at 16:28
  • $\begingroup$ Classification not regression is the approach to go with here. $\endgroup$ Commented Dec 29, 2022 at 17:33
  • 1
    $\begingroup$ @Learning You seem to be advocating changing the question. Although regression and classification have much in common, they answer different questions. $\endgroup$
    – whuber
    Commented Dec 29, 2022 at 21:20

1 Answer 1

3
$\begingroup$

On the face of it, you have fitted a regression with a single binary predictor. Let's suppose its values are 0 and 1, but the same story applies with different values.

So, there are two distinct fitted values, say the means for predictor = 0 and for predictor = 1, and they define precisely two vertical stripes on this plot.

There is nothing problematic about this plot, except that you cannot learn much from it. However, your fitted values are about 0.5 apart and your residuals are quite large by comparison with that difference.

Here's one such produced in my usual software.

enter image description here

It seems that your response variable has integer values, perhaps repeated many times. In that respect, my example is similar, although the regular spacing is more evident in your question.

$\endgroup$
2
  • 3
    $\begingroup$ +1. But there's more to the story: the OP's data are discrete and thereby the plotting points mask one another. These plots are best rendered with a little jittering and some semi-transparency to reveal the distributions of the residuals. $\endgroup$
    – whuber
    Commented Dec 29, 2022 at 17:08
  • 1
    $\begingroup$ Cf. "perhaps repeated many times". In fact, virtually any other display of the two residual distributions, say a histogram or quantile plot, will reveal more than this plot. $\endgroup$
    – Nick Cox
    Commented Dec 29, 2022 at 17:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.