Skip to content

Transforming a positive target

Question

You regress log price on features. Why is exponentiating the predicted log value generally not the conditional mean of price?

Short answer

Expectation and exponentiation do not commute. The exponential of the conditional mean log price is a geometric-scale quantity and, under a symmetric log-error model, can correspond to a median. Under homoscedastic Gaussian log errors with variance s squared, the conditional mean includes the multiplier exp(s squared / 2). Other error distributions require a justified retransformation estimate, fitted without test leakage.

Original question and answer written by SelfMadeQuant.com.

See the hint and the full worked solution in the question bank (free account).

Open the worked solution

Lessons behind this question

Start with a free lesson: Normal Distribution is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.

Read it free