1
$\begingroup$

I have a data set (x1,y1),(x2,y2),...,(xn,yn) and will do a simple linear regression with unequal variance assumption. (If you see the scatterplot of x-y, then the range of y increases as x increases)

I need to know what would be the value of y (and its variability) when I am given a new x. Then what would be a best choice for this purpose. 1) prediction interval from a simple linear regression or 2) quantile regression?

$\endgroup$

2 Answers 2

2
$\begingroup$

Please note that these are not mutually exclusive alternatives, since you can also generate prediction intervals using quantile regression.

In general, whatever you choose, you want the prediction intervals, because you are interested in the error of the prediction you are making rather then in the error of the estimated relationship.

Regarding unequal variances, I would go for a linear regression model rather than for quantile regression, but mostly because I know the former better. A gradually increasing variance is not a great issue and you can work with that in linear regression model. Specifically, I would go for robust regression (e.g. rlm from MASS R package), but there are also alternatives using generalized linear models (glm's), like gls from the nlme R package.

However, I would first ask myself whether the data should not be transformed. The behavior that you are describing is typical for data that needs to be log-log transformed (you logarithmize both x and y) - for example, correlation between colony forming units (CFU) of bacteria and the measured raw fluorescence intensity.

$\endgroup$
1
0
$\begingroup$

Linear regression assumes constant data variance (aka aleatoric uncertainty), so will be less appropriate for your problem.

Quantile linear regression sounds like a good fit for your problem if you have a linear funnel shape.A quick image search shows the type of behavior it's great at capturing.

$\endgroup$

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.