Doctor of Technical Sciences, Georgian Technical University, Georgia, Tbilisi
Evaluation of Measurement Quality Using the Monte-Carlo Method
DOI: 10.32743/UniTech.2021.84.3-4.65-70
ABSTRACT
The article discusses the dependence of measurement value the uncertainty on the number of experiments performed under different confidence probability conditions. The computer experiment was performed in the LabVIEW software environment. Theoretical and experimental research has shown that the quality of measurement depends not only on the probability of confidence and number of experiments conducted, but also on the type of law of probability distribution of value. The measurement quality is much higher for a normally distributed quantity, while the lowest quality is obtained for a uniform distributed value.
АННОТАЦИЯ
В статье обсуждается зависимость величины неопределенности измерения от количества экспериментов, проведенных при различных условиях доверительной вероятности. Компьютерный эксперимент проводился в программной среде LabVIEW. Теоретические и экспериментальные исследования показали, что качество измерения зависит не только от вероятности достоверности и количества проведенных экспериментов, но и от типа закона распределения вероятностей значений. Качество измерения намного выше для нормально распределенной величины, в то время как самое низкое качество получается для равномерно распределенной величины.
Keywords: Monte-Carlo Method, measuring, LabVIEW, non-ordinary
Ключевые слова: метод Монте-Карло, измерения, LabVIEW, неосновной
Introduction
In any field of science, technology and modern life it is difficult to name a field, process, event that is not valued by quality. Obviously, the quality of the measurement is no exception.
Although numerous articles and studies [1-5] have been devoted to measuring the quality of measurement, in fact quantitative evaluation is obtained only when the measurable quantity is distributed according to the law of normal distribution. In the case where the law of measurement parameter distribution is not close to normal, determining the quality of the measurement is a task that requires radical additional research. Our era is characterized by rapidly evolving new technologies that are radically changing human activities and lives. One such new and revolutionary technology is virtual device technology, which imitates real physical devices. The LabVIEW software environment is a clear example of such technologies.
The main purpose of the article is to theoretically and experimentally determine the dependence of the uncertainty of the point evaluation of measurable value on the number of experiment performed (not exceeding 20), under different confidence probability conditions (P = 0.8; 0.9; 0.95; 0.99). The study should be conducted both for the normally distributed X value and for the case where the X-value is subject to the laws of uniform and Laplace distribution. Computer implementation involve the use of the LabVIEW software environment.
1.1. The main part.
Accuracy of Mathematical Expectation Estimation According to the Monte-Carlo method
As it is known, measurement quality is a set of measurement properties that ensure the compliance of the means, method, methodology, measurement conditions and unity with the requirements that ensure the solution of the measurement task. Therefore, the quality of the measurement refers to the set of features that determine the accuracy of a given measurement accuracy given in a given form and performed in a given time. Measurement quality indicators are: accuracy, correctness and truthfulness. [1-3]
When using the statistical model of the measurement process, the measurable value is determined by the function of density probability distribution and numeral characteristics: mathematical expectation, dispersion, mean square deviation, correlation coefficient, etc. But because the number of measurements or observations is always limited, we are forced to be satisfied with estimates of these numerical characteristics only. Evaluation must be thorough, irreplaceable, effective [2]. These requirements are met by the arithmetic mean of N observations.
Task formulation: Assume that an observation of the N number of observation on random values X is made. The mathematical expectation of X is and the mean square deviation is . On the basis of n measurements is obtained - mathematical expectation estimation. If n is large enough, determine P probability that the estimate differs from true value by not more than values. means the uncertainty of the point estimate and determines the accuracy of the estimate [2-5.
The solution to this task is considered in three cases:
1) X random value has a law of normal distribution;
2) The law of distribution of value X is unknown.
3) The length X has a symmetrical, unimodal distribution.
1. It is known that in the first case the probability of -confidence is given.
, (1)
t is a parameter that depends on P-confidence probability and is given in the table.
(1) According to the (1), the minimum value of n number of experiments, that will satisfy the value of , can be determined.
(2)
2. When the law of distribution of the value x is unknown, it is assumed that in this case the value must be assigned the law of uniform distribution (all values are equally expected)
(3)
Therefore:
(4)
3. If the density of the distribution of x random values decreases symmetrically on both sides of the mathematical expectation, then
(5)
From where
(6)
These are the expressive use in the compiling an algorithm and performing an experiment in the LabVIEW software environment.
The case where x random quantity is distributed according to the law of normal distribution is particular importance, because in the case of a very large number of experiments the value tends to return to normal. For small numbers of experiments the random x value is described by the Student distribution [2], which depends only on the number of experiments performed. There are statistical tables according to which the value of parameter t is found when the degree of freedom is equal to n-1.
Experimental Part.
1.2. Determining the Uncertainty Band in the Case of a Normal Distribution of the Value X
We have already considered the case where the measurable quantity is subject to the law of normal distribution. It is known from statistics that the law of Student distribution can describe the law of normal distribution if the number of measurements does not exceed 20.
Figure 1 shows a block diagram of a program created in the LabVIEW environment. At the entrance to the scheme is provided the realization of 20 random numbers with a student distribution, whose mathematical expectation is equal to 2 and the mean square deviation is 0.5.
Figure 1. Block DIagram
The value of the uncertainty band (width) is obtained at the output of the scheme, which determines the reliable intervals (interval1, interval2).
The results of experiment are given in Table 1, and the corresponding graphs are given in figure 2. The graph shows the dependence of the value of the uncertainty band on the number of experiments performed.
Table 1
The normal distribution
Figure 2. The dependence of the value of non-ordinary band of the number of experiments (Students distribution)
Different curves correspond to different values of confidence probability.
The first – 0.8; Second – 0.9; The third – 0.95 and the fourth – 0.99.
Figure 3 shows the Front Panel, which is a theoretically derived dependence of the indefinite strip on “n” points, where .
Figure 3. Front Panel - denotes the value of the uncertainty band obtained with probability p=0.95
Analysis of the experimental and theoretically obtained results shows that the obtained results and the theoretically existing dependence have the following character: In both cases, there is a decreasing nature of the dependence, only the experimental shows some different meanings. This must be so because in the same formula, different mean values of the mean square deviation are obtained at different “n”s. In addition, the value of the selection starts from zero, which is less than expected.
Determining the uncertainty band of X value in the case of Laplace distribution
We conducted a similar experiment for the Laplace distribution law, which belongs to the law of unimodal, and according to the Monte-Carlo method, in this case we should use the following effigy:
The results of the experiment are shown in Table 2.
Table 2.
Laplacian distribution
Figure 4. The dependence of the value of non-ordinary band of the number of experiments (Laplace distribution)
It should be note that the results obtained for the estimation of different x’s are again reflected in similar curves, which also confirm the decrease of with increasing n.
Determining the uncertainty band of X value in case of equal distribution
An experiment was performed when the law of distribution of value x is unknown. In this case it is advisable to use the law of uniform distribution as stated above.
The results of the experiment are given in Table 3 and Figure 5 is a graphical visualization of the results.
Table 3.
The Uniform Distribution
Figure 5. The dependence of the value of non-ordinary band of the number of experiments (The uniform distribution)
1.3. Quantitative comparison of results
Quantitative comparisons of the obtained results are shown in Table 4 and 5.
Table 4
n=7
P |
s |
The law of normal distribution |
The law of equal distribution |
The law of Laplace distribution |
0.8 |
1.30 |
0.393083 |
1.0987 |
0.732467 |
0.9 |
1.70 |
0.578286 |
2.03189 |
1.35459 |
0.95 |
2 |
0.718132 |
3.38062 |
2.37566 |
0.99 |
2.75 |
1.02901 |
10.394 |
6.92935 |
Table 5.
n=10
P |
s |
The law of normal distribution |
The law of equal distribution |
The law of Laplace distribution |
0.8 |
1.30 |
0.328877 |
0.919239 |
0.612826 |
0.9 |
1.70 |
0.483828 |
1.7 |
1.13333 |
0.95 |
2 |
0.600833 |
2.82843 |
1.98762 |
0.99 |
2.75 |
0.86093 |
8.69626 |
5.79751 |
Analysis of these tables shows that when n=7 and n=10 uncertainty bands increase with increasing confidence probability, the law of all three distributions.
2. Conclusion
Based on the analysis of the obtained results, we can draw the following conclusions:
- As the number of n experiments increases, the uncertainty of the point estimation (arithmetic mean of x) decreases for all values of the confidence probability.
- The higher the probability of confidence, the greater the value of the corresponding uncertainty band .
- The amplitude of the uncertainty depends on the type of the law of distribution of value: the best result is obtained for the case of the law of normal distribution of the value x, (we use the law of distribution of the student).
The analysis of the obtained results shows that the measurement quality is much higher for the normally distributed value, while the lowest quality has an uniform distributed value.
References:
- Evalution of measurement date-Guide to the expression of uncertaintly in measurement –Bureau Inrernational des Poids et Measures. 2008, 134p.
- Mathieu Rouaud. Probability, Statistics and Estimation. Propagation of Uncertainties in Experimental Measurement . 2013, 312p.
- M.N. Selivanov, A.E. Fliegman, J.F. Kudryasheva; Measurement quality. Metrological reference book.Moscow, 2009, 325 pages; [in Russian]
- Hemdi. A., Taha. I. “Introduction to Operations Research” 7th Edition, Chapter 18. Simulated Modeling 2007, pp.
- Chkheidze, General Theory of Measurements. Tbilisi, Publishing House, Technical University, 2007, 230 p. [in Georgian]