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)
datais a vector of numeric valuesbreaksthe number of break points used to assign the data to binsxlaban optional character string for the x-axis label
यह अभ्यास पाठ्यक्रम का हिस्सा है
Introduction to Anomaly Detection in R
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
head(river)
# Plot a histogram of the nitrate column
hist(___)