Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

I have ran a simple regression with a continuous response variable and a categorical explanatory variable (with 2 levels). I am currently checking that the model meets the assumptions of regression. I produced the following plot:

enter image description here

I'm aware that I need to check that the residuals are normally distributed. Do I need to check the distribution of residuals at each of the 2 levels of the explanatory variable? Or do I need to check the distribution of all residuals simultaneously?

share|improve this question

1 Answer

up vote 7 down vote accepted

(Note that a regression model with only 1 explanatory variable that is categorical and has just 2 levels is equivalent to a t-test; there's nothing wrong with calling it a regression, but it would most commonly be discussed / referred to as a t-test.)

You check the distribution of all the residuals simultaneously. There are tests for normality, but I'm not a huge fan of them (I listed some in my answer to your previous question). I think the best option is to make a qq-plot. You can find a really nice version (qq.plot) in John Fox's car package. Among other features, it'll give you a 95% confidence band, which can help you interpret the plot.

On a different note, from looking at your plot, I don't know if you have more data in the second group, but you should also check to ensure you have homogeneity of variance.

share|improve this answer
Of course testing homogeneity of variance means comparin gthe sample variances of the two groups. I agree with gung's answer completely. – Michael Chernick Jul 21 '12 at 14:01
@gung, you don't need homogeneity of variance to do a two sample $t$-test, do you? – Macro Jul 21 '12 at 16:20
@Macro, if you don't have equality of variance then you should use the Satterthwaite-Welch correction for the degrees of freedom of the t-test. – gung Jul 21 '12 at 16:37
@gung, so, in this special case of regression, lack of homogeneity of variance is an easily remedied problem (+1,btw). – Macro Jul 21 '12 at 17:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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