Skip to content
← All questions

Why do we need feature scaling when columns have different magnitudes?

Feature scaling is needed because raw features often differ in units and magnitudes, making them incomparable. Scaling brings them onto a common scale, which is necessary for many machine learning algorithms to function properly.

Conditions

  • Dataset contains multiple features with different units or ranges.
  • The model is sensitive to feature magnitudes (e.g., distance-based or gradient-based).

Reasoning, step by step

  1. Identify features with vastly different numerical ranges (e.g., Alcohol ~13-14 vs Malic ~1.7-2.6).
  2. Recognize that algorithms using Euclidean distance or gradient descent are affected by these differences.
  3. Apply scaling techniques like normalization or standardization to align the scales.

Example

The video shows a wine dataset where Alcohol values are around 13-14 and Malic values are around 1.7-2.6, motivating the need to scale them down to the same scale.

Common misconceptions

  • Assuming all machine learning algorithms require feature scaling (tree-based models generally do not).
  • Believing that scaling changes the underlying distribution shape rather than just the scale.

Watch the explanation

Connected concepts

Explore next

Related questions

Understand why

↗
Find a method

↗
Meet the concept

↗
Meet the concept

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.