EVALUATION OF MEASUREMENT QUALITY USING THE MONTE-CARLO METHOD

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. Теоретические и экспериментальные исследования показали, что качество измерения зависит не только от вероятности достоверности и количества проведенных экспериментов, но и от типа закона распределения вероятностей значений. Качество измерения намного выше для нормально распределенной величины, в то время как самое низкое качество получается для равномерно распределенной величины.


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][2][3][4][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.

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][2][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 > 0 values. means the uncertainty of the point estimate and determines the accuracy of the estimate [2][3][4][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.
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. 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) Therefore: 3. If the density of the distribution of x random values decreases symmetrically on both sides of the mathematical expectation, then 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.

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 Stu-dent 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. № 3 (84) март, 2021 г. Different curves correspond to different values of confidence probability.

Figure 2. The dependence of the value of non-ordinary band of the number of experiments (Students distribution)
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.

. 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. март, 2021 г.

Quantitative comparison of results
Quantitative comparisons of the obtained results are shown in Table 4 and 5. 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.

Conclusion
Based on the analysis of the obtained results, we can draw the following conclusions: 1. 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.
2. The higher the probability of confidence, the greater the value of the corresponding uncertainty band .
3. 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.