CALCULATION OF REPEATABILITY AND REPRODUCIBILITY FOR QUALITATIVE DATA Koji Horie1, Yusuke Tsutsumi2, Yukio Takao3, Tomomichi Suzuki4 1, 3, 4 Department of Industrial Administration, Tokyo University of Science 2461 Yamazaki, Noda, Chiba, 278-8510, JAPAN 1 j7408629@ed.noda.tus.ac.jp 4 2 suzuki@ia.noda.tus.ac.jp Mitsubishi Tanabe Pharma Corporation 2-2-6 Nihonbashi-Honcho, Chuo-ku, Tokyo, 103-8405, JAPAN ABSTRACT For quality assurance of measurement results, evaluation of measurement performance is especially important, because measurement results depend on the measurement method. There is an international standard, ISO 5725-2, basic method for determination of repeatability and reproducibility of standard measurement method, and is dealing with interlaboratory experiments performed in order to obtain two measures of precision, repeatability and reproducibility. ISO 5725 assumes that the characteristic values are continuous and follow normal distribution. These assumptions do not hold for qualitative measurements. Therefore, recently, some methodological researches for qualitative data based on a variety of assumptions have been carried out. In this study, we compare and discuss some previous studies with different definitions. Also, we propose new method where beta binomial distribution is assumed to estimate the repeatability and reproducibility for qualitative data. Furthermore, we give an example and a simulation study to evaluate the performance of the method. Keywords: ISO 5725, beta binomial distribution, measurement method INTRODUCTION ISO, International Organization for Standardization, develops various international standards. There are standards for application of statistical methods including those regarding measurement method results. For quality assurance of measurement results, evaluation of measurement performance is especially important, because measurement results depend on measurement method. There is an international standard, ISO 5725, accuracy (trueness and precision) of measurements methods and results. It consists of six parts and the second part, ISO 5725-2 (1994), is the standard for basic method for determination of repeatability and reproducibility of standard measurement method, and is dealing with interlaboratory experiments performed in order to obtain two measures of precision, 1 Koji Horie1, Yusuke Tsutsumi2, Yukio Takao3, Tomomichi Suzuki4 repeatability and reproducibility. ISO 5725-2 amplifies the general principles to be observed in designing experiments for the numerical estimation of the precision of measurement methods by means of collaborative interlaboratory experiment. ISO 5725 assumes that the characteristic values are continuous and follow normal distribution. These assumptions do not hold for qualitative measurements where the measurement results are either 0(negative result) or 1(positive result). Therefore, recently, some methodological researches for qualitative data based on a variety of assumptions have been carried out. In this study, regarding the method of estimating accuracy for measurement method and result for qualitative data, we compare and discuss some previous studies which are proposed by Mandel (1997), Langton (2002), Wilrich (2006), and Takao et al (2007). Moreover, we propose new method where beta binomial distribution is assumed to estimate the repeatability and reproducibility for qualitative data and discuss the proposal method and result. REPEATABILITY AND REPRODUCIBILITY Precision In ISO 5725, accuracy of a measurement result or a measurement method or a measurement system is a general term which involves trueness and precision. Trueness, the closeness of agreement between the average value obtained from a large series of measurement results and an accepted reference value, is usually expressed in terms of bias which is the difference between the expectation of the measurement results and the accepted reference value. Precision, the closeness of agreement between independent measurement results obtained under stipulated conditions, is usually expressed in terms of standard deviations of the measurement results. Repeatability and Reproducibility for Quantitative Data Generally, when the accuracy of a measurement method is shown, it is known that two measures of accuracy named repeatability and reproducibility is required. Repeatability is measurement results under repeatability conditions where independent measurement results are obtained with the same method on the identical test items in the same laboratory by the same operator using the same equipment within short intervals of time. Reproducibility is measurement results under reproducibility conditions where measurement results are obtained with the same method on identical test items in different laboratories with different operators using different equipment. In ISO 5725 series basic model for measurement result y is given by eq.1 in order to estimate accuracy of measurement method. y mBe (1) m: general mean (expectation) B: laboratory component of variation (under repeatability conditions) e: random error (under repeatability conditions) Expectation and variance of B are assumed to be 0, and L2, the between-laboratory variance respectively. Expectation of e is assumed to be 0 and its variance, the within laboratory variance, is assumed to be equal in all laboratories and is denoted as repeatability variance r2. Repeatability standard deviation r and reproducibility standard deviation R are defined as formula eq.2 and eq.3. r V e (2) R V B V e (3) 2 Calculation of Repeatability and Reproducibility for Qualitative Data Repeatability and Reproducibility for Qualitative Data At present, theory of repeatability and reproducibility for qualitative data have not been established, because it is difficult to define dispersion, mean and distribution of proportion for qualitative data. However, some methods are proposed. Method by Mandel John Mandel (1997) proposed the method of estimating repeatability standard deviation and reproducibility standard deviation in each laboratory. ‘repeatability standard deviation’ If the laboratories record only a single result for each material, say x successes out of n trials, then the proportion of successes is x/n. The variability within laboratories is then measured by the standard deviation given by the theory of the binomial distribution and it is given by eq.4. x x 1 n n n s (4) ‘reproducibility standard deviation’ In laboratory i, yi is the ratio of the total number of successes to the total number of trials. Represent the variance between laboratories by VB. This quality is unknown. He proposes to calculate it by an iterative process. He start with an initial value, say VB0. Calculate the weights wi for all laboratories is given by eq.5. wi 1 , i 1 to L VB0 Vi (5) In eq.5, Vi is the repeatability variance for laboratory i. The weighted average is given by eq.6. ~ y w y w i i i (6) i i Then G and R are given by eq.7 and eq.8 respectively, and DEL (eq.10) is calculated by eq.7 and eq.8. G wi y i ~ y L 1 (7) R wi2 y i ~ y (8) 2 i 2 i DEL G R (9) The new VB value is given by eq.10. VB VB0 DEL (10) The process is continued by substituting the new value VB for the previous one (VB0). The iteration are then carried out until |DEL| is sufficiently small. The reproducibility standard deviation for laboratory i is the square root of the final sum, and given by eq.11. Vreproducibility VB Vi (11) Method by Langton S.D. Langton (2002) proposed that accordance is defined as qualitative equivalent of repeatability and concordance is defined as qualitative equivalent of reproducibility. 3 Koji Horie1, Yusuke Tsutsumi2, Yukio Takao3, Tomomichi Suzuki4 ‘Accordance’ Accordance is the (percentage) ratio that two identical test materials analyzed by the same laboratory under standard repeatability conditions will both be given the same result (i.e. both found positive or both found negative). Accordance is given by eq.12. Ai xx 1 n x n x 1 nn 1 A 1 L Ai L i 1 (12) x: number of success n: number of trials L: number of laboratories Ai: Accordance for laboratory ‘Concordance’ Concordance is the percentage ratio that tow identical test materials sent to different laboratories will both be given the same result (i.e. both found positive or both found negative result). Concordance is given by eq.13. Ci 2 xx nL nLnL 1 Ai nLn 1 n 2 LL 1 C 1 L Ci L i1 (13) x: number of success n: number of trials L: number of laboratories Ai: Accordance for laboratory Ci: Concordance for laboratory Method by Wilrich Peter-Th. Wilrich (2006) defined theoretical variance ri2,r2,L2, and R2 of the measurement results yij; j = 1, . . . , n in laboratory i, as in ISO 5725-2. Under the basic assumption of independent measurements in the laboratories which is maintained here, the yij; j = 1, . . . , n, in laboratory i are Bernoulli distributed with the expectation i and the variance, ri2 i (1 i ) . (14) Their sum n xi yij (15) j 1 the number of positive result under the n measurements, is Binomial distributed with parameter i and n. He define the average of the within laboratory variances of all L laboratories in the population, r2 1 L 2 1 L i (1 i ) ri L L i 1 i 1 (16) as (average) repeatability variance. The between laboratory variance in the population of laboratories is L2 1 L ( i ) 2 . L 1 i 1 (17) 4 Calculation of Repeatability and Reproducibility for Qualitative Data It is a measure of variation between the sensitivities i of the laboratories. The reproducibility variance R2 is defined as in ISO 5725-2, R2 r2 L2 . (18) The estimate of the repeatability variance r2 is n 1 L n 2 sr2 ˆ i 1 ˆ i sr n 1 L n 1 i 1 (19) where sr2 1 L ˆi (1 ˆi ) L i 1 is the average of the estimated within laboratory variance E ( sri2 ) (20) sri2 ˆ i (1 ˆ i ) of the labotratories. The expectation of sri2 is n 1 n 1 2 i (1 i ) ri , n n (21) i.e. it is biased; its bias is corrected by multiplication with n/(n-1), as in the formula for sr2. The estimate of the between laboratory variance L2 is L 1 1 2 s L2 max 0, ˆ i ˆ sr2 . n L 1 i 1 (22) The estimate of the reproducibility variance is s R2 s r2 s L2 . (23) Method by Takao et al. Takao et al. (2007) proposed a method of estimating reproducibility where the positive/negative proportion of each laboratory is took logit transformation and the average of the proportion is computed, in order to consider the dispersion of the proportion in each laboratory. In addition, the method assumes binomial distribution. Logit transformation is given by eq.24. L ln 1 (24) THEORETICAL COMPARISON OF PROPOSED STUDIES Relation between Repeatability Standard Deviation by Mandel and Accordance by Langton In order to verify the differences between repeatability standard deviation by Mandel and accordance by Langton, the following result is gained. 5 Koji Horie1, Yusuke Tsutsumi2, Yukio Takao3, Tomomichi Suzuki4 nn 1 xx 1 n x n x 1 nn 1 2 xn x nn 1 1 Ai x n x n 2 n n n 1 2 nˆi 1 ˆi n 1 (25) 2 2n 2 y 2n 2 V y V V ˆi n 1 n 1 n n 1 x: number of success n: number of trials Ai: Accordance for laboratory i:detective ratio for laboratory V( ̂ i ): repeatability for laboratory by Mandel Thus, we derived that repeatability standard deviation by Mandel and accordance by Langton are linear relation and mathematically equivalent. Relation between Repeatability Standard Deviation by Wilrich and Accordance by Langton In order to verify the differences between accordance by Langton and repeatability variance by Wilrich, the following result is gained. 1 Ai nn 1 xx 1 n x n x 1 nn 1 2 nˆ i 1 ˆ i n 1 Overall repeatability is as follows. 1 L 1 Ai n 1 L ˆ i 1 ˆ i L i 1 2 n 1 L i 1 (26) x: number of success n: number of trials L: number of laboratories Ai: Accordance for laboratory i:detective ratio for laboratory Thus, we derived that accordance by Langton and repeatability variance by Wilrich are mathematically equivalent. Relation between Reproducibility Standard Deviation by Wilrich and Concordance by Langton In order to verify the differences between concordance by Langton and reproducibility variance by Wilrich, the following result is gained. 6 Calculation of Repeatability and Reproducibility for Qualitative Data 2r r nL nLnL 1 Ai nLn 1 n 2 LL 1 2nLˆ ˆ 1 nˆ i 1 ˆ i 1 nL 1 n ˆ i 1 ˆ i , r nLˆ Ai 1 2 n 1 Ci 1 Ci Lˆ 1 ˆ ˆ i 1 ˆ i 2 L 1 L 1 ˆ 1 ˆ ˆi 1 ˆ i L 1 L 1 ˆi 1 ˆi 1 Lˆ 1 ˆ Lˆi 1 ˆi L 1 1 2 ˆi 1 ˆi Lˆi ˆ 2 Lˆˆi 2 Lˆ 2 Lˆ Lˆi L 1 Overall reproducibility is as follows. 1 L 1 Ci 1 L 1 1 L 2 Lˆ i ˆ 2 Lˆˆ i 2 Lˆ 2 Lˆ Lˆ i ˆ i 1 ˆ i L i1 2 L i1 L 1 L i1 1 L 1 L ˆ i ˆ 2 ˆ i 1 ˆ i L i1 L 1 i 1 L ˆ i Lˆ i1 (27) x: number of success n: number of trials L: number of laboratories Ai: Accordance for laboratory Ci: Concordance for laboratory : overall detective ratio i:detective ratio for laboratory Thus, we derived that concordance by Langton and reproducibility variance by Wilrich are mathematically equivalent. PROPOSAL USING BETA BINOMIAL DISTRIBUTION Beta Binomial Distribution Beta binomial distribution is a compound distribution that assumes the beta distribution of the defective ratio parameter P of binomial distribution. When random variable X follows beta distribution, the variable is given by eq.28. n B x , n x Pr X x B , x x 1,2,..., n, a 0, b 0 (28) In eq.28, n, , are parameters, and B(, ) is beta function. Probability distribution function is given by eq.29. n x p 1 p 1 0 x n x f p; , dp (29) 7 Koji Horie1, Yusuke Tsutsumi2, Yukio Takao3, Tomomichi Suzuki4 f p; , 1 b 1 p a 1 1 p B , (30) Eq.30 is probability density function of beta distribution. The expectation and variance of random variable, X which is followed by beta binomial distribution is given by eq.31 and 32 respectively. EX V X n (31) n n (32) 2 1 Model In this study, we define that total results ny i. out of n trials in each laboratory i follow beta binomial distribution. Consequently, model is given by eq.33. nyi. ~ BetaBinomi al n, , (33) Definition of the Model If in each laboratory each measurement results follow binomial distribution and dispersion of measurement results between laboratories follow beta distribution, the number of measurement results for laboratory follow beta binomial distribution. The variance of beta binomial distribution is transformed and given by eq.34. V X n n 1 2 n 2 1 1 n 1 (34) 1 , 1 The variance of the beta binomial distribution is resolved as eq.35. n 2 1 1 n 1 n 1 1 n 2 1 (35) The first member of right side shows the weighted average of the variance of binomial distribution, and the second member shows the variance of the beta distribution. Therefore, the former is defined as repeatability variance r2 in proposed method and is given by eq.36. r2 n 1 1 (36) The latter is defined as between laboratory variance L2 in proposed method and given by eq.37. L2 n 2 1 (37) Thus, reproducibility variance R2 is defined as ISO 5725 and given by eq.38. R2 r2 L2 (38) At actual presumption, the estimation of reproducibility variance is given by eq.39. ˆ R2 1 L xi nˆ 2 L 1 i 1 (39) In addition, the estimation of repeatability variance is given by eq.40 as in method by Wilrich. n 1 L nˆ i 1 ˆ i n 1 L i 1 ˆ r2 (40) Hence, the estimation of between laboratory variance is given by eq.41. 8 Calculation of Repeatability and Reproducibility for Qualitative Data ˆ L2 ˆ R2 ˆ r2 L 1 L xi nˆ 2 n 1 nˆ i 1 ˆ i L 1 i 1 n 1 L i 1 (41) Calculation Example The calculation example is shown. The data is used in study of Mandel (1997) and shown in the table 1. The table 1 represents the results obtained by 9 laboratories for a cigarette. Columns 1 and 2 in Table 1 represent the laboratory number and the number of ignitions observed 48 trials. Column 3 is the proportion of ignitions. Table 1 – Number and proportion of ignitions laboratory number of proportion of number ignitions ignitions 1 2 0.0417 2 5 0.1042 3 1 0.0208 4 3 0.0625 5 1 0.0208 6 3 0.0625 7 6 0.1250 8 16 0.3333 9 11 0.2292 Form the experimental data, if xi is the number of ignitions in each laboratory, the number of trials is n=48, and the number of laboratories is L=9, all probabilities ˆ is L ˆ x i 1 nL i 48 0.1111 48 9 Thus, the estimation of reproducibility variance is ˆ R2 9 1 L xi nˆ 2 1 xi 48 0.11112 25.75 L 1 i 1 9 1 i 1 The estimation of repeatability variance is n 1 L 48 1 9 nˆ i 1 ˆ i 48ˆ i 1 ˆ i 4.3546 n 1 L i 1 48 1 9 i 1 ˆ r2 Therefore, the estimation of between laboratories is ˆ L2 ˆ R2 ˆ r2 25.75 4.3546 21.3954 SIMULATION STUDY FOR EVALUATION OF THE PROPOSAL METHOD In the previous section, we proposed new method where is assumed beta binomial distribution. In this section, we give a simulation study to evaluate the estimating accuracy of our proposal method. In the experiment, we think about three conditions = = 0.5, = = 1 and = = 10 as ratio is = 1 1 (i.e. 0.5) regarding the parameters and of the beta binomial distribution. For each case, it assumes that the value takes only 1 and 0 to follow the beta binomial distribution, and the number of laboratories L = 10 are 9 Koji Horie1, Yusuke Tsutsumi2, Yukio Takao3, Tomomichi Suzuki4 constant, and n = 10, n = 50, n = 100 repeated measurements. Each of three interlaboratory experiments are repeated N = 1000 times. Table 2 shows the average results of the N = 1000 simulated interlaboratory experiments and the theoretical values. Table 2 - Simulation result = =0.5 estimate value repeatability variance theoretical value estimate beteenvalue laboratory theoretical variance value estimate value reproducibility variance theoretical value = =1.0 = =10 n =10 n =50 n =100 n =10 n =50 n =100 n =10 n =50 n =100 2 2 2 2 2 2 2 2 4.88162 1.1222 2.5102 3.5212 1.2855 2.8909 4.0673 1.5465 3.4506 1.11802 2.50002 3.53552 1.29102 2.88682 4.08252 1.54302 3.45032 4.87952 3.50652 17.56842 35.44922 2.90802 14.35562 29.05922 1.04432 5.47662 10.89372 3.53552 17.67772 35.35532 2.88682 14.43382 28.86752 1.09112 5.45542 10.91092 3.68172 17.74682 35.62372 3.17952 14.64382 29.34252 1.86602 6.47302 11.93742 3.70812 17.85362 35.53172 3.16232 14.71962 29.15482 1.88982 6.45502 11.95232 From table 2, the theoretical value and the estimate value are very close for each condition. Thus, as for the proposal method by this study, it is considered that the estimation accuracy is satisfactory. It is considered that the error of estimate value and theoretical value is due to the simulation. DISCUSSION Discussion on each of five methods ‘Method by Mandel’ When repeatability standard deviation is estimated, measurement results are assumed to follow binomial distribution. As for reproducibility standard deviation, the difference of a nonconformance ratio of each laboratory is considered by applying weight to a nonconformance ratio of each laboratory. As a problem, it is considered that accuracy is insufficient when numbers of trials are few. Because it is necessary to consider the dispersion of weight. Furthermore, the iterative calculation is not simple when reproducibility standard deviation is estimated. ‘Method by Langton’ When accordance is estimated, measurement method results are assumed to follow binomial distribution as in method by Mandel. As for concordance, it is considered that accuracy is insufficient when the dispersion of nonconformance ratio of each laboratory is large, because he doesn’t consider the dispersion of nonconformance ratio in each laboratory. The computation method is easy and might be practicable. ‘Method by Wilrich’ The method assumes that measurement results in each laboratory follow binomial distribution, and defines that the weighted average of the variance of binominal distribution is repeatability variance. Between laboratories variance, as well as formula of variance, shows the gap condition of the detection ratio of each laboratories and the entire ratio. Moreover, reproducibility variance is defined total of repeatability variance and between laboratories variance as in ISO 5725. In this method, when repeatability variance is estimated, bias is corrected by multiplication with n/(n-1). It is considered that the accuracy of estimation has risen very much by this correction. 10 Calculation of Repeatability and Reproducibility for Qualitative Data ‘Method by Takao et al.’ In the method, nonconformance ratio is taken logit transformation and reproducibility variance is estimated. Generally, it is said that the conditions where are n ˆ 5 and n(1- ˆ ) 5 are necessity as a rough guide when the transformation is used. Thus, when the condition is satisfied it is considered that accuracy is sufficient. Because the approximation by logit transformation has the validity of the model when a complex analysis is done, the value is widely admitted recently. ‘Proposal method’ The feature in a new proposal method is to be able to consider by resolving variance components of the beta binominal distribution into the repeatability variance and between laboratories variance by assuming the beta binominal distribution. In addition, this method is devised by the variance of the number while other proposal methods think by the variance of the ratio. The between laboratory variance might be concrete and be comprehensible when thinking by the variance of the number. Discussion on relations between five methods In an interlaboratory experiment on Mandel (1997), repeatability variance, between laboratory variance, and reproducibility variance are estimated by each method and indicated in the following tables 3. Table 3 – Estimate result repeatability variance between-laboratory variance reproducibility variance Proposal Wilrich Langton Mandel Takao 4.3546 0.0907 0.8186 estimate in each lab - 21.3954 0.0093 - 0.0080 - 25.75 0.1000 0.8000 estimate in each lab 0.0091 Because these estimation values are based on different assumption and there is no evaluation index, the comparison is very difficult. Thus, we discuss it from the point of view of definition and the model. In case of comparing the proposal method with the method by Wilrich, relational expression is given by eq.42. R2 _ proposal n r2_ Wilrich n 2 L2 _ Wilrich (42) Thus, there is also a similar relation in the result. Even though there is a difference that the method by Wilrich pays attention to the detection ratio while the new proposal method pays attention to the detection number of each laboratory, the estimation values have relation. Moreover, in case of comparing the method by Wilrich with the method by Langton, because it is found that there is linear relation between two methods from equations 26 and 27, there is similar relation also in estimation. In method by Mandel, in each laboratory repeatability and reproducibility standard deviation are estimated. The comparison with other methods is difficult, because the definition is different from other methods. CONCLUSION In this study, we clarified theoretical relations between the previous studies, then proposed and evaluated a new method. First, we found that there are linear relations as follows. 1. between repeatability standard deviation by Mandel and accordance by Langton 11 Koji Horie1, Yusuke Tsutsumi2, Yukio Takao3, Tomomichi Suzuki4 2. between repeatability variance by Wilrich and accordance by Langton 3. between reproducibility variance by Wilrich and concordance by Langton Second, the estimating accuracy of the proposal method was satisfactory. We found that new proposal method and the method by Wilrich are based on a similar model. Even though the conditions of simulation in this study were different from Wilrich’s, the simulation results were essentially the same. In fact, we found that we verified validity of the Wilrich’s study at the same time. REFERENCE [1] ISO 5725 (1994), Accuracy(trueness and precision) of measurement methods and result – Part 1 :General principles and definitions [2] ISO 5725 (1994), Accuracy(trueness and precision) of measurement methods and result – Part 2 : Basic methods for the determination of repeatability and reproducibility of a standard measurement methods [3] Langton, S. D., Chevennement, R., Nagelkerke, N., Lombard, B. (2002), Analysing collaborative trials for qualitative microbiological methods: accordance and concordance, International Journal of Food Microbiology 79, pp. 175-181 [4] Mandel, J. (1997), Repeatability and Reproducibility for Pass/Fail Data, Journal of Testing and Evaluation, JTEVA, Vol. 25, No. 2, March, pp. 151-153 [5] Takao, Y., Aochi, S., Suzuki, T. (2007) A study on repeatability and reproducibility for qualitative data (in Japanese). Proc. The 37th JSQC Annual Congress, pp 149-152 [6] Wilrich, P.-Th. (2006) The determination of precision of measurement methods with qualitative results by interlaboratory experiments Presented to WG2 "Statistics" of ISO/TC34/SC9 "Food Products - Microbiology" 12