Loading [MathJax]/extensions/TeX/boldsymbol.js

 

 

 

Min-Max Scaling

Another commonly used scaling method is min-max scaling. This is very useful for when we want the features to lie in a certain interval. To scale the feature x_j to the interval [a, b] , we can apply the transformation

x_j^{(i)} \rightarrow (b-a)\frac{x_j^{(i)} - \min(x_j)}{\max(x_j) - \min(x_j)} - a

where \min(x_j) and \max(x_j) return the minimum and maximum value of x_j over the data set, respectively.