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

Visual check of normality

Before using Grubbs' test, you should first check that the observations are plausibly normal. The hist() function in R returns a histogram of the observations, which will help you to form a judgement about the normal assumption. hist() is used as follows

hist(data, xlab = "My x-axis label", breaks = 30)

  • data is a vector of numeric values
  • breaks the number of break points used to assign the data to bins
  • xlab an optional character string for the x-axis label

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.

head(river)

# Plot a histogram of the nitrate column
hist(___)
Kodu Düzenle ve Çalıştır