4 Ways to Normalize and Scale Features for Regression Modeling

Image Source

Common Transformations

Log Transformation

If you have data that simply does not fit a normal distribution, a log transformation is a very valuable tool. Log transformations may help decrease skewness when you have skewed data and can also help minimize data variability.


The formula for standardization is:

  • Z = x-μ/σ

Min-Max Scaling

The formula for min-max scaling is:

  • Z = x-min(x)/max(x)-min(x)

Mean Normalization

The formula for mean normalization is:

  • Z = x-mean(x)/max(x)-min(x)



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Acusio Bivona

Acusio Bivona

Fitness, Sports, Data — And not necessarily in that order