Lab Sheet 02
Lab Sheet 02
Normalization
Normalization is used to scale the data of an attribute so that it falls in a smaller range, such as
-1.0 to 1.0 or 0.0 to 1.0. It is generally useful for classification algorithms.
Normalization is generally required when we are dealing with attributes on a different scale,
otherwise, it may lead to a dilution in the effectiveness of an important equally important
attribute (on a lower scale) because of other attributes having values on a larger scale.
1) Min-max normalization
2) Z- Score
Step 1 -
● 5 attributes
1. outlook {sunny, overcast, rainy} --> Nominal
2. temperature → Numerial
3. humidity → Numerical
4. windy {TRUE, FALSE} --> Nominal
5. play {yes, no} --> Nomina
● No missing Values
● 14 instances
1) Min-max normalization
Guarantees all features will have the exact same scale but does not handle outliers well.
In the Normalize filter by default, the resulting values are in [0,1] for the data used to
compute the normalization intervals. But the scale & translation parameters can change.
Click on the white space in front of the selected filter and you will get the below
parameter panel
Do not change as it is. And then ok.
We knew that to apply normalization to our dataset, the dataset should have numerical
attributes that we need to scale within a given range.
1. temperature → Numerial
2. humidity → Numerical
1. Temperature
Before apply
After apply
2. Humidity
Before apply
After apply
Then go to edit and view the dataset. We can see the dataset is normalized.
2) Z- Score
Z-score normalization is a strategy of normalizing data that avoids this outlier issue.
But does not produce normalized data with the exact same scale.
Close explorer
This filter standardizes all numerical attributes in the given dataset to have zero mean and
unit variation(apart from the class attribute)
Click on the white space in front of the selected filter and you will get the below
parameter panel. Don’t change the default settings
1. Temperature
Before apply
After applying
2. Humidity
Before apply
After apply