शुरू करेंमुफ़्त में शुरू करें

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

यह अभ्यास पाठ्यक्रम का हिस्सा है

Introduction to Anomaly Detection in R

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Run the Grubbs' test on the nitrate concentrations.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Apply Grubbs' test to the river nitrate data
___(___)
कोड संपादित करें और चलाएँ