scieee AI-readable full text Open interactive document viewer

Benford's Law. History, mathematical justification and applications

Talavera Palacios, Naila

Abstract

Grado en Estadística

Full text

Science Faculty Final degree Project Degree in Statistics Benford's Law. History, mathematical justification and applications. Author: Naila Talavera Palacios Tutor: Agustín Mayo 1 2 Table of contents Abstract/ Resumen.........................................................……………………………..5 1. Introduction.........................................................…………………………………..7 2. Biography/ History……………………………………………………………………..8 3. Mathematical Justification…………………………………………………………….9 3.1. The first digit distribution…………………………………………………..10 3.2. The generalized significant digit law……………………………………..12 3. 3. Invariances…………………………………………………………………13 3.3.1. Scale invariance………………………………………………….13 3.3.2. Base invariance…………………………………………………..14 3.3.3. Sum invariance…………………………………………………...14 3.3.4. Multiplication and division……………………………………….14 3.3.5. Addition and subtraction………………………………………...15 3.4. Sequences of interest……………………………………………………...15 3.4.1. NB sequences…………………………………………………....15 3.4.2. Geometric sequences…………………………………………...15 3.4.3. Other sequences…………………………………………………16 3.5. Relations with the main distributions……………………………………..16 3.6. Convergence………………………………………………………………..17 3.6.1. Convergence to the uniform distribution……………………….18 3.7. Bayesian approach…………………………………………………………18 4. Empirical framework………………………………………………………………….19 4.1. Conditions for conformity………………………………………………….19 4.2. Statistical methods…………………………………………………………19 4.2.1. Mantissa Arc Test………………………………………………..20 4.2.4. Significand Analysis……………………………………………...21 4.2.4. Mean Absolute Deviation………………………………………..21 3 4.2.4. Chi-square Test…………………………………………………..22 4.3. Real datasets……………………………………………………………….23 4.3.1. Introduction………………………………………………………..23 4.3.2. 1st Dataset: “Municipal population”………………………..……23 4.3.3. Fraud detection guide…………………………………………....30 4.3.4. 2nd Dataset:”Stock Price(2012- 2016)”………………………....31 4.4. Applications…………………………………………………………………35 4.4.1. Computation and Computer design……………………………35 4.4.2. Modelling………………………………………………………….35 4.4.3. Fraud detection…………………………………………………..35 4.4.3.1. Machine Learning……………………………………...37 5. Conclusion...........................................................................…………………….37 6. Appendix………………………………………………………………………………39 7. Bibliography/ References.................................................……………………….49 8. List of figures and tables…………………………………………………………….52 4 Abstract Newcomb-Benford’s Law, also known as “the first significant -digit Law “ or “the Law of Anomalous Numbers ”, is based on an observation from which a law was formalized about the distribution of the first significant digits in positive numerical data, where the probabilities of the most significant figures are not uniformly distributed, as might be expected. In addition, it receives these other names because it shows how the lower digits occur in nature more-often than the higher ones, indicating the absence of this event a possible risk of abnormal duplications and anomalies in certain datasets, and this is why it is a key tool in fields like fraud detection. In this sense, the issue of this project is to summarize bibliography with the purpose of showing the mathematical, statistical and empirical frameworks concerning this Law. We will study the distribution of the first significant digits, point out how to apply the formulas and we will interpret and check its effectiveness with the results obtained using two different datasets. Finally, we will also review the applications of this law in our day-to-day. Keywords: Newcomb-Benford’s Law; First or significant -digit Law; The Law of Anomalous Number; distribution of the first significant digits; fraud detection. Resumen La ley de Newcomb-Benford , también llamada “la ley del primer dígito” o “ley de los números anómalos”, está basada en una observación a partir de la cual se formalizó una ley sobre la distribución de los primeros dígitos significativos en conjuntos de datos numéricos positivos, donde las probabilidades de las cifras más significativas no están distribuidas de manera uniforme, como cabría esperar. Además, recibe estos otros nombres ya que muestra cómo los primeros dígitos ocurren en la naturaleza con mayor frecuencia que los últimos, indicando la ausencia de este suceso en ciertos conjuntos de datos un alto riesgo de que este contenga anomalías, y es por eso que es una herramienta clave en campos tales como la detección de fraude. En este sentido, este proyecto se basará en la recopilación de bibliografía acerca de la ley de Newcomb-Benford con el objeto de mostrar su marco matemático, estadístico y empírico. Estudiaremos la distribución de los primeros dígitos significativos y lo aplicaremos a dos conjuntos de datos reales . Por último, revisaremos también las aplicaciones de dicha ley en nuestro día a día. Palabras clave: Ley de Newcomb-Benford, ley del primer dígito, ley de los números anómalos, distribución de los primeros dígitos significativos, detección de fraude. 5 6 1. Introduction Benford’s Law gives us the opportunity to wonder whether there are patterns to the numbers that we use daily and these patterns could help us identify whether a dataset has been manipulated or not. This Law consists of the description of the distribution of the first significant digits, which ensures that the initial digits of the numbers are not equiprobable in datasets which conform to the Law. Therefore, the probability of occurrence of digits, in decimal notation, is not uniform. Those numbers starting with the digit one occur more-often than those starting with two and so on, up to 9, which is the least frequency. This indicates that as the value of the first digit increases, the more unlikely it is. This fact, which is accepted as a law, can be applied to large datasets made up of positive numbers and related to the natural world or social data. The Law was named after Benford, but he was not the first to study it. Therefore, we prefer to refer to this law as the Newcomb-Benford’s Law, as other authors did, whose acronym will be NBL for short, in order not to forget Newcomb’s merit, who was the first to publish a paper related to the Law. Moreover, NBL was forgotten after its discovery, maybe because it was non-intuitive and not well recognized because of the absence of mathematical foundation. However, some decades ago it regained its interest due to the number of its applications increased considerably. Undoubtedly, the most important application of the Law is its use as a possible mean to assist in the detection of erroneous or fraudulent data as we have mentioned. If the law is not verified this may be due to the presence of inaccurate or retouched data. Evidently, the non-conformity to NBL in a given dataset is not a sufficient proof of the existence of these irregularities. Nevertheless, it constitutes a good indication to justify a further detailed inspection. Nowadays, NBL has widespread use in other areas such as forensic accounting, auditing, etc. In many countries, especially in Venezuela and Mexico, it has been used as the main tool in the detection of electoral fraud. The treasury of the USA also uses it to detect fiscal fraud, auditors to analyse accounting statements… NBL also makes predictions about the distribution of second digits, third digits, digit combinations, and so on. In fact, NBL describes the probability distribution of all digits. However, it is not universally applicable, we need data from any distribution taking values over a wide range, covering different orders of magnitude and being reasonably smooth, then it will tend to be Benford. For this reason, it has received many criticisms, as it cannot be used indiscriminately. Its mathematical background has already been proved and the empirical evidence is obvious, its practical potentialities have also been recognized, and that meanwhile this empirically derived Law can be considered theoretically well-analyzed, but we need a connection between both backgrounds, so let us summarize it. 7 2. Biography/ History In 1881, the mathematician and astronomer Simon Newcomb [25] wrote a paper titled “Note on the frequency of use of the different digits in natural numbers” in the “Americal Journal of Mathematics”, being the first to publish a paper related to “The first significant digit Law”. He noticed that the nine digits, excluding zero, do not occur with equal frequency looking at the pages of the logarithms’ book because the first pages were more worn than the last ones due to their use, so from Newcomb’s personal observation a new Law was going to be stated. He concluded his study using statements like “natural numbers are to be considered as quantities’ ratios”, “ The law of probability of the occurrence of numbers is such that all the mantissae of their logarithms are equally likely”, and he proposed the following formula: P(N) = log(N + 1) − log(N) , with P(N): the probability of a single number N as the first digit. but he did not investigate it further. Newcomb did not include the most representative formula in his paper which we will see later, although he used it in its study. Frank Benford [3], who was a physicist from Pennsylvania, took over Newcomb’s work and extended it, but his research only dealt with his hobby, which was mathematics. In 1938, he published the paper titled “The Law of Anomalous Numbers paper” . The first step taken by Benford was to perform an analysis of the first digits of the positive numbers in 20 data tables by hand using a total of 20,229 records. He selected data from several datasets such as the areas of rivers, population figures or atomic weights of elements, and about one-half of his datasets did not exhibit the property. His work illustrates the empirical observation about the occurrence of each of the digits showing that smaller digits occur more often than greater ones as the first digits in those datasets. This concept is contrary to the common intuition as if they were distributed uniformly. In 1972, the economist Hal Varian [31] suggested NBL could be used to prove if data are fraudulent and in that case, it will not conform to NBL. Some years later, in 1995, its mathematical foundations were formalized thanks to T. P. Hill [14, 15, 16], where its main properties were established. 8 3. Mathematical justification. We are going to explain now the mathematical framework thanks to the contributions mainly from T.P. Hill [14, 15, 16], Arno Berger [4] and Allaart [2] among others, since their studies on NBL have turned out to be vital for its correct and complete explanation. However, as a correct introduction, let us explain first the proper meanings of significant, significand and mantissa due to these words are going to appear throughout the explanation: Definition 3.1. The first significant digit of a real number x > 0 is the first digit different from zero that appears in decimal expansion, e.g., the first significant digit of 301 and 0.301 is 3 in both cases. This definition is applicable to other digits. In scientific notation, the significand of a real number is its coefficient when we express it in floating point, e.g., 20= 2*10 so its significand is 2. Definition 3.2. The Significand S(x) of x> 0 is the unique real number such∈ ℝ is the unique real number such ℝ is the unique real number such that, assuming base 10: The order of magnitude, k, represents the number that more varies according to its absolute value. Remember that it is related to the first-digit, if we go now to the first-two digits the interval’s definition would change to S(x) [10, 100).∈ ℝ is the unique real number such In American English, what we have defined as significand is denoted as mantissa, Currently, exists an open debate on the merging of the meanings of significand and mantissa, but the “traditional” meaning of mantissa is: Definition 3.3. The mantissa is the difference between the logarithm of a number and its integer part, log(x) – [log(x)], where if we represent the mantissa of the logarithm base 10 of a number x by m(x), it has the following property: m(x)= m(10x). That is, the mantissae are cyclic, circular data and can take values on the unit circle centred at (0,0) [1]. The relationship between mantissa and significand lies in m(x)= log(S(x)). All references in this paper to logarithms will be to the base 10, if not otherwise indicated. 9 3.4.3. Other Sequences. NB sequences also include: n!, nn, Fibonacci sequence and Lucas numbers (which follow a similar pattern to the Fibonacci sequence). Its conformity to the law improves as N increases, so do all sequences with similar recurring patterns. The numbers generated by the 3n+1 series, the Collatz conjecture, where n is any positive integer, also show NB tendencies. Nevertheless, these are dominated by the ending numbers in the sequence. As curiosity, Zipf’s Law is based on the number of times words are used in papers. With NBL, we would need a greater number of lower digits, but under Zipf’s Law the trend is towards the most-often used words. Empirically, as it is obvious, data that conform to NBL do not conform to Zipf's Law, and vice-versa. [26] To conclude, there are more sequences in the world that do not conform to NBL than do conform to NB, e.g. The sequence of primes does not conform to NBL. 3.5. Relation with the main distributions Now, we are going to show the probability of occurrence of each digit, except zero, in different distributions and taking also into consideration the simulations’ results by Formann [12] which are of special interest in order to sum them up. We generate randomly in RStudio some selected distributions with n=100,000 simulations which correspond to: Cauchy(0, 1), Exponential(1), Normal(0,1), Chisquare with 1 degree of freedom, Uniform(0,1), Normal(5,1) and Chi-square with 100 degrees of freedom, placed in a particular order. Thanks to the table below of the chosen distributions in the first four rows, we see that the digit one is the most frequent one, always exceeding the 30%, it appears as the leading significant digit. By contrast, we easily appreciate the progressive decrease in the percentages where the number nine appears less than 6%, so the results are close to NBL. On the contrary, in the 5th row appears the results of a random generation of the U(0,1), where we obtain a very different output. All the digits occur with an equal frequency, it will take the value 0.0111 (1/90) approximately and depending on the n, so as we can see each occur about 11% of the time and this is because the uniform distribution and NBL are incompatible. However, what we know is that some mathematical operations, when performed on the uniform distribution, end up giving us NBL at the limit and Formann’s paper also proves that its ratio fits better the law. As we are working with the line of positive numbers, distributions like Cauchy(0,1) and N(0,1) seem to fit well to the law, but if we change its location/mean parameters things change (6th row). This is why symmetric distributions and those whose density increases as the value of its random variable are bad examples for NBL. 16 Not that trivial we find that distributions of the ratio of two random variables fit better than the distributions of a single random variable, e.g. the F-distribution, as ratio of two chi-squares, fits better than does chi-square. As we increase the df of a chi-square the fit will get worse because it approaches a normal distribution. (7th row) 1 2 3 4 5 6 7 8 9 C(0,1) 30.96 7 16.84 2 12.04 0 9.437 7.903 6.690 5.90 8 5.37 2 4.840 Exp(1) 32.99 3 17.48 5 11.40 5 8.447 7.232 6.351 5.79 8 5.36 8 4.921 N(0,1) 35.93 2 12.91 0 8.619 8.124 7.647 7.531 6.97 0 6.39 0 5.876 χ²130.58 6 18.34 7 12.50 9 9.314 7.701 6.394 5.75 9 4.98 4 4.406 U(0,1) 11.27 3 11.00 1 11.10 2 11.05 2 11.23 6 11.20 8 11.0 92 11.0 98 10.93 8 N(5,1) 0.129 2.068 13.56 0 34.40 9 34.03 6 13.49 3 2.15 4 0.14 9 0.002 χ²100 47.80 9 0.00 0.00 0.001 0.053 1.019 6.10 1 17.5 95 27.42 2 Table 3.1. Probability of occurrence of each digit following them different distributions obtained with Rstudio. Therefore, the validity of the NBL requires that the frequency of small ‘natural’ numbers have to be predominant. The most common probability distributions are not exactly NB. However, some parametrized families are close for some specific values. 3.6. Convergence If sets of numbers x1, …, xN are independent continuous random variables with densities f1, …, fN as N → ∞, for many choices of densities, the distributions of the products converges to NBL and seem to be closer to NBL than its operands. Definition 3.6.1. As n → ∞ the distribution of the leading digits of Xn converges to NBL, and further that if X1 is NB then Xn is also NB. NBL is more robust than we might imagine, not all numbers will conform to NB’s distribution, but if distributions are randomly selected and we take random samples from them, then the frequency of digits of this combined set of distributions will converge to NBL even if the separate distributions deviate from it [14]. 17 3.6.1. Convergence to the uniform distribution We might also remark that NBL is only useful for the first digits because the distribution of the kth digit tends to U(0,9) exponentially fast as k increases [20] [9]. Figure 3.2. Plot for second, third and fourth significant digits respectively showing their probabilities. From the fifth significant digit onwards the difference can barely be seen, if we take a few decimals it is equal to the graph of the density function of a U(0,9). 3.7. Bayesian approach There are some problems with some of the stats used in a NB’s analysis such as in a chi-square test, as we will see in Section 4. Because of this methods’ weakness we can attend to Bayesian ones because datasets that reject these classical tests could still have a good fit to NBL. In Bayesian statistics, it is essential the use of an initial distribution or prior, among others, although it is a hard task to explain its selection. The principle of insufficient reason establishes that if there is no information to differentiate between values other than its parameter θ, the same probability must be given to them. The principle implies a uniform prior for θ, where if the θ support is infinite, the prior distribution will be improper. In 1812, Laplace proposed it and it received many criticisms as the uniform distribution is not invariant in case of transformations. This means that it is not adequate for NBL, as we know one of its main properties is that it is scale-invariant. In this way, Sir Harold Jeffreys whose considerations on the transformations of a problem had their beginnings, in order to be able to obtain non-informative priors, introduced what is known as the Jeffrey’s prior and it is not affected by restrictions 18 on the parameter space, it is reparametrization-invariant. Moreover, it is the unique prior (on the positive real numbers) that is scale-invariant, so it is suitable for NBL [5], pp.85–86. 4. Empirical framework 4.1. Conditions for conformity As we already know, many datasets satisfy NBL and within them, we highlight those where numbers represent sizes of facts or events, where they grow exponentially or emerge from multiplicative fluctuations or even, some well-known infinite integer sequences (like Lucas numbers) and the mixture of these datasets. NBL also needs data that are not entirely random or highly conditioned. For example, the result of the lottery is completely random, each number has the same probability of appearing so it is not suitable for NBL. Other data that do not conform to the Law are the numbers coming from evaluating functions such as: x2, x1/2 or 1/x. Preferably, more than 1000 numbers should conform to this kind of datasets in order to avoid greater deviations from the NB’s proportions and no minimum or maximum values should be incorporated into the data. Some suitable examples could be : death rates, diameter of planets, accounting transactions, stock prices, etc. If our dataset does not conform this Law, this may be due to cases with narrow intervals for the data observations, numbers used as ids or labels, e.g. phone numbers or additive fluctuations instead of multiplicative ones in time series analysis, and the data should also have a larger amount of small numbers than higher ones, which is intuitive so that the data are not clustered around its mean value [26]. 4.2. Statistical methods We select some of the options provided by Rstudio libraries such as “benford.analysis” [7], which provide tools to validate data with using NBL, “BeyondBenford” [6], which compares the goodness-of-fit of NBL in a dataset and “BenfordTests” [10], which gives statistical tests for determining if a dataset conforms to NBL. These options include an analysis for the first and first-two significant digits. 19 4.2.1. Mantissa ARC Test. We know mantissae would be uniform over [0,1) and as a proof to test it, the Mantissa ARC Test (MAT) was proposed. If the mantissae of a set of numbers are uniformly distributed on the circumference of a unit circle, the centre of the mass is at (0, 0) and the represented points on its circumference are equally spaced on it, in other cases it will be at the distance of L2, where its length is a measure of nonuniformity and if it is too large the data will not conform to NBL [1]. The centre of mass is called the mean vector, where its x and y coordinates are : with angle 2gm(a) where m(a) is referred to its mantissa and a the number . Then, we average each component to obtain the mean vector and compute the distance L2, which is the squared euclidean distance,where L2= (mean(x))2 +(mean(y))2 Figure 4.1. Pie chart of the unit circle with the different probabilities of NBL. Each portion represents the probability of the first significant digits from 1 to 9 counter-clockwise. The points must lie on its circumference and depending on the section of the arc they are found, they would have one leading digit or another, e.g., a number whose first digit is 1, its mantissa will be in any point of the arc of the first portion, from 0 to 0.301. As mantissae are centred on (0,0), a mantissa= 0 will be on the position (0,1), a mantissa= 0.25 on (1,0), a mantissa= 0.5 on (-1,0) and a mantissa= 0.75 on (-1,-1). 20 The proposed hypothesis shall be: H0: The mantissa of the observed distribution is uniformly distributed. Under this hypothesis, the probability distribution of the size of the mean vector is precisely calculable. The larger L2, the more likely the null hypothesis H0 is to be rejected. The distribution of the squared length of a two-dimensional normally distributed vector of length 1 is the chi-square distribution with two degrees of freedom, which is an exponential distribution, so in Rstudio’s code [7] the p-value is calculated as: p-value= exp(-(L2)*N ), where N is the length of the dataset. However it is a very sensitive test and its validity depends on whether the data are sufficiently dense in the unit circle. 4.2.2. Significand analysis This test calculates confidence intervals using the Normal approximation for each digit only if N is large, taking as parameters: where i identifies the digit, for the first digit di=1 {1,…,9} and for the first-two∈ ℝ is the unique real number such digits di=1di=2 {10,…,99}∈ ℝ is the unique real number such, n is the length of the dataset and pi the proportion of each digit. Its graphical output in RStudio also gives the frequencies of the first or first-two digits and the p-value for investigating each individual significant digit [10]. 4.2.3. Mean Absolute Deviation The mean absolute deviation (MAD) test is a measure of conformity to NBL where the number of records, N, is not used and there are no objective critical values [7]. It is calculated as: where K represents the number of bins. The higher the MAD, the larger the average difference between the actual and expected proportions. 21 Following Nigrini’s suggestions [26], a MAD ≤ 0.0012 implies close conformity, a MAD [0.0012, 0.0018] as acceptable conformity , a MAD [0.0018, 0.0022] as∈ ℝ is the unique real number such ∈ ℝ is the unique real number such marginally acceptable and a MAD≥ 0.0022 presents non conformity. 4.2.4. Chi-Square Test The chi-square (χ2) test performs a goodness of fit test for the first and first-two digits [7]. Analysing the first digit , we compare the frequencies of the first significant digits of the chosen variable in a dataset with NB's frequencies with the same length N, so it compares these frequencies one by one and prints the corresponding plot. Of course, for finding NB’s frequencies we need to use the first digit distribution formula (Definition 3.1.1) and then multiply it by N. For the first-two digits, it follows the same principle as the previous explanation but it uses the first-two significant digits and Definition 3.1.5. It is more useful for finding biases in data and at detecting invented numbers. A weak fit to NBL usually suggests risk of errors, fraud or that the data are not suitable to conform NBL. Then, since we have calculated the parameters needed in the formula below: where K represents the number of bins, N, the number of observations, θj is the observed frequency of digit j, and f(j) is the frequency of digit j implied by Benford’s law. The number of degrees of freedom will be K–1. H0: the sample comes from the distribution with probability density function {fi}i=1…n The problem is that it is drastically affected by sample size, as it increases the results could be unfavourable to NBL. Aside from this, the real datasets used will never conform perfectly to this law, we should not focus only on the significance of p-values. The chi-square and K-S tests evaluate all the digits at the same time. These tests only tolerate small deviations from NBL for large N. For this reason, the best solution could be the MAD test because it does not take into account the number of records [26]. 22 4.3. Real datasets 4.3.1. Introduction There have been plenty of publications about newly discovered NB’s datasets and, as they are mainly carried on by physicists and computing scientists, we are going to put this into practice too. Among the elements of a list of datasets that follow this Law, we can find the list of constants and measurements in physics, long series of floating-point operations, financial and accounting data or population datasets (Census data). The latter cases will be the ones chosen in our research. In the second dataset proposed we will try to detect possible manipulations following the indications from a dataset already analysed, described in Nigrini’s book [26] and the data are included in RStudio, data(“sino.forest”), where we will show its main characteristics in order to learn how to detect fraud. Consequently, our main aim here will be to guess if these real-world datasets conform or not to NBL, or even, if they present some fraudulent indications, mainly following Nigrini’s instructions from his book and it is also worth noting RStudio software. 4.3.2. 1st Dataset: “Municipal population“ We have selected a dataset from the INE’s website, the National Institute of Statistics (https://www.ine.es ) , about socio-demographic data of the registered population on 1st January 2019. (The dataset is available at [17] → “Población empadronada a 1 de enero de 2019” → Población de 60 o más años por sexo: Mapa municipal y de secciones censales → Descarga de ficheros). We have depurated our data which are eventually made up of 8132 observations and only four variables, which include “Municipality”, “Age”, “Sex” and “Total”, where in the latter we will put special interest as it indicates the number of inhabitants per municipality. The data belong to a wide interval of values, corresponding to sizes of the aforesaid fact, where they do not have any relationship among them, in principle. The primary conditions seem to be met and our dataset will be referred, from now on, as “Municipal population“. In a brief summary of the dataset, we see how the median differs a lot from the mean but this is because our country lives in a painful paradox: Spanish population has increased by about 36% since 1975, but this increase in the population is not balanced, the population is more concentrated in big cities such as “Madrid” and “Barcelona” (as we have proved with a chi-square test for detecting outliers), whose number of inhabitants is too large in comparison with almost the rest of Spain, making this fact mean value much higher than the 23 median. For this reason, the density function of our data are right-tailed, putting more mass on small values, so it follows some of the conditions presented before to fit the NBL. Min. 1stQuant Median Mean 3rdQuant Max. Total 3 154 525 5784 2392 3266126 Table 4.1. Summary of the variable Total from “Municipal population”. In order to continue with the NBL’s study, we need first to calculate the frequencies of the first significant digits as well as compare them with the expected values as follows: First Digit Frequency First digit proportions NB probabilities Absolute Difference 1 2471 0.3039 0.301 0.0029 2 1464 0.1801 0.176 0.0041 3 1011 0.1243 0.125 0.0007 4 734 0.0903 0.097 0.0067 5 674 0.0829 0.079 0.0039 6 526 0.0647 0.067 0.0023 7 478 0.0588 0.058 0.0008 8 386 0.0475 0.051 0.0035 9 387 0.0476 0.046 0.0016 Table 4.2. Frequencies, proportions and absolute differences from “Municipal population” compared with NB proportions, d1 ϵ {1,…,9}. The best adjusted observed frequencies are those for the digits d1= 3 and d1= 7, while d1= 4 is the worst and therefore this digit will be the one that least fits the curve set according to NB’s conditions. These differences are represented as: Figure 4.2. Absolute differences of the first significant digits. - In red, the highest one corresponds to digit 4, in green the two-lowest ones. 24 It is easier to understand if we visualize it and thanks to the table below we can now plot a graph for the first digit, we see how our data follow NBL’s behavioural patterns without anomalies and the differences of the observed and the expected data are not alarming at all. Figure 4.3. The first plot shows the distribution of the first significant digits comparing the observed probabilities vs. NB's ones by using a red dotted line. The second one represents the same but using the second significant digit [6]. Our study will focus on the first significant digits and the first-two, however we will graphically show the distribution of the second digit, in order to apply what we explained in Section 3.5. about the convergence to the uniform distribution. Comparing the graphs in Figure 4.3., the probabilities values in the second plot decrease in a more progressive way, trying to approach a uniform distribution as we increase the digit. Digit 0 1 2 3 4 5 6 7 8 9 Prob 0.121 0.118 0.107 0.102 0.099 0.098 0.092 0.09 0.094 0.077 NB 0.119 0.114 0.109 0.104 0.100 0.097 0.093 0.09 0.088 0.085 Table 4.3. Probabilities’ table of the second significant digit, d2 ∈ {0,…,9}. Nevertheless, the study does not finish here, just studying the first significant digit is not enough to assess NB’s conformity. In the case of the first-two digits, the plot also shows that the data do have a tendency to follow NBL without any notable discrepancy. 25 The chosen dataset consists of 1226 observations and 7 variables which include: Date, open, High, Low, Close, Volume and Stock.Trading. We are going to select the last variable, which collects information about the buying and selling of shares in the company and it has the widest range of values. As a brief description we have: Min. 1stQuan Median Mean 3rdQuan Max. Total 3.966e91.454e10 2.154e10 2.441e10 3.016e10 1.460e11 Table 4.10. Summary of the variable Stock.Trading from “Training Data”. First Digit Frequency First digit proportions NB proportions Absolute Difference 1 418 0.3409 0.301 0.0399 2 371 0.3026 0.176 0.1266 3 182 0.1485 0.125 0.0235 4 66 0.0538 0.097 0.0432 5 41 0.0334 0.079 0.0456 6 33 0.0269 0.067 0.0401 7 47 0.0383 0.058 0.0197 8 33 0.0269 0.051 0.0241 9 35 0.0286 0.046 0.0174 Table 4.11. Frequencies, proportions and absolute differences from “Stock Price” compared with NB proportions, d1 ϵ {1,…,9}. We highlight the differences mainly between 1 and 2, being the last one more noticeable than usual. From d1=4 onwards the differences begin to be smaller than NB’s proportions and this fact will be reflected in Figure 4.10. where we will see how these proportions are not going to reach NB’s curve. Now we are going to focus on the first-two digits as they are more suitable for detecting fraud: Figure 4.7. Graph for the first-two digits and chi-squared test respectively [7]. 32 It is easy to appreciate how the first three dozens surpass the red dotted curve by far, but the majority of the values after d1d2=40 do not even reach NB’s curve so we highlight overall the first part of the graph. Reinforcing what has been said with the help of the second plot, we can see that the five largest deviations in descending order come from the digits 22 , 15, 21, 23 and 25, where all of them belong to the interval [15, 23] , a narrow interval which may arouse suspicion about some kind of manipulations over this area. Moreover, we find how digits one and two differ the most only looking at the first digit: Figure 4.8. Plot of the distribution of digits comparing the observed probabilities (light blue) vs. Benford's ones (blue), for the first and second digits respectively [6]. Taking now the mantissae of this variable we obtain: (suppose the mantissae are uniformly distributed [0,1) and whose properties are the following) Statistic Expected value Obtained value Mean 0.5 0.420 Standard deviation 0.288675 0.246982 Kurtosis -1.2 -0.396 Skewness 0 -0.562 Table 4.12. Summary statistics of the mantissa. The obtained values differ much more than in the first dataset, the skewness now is negative. The mantissae does not seem to be perfectly distributed, although we will complete it with the Mantissa Arc Test, where its p-value is rejected so a significant difference does exist indicating that our suspicions have been confirmed. 33 Therefore, we can see how they tend to cluster in the plot. Figure 4.9. Points on the unit circle to evaluate Mantissa Arc Test for the first-two digits. Note that the circumference is slightly flattened, like a geoid, in order to improve the vision of the points. The K-S and χ² tests are also rejected and the MAD=0.005100875 shows non conformity to the law, as it is ≥ 0.0022. In closing, NBL is not conformed but the graphs seem to be similar to the curve that it produces, except for the first digits when analysing the first-two digits. We have found several suspicious observations and we know that a weak fit to NBL means that there is a high risk the data contain anomalies. Therefore, can we say that this is a case of fraud? Stock prices are referred to the current price that a share of stock is trading for, this can lead us to think that the company tended to change those prices in order to benefit themselves according to its own interests, but these are just mere assumptions. However, we should remember that the manipulation of stock prices can happen quite easily depending on the entity’s trading power and this kind of event happens more often than we could imagine, but let us leave this to economic specialists as we do not know the company’s economic history or trajectory. 34 4.4. Applications The applications of the NBL are of great interest since from them it has been possible to develop much of the theory. These applications considerably increased with the arrival of computing, where huge masses of data need to be used [20]. The prevailing domains are: 4.4.1. Computation and Computer design In the 70’s, its use resurfaced with the arrival of computers where its application was in computation and in the design of computers. NBL took part mainly in the consideration of the distribution of computers’ operands, in number representation. Significands are essential in floating-point arithmetic, where extremely large and small quantities of real numbers can be represented efficiently. This real numbers’ codification requires a number of bits and depending on a certain pattern on the significand, a choice shall be made in order to optimize speed and storage. The NBL can also be used to analyse different types of computational errors, e.g., round-off errors in the computation of products, to design algorithms in order to estimate their parameters’ values as well as in the design of hardware and software, e.g., Hamming proposed a design problem which can be solved by applying NBL where he had to find a place to put the decimal point in his data in order to minimize the number of shifts in products. 4.4.2. Modelling Another application used is mathematical modelling where NBL is useful to evaluate the predicted outcomes of mathematical models. In 1972, H. Varian [31] proposed the following idea: "If a certain set of values follow Benford’s Law, then the models for the corresponding predictive values will also follow the Law". Moreover, NBL has also provided a good diagnostic for selecting certain models in different types of researches such as an investigation about gas and condensed phases where NBL was the key for a good diagnostic in the selection of dynamical models or as a tool for controlling the quality of datasets produced by different measurement devices. 4.4.3. Fraud detection Since in 1992 it was observed that financial data fit NBL [32], it has become of widespread use and this is why fraud detection is its main application. We need to define fraud detection as a fact typically committed by adding not suitable numbers, changing the real observations with a purpose, mainly lucrative, where 35 some of the dataset entries could be sums of others, duplicated, splitted into sums or even fabricated. In order to detect this kind of trap, NBL has become a popular tool. Some interesting examples include: Electoral fraud : The presidential elections in Mexico in 2006, where certain districts were found to have anomalies in the votes’ count because the distribution of the first digits, especially that of the second, did not conform to NBL. This led the authorities to a vote recount in order to verify the data provided by the Federal Electoral Institute [24]. Tax return : Mark Nigrini also designed a computer program where an example of its applications was the analysis of Bill Clinton’s tax return. Although it revealed that there were probably several rounding instead of exact figures, there were no indications of fraud. NBL’s method, in turn, has some limitations in this field. Sometimes the figures cannot be given precisely and because of the rounding the first digit of a number, it can be modified [26]. “White Collar” crimes : NBL is the clue to detect corporate crimes committed either by a corporation, company, individuals acting on behalf of a corporation, as in the case of Sino-Forest Corporation, or business entity, but studying this possible fraud deeply remains as a task concerning the relevant economic areas. Consequently, with NBL it is possible to detect a significant change in the reported figures by companies and/or individuals in consecutive years, where huge changes would indicate that something is going wrong. Currency impact: deviations from NBL were found after the introduction of the Euro in data from stock index returns, stock prices or consumer prices. Therefore, the application of NBL was a useful criterion for detecting anomalies in data [12]. Clinical investigation : Recently, a research about COVID-19 has been carried out using NBL. It consisted of an analysis of the registered cases of people infected with the COVID-19 in 23 different countries. After the appliance of some tests, which include MAT, Chi-square test, etc. The results have shown that countries such as Italy, Portugal, Netherlands, UK, Denmark, Belgium and Chile are suspicious of data manipulation as they do not conform NB’s patterns. However, it needs further study in order to verify it. There is a thing that draws our attention and it is that the sample was randomly selected, where 11 out of 23 countries were European ones, so almost 50%. However, after applying NBL, the possible cases of fraud belong in its majority to these European countries, except one, Chile. Nevertheless, authors consider that they must wait until the end of the pandemic to ensure what has been found and the source of the publication is not so reliable [18]. 36 4.4.3.1. Machine learning As NBL is a well-known procedure used in these fields, machine learning can be analysed for studying its behavioural patterns. The task which concerns it, would be the selection of the classification rule which would be based on whether a dataset is fraudulent or not with a dichotomous variable that splits those chosen examples to fraud or legal ones. For example, the use of machine learning methods could be of interest if we had a dataset made up of information about other datasets at the same time. Thanks to this machine learning, we will improve forecasting to identify better the possible cases of fraud committed. NBL also stands out in other fields such as diagnosis, detecting natural phenomena, as a pedagogical tool, verification of demographic models, in deciding the allocation of computer disk space, as a mean to identify problems with survey data, self-reported ratings, macroeconomic data quality, etc. 5. Conclusions The purpose of this project is to summarize the most important aspects of NBL due to it is regaining its importance gradually as more findings are being made about it. To close what we mentioned in the introduction, we have tried to convey the core concepts of the Law showing both mathematical and empirical frameworks: On the one hand, in the mathematical background, we have seen how the first significant digits in nature does not follow a uniform distribution, how NBL meets different types of invariances and we have also studied its convergence and even some famous sequences and common distributions and how they follow NB’s patterns. On the other hand, in the empirical background, we have put NBL into practice with two real datasets concluding that the first dataset does conform to NBL but the second one not, perhaps due to possible fraudulent actions. Accordingly, we have tried to regroup and check the most relevant information that involves this Law. However, there is something still incomplete with NBL, and maybe it is referred to the linkage of both frameworks, which keeps this law under constant review, or to the fact that it is not applicable to all datasets. In spite of this, NBL usually presents a good fit to empirical data because small objects or digits occur more often than do medium ones and they, in turn, occur more often than larger ones. It seems that these frequencies of occurrence follow an inverse function according to the objects’ or numbers’ sizes [12]. For this reason, inside datasets or other domains, NBL is usually conformed but we do not have a clear proof of it, e.g. the closing prices of stocks, the numbers of inhabitants, etc. We can conclude thanks to all of our work, that NB’s distribution is non-uniform, with 37 smaller digits being more likely than larger ones, as can be seen empirically and data from any distribution will tend to follow NBL, as long as the distribution spans several orders of magnitude on the original scale and as long as the distribution is reasonably smooth. 12We want also to give credit to all the authors mentioned, but especially to Mark Nigrini, even though he is not a scientist, his work on NBL is noteworthy because of its ease of understanding and usefulness today which have been helpful for us to comprehend the law properly. Thanks to him, this law has regained its interest and has became more popular, being its use now almost indispensable in certain areas, especially in the field of the economy, where this law is growing more and more because of its utility in terms of auditing and fraud detection ( due to NBL’s application gives us the opportunity to know if a random dataset is fraudulent or not as deviations from NBL can be caused by irregularities or anomalies). Therefore, more countries are adding to the use of the Law, like Nigrini’s native country, the USA, where NBL is free to apply. 38 6. Appendix #Load packages library(ggplot2) library(dplyr) library(stringr) library(magrittr) library(benford.analysis) library(BeyondBenford) library(BenfordTests) library(sm) library(outliers) #colours library(viridis) ########3.Mathematical justification.######### #3.1.The first digit distribution #Figure 3.1 #The distribution of the first significant digit benfd1 <- log10(1+1/(1:9)) # log(1+1/(1:9), base = 10) data.frame(benfd1) #generation of a uniform(0,100) N <- 1000 x <- runif(N, 0, 1) freq <- fd1(x) freq #Plot df <- data.frame(x = 1:9, y = benfd1) ggplot(df, aes(x = factor(x), y = y) ) + geom_bar(stat = "identity", fill=heat.colors(9)) + xlab("First Digit")+ylab(NULL) +geom_line(data=freq,aes(x=Var1,y=Freq,group=1),colour="black",size=2)+ geom_point(data=freq,aes(x=Var1,y=Freq,group=1),colour="black",size=4,pch=2 3,bg="black") ################################################################# #3.5.Relation with the main distributions #For explaining Formann's paper for the first digit #Simulation for the first digit simd1<- function( distro, ..., n = 100000 ){ digit <- distro( n, ... ) digit <- as.character( digit[ digit > 0] ) digit <- strsplit( digit, "" ) first<- function( x ) x[ ! x %in% c( "0", "." )][1] 39 digit <- unlist( lapply( digit, first ) ) table( digit ) / length( digit ) } #Cauchy(0,1) simd1( rcauchy ) #Changing its parameters simd1( rcauchy,5,1) #Exponential(1) simd1( rexp, rate = 1 ) #Normal(0,1) simd1( rnorm,0,1) #Changing its parameters simd1( rnorm,5,1) #Uniform (0,1) simd1(runif) #similar results U(0,100) simd1(runif,0,100) #Ch-sqare df=1 simd1(rchisq,df=1) #worse results, chi-square df=100 simd1(rchisq,df=100) #Other distributions: simd1(rlogis) simd1(rlnorm) #F distribution simd1(rf,df1=1,df2=1) #worse results simd1(rf,df1=100,df2=100) ################################################################ #3.6.Convergence #First two-digits, from 10 to 99 par(mfrow=c(1,3)) benford1d2=log10(1+(1/((10:99)))) names(benford1d2) = 10:99 aux = 10:99 - floor(10:99/10)*10 benford2 = (data.frame(v1 = benford1d2,v2 = aux) %>% group_by(v2) %>% summarise(v1 = sum(v1)))$v1 names(benford2) = 0:9 barplot(benford2, xlab = "Second Digit", ylim = c(0, .12),ylab="probabilities",col= colorRampPalette(c('blue', 'red')) (10),main="NB's probabilities") 40 #We check both sums sum(benfd1)#1 sum(benford1d2)#1 #we pass the probabilities directly #third significant digit x3=c(0.10178,0.10138,0.10097,0.10057,0.10018,0.09979,0.0994,0.09902,0.0986 4,0.09827) barplot(x3, names.arg = 0:9, xlab = "Third Digit", ylim = c(0, .11),ylab="probabilities",col= colorRampPalette(c('blue', 'red')) (10),main="NB's probabilities") #fourth significant digit x4=c(0.1002,0.1001,0.1001,0.1001,0.1,0.1,0.0999,0.0999,0.0999,0.0998) barplot(x4, names.arg = 0:9,ylab="probabilities",xlab = "Fourth Digit", ylim = c(0, .11),col= colorRampPalette(c('blue', 'red'))(10),main="NB's probabilities") #Same probabilities for the fifth significant digit #x5=c(0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1) #barplot(x5, names.arg = 0:9, xlab = "Fifth Digit", # ylim = c(0, .11),ylab="probabilities",col=col= colorRampPalette(c('blue', 'red'))(10),main="NB's probabilities") ################################################################# #4.2.1. Mantisa Arc Test (MAT) #Plots for the explanation of MAT bfp=c(0.301, 0.176, 0.125, 0.097, 0.079, 0.067, 0.058, 0.051, 0.046) #con ggplot ggplot(df, aes(x = "", y = y,fill=y,labels = bfp )) + geom_bar(width=1,stat = "identity") + coord_polar("y", start=3*pi/2,direction=-1)+ scale_color_viridis(discrete = FALSE, option = "C")+ scale_fill_viridis(discrete = FALSE) +ggtitle("Unit circle with NB's proportions") #Plot for the mantissa arc test in the first dataset: municipalitys population plot(0,0,asp=1,type="n",ann=F, xlim = c(-.5, 0.5), ylim = c(-1,1)) mantisa=as.numeric(datosBenford$LogTotal)-Ent t=2*pi*mantisa abline(v = seq(-1, 1, 0.5), lty = 2, col = "gray50") abline(h = seq(-1, 1, 0.5), lty = 2, col = "gray50") x = cos(t) y =sin(t) points(x,y,col="black") #Plot for the mantissa arc test in the third dataset: stockPrice because MAT is rejected plot(0,0,asp=1,type="n",ann=F, xlim = c(0, 0), ylim = c(0,0)) 41 digit.distr(Stock.Trading, dig=2, mod="ben", No.sd=1, Sd.pr=1,col=c("grey","pink")) digit.distr(Stock.Trading, dig=1, mod="ben", No.sd=1, Sd.pr=1,col=c("blue","light blue")) #Kolmogorov-Smirnov test ks.benftest(x = Stock.Trading, digits = 2, pvalmethod = "simulate", pvalsims = 10000) 48 7. Bibliography 1. Alexander JC (2009). Remarks on the use of Benford’s law. Working paper, Case Western Reserve University, Department of Mathematics and Cognitive Science. 2. Allaart PC (1997). An invariant Sum-Characterization on Benford’s Law. Volume 34 Issue 1. 3. Benford F (1938). The Law of Anomalous numbers. Proc Am Phil Soc 78: 551–572. 4. Berger A, Hill TP (2011). A basic theory of Benford’s Law. Probab Surv 8: 1– 126. 10.1214/11-PS175 5. Berger JO (1985). "Prior information and subjective probability" in Statistical Decision Theory and Bayesian Analysis. Springer-Verlag: Springer Series in Statistics. 6. Blondeau Da Silva Stephane (2020). BeyondBenford: Compare the Goodness of Fit of Benford's and Blondeau Da Silva's Digit Distributions to a Given Dataset. R package version 1.4. https://CRAN.R-project.org/package=BeyondBenford 7. Carlos Cinelli (2018). benford.analysis: Benford Analysis for Data Validation and Forensic Analytics. R package version 0.1.5. https://CRAN.R-project.org/package=benford.analysis 8. Cirillo A (2016). RStudio for R Statistical Computing Cookbook. Birmingham, UK:Packt Publishing. 9. Diaconis, P., & Freeman, D. (1979). On rounding percentages. Journal of the American Statistical Society, 74(366), 359–364. 10. Dieter William Joenssen (2015). BenfordTests: Statistical Tests for Evaluating Conformity to Benford's Law. R package version 1.2.0. https://CRAN.R-project.org/package=BenfordTests 11. Fewster R M (2009) A Simple Explanation of Benford's Law. Amer. Statist. 63, 26–32. 12. Formann AK (2010). The Newcomb-Benford Law in Its relation to some common distributions. PLoS ONE 5: e10541 10.1371/journal.pone.0010541. 49 13. Hamming R (1970). On the distribution of numbers. Bell System Technical Journal, 49: 8. October 1970 pp 1609-1625. 14. Hill TP (1995). A Statistical derivation of significant digit-law. Stat Sci 10: 354–363. 15. Hill TP (1995). Base-Invariance implies Benford’s Law. Proc Am Math Soc 123:887–895. 16. Hill TP (1995). The significant-digit phenomenon. Am Math Mon 102: 322–327. 17. Información estadística para el análisis del impacto de la crisis COVID-19. Datos sociodemográficos. (2020) INE (URL:https://www.ine.es/covid/covid_sociodemo.htm) 18. Isea R (2020). How Valid are the Reported Cases of People Infected with Covid-19 in the World?INTERNATIONAL JOURNAL OF CORONAVIRUSES. Vol- 1 Issue 2 Pg. no.– 53 19. Ishii D (2017). Uniqlo (FastRetailing) Stock Price Prediction. Tokyo Stock Exchange Data (LightWeight CSV) in 2016 for Beginners. (URL: https://www.kaggle.com/daiearth22/uniqlo-fastretailing-stock-price- prediction) 20. Jamain A (April-September 2001). Benford’s Law Master’s thesis, Department of Mathematics, Imperial College of London and ENSIMAG, London, UK, 2001. (URL: http://www.math.ualberta.ca/~aberger/benford_bibliography/jamain_thesis01.pdf. ) 21. Jang D et al. (2009). Chains of distributions, Hierarchical Bayesian models and Benford's Law. Journal of Algebra, Number Theory: Advances and Applications, volume 1, number 1 , 37–60. 22. Journal of Applied Probability Volume 41 (2004): Index - Volume 41 Issue 4.pp. 1250-1254 23. Miller S J (2015). Benford’s Law: Theory and Applications. 1251–1252 24. Mebane WR (2008). The second-digit Benford’s law test and recent American presidential elections. In: Alvarez, R. M., Hall, T. E., Hyde, S. D. (Eds.), Election Fraud: Detecting and Deterring Electoral Manipulation. Brookings Press, Washington, D. C., pp. 161–181. 50 25. Newcomb S (1881). Note on the frequency of use of the different digits in natural numbers. Am J Math 4: 39–40. 26. Nigrini MJ (2012). Benford's Law: Applications for Forensic Accounting, Auditing, and Fraud Detection. Hoboken, NJ. 27. Pinkham RS (1961). On the distribution of first significant digits. Ann Math Stat 32: 1223–1230. 28. Población empadronada a 1 de enero de 2019. Densidad de población: Mapa municipal (01-01-2020) INE. (URL: https://inespain.maps.arcgis.com/apps/webappviewer/index.htmlid=179c7bc5ac5e 41b4a0237cf071f3b1b1 ) 29. Raimi R (1976). The first digit problem. Am Math Mon 83: 521–538. 30. Schatte P (1996). On Benford’s law to variable base. Stat Probabil Lett 37: 391–397. 31. Varian HR (1972). Benford's Law. Amer. Statist. 25, 65–66. 32. Wojcik, M. R. 2013, Notes on scale-invariance and base-invariance for Benford’s law, arXiv:1307.3620. 51 7. List of figures and tables Figure 3.1. NBL usual plot using heat.colors in R. The higher the frequency, the redder the bar. The black line shows the case if the numbers were uniformly distributed, which has been calculated from a random sample of a U(0,1) with n=1000….………………………………………………………………………………..11 Figure 3.2. Plot for second, third and fourth significant digits respectively showing their probabilities……………………………………………………………...18 Figure 4.1. Pie chart of the unit circle with the different probabilities of NBL…….20 Figure 4.2. Absolute differences of the first significant digits…………..………….25 Figure 4.3. The first plot shows the distribution of the first significant digits comparing the observed probabilities vs. NB's ones by using a red dotted line. The second one represents the same but using the probabilities………………………………………………………………………………25 Figure 4.4. Plot for the first-two digit distribution and chi-square differences respectively, where the second plot uses the squared differences of the frequencies………………………………………………………………………………26 Figure 4.5. Map of Spain with the municipality and census data levels. The legend shows the percentage of the population aged 60 or over. (Source: the INE website…………………………………………………………………………………..27 Figure 4.6. Plot for the first-digit and first-two digits frequencies’ respectively…..31 Figure 4.7. Graph for the first-two digits test and chi-squared test respectively………………………………………………………………………………32 Figure 4.8. Plot of the distribution of digits comparing the observed probabilities vs. Benford's ones, for the first and second digits respectively………………………………………………………………………………33 Figure 4.9. Points on the unit circle to evaluate Mantissa Arc Test for the first-two digits. Note that the circumference is slightly flattened, like a geoid, in order to improve the vision of the points……………………………………………………….34 52 Table 3.1. Probability of occurrence of each digit following them different distributions obtained with Rstudio……………………………………………………17 Table 4.1. Summary of the variable Total from “Municipal population”………..…24 Table 4.2. Frequencies, proportions and absolute differences from “Municipal population” compared with NB proportions, d1 ϵ {1,…,9}…………………………...24 Table 4.3. Probabilities’ table of the second significant digit, d2 {0,…,9}………26∈ Table 4.4. The five largest deviations from data ”Municipality’s population”……………………………………………………………………………….27 Table 4.5. The most duplicated first-two digits in descending order of appearance………………………………………………………………………………28 Table 4.6. Examples of Municipalities with the first-two most duplicated values…………………………………………………………………………………….28 Table 4.7. Frequencies and significant p-values of a significand analysis of the first-two digits…………………………………………………………………………….28 Table 4.8. Summary statistics of the log mantissa from data ”Municipal population”……………………………………………………………………………….29 Table 4.9. Main statistics for first and first-two digits………………………………..29 Table 4.10. Summary of the variable Stock.Trading from “Training Data”……….32 Table 4.11. Frequencies, proportions and absolute differences from “Stock Price” compared with NB proportions, d1 ϵ {1,…,9}…………………………………………32 Table 4.12. Summary statistics of the log mantissa from data ”stockPrice.csv”………………………………………………………………………….33 53