How do you use the Min-Max formula to scale data into the range from 0 to 1?
Min-Max normalization is a method that linearly transforms raw data into the interval [0, 1]. The formula is , where is the original value, and and are the minimum and maximum values of that feature column, respectively.
Conditions
- The dataset has clear min and max values.
- max is not equal to min
Reasoning, step by step
- Identify the original value you want to normalize.
- Determine the minimum value and maximum value of the feature column.
- Substitute these values into the formula .
- Calculate the result to get the normalized value , which will fall within the interval [0, 1].
Example
For a house area of 1200, with a column minimum of 1000 and maximum of 1800, the calculation is .
Common misconceptions
- Assuming that one can directly train machine learning models using raw large-valued features without worrying about the impact of numerical scale.
Watch the explanation
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.