how to outlier
An outlier can be created by a shift in the location. (mean) or in the scale (variability) of the process. Though an observation in a particular sample might be a. candidate as an outlier, the process might have shifted. Sometimes, the spurious result is a gross recording. error or a measurement error.