Courseiva
Exploratory Data AnalysismediumMultiple ChoiceObjective-mapped

Handling Right-Skewed Data with Log Transformation

In exploratory data analysis, a data scientist notices that the distribution of a feature 'income' is heavily right-skewed. Which transformation is most appropriate to reduce skewness?

Quick Answer

The signal to catch here is heavily right-skewed, which describes a distribution with a long tail of unusually large values stretching out to the right, a pattern income data commonly follows, since most people earn within a moderate range while a small number earn far more. A log transformation compresses that long tail of large values much more than it compresses the smaller values near the bulk of the distribution, because the logarithm function grows more slowly as its input increases; the practical effect is that extreme high values get pulled closer to the rest of the data, while the low end of the distribution is stretched out relatively more, making the overall shape more symmetric and closer to normal. This matters for downstream modeling because many algorithms, particularly linear models and anything assuming roughly normal or homoscedastic errors, perform better and produce more interpretable coefficients when their input features aren't dominated by a small number of extreme outlying values. Log transformation is especially well suited to data like income precisely because such data often approximates a log-normal distribution to begin with, meaning the log of the values is closer to normally distributed even though the raw values are not. When exploratory data analysis reveals a heavily right-skewed numeric feature, especially one involving monetary amounts, counts, or other naturally multiplicative quantities, a log transformation is usually the first and most standard technique to reach for to reduce that skew.

⚠ Common exam trap

Test-takers frequently confuse scaling techniques (which change range or variance) with transformations that alter distribution shape, leading them to pick standardization or min-max scaling as a fix for skewness.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Log transformation.

Log transformation is the most appropriate technique to reduce right skewness in a feature like 'income' because it compresses the long tail of high values while expanding the lower end, making the distribution more symmetric. This is particularly effective for income data, which often follows a log-normal distribution, and is a standard preprocessing step in machine learning to improve model performance.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Standardization (z-score).

    Why it's wrong here

    Standardization does not change shape.

  • Square transformation.

    Why it's wrong here

    Square can increase skewness for right-skewed data.

  • Min-max scaling.

    Why it's wrong here

    Scaling does not affect skewness.

  • Log transformation.

    Why this is correct

    Log transformation reduces right skew.

About these practice questions

Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on MLS-C01

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. During exploratory data analysis, a data scientist notices that the distribution of a continuous feature is heavily right-skewed. Which transformation should be applied to make the distribution more symmetric for linear regression?

medium
  • A.Standardization (z-score)
  • B.One-hot encoding
  • C.Min-max scaling
  • D.Log transformation

Why D: Log transformation is commonly used to reduce right skewness and make the distribution more symmetric. Standardization (z-score) does not change the shape of the distribution; it only centers and scales. One-hot encoding is for categorical features, not continuous. Min-max scaling also does not affect skewness; it rescales the range but preserves shape.

Variation 2. During exploratory data analysis, a data scientist notices that a feature has a highly skewed distribution. Which transformation is most likely to make the distribution approximately normal?

easy
  • A.Log transformation
  • B.Min-max scaling
  • C.One-hot encoding
  • D.Standardization (z-score)

Why A: Log transformation is commonly used to reduce right skewness and make the distribution approximately normal. Option B (min-max scaling) is incorrect because it does not change the shape of the distribution. Option C (one-hot encoding) is incorrect because it is used for categorical variables, not for transforming continuous skewed data. Option D (standardization) is incorrect because it does not change the shape of the distribution.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.