เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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
___(___)
แก้ไขและรันโค้ด