BaşlayınÜcretsiz Başlayın

Hunting multiple outliers using Grubbs' test

Grubbs' test found that the maximum value could be an outlier, but what if there are more? Further outliers can be found by repeating Grubbs' test, after removing any previously identified outliers from the data.

To identify the point that was tested, the which.min() or which.max() functions can be used to find the index containing the largest or smallest value - remember we know which of these it is from the Grubbs' test output.

Bu egzersiz

Introduction to Anomaly Detection in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Apply Grubbs' test to the nitrate data
grubbs.test(river$nitrate)

# Find row index of the max of the nitrate data
___(___)
Kodu Düzenle ve Çalıştır