I have a question on detecting the outliers in a time series like PPI, CPI, inflation,...etc.)
Which method should I use? How can I precisely detect these outliers in a test or a method?
Please mention about all methods.
I have a question on detecting the outliers in a time series like PPI, CPI, inflation,...etc.)
Which method should I use? How can I precisely detect these outliers in a test or a method?
Please mention about all methods.
An outlier is a surprising point. What points would surprise you?
Make up a rule and apply it.
What rule you make up depends on why you are detecting outliers in the first place. Many times, when people say they want to detect outliers, they don't really need to. Sometimes, they want to discard data. That's a mistake, unless there is data entry error, and data entry error can be detected by eye.
One definition of outlier is the following:
lower outliers: all points which are less than $Q1 - 1.5 \times IQR$,
upper outliers: all points which are greater than $Q3 + 1.5 \times IQR$
($Q1$ and $Q3$ are first and third quartiles of the distribution, and $IQR$ is the corresponding interquartile range.)
Extreme outliers are defined as:
lower extreme outliers: all points which are less than $Q1 - 3\times IQR$,
upper extreme outliers: all points which are greater than $Q3 + 3 \times IQR$.
More here, in Tukey's fences subsection.