A model was trained on log(price). The team computes RMSE directly on the log predictions and reports it in dollars. What is wrong?
- Exam domain
- Model Development31% of the exam
- Difficulty
- Hard
- In this mock
- 16 questions on this domainPractise this domain
Why the exam asks this
Model Development (31% of the exam)
Objective in the exam guide: Identify the need to exponentiate log-transformed variables before calculating evaluation metrics or interpreting predictions
Exponentiating log-transformed predictions is named.
Why D is the answer
Predictions must be exponentiated before computing RMSE
Errors in log space are not dollar errors. Exponentiate predictions, compare with actual prices, then compute RMSE in the original units.
Remember: Exponentiate before metrics.
How it works
Metrics must be computed in the units being reported.
In detail
- exp() predictions first.
- Then compute metrics.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. RMSE cannot be used for regressionWrong
RMSE is a standard regression metric.
B. The log should be applied to the RMSE insteadWrong
That has no meaning.
C. Nothing, because log errors and dollar errors are the same thingWrongMost tempting
Log errors are relative, not dollars.
Why it tempts: The numbers look plausible.
D. Predictions must be exponentiated before computing RMSERight
Exponentiate before metrics.
Use case
An illustrative scenario, not a real incident.
Illustrative: a reported RMSE of 0.2 turns out to be about 20% error, not 20 cents.
See it in different ways
flowchart LR S0["Predict log price"] --> S1["exp"] --> S2["Compare with price"] --> S3["RMSE in dollars"]
How to read this chart
- Read it in order: Predict log price, then exp, then Compare with price, then RMSE in dollars.
sequenceDiagram participant P0 as Analyst participant P1 as Model P1-->>P0: log predictions P0->>P0: apply exp P0->>P1: evaluate in dollars
How to read this chart
- 1. Analyst gets a reply from Model: "log predictions".
- 2. Analyst sends "apply exp" to Analyst.
- 3. Analyst sends "evaluate in dollars" to Model.