What is the primary difference between the Box-Cox transformation and the Yeo-Johnson transformation?

Quick Overview

Compares the Box-Cox and Yeo-Johnson power transforms, focusing on which input values each one can handle. Tests knowledge of the transform formulas, how the parameter lambda is fit, and when to choose each one during feature engineering.

What is the primary difference between the Box-Cox transformation and the Yeo-Johnson transformation?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the primary difference between the Box-Cox transformation and the Yeo-Johnson transformation? ```hint Look at the domain Ask which values of $x$ each formula can accept, and what you would have to do to a column that contains zeros or negative numbers. ``` ### What a Strong Answer Covers - The domain restriction of Box-Cox and how Yeo-Johnson removes it - The form of each transform and how the parameter $\lambda$ is chosen - Why the shift-constant workaround for Box-Cox is unsatisfying - When to pick each one in practice, including library defaults and fitting on training data only ### Follow-up Questions - How is $\lambda$ estimated, and what does a fitted value near 0 or near 1 tell you about the data? - If you power-transform the target of a regression model, what goes wrong when you invert the predictions back to the original scale? - Which model families benefit from these transforms, and which ones are unaffected? - When would a quantile transform be a better choice than either power transform?

Overview: Compares the Box-Cox and Yeo-Johnson power transforms, focusing on which input values each one can handle. Tests knowledge of the transform formulas, how the parameter lambda is fit, and when to choose each one during feature engineering.

General logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is the primary difference between the Box-Cox transformation and the Yeo-Johnson transformation?

What a Strong Answer Covers Guidance

  • The domain restriction of Box-Cox and how Yeo-Johnson removes it
  • The form of each transform and how the parameter λ\lambda is chosen
  • Why the shift-constant workaround for Box-Cox is unsatisfying
  • When to pick each one in practice, including library defaults and fitting on training data only

Follow-up Questions Guidance

  • How is λ\lambda estimated, and what does a fitted value near 0 or near 1 tell you about the data?
  • If you power-transform the target of a regression model, what goes wrong when you invert the predictions back to the original scale?
  • Which model families benefit from these transforms, and which ones are unaffected?
  • When would a quantile transform be a better choice than either power transform?