Normalization and Standardization | Why to Scale the Features? | ML Basics

AI For Beginners · Beginner ·📐 ML Fundamentals ·1y ago

Key Takeaways

Normalization and Standardization techniques for feature scaling in Machine Learning

Full Transcript

hi and welcome back the topic of this video is data scaling often raw data comes with features that have vastly different ranges for example attendance rates reflecting the proportion of days an employee attends work out of the total available days job satisfaction ratings ranging from 0 to 10 salary which can range from 0 to infinity and let's say debt amounts which can vary from negative Infinity to positive Infinity see how different the scales are data scaling is the process of transforming our data so that different features are on a similar scale if you decide to train a machine learning model that relies on distance calculations like K nearest neighbors or support Vector machines the features having larger scales will dominate the calculations the same applies to neural networks but in a different way varying scales can seriously affect the training process thus even for powerful neural networks data scaling is essential the two most popular scaling methods used a lot in machine learning are minmax scaling and standardization minmax scaling or normalization scales data into the range of negative - 1 to positive 1 or 0 to 1 the resulting range is fixed and all values are proportionally scaled between maximum and minimum values preserving their relative distances useful for cases that require a fixed range for instance RGB images consist of pixels that range from 0 to 255 by scaling it from 0 to one you maintain a consistent scale across all pixel values however it is very sensitive to outliers let's imagine this data as we can see because of one outlier the whole data is concentrated into a small portion of the range making it harder for models to distinguish between them effectively standardization on the other hand converts the data to have zero mean and one standard deviation so unlike minmax scaling It Centers the data and normalizes the spread standardized scale is not bounded so you may have any value but with most values concentrated in -3 to positive3 range while many sources are indicating that outliers do not affect standardization it is not true it is still sensitive to outliers let's see how I have generated a normally distributed data that looks like this and here is the standardized version of it in each iteration I am going to add an outlier and standardize it to see how the distribution changes compared to the original data as we can see the data is becoming skewed and eventually ends up concentrating into a small portion the selection of these two data scaling methods is often not very critical while in some scenarios one method is preferred over the other one we will not go through it in this video but if you don't want to miss such educational videos follow us if you want to learn more about artificial intelligence subscribe to our channel to be aware of the new videos press the like button and let's discuss AI in the comments section

Original Description

#ai #ml #artificialintelligence #learning #coding #machinelearning #datascience 🔥 Normalization and Standardization are the most popular scaling methods used in Machine Learning. But why we scale our features? Raw data often comes with features having varying scales. If we decide to use algorithms relying on distance calculations like K-Nearest Neighbors, Support Vector Machines or even Neural Networks, we will need to scale our features to be sure the feature having higher scale does not dominate the calculations. Normalization scales the feature to a fixed range 0 to 1, or -1 to 1. Standardization, on the other hand, is useful when your data follows a normal distribution, because it standardizes the distribution forcing it to have 0 mean and 1 standard deviation. Thus, it centers the data and standardizes the spread. Both methods have their advantages and disadvantages. In practice, the proper method is selected by taking into account the data distribution, the algorithm, range sensitivity, etc. 🔍 Key points covered: 0:00 - Introduction. 0:28 - What is data scaling? 0:38 - Why we need data scaling? 1:10 - Min Max Scaling = Normalization. 1:26 - An example of Min Max Scaling. 1:42 - It is very sensitive to outliers! 1:56 - Standardization. 2:16 - Standardization is also sensitive to outliers! 2:45 - End notes. 2:58 - Subscribe to us! 🔔 Don't forget to like, subscribe, and hit the bell icon to stay updated with our latest videos! 🤖 Note that we use synthetic generations, such as AI-generated images and voices, to enhance the appeal and engagement of our content. 🌐 If you have any questions or topics you want us to cover, leave a comment below. Additionally, share with your thoughts about the content, how do you think we can make them better? Thanks for watching!
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from AI For Beginners · AI For Beginners · 22 of 32

1 Artificial Intelligence Explained In Simple Words | What Is AI? | Explained On A Real World Example!
Artificial Intelligence Explained In Simple Words | What Is AI? | Explained On A Real World Example!
AI For Beginners
2 AI vs. ML vs. DL vs. DS - Difference Explained | On Real World Examples | AI For Beginners
AI vs. ML vs. DL vs. DS - Difference Explained | On Real World Examples | AI For Beginners
AI For Beginners
3 Types Of Machine Learning Algorithms | Explained On Real World Examples | ML For Beginners
Types Of Machine Learning Algorithms | Explained On Real World Examples | ML For Beginners
AI For Beginners
4 Best AI Music Generator | Music Generation Tool for FREE | MusicGen developed by Meta AI
Best AI Music Generator | Music Generation Tool for FREE | MusicGen developed by Meta AI
AI For Beginners
5 The Ultimate Guide To Supervised Learning | Explained On Binary Classification Example | Part 1
The Ultimate Guide To Supervised Learning | Explained On Binary Classification Example | Part 1
AI For Beginners
6 The Ultimate Guide To Supervised Learning | Classification And Regression | Part 2
The Ultimate Guide To Supervised Learning | Classification And Regression | Part 2
AI For Beginners
7 Linear Regression Explained | A Beginner's Guide To Regression | The Basics You Need to Know!
Linear Regression Explained | A Beginner's Guide To Regression | The Basics You Need to Know!
AI For Beginners
8 Assumptions Of Linear Regression | What To Do If The Assumptions Do Not Hold? | Part 1
Assumptions Of Linear Regression | What To Do If The Assumptions Do Not Hold? | Part 1
AI For Beginners
9 Checking The Assumptions Of Linear Regression | Statistical And Visual Methods | Part 2
Checking The Assumptions Of Linear Regression | Statistical And Visual Methods | Part 2
AI For Beginners
10 The Purpose of Train-Test Split in Machine Learning | How to Correctly Split Data?
The Purpose of Train-Test Split in Machine Learning | How to Correctly Split Data?
AI For Beginners
11 The Role of Validation Sets in Model Training | Train-Test-Validation Splits | Clearly explained!
The Role of Validation Sets in Model Training | Train-Test-Validation Splits | Clearly explained!
AI For Beginners
12 Overfitting and Underfitting | Bias and Variance Tradeoff in Machine Learning | Clearly Explained!
Overfitting and Underfitting | Bias and Variance Tradeoff in Machine Learning | Clearly Explained!
AI For Beginners
13 Gradient Descent Explained | How Do ML and DL Models Learn? | Simple Explanation!
Gradient Descent Explained | How Do ML and DL Models Learn? | Simple Explanation!
AI For Beginners
14 Main Types of Gradient Descent | Batch, Stochastic and Mini-Batch Explained! | Which One to Choose?
Main Types of Gradient Descent | Batch, Stochastic and Mini-Batch Explained! | Which One to Choose?
AI For Beginners
15 The Role of Loss Functions | Most Common Loss Functions in Machine Learning | Explained!
The Role of Loss Functions | Most Common Loss Functions in Machine Learning | Explained!
AI For Beginners
16 How to Evaluate Your ML Models Effectively? | Evaluation Metrics in Machine Learning!
How to Evaluate Your ML Models Effectively? | Evaluation Metrics in Machine Learning!
AI For Beginners
17 8 Best Tips For Cleaning Your Data | Data Cleaning | Machine Learning, Data Preparation.
8 Best Tips For Cleaning Your Data | Data Cleaning | Machine Learning, Data Preparation.
AI For Beginners
18 Numerical vs. Categorical Data | Represent Your Dataset Correctly!
Numerical vs. Categorical Data | Represent Your Dataset Correctly!
AI For Beginners
19 3 Main Types of Missing Data | Do THIS Before Handling Missing Values!
3 Main Types of Missing Data | Do THIS Before Handling Missing Values!
AI For Beginners
20 7 PROVEN Strategies To Become An AI Engineer (2025 Updated)
7 PROVEN Strategies To Become An AI Engineer (2025 Updated)
AI For Beginners
21 Easiest Guide to K-Fold Cross Validation | Explained in 2 Minutes!
Easiest Guide to K-Fold Cross Validation | Explained in 2 Minutes!
AI For Beginners
Normalization and Standardization | Why to Scale the Features? | ML Basics
Normalization and Standardization | Why to Scale the Features? | ML Basics
AI For Beginners
23 The Ultimate Guide to Hyperparameter Tuning | Grid Search vs. Randomized Search
The Ultimate Guide to Hyperparameter Tuning | Grid Search vs. Randomized Search
AI For Beginners
24 How is Artificial Intelligence different from Traditional Programming?
How is Artificial Intelligence different from Traditional Programming?
AI For Beginners
25 All Machine Learning Models Clearly Explained!
All Machine Learning Models Clearly Explained!
AI For Beginners
26 6 Mistakes to Avoid When Learning Machine Learning in 2025
6 Mistakes to Avoid When Learning Machine Learning in 2025
AI For Beginners
27 Best Practices for Effective Data Visualization In Machine Learning!
Best Practices for Effective Data Visualization In Machine Learning!
AI For Beginners
28 Central Limit Theorem Intuition Explained Like You're 5!
Central Limit Theorem Intuition Explained Like You're 5!
AI For Beginners
29 Which Door Would You Choose? | Monty Hall Problem Explained!
Which Door Would You Choose? | Monty Hall Problem Explained!
AI For Beginners
30 All Machine Learning Concepts Explained in 18 Minutes!
All Machine Learning Concepts Explained in 18 Minutes!
AI For Beginners
31 What’s the Probability That Two Randomly Drawn Chords in a Circle Intersect?
What’s the Probability That Two Randomly Drawn Chords in a Circle Intersect?
AI For Beginners
32 Causation vs Correlation | The Most Confused Concept in Data Science
Causation vs Correlation | The Most Confused Concept in Data Science
AI For Beginners

Related Reads

📰
AI Hardware Requirements: What You Actually Need for Training, Inference, and Data Work
Learn the AI hardware requirements for training, inference, and data work to optimize your machine learning workflow
Medium · Machine Learning
📰
Encoding Ordinal Categorical Data: Teaching Machine Learning the Meaning Behind Rankings
Learn to encode ordinal categorical data to teach machine learning models the meaning behind rankings
Medium · Machine Learning
📰
Encoding Ordinal Categorical Data: Teaching Machine Learning the Meaning Behind Rankings
Learn to encode ordinal categorical data to teach machine learning models the meaning behind rankings and improve model performance
Medium · Data Science
📰
Encoding Ordinal Categorical Data: Teaching Machine Learning the Meaning Behind Rankings
Learn to encode ordinal categorical data to teach machine learning models the meaning behind rankings
Medium · Python

Chapters (10)

Introduction.
0:28 What is data scaling?
0:38 Why we need data scaling?
1:10 Min Max Scaling = Normalization.
1:26 An example of Min Max Scaling.
1:42 It is very sensitive to outliers!
1:56 Standardization.
2:16 Standardization is also sensitive to outliers!
2:45 End notes.
2:58 Subscribe to us!
Up next
What is Deep Learning Explained with Examples
VLR Software Training
Watch →