Data Normalisation: Min-Max, Z-Score, Decimal Scaling and Max-Abs

Open Tool Data Normalisation Tool

Why numbers need one scale

Ages run ten to eighty, incomes thousands to hundreds of thousands, distances fractions to tens of kilometres. Feeding all three into a model or a distance metric lets income dominate purely because its range is wider. Normalisation compresses ranges into a comparable interval. Four methods are offered: Min-Max to a chosen range, Z-score, decimal scaling and max-abs. Their definitions differ and so does their sensitivity to outliers.

Steps

  1. Enter one number per line, or separate with commas or spaces.
  2. Choose a method; Min-Max needs lower and upper bounds such as 0 and 1.
  3. Calculate to get per-item results alongside the extremes or mean and deviation used.
  4. Copy results, load the example, or clear.
  5. Store the parameters with the data, or future rows cannot use the same ruler.

The four formulas and their differences

Min-Max subtracts the minimum then divides by the range, mapping into the target interval; output is strictly bounded but one extreme value crushes everything else. Z-score subtracts the mean and divides by standard deviation, expressing distance in deviations with no bounds, suited to roughly normal data. Decimal scaling divides by a power of ten chosen so the largest magnitude falls below one — crude but simple. Max-abs divides by the largest magnitude, landing in minus one to one while preserving the position of zero, which suits sparse data.

Training and prediction must share one ruler

Parameters come from training data; minimum, maximum, mean and deviation must be persisted so new samples transform with the same values instead of recomputing extremes from fresh batches. Recomputing makes identical inputs produce different outputs across batches and the model drift. That is why scalers ship serialised with models. Merging datasets across systems starts with confirming both sides use the same parameters.

Outliers and distribution shape

Min-Max is most vulnerable: one typo doubling the maximum pushes everything else below 0.5. Z-score is affected but spread across the standard deviation, which softens it; max-abs is equally exposed. A robust path detects outliers via median and interquartile range first, trims or clips them at the fences, then normalises. Strongly skewed data benefits from a log transform before scaling.

Common problems:Wrong target bounds break downstream assumptions. Normalising only the training set inflates test scores. Zero denominators appear when all values coincide and need explicit handling. Normalisation and standardisation get conflated though the models assume different things. And rounding to two decimals erases every difference when values are small.

⏫︎