Stats 4.5Lesson outlineLesson 5 of 7 in Module 4
Long Tails and Log Transforms
Recognise long-tailed data and test whether a simple transform helps the model or the interpretation.
Video in production.
Lesson outline: Long Tails and Log Transforms
In this lesson6 parts
- 01Decide what may enter a logarithm
- 02Derive the tail from positive invoices
- 03Follow each target through its inverse
- 04Seal time before fitting either model
- 05Let the objective choose the comparison
- 06Reproduce and defend one decision
Key terms: Long Tails and Log Transforms
The words this lesson introduces, each in one line. The module’s glossary collects them all, and the AI glossary has every term across the courses.
- invoice value
- Sum of included line quantities times their unit prices for one invoice.
- right skew
- Observations extend farther toward large values than small values.
- long right tail
- Relatively few observations occupy a wide high-value range.
- log transform
- Applying a logarithm to each declared target value before fitting.
- transformed scale
- Units of log(1 + pounds), not pounds.
- inverse transform
- Operation that maps a transformed value back to the original scale; here
expm1. - ordinary least squares
- Coefficients chosen to minimize summed squared deviations on the fitted target scale.
- held-out error
- Prediction error measured on rows withheld from fitting.
- MAE
- Mean absolute error, average absolute prediction miss in the original unit.
- RMSE
- Square root of mean squared prediction error, in the original unit.
Quiz: Long Tails and Log Transforms
Your first pick on each question is the one that counts. Getting one wrong here is how the lesson sticks.