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

Grubbs' test

We've now checked that the data are normal. Now let's apply Grubbs' outlier test!

Grubbs' test assesses whether the value that is farthest from the mean is an outlier - the value could be either the maximum or minimum value. The test is performed using the grubbs.test() function from the outliers package:

grubbs.test(x)

  • x is the input data as a numeric vector

Bu egzersiz

Introduction to Anomaly Detection in R

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

Egzersiz talimatları

  • Run the Grubbs' test on the nitrate concentrations.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Apply Grubbs' test to the river nitrate data
___(___)
Kodu Düzenle ve Çalıştır