Skip to content
← All questions

What is the formula for min-max normalization?

Min-max normalization is a linear transformation that scales the raw feature values to a fixed range, typically [0, 1]. It subtracts the minimum value of the feature from each data point and then divides by the range (maximum minus minimum).

Conditions

  • Applied to a continuous numerical feature.
  • Requires knowing the minimum and maximum values of the feature.
  • The maximum and minimum values must not be equal (to avoid division by zero).

Reasoning, step by step

  1. Identify the raw feature value xx.
  2. Find the minimum value xmin⁡x_{\min} and maximum value xmax⁡x_{\max} of the feature in the dataset.
  3. Subtract the minimum value from the raw feature: x−xmin⁡x - x_{\min}.
  4. Divide the result by the range of the feature: xmax⁡−xmin⁡x_{\max} - x_{\min}.
  5. The final transformed value is x′=x−xmin⁡xmax⁡−xmin⁡x' = \frac{x - x_{\min}}{x_{\max} - x_{\min}}.

Example

The video displays the formula on-screen as "min-max normalization : x' = (x - x_min) / (x_max - x_min)" and shows a pink histogram tightly clustered near zero, demonstrating how this method standardizes the data's range.

Common misconceptions

  • Assuming min-max normalization changes the shape of the distribution; it is a linear transformation that only shifts and scales the data.
  • Forgetting that the denominator is the range (xmax⁡−xmin⁡x_{\max} - x_{\min}) rather than just the maximum value.

Watch the explanation

Explore next

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