- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
Advances in Fuzzy Systems
Volume 2012 (2012), Article ID 783843, 6 pages
Fuzzy Treatment of Candidate Outliers in Measurements
Division of Mechanics, Istituto Nazionale di Ricerca Metrologica (INRIM), Strada delle Cacce 91, 10135 Torino, Italy
Received 29 August 2011; Revised 16 January 2012; Accepted 2 February 2012
Academic Editor: Kemal Kilic
Copyright © 2012 Giampaolo E. D'Errico and Nadir Murru. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Robustness against the possible occurrence of outlying observations is critical to the performance of a measurement process. Open questions relevant to statistical testing for candidate outliers are reviewed. A novel fuzzy logic approach is developed and exemplified in a metrology context. A simulation procedure is presented and discussed by comparing fuzzy versus probabilistic models.
Measurement is intrinsically subject to uncertainty: according to the guide  ‘‘a measurement has imperfections that give rise to an error in the measurement result.’’ Thus, an accurate statistical analysis is important to optimize the estimation process.
Given a set of measurements, an outlier is an element significantly different from the others (see, e.g.,  and the standard ). The detection of an outlier in a data set can be really important. It can provide important information, like, the discovery of an unforeseen phenomenon, a miscalibration or fault in instrumentation, or a reporting mistake. Furthermore, it is important to take the correct decision about what to do with a candidate outlier: for this reason, different tests for outlier analysis have been studied.
Statistical tests perform screening of a dataset in order to individuate any candidate outliers, using hypothesis testing. Classical tests are the Grubbs  and the Dixon ones ; other similar tests were formulated, for example, by David and Quesenberry , Ferguson , and Thompson . All these tests provide a statistic to be compared with a critical value in order to conclude whether the doubtful observation is an outlier or not. The only difference relies on the construction of the statistic and the choice of the critical value. Most of them detect one outlier at a time, so they have to be repeated several times on the screened dataset to detect any further outliers. Different tests, based on similar ideas and hypotheses, like in [9, 10], have been developed for the simultaneous detection of many outliers.
Using a Bayesian approach, some theoretical problems for the above tests are highlighted in this paper: to cope with such problems, an outlier analysis based on fuzzy logic is proposed, and a fuzzy treatment procedure is developed. Some works of related interest are  (general theory and application of fuzzy sets and systems),  (evidence theory with application to uncertainty treatment), [13–17] (fuzzy treatments of uncertainty in diverse fields, including measurement and temporal information), [18, 19] (Bayesian approach to outliers processing).
The paper is organized as follows. In Section 2, some statistical tests for the detection of outliers in a set of observations are recalled. A review of these outlier tests is provided, focusing on Grubbs and Dixon ones. Moreover, some numerical examples are provided, and a criticism to orthodox hypothesis testing is considered from a Bayesian point of view. In Section 3, a novel outlier treatment based on fuzzy logic is developed with a simulation procedure implemented in MatlabTM. Strategy and implementation aspects are detailed in Section 3.1. An application is reported in Section 3.2, where also the procedure performance is discussed by comparing fuzzy versus probabilistic models. Finally, in Section 4 the inference system architecture is recapitulated, and concluding remarks are pointed out.
2. Statistical Tools: State of the Art and Open Questions
According to standard , an outlier is ‘‘an observation that appears to deviate markedly in value from other members of the sample in which it appears.’’ To process outliers, diverse tests have been originated and developed within the classical (Neyman-Pearson) hypothesis testing framework: a statistic is compared with a critical value related to a significance level , leading to rejection of the null hypothesis ‘‘the observation is not an outlier’’ if the statistic exceeds the critical value. Among the others, the Grubbs and Dixon tests can be considered paradigmatic examples (see standard ). They are used to screen sampled datasets, aiming at detecting possible outliers one by one. Tests for simultaneous detection of more outliers at a time were also proposed (e.g., ); however, in these tests the exact number of suspected outliers must be specified in advance, or at last an upper bound to this number must be known .
The Grubbs and Dixon tests are here briefly recalled, and a few examples are elaborated in order to discuss some relevant features with application to a Gaussian distributed sample, .
A one-sided test looks for candidate outliers on one side only of the ordered dataset (i.e., either for maximum or for minimum), whereas in a two-sided test the dataset is screened on both sides. Focusing on the two-sided Grubbs test , the following statistic is compared with a critical value obtained from the Students -distribution: where and are the sample mean and standard deviation, respectively, and is the value that maximizes over the data_set. If , then is considered an outlier at the related significance level .
Given the above data_set, a Dixon test  yields the statistic where is the candidate outlier, the observation closest to , and , are the maximum and the minimum respectively among the ’s. The statistic is confronted with a critical value that can be found in a table , where critical values originally calculated by Dixon  are corrected by use of interpolation analysis.
Whereas the Grubbs test is not limited to small samples, the original examples presented by Grubbs  pertain to samples of sizes 15 and 8. Moreover, the Dixon criterion is used on samples of small size only (see the original work of Dixon ). Consequently, case-studies focused on datasets of size 10 are apt at highlighting features and issues peculiar to this family of classical statistics tests.
Example 1. Let the sampled observations be
and let the Grubbs and Dixon tests be mutually compared on the same observed value , both at the significance level , for the null hypothesis . By applying the Grubbs test, at the critical value is . For the observation , : thus is rejected, and is considered an outlier to be removed from the data_set_1. On the contrary, by applying the Dixon test, at the critical value is , thus ; therefore, cannot be rejected: in this case the same value is not considered an outlier.
The two tests—even though both correctly performed in the same testing conditions—lead to divergent decisions. Moreover, if the decision is to discard the detected outlier from the dataset in view of further statistical processing, the surviving data cannot be considered a random sample of mutually independent observations: all of them are in fact associated by having passed the same selection criteria.
The Grubbs and Dixon tests can be repeated in order to detect more than one outlier—if any—in a given dataset. However, as shown in the following example where data are Grubbs-tested for multiple outliers, a test may happen to be unstable. This is a consequence of the fact that the statistic in (1) is a function of and of the sample parameters mean and standard deviation : these parameters are subject to change with exclusion/inclusion of individual values.
Example 2. Let the observed sample be
At the level , one single outlying value is detected. However, if the same value appears twice, that is, if the dataset is altered into
would not be considered an outlier (the initial inequality is reversed after duplication of the individual value ).
The conclusion is that drastic rejection or acceptance of a suspected outlier is not the best decision-making criterion: a better posed criterion might be to assign the suspected value a weight for further processing purpose. This is the idea developed in the next section by using fuzzy logics. Before moving to fuzzy logics, it should be noted that the classical Neyman-Pearson approach to hypothesis testing is challenged by Bayesian statistics. The probability, conditioned on the involved dataset, for an observation to be a candidate outlier can be dramatically different from the probability referred to in the family of classical tests (see, e.g,  for a numerical example illustrating how classical hypothesis testing can be prone to misinterpretation and misuse).
According to the Bayesian approach, the test is formalized in terms of inverse probability. Thus, the posterior probability of the hypothesis after the data have been observed is obtained by means of the Bayes rule. To develop a Bayesian model for candidate outliers testing, let the propositions (the so-called null hypothesis) and (alternative hypothesis) be two mutually exclusive and exhaustive hypotheses under test, namely, “the observation is not an outlier;” “the observation is an outlier.” Let the proposition “the test result is positive for a suspected outlier,” represent the available evidence.
The conditional probabilities and represent the test size (level of significance) and the power of the test, respectively. In tests based on orthodox statistics, two types of errors may occur in testing for outliers: an outlier may be missed with a probability (type I error), or a false detection may occur with a probability (type II error). A Bayesian approach to outlier testing is instead focused on computing the posterior probability of an observation being an outlier () given the test result is positive for a suspected outlier (), that is, . This can be computed as follows.
In terms of propositional calculus, let and represent two propositional variables. Let , , and denote logical conjunction (‘‘ and ’’), disjunction (‘‘ or ’’), and negation (‘‘not ’’), respectively. Noting that , can thus be partitioned into . Application of logical connectives to the probability function yields ; finally, using the Bayes rule:
The standard for dealing with outliers  remarks that rejection of aberrant observations should relay preferably upon physical—rather than statistical—grounds. On the base of such a remark, the treatment of possible outliers can be developed from a fuzzy logic standpoint, aimed at capturing physical grounds and related hypotheses by means of fuzzy processing tools. The proposed approach is developed starting from the consideration that the propositions ‘‘the observation is an outlier’’, and its negation can be modelled in fuzzy logic terms by assigning a truth degree, varying from zero (complete falsehood) to unity (full truth): the probability measure can thus be replaced by a purpose-built—according to the strategy presented in Section 3.1—fuzzy outlierness degree.
In terms of fuzzy sets, the logical connectives of conjunction, disjunction and negation are translated by fuzzy set-theoretic operations of intersection, union, and complementation, respectively. Using a standard model, originated by Zadeh  and further elaborated by Mamdani and Assilian , the fuzzy inference engine used in the present case-study is detailed in the next section.
3. Fuzzy Treatment
3.1. Strategy and Implementation
To tackle the above open questions, an alternative treatment to candidate outlier detection and processing is here developed in the framework of fuzzy logic. Fuzzy logic is integrated in the framework of the possibility theory (see, e.g., ), where a counterpart of the Bayes rule can be derived . Thus, a fuzzy logic treatment for outliers is not prone to Bayesian criticisms, unlike tests based on orthodox statistics.
To the purposes of present work, such a treatment is based on classical fuzzy logic rules, as introduced by Zadeh . Fuzzy logic potential as a paradigm for uncertainty treatment in measurement is studied in various works, such as [12–17, 26].
The focus here will be on criteria for transforming the outlier problem into fuzzy terms.
First of all, a definition of candidate outlying observations must be stated. According to the current use in technical literature (for distance-based approaches see, e.g., [27, 28]), the following definition is considered: an observation is a candidate outlier if its distance from a predefined reference value exceeds a given threshold. In fact, this definition makes explicit the assumptions underlying classical tests—see (1) and (2).
In these terms, the reference value and the threshold value are defined as the mean and a multiple (an integer value to be chosen for implementation) of the standard deviation respectively of a Gaussian probability density function (pdf).
Denoting by the pdf of conditioned to , the Bayes formula is , where is the posterior pdf, the prior pdf, and the likelihood function. Putting , the mean and the standard deviation are identified by and , respectively. Note that and are parameters whose values must be set after an expert judgment (in metrology terms, is named type B uncertainty estimation ), to initialize the algorithm. The values of and are required to specify the prior pdf , so they must be preset before starting the measurement process.
To design a suitable fuzzy strategy, some steps are required, so to introduce the notion of a fuzzy degree qualifying an observation to be a candidate outlier: for short, outlierness degree . The strategy can be detailed by introducing the distance , and the percentage expert’s estimate of uncertainty, expressed by (the case is not covered in this approach). For instance, by putting the outlierness degree of a single observation can be computed according to the following inference scheme that includes two inputs (fuzzy distance and uncertainty) and one output (outlierness).
The fuzzy distance is obtained after a fuzzification of the distance , according to:(i)if , then distance is verylong;(ii)if , then distance is long;(iii)if , then distance is medium;(iv)if , then distance is short.
The fuzzy uncertainty is obtained as follows:(v)if , then uncertainty is ample;(vi)if , then uncertainty is moderate;(vii)if , then uncertainty is narrow.
As to outlierness:(viii)if , then outlierness is high;(ix)if , then outlierness is intermediate;(x)if , then outlierness is low.
The inference system is based on the following ten rules:(R1.) if (distance is short) and (uncertainty is narrow), then (outlierness is low);(R2.) if (distance is short) and (uncertainty is moderate), then (outlierness is not high);(R3.) if (distance is short) and (uncertainty is ample), then (outlierness is intermediate);(R4.) if (distance is medium) and (uncertainty is narrow), then (outlierness is not high);(R5.) if (distance is medium) and (uncertainty is moderate), then (outlierness is intermediate);(R6.) if (distance is medium) and (uncertainty is ample), then (outlierness is not low);(R7.) if (distance is long) and (uncertainty is narrow), then (outlierness is intermediate);(R8.) if (distance is long) and (uncertainty is moderate), then (outlierness is not low);(R9.) if (distance is long) and (uncertainty is ample), then (outlierness is high)(R10.) if (distance is very long) then (outlierness is high).
The inference engine is the basic Mamdani model  (with if-then rules, minimax set-operations, sum for composition of activated rules, and defuzzification based on the centroid method) available from the MatlabTM fuzzy logics toolkit (Identification of commercial products in this paper does not imply recommendation or endorsement, nor does it imply that the products identified are necessarily the best available for the purpose.) Here, the fuzzification is detailed in terms of fuzzy distance, fuzzy uncertainty, and outlierness. The membership functions (depicted by triangular or trapezoidal shapes in Figure 1) reflect expert-based choices, after selection from an interactive menu purposely implemented.
The Mamdani model is congenial to capture and to code expert-based knowledge in view of performing targeted simulations; accordingly the system’s performance is tuned using heuristic criteria: Figures 1 and 2 illustrate its typical behaviour.
The outlierness degree is obtained by
application of the centroid defuzzification method. This provides the abscissa of the barycentre of the fuzzy set composed according to the activated rules. The overall functioning of the rules is summarized in the 3D graph in Figure 2.
3.2. Application and Discussion
The resulting is used to determine a weight entered in processing the data set for estimation purpose. Each individual value in the data set is assigned a weight , whose assignment rules are(w1) if , then (fully outlier); (w2) if , then (fully inlier); (w3) otherwise (fuzzy outlier).
In this way any fuzzy outlier, being not discarded from the data set, still contributes with its own weight to the final estimated value.
To assess the performance of the fuzzy treatment compared to Grubbs and Dixon tests, a numerical example is reported with reference to the data_set_1 of Example 1. According to Grubbs test, the suspected value is an outlier, on the contrary according to Dixon test the same suspected value is not an outlier. Such a disagreement is successfully managed by the fuzzy treatment, which assigns an outlierness degree.
The final result of the fuzzy procedure is influenced by values assigned to parameters and . For example, putting and , the fuzzy procedure performance is shown in Figure 3 with application to the candidate . The candidate results a fuzzy outlier with outlierness degree and, according to assignment rule (w3), it is assigned the weight .
The efficacy of this fuzzy treatment is supported by another example developed with application to the candidate outlier taken from data_set_2 of Example 2. Here, Grubbs test and Dixon test yield mutually contradictory results (Grubbs test detects the outlier ). Moreover, introducing an extra candidate outlier in the data set, a failure of the Grubbs test has been noted. Figure 4 shows how this candidate is detected and assigned its outlierness degree : in this case , and .
The presence of suspected outlying values in measurements has given rise to a long-standing problem. Its difficulty is mainly due to the lack of sharp criteria for outlier detection and treatment in an estimation process. The classical statistical approach to candidate outlier detection and treatment has been reviewed, highlighting some problems that have been discussed at a logical level. To overcome some of these problems, a novel fuzzy logic approach has been proposed and a system has been implemented. The system performance has been tuned by simulations: optimization and integration for perspective in-process metrology is envisaged for further developments.
The notion of a fuzzy outlier is introduced and specified in terms of an outlierness degree founded on metrological rather than statistical grounds (as suggested by the standard ). Such a degree is computed as the result of a 2-input/1-output fuzzy inference system. A Bayesian estimation process is referred to in the designed strategy. The expert-based estimates of the mean and of the standard deviation of the prior pdf in the Bayes rule, are used to initialize the process. Independence is not required in Bayes rule and the fuzzy treatment of data is not affected by statistical independence. Thus, whereas preservation of independence may be a problem for orthodox statistical tests, it is not for the proposed treatment of outliers. Fuzzifications of a candidate outlier’s distance from the mean value and of the standard deviation provide the inputs to the fuzzy inference system. The outlierness degree is obtained by centroid defuzzification.
In the light of the results of the research work presented and discussed so far, the following conclusions can be pointed out:(i)compared to orthodox hypothesis testing for outliers, such as Grubbs and Dixon tests, the developed fuzzy approach is not prone to criticisms raised by Bayesian statistics;(ii)the outlierness degree can be conveniently translated into a relative weight assigned to an outlier entering an estimation process;(iii)the efficacy of the proposed fuzzy inference system has been demonstrated on heuristic grounds, with successful management of case-studies, where orthodox tests would lead to mutually divergent decision-making.
- BIPM, IEC, IFCC et al., Evaluation of measurement data-guide to the expression of uncertainty in measurement (GUM 1995 with minor corrections), JCGM 100, 2008.
- F. E. Grubbs, “Procedures for detecting outlying observations in samples,” Technometrics, vol. 11, no. 1, pp. 1–21, 1969.
- T. J. Bzik, Testing for outliers—Practical and Philosophical Considerations, ASTM Standardization News, 2011.
- F. E. Grubbs, “Sample criteria for testing outlying observations,” The Annals of Mathematical Statistics, vol. 21, no. 1, pp. 27–58, 1950.
- W. J. Dixon, “Analysis of extreme values,” The Annals of Mathematical Statistics, vol. 21, no. 4, pp. 488–506, 1950.
- H. A. David and Quesenberry C. P., “Some tests for outliers,” Biometrika, vol. 48, no. 3/4, pp. 379–390, 1961.
- T. S. Ferguson, “On the rejection of outliers,” in Proceedings of the 4th Berkeley Symposium on Mathematical Statistics and Probability, vol. 1, pp. 253–287, 1961.
- W. R. Thompson, “On a criterion for the rejection of observations and the distribution of the ratio of deviation to sample standard deviation,” The Annals of Mathematical Statistics, vol. 6, no. 4, pp. 214–219, 1935.
- R. H. Moore and G. L. Tietjen, “Some Grubbs-type statistics for the detection of several outliers,” Technometrics, vol. 14, no. 3, pp. 583–597, 1972.
- B. Rosner, “Percentage points for a generalized ESD many-outlier procedure,” Technometrics, vol. 25, no. 2, pp. 165–172, 1983.
- D. Dubois and Prade H. M., Fuzzy Sets and Systems, Academic Press, London, UK, 1980.
- S. Salicone, Measurement Uncertainty—An Approach via the Mathematical Theory of Evidence, Springer, Berlin, Germany, 2007.
- G. Mauris, V. Lasserre, and L. Foulloy, “A fuzzy approach for the expression of uncertainty in measurement,” Measurement, vol. 29, no. 3, pp. 165–177, 2001.
- D. Dubois, A. Hadjali, and H. Pradel, “Fuzziness and uncertainty in temporal reasoning,” Journal of Universal Computer Science, vol. 9, no. 9, pp. 1168–1194, 2003.
- M. K. Urbanski and J. Wasowski, “Fuzzy approach to the theory of measurement inexactness,” Measurement, vol. 34, no. 1, pp. 67–74, 2003.
- A. Ferrero and S. Salicone, “The random-fuzzy variables: a new approach to the expression of uncertainty in measurement,” IEEE Transactions on Instrumentation and Measurement, vol. 53, no. 5, pp. 1370–1377, 2004.
- A. Ferrero, A. Federici, and S. Salicone, “Instrumental uncertainty and model uncertainty unified in a modified fuzzy inference system,” IEEE Transactions on Instrumentation and Measurement, vol. 59, no. 5, Article ID 5439819, pp. 1149–1157, 2010.
- B. de Finetti, “The Bayesian approach to the rejection of outliers,” in Proceedings of the 4th Berkeley Symposium on Mathematical Statistics and Probability, vol. 1, pp. 199–210, 1960.
- G. E. D'Errico, “Testing for outliers based on Bayes rule,” in Proceedings of the XIX IMEKO World Congress on Fundamental and Applied Metrology, Lisbon, Portugal, 2009.
- ASTM Standard E 178-08, Standard Practice for Dealing with Outlying Observations, American Society for Testing and Materials, West Conshohocken, Pa, USA, 2008.
- D. B. Rorabacher, “Statistical treatment for rejection of deviant values: critical values of Dixon's Q parameter and related subrange ratios at the 95% confidence level,” Analytical Chemistry, vol. 63, no. 2, pp. 139–146, 1991.
- W. J. Dixon, “Ratios involving extreme values,” The Annals of Mathematical Statistics, vol. 22, no. 1, pp. 68–78, 1951.
- L. A. Zadeh, “Fuzzy sets,” Information and Control, vol. 8, no. 3, pp. 338–353, 1965.
- E. H. Mamdani and S. Assilian, “An experiment in linguistic synthesis with a fuzzy logic controller,” International Journal of Man-Machine Studies, vol. 7, no. 1, pp. 1–13, 1975.
- D. Dubois and H. Prade, “Bayesian conditioning in possibility theory,” Fuzzy Sets and Systems, vol. 92, no. 2, pp. 223–240, 1997.
- G. E. D'Errico, “Paradigms for uncertainty treatments: a comparative analysis with application to measurement,” Measurement, vol. 42, no. 4, pp. 494–500, 2009.
- E. Knorr and R. Ng, “Algorithms for mining distance—based outliers in large data sets,” in Proceedings of the 24th International Conference on Very Large Data Bases, pp. 392–403, New York, NY, USA, 1998.
- K. Leiviska, J. Nasi, and A. Sorsa, “Sensor validation and outlier detection using fuzzy limits,” in Proceedings of the 44th IEEE Conference on Decision and Control, and the European Control Conference (CDC-ECC'05), pp. 7828–7833, Seville, Spain, December 2005.