Avsnitt 2. Kapitel 6
single
Challenge: Outlier Detection Using MAD Rule
Svep för att visa menyn
Uppgift
Swipe to start coding
Now, you will use the MAD rule to detect outliers in the California Housing Dataset. It contains various features related to housing characteristics in different districts in California.
In this task, we will detect outliers in the column MedInc, which stands for Median Income.
Your task is to:
- Fill in all gaps in
mad()function to calculate Mean Absolute Deviation. - Calculate the threshold using value
3as a threshold value. - Specify the rule to detect outliers that will be stored in the
outliersvariable.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 6
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal