Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Data Standardization | Normalization & Standardization
Preprocessing Data

Swipe to show menu

book
Data Standardization

Another approach to scale the data is to standardize it: transform in such a way that mean is equal to 0 and std is equal to 1. Look at the formula:

Here ΞΌ is a mean value of x and Οƒ is a standard deviation. This way, we move each value such that total mean is 0, and normalize it with std, so new std is equal to 1.

Task

Swipe to start coding

Standardize the data in SibSp column by calculating mean and std values and use the formula above. Output some sample to see the modified data and check if the new values of mean and std are equal to 0 and 1 respectively.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 2
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Data Standardization

Another approach to scale the data is to standardize it: transform in such a way that mean is equal to 0 and std is equal to 1. Look at the formula:

Here ΞΌ is a mean value of x and Οƒ is a standard deviation. This way, we move each value such that total mean is 0, and normalize it with std, so new std is equal to 1.

Task

Swipe to start coding

Standardize the data in SibSp column by calculating mean and std values and use the formula above. Output some sample to see the modified data and check if the new values of mean and std are equal to 0 and 1 respectively.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt