Suppose we have the model $$ Y = g(X) + \varepsilon, $$ where the errors are zero-mean and independent of $X$.
I read that the conditional probability density function $f_{Y|X}(y|x)$ of $Y$ can be written as $$ f_{Y|X}(y|x) = f_\varepsilon(y - g(x)), $$ where $f_\varepsilon$ is the density of $\varepsilon$. How can this be proven?
Here is my attempt: $$ \begin{align} f_{Y|X}(y|x) = f_{Y|X}(Y=y|X=x) &= f_{Y|X}(g(X)+\varepsilon=y|X=x) \\ &= f_{g(X)+\varepsilon|X}(g(x)+\varepsilon=y|X=x) \\ &= f_{g(X)+\varepsilon|X}(\varepsilon = y - g(x)|X=x) \\ \end{align} $$ Since $\varepsilon$ is independent of $X$ I then drop the $'X=x'$ in the function argument to get $$ \begin{align} f_{Y|X}(y|x) &= f_{g(X)+\varepsilon|X}(\varepsilon = y - g(x)). \end{align} $$ The problem then is how to get the correct subscript on the density, eg. how to get $f_\varepsilon$ instead of $f_{g(X)+\varepsilon|X}$?