Giới thiệu về Anomaly Detection bằng R
Alastair Rushworth
Data Scientist
boxplot(temperature, ylab = "Celsius")

hist(temperature, breaks = 6)

Đối xứng và dạng chuông?
Dùng hàm grubbs.test():
grubbs.test(temperature)
Grubbs test for one outlier
data: temp
G = 3.07610, U = 0.41065, p-value = 0.001796
alternative hypothesis: highest value 30 is an outlier
grubbs.test(temperature)
Grubbs test for one outlier
data: temperature
G = 3.07610, U = 0.41065, p-value = 0.001796
alternative hypothesis: highest value 30 is an outlier
p-value
Vị trí của giá trị lớn nhất
which.max(weights)
5
Vị trí của giá trị nhỏ nhất
which.min(temperature)
12
Giới thiệu về Anomaly Detection bằng R