...

/

Mean or median imputation

Mean or median imputation

The purpose of this lesson is to cover one of the most used techniques for imputing missing data within a numerical variable which is: mean and median imputation while exploring its advantages and disadvantages and learning how to implement it in a few lines of code.

Definition

This is the most common method of data imputation, where you just replace all the missing values (NA) with the mean or median of the column.

This method only works with numerical variables.

What to Consider

Here are some points to consider when using this method: ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy