ComenzarEmpieza gratis

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

Este ejercicio forma parte del curso

Introduction to Anomaly Detection in R

Ver curso

Instrucciones del ejercicio

  • Run the Grubbs' test on the nitrate concentrations.

Ejercicio interactivo práctico

Prueba este ejercicio completando el código de muestra.

# Apply Grubbs' test to the river nitrate data
___(___)
Editar y ejecutar código