R로 시작하는 이상치 탐지 입문
Alastair Rushworth
Data Scientist
boxplot(temperature, ylab = "Celsius")

hist(temperature, breaks = 6)

대칭적이고 종 모양인가요?
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
최댓값의 위치
which.max(weights)
5
최솟값의 위치
which.min(temperature)
12
R로 시작하는 이상치 탐지 입문