# Modeling linear regression with covariate dependent error

I have a model of the form $y_i = a*x_i + b + e_i$. The error terms $e_i$ are independently drawn from a distribution that depends on $x$ as well as on global parameters; however, the noise has conditional mean $0$ given $x$. The goal is to formulate models and derive good estimators for the parameters $a$ and $b$ based on sample $(x; y)$.

Can anyone suggest 1/2 models for this problem?

Edit: Since $E[e|x]=0$ implies $E[e]=0$. So the only two models I can think of are:

1. $e \sim N(0, x^2 \sigma^2)$, and
2. $e \sim t(0,x^2,v)$, where in the 2nd model, I am considering non-standardized $t$ distribution with scale parameter $x^2$ and $df=v$.

My question is: Are the 2 models I suggested correct and can there be any more models?

• How is it that the errors are correlated with X & have mean 0 conditional on X? Are you saying the variance depends on X? Commented Oct 29, 2015 at 22:42

3. Fit $e_i^2 = a\cdot x_i + b$. If the noise is zero mean, $e_i^2$ is equal to the variance of the error at $x_i$.
If the distribution of your error term can be described by two independent parameters, for example a Gaussian distribution with mean independent of the variance then your problem is familiar. Since $E(error|x)=0$ we can only have the variance/scale of your error depending on $x$. In that case your regression model has heteroskedascity. GLS (Generalized Least Squares) are suitable for this problem as opposed to LS (Least Squares) who assume homoskedascity.