<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    jmf
   </journal-id>
   <journal-title-group>
    <journal-title>
     Journal of Mathematical Finance
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2162-2434
   </issn>
   <issn publication-format="print">
    2162-2442
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/jmf.2024.144024
   </article-id>
   <article-id pub-id-type="publisher-id">
    jmf-137704
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Business 
     </subject>
     <subject>
       Economics, Physics 
     </subject>
     <subject>
       Mathematics
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Assessing Conformity to Benford’s Law with Application to Check China Financial Market
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Guojun
      </surname>
      <given-names>
       Fang
      </given-names>
     </name>
    </contrib>
   </contrib-group> 
   <aff id="affnull">
    <addr-line>
     aDepartment of Public Teaching, Fuzhou Medical College of Nanchang University, Fuzhou, China
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     24
    </day> 
    <month>
     09
    </month>
    <year>
     2024
    </year>
   </pub-date> 
   <volume>
    14
   </volume> 
   <issue>
    04
   </issue>
   <fpage>
    417
   </fpage>
   <lpage>
    429
   </lpage>
   <history>
    <date date-type="received">
     <day>
      24,
     </day>
     <month>
      October
     </month>
     <year>
      2024
     </year>
    </date>
    <date date-type="published">
     <day>
      24,
     </day>
     <month>
      October
     </month>
     <year>
      2024
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      24,
     </day>
     <month>
      November
     </month>
     <year>
      2024
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    Benford’s law states that the basic distribution of first digits in naturally produced data is that the frequency of first digits decreases as the digits become larger. This law has been widely used in many areas, such as detecting fraud or manipulation in large datasets. Goodness-of-fit tests are used to assess whether the data obeyed Benford’s law. However, conventional statistical tests reject the null hypothesis that data obey Benford’s law if the data size is very large. In this paper, we calculated the empirical distribution of first digits of stock close price and daily return in China Stock Market and assessed their conformity to Benford’s law by several statistical tests. As a comparison, we introduce the distribution of first two digits as another kind of Benford’s law and test whether China Stock Market is close to the law.
   </abstract>
   <kwd-group> 
    <kwd>
     Benford’s Law
    </kwd> 
    <kwd>
      Conformity
    </kwd> 
    <kwd>
      Goodness of Fit
    </kwd> 
    <kwd>
      Null Hypothesis
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>Benford’s law states that the frequency of first digits tends to be smaller with an increase in the first digits in a naturally produced dataset. This law was first discovered by American astronomer and mathematician Newcomb <xref ref-type="bibr" rid="scirp.137704-1">
     [1]
    </xref> in 1881. Unfortunately, this discovery did not arouse attention until GE physicist Benford <xref ref-type="bibr" rid="scirp.137704-2">
     [2]
    </xref> independently rediscovered it in 1938. Thus, this law was named after Benford’s. Since then, the law has attracted many different researchers to study it in theory and in practical applications.</p>
   <p>Theoretically, this law is so widespread that many mathematicians or statisticians have explained it from basic mathematical theory. Hill’s papers <xref ref-type="bibr" rid="scirp.137704-3">
     [3]
    </xref> <xref ref-type="bibr" rid="scirp.137704-4">
     [4]
    </xref> provided a rigorous explanation of Benford’s law. He presented a strict proof based on several assumptions, including scale invariance, base invariance, and random distributions. However, these mathematical explanations cannot interpret why the law is ubiquitous in many different fields. So, Hill raised an interesting open question: which common probability distributions are following Benford’s law? <xref ref-type="bibr" rid="scirp.137704-3">
     [3]
    </xref>.</p>
   <p>Leemis et al. <xref ref-type="bibr" rid="scirp.137704-5">
     [5]
    </xref>, Engel et al. <xref ref-type="bibr" rid="scirp.137704-6">
     [6]
    </xref>, Miller et al. <xref ref-type="bibr" rid="scirp.137704-7">
     [7]
    </xref> <xref ref-type="bibr" rid="scirp.137704-8">
     [8]
    </xref> studied that the Weibull distribution and the Inverse Gamma distribution are both close to Benford’s law. Among other common probability distributions, the Log-normal distribution exists widely in natural phenomena. Fasli and Scott <xref ref-type="bibr" rid="scirp.137704-9">
     [9]
    </xref>, Rodriguez <xref ref-type="bibr" rid="scirp.137704-10">
     [10]
    </xref>, Fang and Qihong <xref ref-type="bibr" rid="scirp.137704-11">
     [11]
    </xref> showed the distribution is often conforming to Benford’s law by using various methods. Since the open question is very important, in his paper Fang <xref ref-type="bibr" rid="scirp.137704-12">
     [12]
    </xref> named the question after Hill, that is Hill’s question and investigated the question for several probability distributions based on a lemma <xref ref-type="bibr" rid="scirp.137704-13">
     [13]
    </xref>.</p>
   <p>Based on these researches, Benford’s law is often used to check data quality and to discover underlying data manipulation or fraud in large datasets <xref ref-type="bibr" rid="scirp.137704-14">
     [14]
    </xref>-<xref ref-type="bibr" rid="scirp.137704-16">
     [16]
    </xref>. The principal idea is, given that some basic conditions are met, genuine data should conform with Benford’s law and non-conformity with the law may suggest some data problems have taken place. However, these serious investigations must be grounded on firm statistical testing procedure. So similar to Hill’s question, there is still another open question: what are the tests and conditions required to define a dataset following Benford’s law?</p>
   <p>
    <xref ref-type="bibr" rid="scirp.137704-"></xref>Data conformity with Benford’s law can be tested by using various criteria and statistical tests. So far, several tests are used to assess whether a given dataset conforms to Benford’s law, for example, the Z-test, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> test, KS test and MAD test. Among the available tests, Pearson’s 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> was commonly adopted. However, the adoption of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> and other goodness-of-fit statistical tests tends to reject the null of conformity of Benford’s law in a large enough sample size even if the deviations are tiny and unimportant. So, these tests have been criticized in many literatures on Benford’s law. Cerqueti and lupi <xref ref-type="bibr" rid="scirp.137704-17">
     [17]
    </xref> called the problem caused by the large data size as the large n problem. Joenssen <xref ref-type="bibr" rid="scirp.137704-18">
     [18]
    </xref> performed a comparative study between seven first digit tests for conformity to Benford’s law by Monte Carlo simulation. He <xref ref-type="bibr" rid="scirp.137704-19">
     [19]
    </xref> also tested first two digits for Benford’s law besides testing first digits.</p>
   <p>Financial market stock exchanging data are very large, which is fit to be used to check large n problem. Meanwhile if we know financial market obeys Benford’s law, we can use the law to find out some anomalous behaviors in the markets and detect the reason behind it. But we should know which indices are best indicators to show the market following Benford’s law. So far Corazza et al. <xref ref-type="bibr" rid="scirp.137704-20">
     [20]
    </xref> have checked daily distribution of first digits of S&amp;P 500’s stock Price and Return against the Benford’s law. On the other hand, the market is a desirable experimental subject to find out which is the best test among various existing tests.</p>
   <p>In this study, we investigate the large n problem by using China Financial Market stock exchanging data and want to know whether the large n really affects some statistical tests. Meanwhile, we check whether China stock market has the similar Benfordness phenomenon occurring in others financial market, such as S&amp;P 500’s stocks. From this check, we filter out the appropriate tests and argue these tests can be used in facing with the large n problem.</p>
   <p>The rest of the paper is organized as follows. In Section 2, we introduce the basic materials and methods: Benford’s law, Data Collection and Chose tests. Results are presented in Section 3. In Section 4, we conclude the paper with some discussions.</p>
  </sec><sec id="s2">
   <title>2. Methods</title>
   <sec id="s2_1">
    <title>2.1. Benford Law</title>
    <p>In this work, whether China Stock Market obeys Benford’s law is checked. To achieve this, some selected tests are carefully calculated and compared with other tests. We want to know which statistical test is the best one for assessing conformity to the law in “Big Data”. We use the existing R-Benford Tests libraries to make these calculations. Besides, some specific codes for the application are also written in the R language.</p>
    <p>How to test a dataset conforming to Benford’s law is still an open question. So firstly, we give the definition of the law. But the law has various forms of definition. However, which definition should be chosen to test the benfordness of a dataset is flexible. In this study, we choose the two basic definitions, i.e., the distribution of first significant digit and the distribution of first two significant digit. We state these definition as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Prob 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            D 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           , 
         </mo> 
         <msub> 
          <mi>
            D 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mo>
           , 
         </mo> 
         <mo>
           ⋯ 
         </mo> 
         <mo>
           , 
         </mo> 
         <msub> 
          <mi>
            D 
          </mi> 
          <mi>
            k 
          </mi> 
         </msub> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mi>
            k 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <munderover> 
              <mstyle mathsize="140%" displaystyle="true"> 
               <mo>
                 ∑ 
               </mo> 
              </mstyle> 
              <mrow> 
               <mi>
                 j 
               </mi> 
               <mo>
                 = 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mi>
                k 
              </mi> 
             </munderover> 
             <mtext>
                 
             </mtext> 
             <msup> 
              <mrow> 
               <mn>
                 10 
               </mn> 
              </mrow> 
              <mrow> 
               <mi>
                 k 
               </mi> 
               <mo>
                 − 
               </mo> 
               <mi>
                 j 
               </mi> 
              </mrow> 
             </msup> 
             <mo>
               ⋅ 
             </mo> 
             <msub> 
              <mi>
                d 
              </mi> 
              <mi>
                j 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msup> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (2.1)</p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <mo>
         ⋯ 
       </mo> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mi>
          k 
        </mi> 
       </msub> 
      </mrow> 
     </math> represent the first digits, the second digits…, the kth digits, respectively.</p>
    <p>This is a general definition of Benford’s law.</p>
    <p>Equation (2.1), when applied to the first digit, becomes the basic formula of Benford’s law as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Prob 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            D 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <mfrac> 
          <mn>
            1 
          </mn> 
          <mrow> 
           <msub> 
            <mi>
              d 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         with 
       </mtext> 
       <mtext>
           
       </mtext> 
       <msub> 
        <mi>
          d 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         ∈ 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           2 
         </mn> 
         <mo>
           , 
         </mo> 
         <mo>
           ⋯ 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           9 
         </mn> 
        </mrow> 
        <mo>
          } 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (2.2)</p>
    <p>Equation (2.1), When applied to the first two digits is as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <mtext>
           Prob 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              D 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             = 
           </mo> 
           <msub> 
            <mi>
              d 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             , 
           </mo> 
           <msub> 
            <mi>
              D 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
           <mo>
             = 
           </mo> 
           <msub> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mo>
           = 
         </mo> 
         <mi>
           log 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             + 
           </mo> 
           <mfrac> 
            <mn>
              1 
            </mn> 
            <mrow> 
             <mn>
               10 
             </mn> 
             <msub> 
              <mi>
                d 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               + 
             </mo> 
             <msub> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
           </mfrac> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           , 
         </mo> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           with 
         </mtext> 
         <mtext>
             
         </mtext> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           ∈ 
         </mo> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             2 
           </mn> 
           <mo>
             , 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             , 
           </mo> 
           <mn>
             9 
           </mn> 
          </mrow> 
          <mo>
            } 
          </mo> 
         </mrow> 
         <mtext>
             
         </mtext> 
         <mtext>
           and 
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           with 
         </mtext> 
         <mtext>
             
         </mtext> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mo>
           ∈ 
         </mo> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <mn>
             0 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             1 
           </mn> 
           <mo>
             , 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             , 
           </mo> 
           <mn>
             9 
           </mn> 
          </mrow> 
          <mo>
            } 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math> (2.3)</p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> denotes the value of first two digits and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Prob 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            D 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           , 
         </mo> 
         <msub> 
          <mi>
            D 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> represent the probability that the first two digits are equal to 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          d 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <msub> 
        <mi>
          d 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math>.</p>
    <p>Equation (2.1), When applied to the Second digits is as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Prob 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            D 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <munderover> 
        <mstyle mathsize="140%" displaystyle="true"> 
         <mo>
           ∑ 
         </mo> 
        </mstyle> 
        <mrow> 
         <msub> 
          <mi>
            d 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mn>
          9 
        </mn> 
       </munderover> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <mfrac> 
          <mn>
            1 
          </mn> 
          <mrow> 
           <mn>
             10 
           </mn> 
           <msub> 
            <mi>
              d 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             + 
           </mo> 
           <msub> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
         with 
       </mtext> 
       <mtext>
           
       </mtext> 
       <msub> 
        <mi>
          d 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         ∈ 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <mn>
           0 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
         <mo>
           ⋯ 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           9 
         </mn> 
        </mrow> 
        <mo>
          } 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (2.4)</p>
    <p>
     <xref ref-type="table" rid="table1">
      Table 1
     </xref> shows the expected frequency of first digits, second digits and first two digits of Benford’s law. They are calculated based on Equations (2.2), (2.3), (2.4), respectively.</p>
    <table-wrap id="table1">
     <label>
      <xref ref-type="table" rid="table1">
       Table 1
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.137704-"></xref>Table 1. The expected frequency of first digits, second digits and first two digits of Benford’s law.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="13.90%"><p style="text-align:center">First two digits</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">0</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">1</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">2</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">3</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">4</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">5</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">6</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">7</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">8</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">9</p></td> 
       <td class="custom-bottom-td acenter" width="9.96%"><p style="text-align:center">First digits</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="13.90%"><p style="text-align:center">1</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0414</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0378</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0348</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0322</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0300</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0280</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0263</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0248</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0235</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.0223</p></td> 
       <td class="custom-top-td acenter" width="9.96%"><p style="text-align:center">0.3010</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">2</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0212</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0202</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0193</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0185</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0177</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0170</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0164</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0158</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0152</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0147</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.1761</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">3</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0142</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0138</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0134</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0130</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0126</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0122</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0119</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0116</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0113</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0110</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.1249</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">4</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0107</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0105</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0102</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0100</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0098</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0095</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0093</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0091</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0090</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0088</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0969</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">5</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0086</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0084</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0083</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0081</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0080</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0078</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0077</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0076</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0074</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0073</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0792</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">6</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0072</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0071</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0069</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0068</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0067</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0066</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0065</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0064</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0063</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0062</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0669</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">7</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0062</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0061</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0060</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0059</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0058</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0058</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0057</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0056</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0055</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0055</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0580</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">8</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0054</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0053</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0053</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0052</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0051</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0051</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0050</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0050</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0049</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0049</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0512</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">9</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0048</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0047</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0047</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0046</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0046</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0045</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0045</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0045</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0044</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0044</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0458</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="13.90%"><p style="text-align:center">Second digits</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.1197</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.1139</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.1088</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.1043</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.1003</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0967</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0934</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0904</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0876</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">0.0850</p></td> 
       <td class="acenter" width="9.96%"><p style="text-align:center">1</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>Source: Author’s calculation with Excel.</p>
    <p>We assess conformity to Benford’s law based on Equations (2.2), (2.3); i.e., the expected frequency of first digits and first two digits.</p>
   </sec>
   <sec id="s2_2">
    <title>2.2. Data Collection</title>
    <p>In order to assess conformity to Benford’s law, we have collected Stock Exchanging Data published by Chinese companies from the year 2017 to 2021 listed on Shanghai A-Share Market, which were obtained from CSMAR (China Stock Market and Accounting Research Database). From these Trading Data, we choose two indices: Close Price and Daily Return as variables to be used to assess Benfordness of China Stock Market.</p>
    <p>
     <xref ref-type="table" rid="table2">
      Table 2
     </xref> shows the general information of those Data, including number of Trading Days, number of Companies, number of A-shares and Data size. From the last line, we can see the Data size is very big. Our calculation and analysis are based on these trading Data.</p>
    <table-wrap id="table2">
     <label>
      <xref ref-type="table" rid="table2">
       Table 2
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.137704-"></xref>Table 2. The companies listed on Shanghai A-share Market.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="17.36%"><p style="text-align:center">Year</p></td> 
       <td class="custom-bottom-td acenter" width="17.01%"><p style="text-align:center">2017</p></td> 
       <td class="custom-bottom-td acenter" width="17.01%"><p style="text-align:center">2018</p></td> 
       <td class="custom-bottom-td acenter" width="17.01%"><p style="text-align:center">2019</p></td> 
       <td class="custom-bottom-td acenter" width="17.01%"><p style="text-align:center">2020</p></td> 
       <td class="custom-bottom-td acenter" width="17.01%"><p style="text-align:center">2021</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="17.36%"><p style="text-align:center">Trading Days</p></td> 
       <td class="custom-top-td acenter" width="17.01%"><p style="text-align:center">224</p></td> 
       <td class="custom-top-td acenter" width="17.01%"><p style="text-align:center">243</p></td> 
       <td class="custom-top-td acenter" width="17.01%"><p style="text-align:center">244</p></td> 
       <td class="custom-top-td acenter" width="17.01%"><p style="text-align:center">243</p></td> 
       <td class="custom-top-td acenter" width="17.01%"><p style="text-align:center">243</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="17.36%"><p style="text-align:center">No.of Companies</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1396</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1450</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1572</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1800</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">2037</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="17.36%"><p style="text-align:center">No.of A-shares</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1389</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1443</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1495</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1580</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">1655</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="17.36%"><p style="text-align:center">Data Size</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">298,357</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">332,246</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">357,322</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">369,271</p></td> 
       <td class="acenter" width="17.01%"><p style="text-align:center">541,618</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>Source: Shanghai Stock Exchange Statistics Annual (2019) (2022), <xref ref-type="bibr" rid="scirp.137704-http://www.sse.com.cn/aboutus/publication/yearly/">
      http://www.sse.com.cn/aboutus/publication/yearly/
     </xref>.</p>
    <p>Before our check, the hypotheses are given first. We assumed China Stock Market Obeys Benford’s law, that is a data should follow benford distribution. We choose two indices to analyze: Close Price and Daily Return to assess the benfordness. We calculate and assess 2017 to 2021 five years trading Data, respectively. Besides, we also combine these data as a whole to assess benfordness. Specifically, these hypotheses are as follows:</p>
    <p>Hypothesis 1: The yearly distribution of first digits of Close Price follows Benford’s law;</p>
    <p>Hypothesis 2: The yearly distribution of first digits of Daily Return follows Benford’s law;</p>
    <p>Hypothesis 3: The overall distribution of first digits of Daily Return follows Benford’s law.</p>
   </sec>
   <sec id="s2_3">
    <title>2.3. Chosen Tests</title>
    <p>There are many statistical and non-statistical tests to be used to assess a dataset conforming to Benford’s law. We choose the tests based on Joenssen used in his paper <xref ref-type="bibr" rid="scirp.137704-18">
      [18]
     </xref> and make a comparison between them. According to these tests and comparison, some of tests which may be suitable to assess conformity to Benford’s law for large data size are selected.</p>
    <p>The common goodness-of-fit test for discrete distributions is the Pearson Chi-Square test which is based on the comparison between observed frequencies and expected frequencies. The following is the calculating formula:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          χ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         = 
       </mo> 
       <mi>
         n 
       </mi> 
       <munderover> 
        <mstyle mathsize="140%" displaystyle="true"> 
         <mo>
           ∑ 
         </mo> 
        </mstyle> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mn>
          9 
        </mn> 
       </munderover> 
       <mfrac> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                π 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            π 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (2.5)</p>
    <p>From the above formula, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          χ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math> is obviously sensitive to the data size n and it may be very large when the data size is big. 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          χ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math> statistic asymptotically follows 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          χ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math> distribution with 8 degrees of freedom. If the value of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          χ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math> is large, the hypothesis, the data obeying Benford’s law should be rejected.</p>
    <p>The Kolmogorov-Smirnov test is also commonly used goodness-of-fit test, which is based on the maximum vertical distance between the empirical and expected cumulative distribution functions. By using the supremum function, the test can be computed as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         D 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mi>
          n 
        </mi> 
       </msqrt> 
       <msub> 
        <mrow> 
         <mi>
           sup 
         </mi> 
        </mrow> 
        <mrow> 
         <mi>
           j 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
         <mo>
           ⋯ 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           9 
         </mn> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <munderover> 
          <mstyle mathsize="140%" displaystyle="true"> 
           <mo>
             ∑ 
           </mo> 
          </mstyle> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             = 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mi>
            j 
          </mi> 
         </munderover> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              p 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              π 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (2.6)</p>
    <p>Similar to the 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          χ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>, if the value of D is too large, the hypothesis is considered to be rejected.</p>
    <p>The following test is used by Leemis et al. <xref ref-type="bibr" rid="scirp.137704-5">
      [5]
     </xref> to determine conformance to Benford’s law for some parametric survival distributions. The test is based on the distribution of Chebyshev distances between empirical distribution and theoretical distribution under the null-hypothesis. In order to derive asymptotic test statistics, Morrow modified the test statistics used by Leemis et al. and by Cho and Gaines as follows</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         m 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mi>
          n 
        </mi> 
       </msqrt> 
       <msub> 
        <mrow> 
         <mi>
           max 
         </mi> 
        </mrow> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
         <mo>
           ⋯ 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           9 
         </mn> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            π 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (2.7)</p>
    <p>Large values of m would reject the hypothesis like the statistical test D. The next test, based on the Euclidean distance between observed and expected frequencies, is also first modified and used by Morrow.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <msqrt> 
          <mrow> 
           <munderover> 
            <mstyle mathsize="140%" displaystyle="true"> 
             <mo>
               ∑ 
             </mo> 
            </mstyle> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               = 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
            <mn>
              9 
            </mn> 
           </munderover> 
           <msup> 
            <mrow> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  p 
                </mi> 
                <mi>
                  i 
                </mi> 
               </msub> 
               <mo>
                 − 
               </mo> 
               <msub> 
                <mi>
                  π 
                </mi> 
                <mi>
                  i 
                </mi> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msup> 
          </mrow> 
         </msqrt> 
        </mrow> 
       </msqrt> 
      </mrow> 
     </math> (2.8)</p>
    <p>Large distances mean the data seriously deviating from Benford’s law. Another test is Freedman’s modification of Watson’s 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          U 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math> statistic for discrete distribution. If Deviation from Benford’s law is very large leading to larger 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          U 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>, which will reject the null hypothesis.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          U 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mi>
          n 
        </mi> 
        <mrow> 
         <mn>
           9 
         </mn> 
         <mo>
           ⋅ 
         </mo> 
         <msup> 
          <mrow> 
           <mn>
             10 
           </mn> 
          </mrow> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msup> 
        </mrow> 
       </mfrac> 
       <mo>
         ⋅ 
       </mo> 
       <mrow> 
        <mo>
          [ 
        </mo> 
        <mrow> 
         <munderover> 
          <mstyle mathsize="140%" displaystyle="true"> 
           <mo>
             ∑ 
           </mo> 
          </mstyle> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             = 
           </mo> 
           <msup> 
            <mrow> 
             <mn>
               10 
             </mn> 
            </mrow> 
            <mrow> 
             <mi>
               k 
             </mi> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
           </msup> 
          </mrow> 
          <mrow> 
           <msup> 
            <mrow> 
             <mn>
               10 
             </mn> 
            </mrow> 
            <mi>
              k 
            </mi> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
          </mrow> 
         </munderover> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <munderover> 
              <mstyle mathsize="140%" displaystyle="true"> 
               <mo>
                 ∑ 
               </mo> 
              </mstyle> 
              <mrow> 
               <mi>
                 j 
               </mi> 
               <mo>
                 = 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mi>
                i 
              </mi> 
             </munderover> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  p 
                </mi> 
                <mi>
                  i 
                </mi> 
               </msub> 
               <mo>
                 − 
               </mo> 
               <msub> 
                <mi>
                  π 
                </mi> 
                <mi>
                  i 
                </mi> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           − 
         </mo> 
         <mfrac> 
          <mn>
            1 
          </mn> 
          <mrow> 
           <mn>
             9 
           </mn> 
           <mo>
             ⋅ 
           </mo> 
           <msup> 
            <mrow> 
             <mn>
               10 
             </mn> 
            </mrow> 
            <mrow> 
             <mi>
               k 
             </mi> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
           </msup> 
          </mrow> 
         </mfrac> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <munderover> 
            <mstyle mathsize="140%" displaystyle="true"> 
             <mo>
               ∑ 
             </mo> 
            </mstyle> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               = 
             </mo> 
             <msup> 
              <mrow> 
               <mn>
                 10 
               </mn> 
              </mrow> 
              <mrow> 
               <mi>
                 k 
               </mi> 
               <mo>
                 − 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
             </msup> 
            </mrow> 
            <mrow> 
             <msup> 
              <mrow> 
               <mn>
                 10 
               </mn> 
              </mrow> 
              <mi>
                k 
              </mi> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </munderover> 
           <msup> 
            <mrow> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <munderover> 
                <mstyle mathsize="140%" displaystyle="true"> 
                 <mo>
                   ∑ 
                 </mo> 
                </mstyle> 
                <mrow> 
                 <mi>
                   j 
                 </mi> 
                 <mo>
                   = 
                 </mo> 
                 <mn>
                   1 
                 </mn> 
                </mrow> 
                <mi>
                  i 
                </mi> 
               </munderover> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mrow> 
                 <msub> 
                  <mi>
                    p 
                  </mi> 
                  <mi>
                    i 
                  </mi> 
                 </msub> 
                 <mo>
                   − 
                 </mo> 
                 <msub> 
                  <mi>
                    π 
                  </mi> 
                  <mi>
                    i 
                  </mi> 
                 </msub> 
                </mrow> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msup> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          ] 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (2.9)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          J 
        </mi> 
        <mi>
          P 
        </mi> 
        <mn>
          2 
        </mn> 
       </msubsup> 
      </mrow> 
     </math> statistic is based on the Shapiro-Francia test for normality. The value of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          J 
        </mi> 
        <mi>
          P 
        </mi> 
        <mn>
          2 
        </mn> 
       </msubsup> 
      </mrow> 
     </math> is within zero and one. The value closer to 1 means the data closer to Benford’s law.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          J 
        </mi> 
        <mi>
          P 
        </mi> 
        <mn>
          2 
        </mn> 
       </msubsup> 
       <mo>
         = 
       </mo> 
       <mi>
         sgn 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <munderover> 
          <mstyle mathsize="140%" displaystyle="true"> 
           <mo>
             ∑ 
           </mo> 
          </mstyle> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             = 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mn>
            9 
          </mn> 
         </munderover> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              π 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
           <mo>
             − 
           </mo> 
           <mfrac> 
            <mn>
              1 
            </mn> 
            <mn>
              9 
            </mn> 
           </mfrac> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ⋅ 
         </mo> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ⋅ 
       </mo> 
       <mfrac> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msubsup> 
              <mstyle mathsize="140%" displaystyle="true"> 
               <mo>
                 ∑ 
               </mo> 
              </mstyle> 
              <mrow> 
               <mi>
                 i 
               </mi> 
               <mo>
                 = 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mn>
                9 
              </mn> 
             </msubsup> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  π 
                </mi> 
                <mi>
                  i 
                </mi> 
               </msub> 
               <mo>
                 − 
               </mo> 
               <mfrac> 
                <mn>
                  1 
                </mn> 
                <mn>
                  9 
                </mn> 
               </mfrac> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               ⋅ 
             </mo> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
        <mrow> 
         <msubsup> 
          <mstyle mathsize="140%" displaystyle="true"> 
           <mo>
             ∑ 
           </mo> 
          </mstyle> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             = 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mn>
            9 
          </mn> 
         </msubsup> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                π 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
             <mo>
               − 
             </mo> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                9 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           ⋅ 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msubsup> 
            <mstyle mathsize="140%" displaystyle="true"> 
             <mo>
               ∑ 
             </mo> 
            </mstyle> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               = 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
            <mn>
              9 
            </mn> 
           </msubsup> 
           <msup> 
            <mrow> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  p 
                </mi> 
                <mi>
                  i 
                </mi> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mfrac> 
            <mn>
              1 
            </mn> 
            <mn>
              9 
            </mn> 
           </mfrac> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (3.0)</p>
    <p>Besides the above test, the J-divergence is added to measure the goodness-of-fit between the empirical distribution of first digit and Benford’s law. J-divergence is defined as half the sum of two possible Kullback-Leibler distances as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         K 
       </mi> 
       <mi>
         L 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           P 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           B 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <munderover> 
        <mstyle mathsize="140%" displaystyle="true"> 
         <mo>
           ∑ 
         </mo> 
        </mstyle> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mn>
          9 
        </mn> 
       </munderover> 
       <mtext>
           
       </mtext> 
       <mtext>
         Prob 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           first 
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           digit 
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           is 
         </mtext> 
         <mtext>
             
         </mtext> 
         <mi>
           k 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         × 
       </mo> 
       <msub> 
        <mrow> 
         <mi>
           log 
         </mi> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          [ 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <mtext>
             Prob 
           </mtext> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mtext>
               first 
             </mtext> 
             <mtext>
                 
             </mtext> 
             <mtext>
               digit 
             </mtext> 
             <mtext>
                 
             </mtext> 
             <mtext>
               is 
             </mtext> 
             <mtext>
                 
             </mtext> 
             <mi>
               k 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mrow> 
           <mi>
             B 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              k 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ] 
        </mo> 
       </mrow> 
       <mo>
         , 
       </mo> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         K 
       </mi> 
       <mi>
         L 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           B 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           P 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <munderover> 
        <mstyle mathsize="140%" displaystyle="true"> 
         <mo>
           ∑ 
         </mo> 
        </mstyle> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mn>
          9 
        </mn> 
       </munderover> 
       <mtext>
           
       </mtext> 
       <mi>
         B 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          k 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         × 
       </mo> 
       <msub> 
        <mrow> 
         <mi>
           log 
         </mi> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          [ 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <mi>
             B 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              k 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mrow> 
           <mtext>
             Prob 
           </mtext> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mtext>
               first 
             </mtext> 
             <mtext>
                 
             </mtext> 
             <mtext>
               digit 
             </mtext> 
             <mtext>
                 
             </mtext> 
             <mtext>
               is 
             </mtext> 
             <mtext>
                 
             </mtext> 
             <mi>
               k 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ] 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         J 
       </mi> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mn>
          1 
        </mn> 
        <mn>
          2 
        </mn> 
       </mfrac> 
       <mo>
         × 
       </mo> 
       <mrow> 
        <mo>
          [ 
        </mo> 
        <mrow> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             P 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             B 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           + 
         </mo> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             B 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             P 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          ] 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (3.1)</p>
    <p>B(k) denotes the Benford’s law expected frequencies. Kullback-Leibler distance, also known as relative entropy, has several good measure-theoretic properties, including non-negative and equaling to zero if and only if P and B are same distributions. The smaller value of J-div means closer to Benford’s law.</p>
   </sec>
  </sec><sec id="s3">
   <title>3. Results</title>
   <p>
    <xref ref-type="bibr" rid="scirp.137704-"></xref>To test Hypothesis 1, the descriptive analysis of China Stock Market Obeying Benford’s law is performed by calculating the frequency of first digits of Close Price based on yearly data and overall data. So, we can see six bars plus another bar from Benford’s law in <xref ref-type="fig" rid="fig1">
     Figure 1
    </xref>. Obviously, with few exceptions, the height of the bars decreases as the increasing of first digits for each year.</p>
   <p>Since the empirical distribution of first digits presents the basic pattern of Benford’s law, which intuitively indicates the distribution of first digits of Close Price is almost close to Benford’s law. The data columns represent the detailed frequencies of first digits of Closed Price from which the distribution of first digits of each year can be clearly observed. The deviation from the theoretical distribution in 2017 is bigger than the distribution of first digits in other years. The frequency of 1 in 2017 is 0.3472 which is larger than 0.3010. On the contrary, the frequencies of 2, 3, 4 are all very small compared with the expected frequencies.</p>
   <fig id="fig1" position="float">
    <label>Figure 1</label>
    <caption>
     <title>Figure 1. Close Price. This is a figure made up of a bar chart and a table. The figure shows the empirical distribution of first digits of Close Price in China Stock Market from 2017 to 2021. From the above bar chart, we can see the empirical distribution of first digit of Close Price is almost close to the distribution pattern of Benford’s Law, which can be shown the heights of the bar almost monotonically decrease with the increasing of first digits. Data set columns represent the detailed frequencies of first digits of Close Price and Benford’s Law column represents the expected frequency of first digits.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1491152-rId70.jpeg?20241127034909" />
   </fig>
   <p>However, the descriptive analysis is not enough, so statistic test procedure is needed. We calculated seven tests listed in the section of Chosen tests and presented their values in <xref ref-type="table" rid="table3">
     Table 3
    </xref>. The values of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>, ks, Mdist, Edist, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         U 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> are all large enough to exceed their critical value. So, we would reject the Hypothesis according to general rule of hypothesis testing. But these large values are caused by the big data size for these tests are all related to the data size n as shown in their calculating formulas. To show the trend clearly, we put the five years data together and repeat the testing procedure. The results are listed in the last row of <xref ref-type="table" rid="table3">
     Table 3
    </xref>. The value of those tests becomes larger than the value of each year. It is obviously caused by larger data size.</p>
   <table-wrap id="table3">
    <label>
     <xref ref-type="table" rid="table3">
      Table 3
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.137704-"></xref>Table 3. Tests of conformity of Benford’s law for the distribution of first digits of Close Price.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td cell-with-diagonal-border aright" width="13.22%"><p style="text-align:right">Tests</p><p style="text-align:left">Year</p></td> 
      <td class="custom-bottom-td acenter" width="12.40%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             χ 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="12.40%"><p style="text-align:center">Ks</p></td> 
      <td class="custom-bottom-td acenter" width="12.40%"><p style="text-align:center">Mdist</p></td> 
      <td class="custom-bottom-td acenter" width="12.40%"><p style="text-align:center">Edist</p></td> 
      <td class="custom-bottom-td acenter" width="12.40%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             U 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="12.40%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             J 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="12.40%"><p style="text-align:center">J-div</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="13.22%"><p style="text-align:center">2017</p></td> 
      <td class="custom-top-td acenter" width="12.40%"><p style="text-align:center">7820.5</p></td> 
      <td class="custom-top-td acenter" width="12.40%"><p style="text-align:center">25.192</p></td> 
      <td class="custom-top-td acenter" width="12.40%"><p style="text-align:center">25.192</p></td> 
      <td class="custom-top-td acenter" width="12.40%"><p style="text-align:center">35.869</p></td> 
      <td class="custom-top-td acenter" width="12.40%"><p style="text-align:center">161.95</p></td> 
      <td class="custom-top-td acenter" width="12.40%"><p style="text-align:center">0.9437</p></td> 
      <td class="custom-top-td acenter" width="12.40%"><p style="text-align:center">0.0192</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="13.22%"><p style="text-align:center">2018</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">5493.8</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">31.285</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">18.925</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">25.745</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">132.29</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.9788</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.0119</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="13.22%"><p style="text-align:center">2019</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">6574.5</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">31.080</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">25.639</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">29.099</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">131.82</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.9614</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.0140</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="13.22%"><p style="text-align:center">2020</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">2780.0</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">18.645</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">17.128</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">19.180</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">50.01</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.9839</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.0056</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="13.22%"><p style="text-align:center">2021</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">4806.7</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">20.647</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">22.809</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">25.905</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">77.79</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.9773</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.0067</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="13.22%"><p style="text-align:center">Overall</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">256474.0</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">491.770</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">141.130</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">212.470</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">11592.00</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.9743</p></td> 
      <td class="acenter" width="12.40%"><p style="text-align:center">0.0082</p></td> 
     </tr> 
    </table>
   </table-wrap>
   <p>Source: Author’s calculation with R.</p>
   <p>Even so, these values of tests can also show the deviation between the data and Benford’s law for each year. For example, in the year 2017, the value of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> is obviously larger than other years, which shows the data is not much conforming to Benford’s law. This corresponds to our previous descriptive analysis. However, the values of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> and J-div are not affected by the data size. Thus, these tests better reflect the closeness of Benfordness than other tests.</p>
   <p>
    <xref ref-type="bibr" rid="scirp.137704-"></xref>In the above analysis, we have calculated the Frequency of first digits of Close Price. Although both the descriptive analysis and testing procedure of first digits of Close Price reveal the benfordness of China Stock Market, the closeness is not very good. So, another indicator is introduced. That is Daily Return of Stock. Again, we calculate the first digits of Daily Return.</p>
   <p>To test Hypothesis 2, the descriptive analysis of China stock market Obeying Benford’s law is performed by calculating the first digits of Daily Return of Stocks based on yearly data and overall data. So we also can see six bars plus another bar from Benford’s law in <xref ref-type="fig" rid="fig2">
     Figure 2
    </xref>. Similarly, the height of the bars decreases as the increasing of first digits for each year. Since the empirical distribution of first digits presents the basic pattern of Benford’s law, which intuitively indicates the distribution of first digits of Daily Return is almost close to Benford’s law and much closer than the distribution of first digits of Close Price. The data columns represent the detailed frequencies of first digits of Daily Return, from which the distribution of first digits of each year can be clearly observed. The deviation from the theoretical distribution in 2017 is bigger than the distribution of first digits in other years, same as the previous analysis. The frequency of 1 in 2017 is 0.3332 which is larger than 0.3010.</p>
   <p>Likewise, we calculated seven tests listed in the section of Chosen tests and presented their value in <xref ref-type="table" rid="table4">
     Table 4
    </xref>. The values of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>, ks, Mdist, Edist, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         U 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> are all large enough to exceed their critical value, respectively. It is no doubt that the results are related to their calculating formula. However, these values are all small compared to the testing value in analysis of Close Price, which implies Daily Return possibly is a better indicator to show the benfordness of China Stock Market.</p>
   <fig id="fig2" position="float">
    <label>Figure 2</label>
    <caption>
     <title>Figure 2. Daily Return. This is a figure made up of a bar chart and a table, which shows the empirical distribution of first digits of daily Return in China Market from 2017 to 2021. From the above bar chart, we also can see the empirical distribution of first digit of Daily Return is almost close to the distribution pattern of Benford’s Law, which can be shown the heights of the bar almost monotonically decrease with the increasing of first digits. The below table is the detailed frequency of first digits of Daily Return. Intuitively, compared to <xref ref-type="fig" rid="fig1">
       Figure 1
      </xref>, this figure shows the distribution of first digits of Daily Return is closer to Benford’s Law.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1491152-rId89.jpeg?20241127034909" />
   </fig>
   <table-wrap id="table4">
    <label>
     <xref ref-type="table" rid="table4">
      Table 4
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.137704-"></xref>Table 4. Tests of conformity of Benford’s law for the distribution of first digits of Daily Return.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td cell-with-diagonal-border aright" width="15.15%"><p style="text-align:right">Tests</p><p style="text-align:left">Year</p></td> 
      <td class="custom-bottom-td acenter" width="14.11%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             χ 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="14.32%"><p style="text-align:center">Ks</p></td> 
      <td class="custom-bottom-td acenter" width="11.20%"><p style="text-align:center">Mdist</p></td> 
      <td class="custom-bottom-td acenter" width="14.52%"><p style="text-align:center">Edist</p></td> 
      <td class="custom-bottom-td acenter" width="11.20%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             U 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="11.20%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             J 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="12.03%"><p style="text-align:center">J-div</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="15.15%"><p style="text-align:center">2017</p></td> 
      <td class="custom-top-td acenter" width="14.11%"><p style="text-align:center">2859.3</p></td> 
      <td class="custom-top-td acenter" width="14.32%"><p style="text-align:center">21.114</p></td> 
      <td class="custom-top-td acenter" width="11.20%"><p style="text-align:center">11.632</p></td> 
      <td class="custom-top-td acenter" width="14.52%"><p style="text-align:center">18.770</p></td> 
      <td class="custom-top-td acenter" width="11.20%"><p style="text-align:center">144.40</p></td> 
      <td class="custom-top-td acenter" width="11.20%"><p style="text-align:center">0.9894</p></td> 
      <td class="custom-top-td acenter" width="12.03%"><p style="text-align:center">0.0065</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="15.15%"><p style="text-align:center">2018</p></td> 
      <td class="acenter" width="14.11%"><p style="text-align:center">3877.4</p></td> 
      <td class="acenter" width="14.32%"><p style="text-align:center">22.198</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">8.255</p></td> 
      <td class="acenter" width="14.52%"><p style="text-align:center">18.540</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">173.72</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">0.9928</p></td> 
      <td class="acenter" width="12.03%"><p style="text-align:center">0.0083</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="15.15%"><p style="text-align:center">2019</p></td> 
      <td class="acenter" width="14.11%"><p style="text-align:center">3072.8</p></td> 
      <td class="acenter" width="14.32%"><p style="text-align:center">24.812</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">7.265</p></td> 
      <td class="acenter" width="14.52%"><p style="text-align:center">16.061</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">163.78</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">0.9957</p></td> 
      <td class="acenter" width="12.03%"><p style="text-align:center">0.0056</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="15.15%"><p style="text-align:center">2020</p></td> 
      <td class="acenter" width="14.11%"><p style="text-align:center">3296.1</p></td> 
      <td class="acenter" width="14.32%"><p style="text-align:center">24.714</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">7.678</p></td> 
      <td class="acenter" width="14.52%"><p style="text-align:center">15.887</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">153.01</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">0.9953</p></td> 
      <td class="acenter" width="12.03%"><p style="text-align:center">0.0061</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="15.15%"><p style="text-align:center">2021</p></td> 
      <td class="acenter" width="14.11%"><p style="text-align:center">3931.0</p></td> 
      <td class="acenter" width="14.32%"><p style="text-align:center">26.666</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">8.781</p></td> 
      <td class="acenter" width="14.52%"><p style="text-align:center">16.478</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">155.50</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">0.9956</p></td> 
      <td class="acenter" width="12.03%"><p style="text-align:center">0.0049</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="15.15%"><p style="text-align:center">Overall</p></td> 
      <td class="acenter" width="14.11%"><p style="text-align:center">292997.0</p></td> 
      <td class="acenter" width="14.32%"><p style="text-align:center">532.890</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">138.480</p></td> 
      <td class="acenter" width="14.52%"><p style="text-align:center">202.960</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">16701.00</p></td> 
      <td class="acenter" width="11.20%"><p style="text-align:center">0.9958</p></td> 
      <td class="acenter" width="12.03%"><p style="text-align:center">0.0054</p></td> 
     </tr> 
    </table>
   </table-wrap>
   <p>Source: Author’s calculation with R.</p>
   <p>Again, we put these five years data together and repeated the testing procedure. The results are listed in the last row of <xref ref-type="table" rid="table4">
     Table 4
    </xref>. The value of those tests becomes larger than the value of each year. Obviously, it has resulted from the bigger data size.</p>
   <p>Even so, these values of tests can also show the deviation between the data and Benford’s law for each year, for example, in the year 2017, the value of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> is obviously smaller than other years, which shows the data is much conforming to Benford’s law. This also corresponds to our previous descriptive analysis. However, the values of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> and J-div are still not affected by the data size. Thus, again these tests better reflect the closeness of Benfordness than other tests. 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> is closer to 1 here than the value of the test for Close Price. And, J-div is closer to 0 than the value of the test for Close Price. Those show that Daily Return as an indicator testing for Benfordness is better than Close Price.</p>
   <p>Besides, to check the benfordness of China Stock Market further, we tested the conformity to Benford’s law by using the distribution of First Two Significant Digits (first two digits) of Close Price as a supplement and a comparison. The result is shown in <xref ref-type="table" rid="table5">
     Table 5
    </xref>. The values of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>, Ks, Mdist, Edist, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         U 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> are all large enough to reject the Hypotheses. The value of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> is larger than the value of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> in <xref ref-type="table" rid="table3">
     Table 3
    </xref>. 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> is not much close to 1 and is smaller than the value of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> in <xref ref-type="table" rid="table3">
     Table 3
    </xref>. So, if testing for conformity to Benford’s law using first two digits may be not a good choice compared with using first digits.</p>
   <table-wrap id="table5">
    <label>
     <xref ref-type="table" rid="table5">
      Table 5
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.137704-"></xref>Table 5. Tests of conformity of Benford’s law for the distribution of first digits of Daily Return.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td cell-with-diagonal-border aright" width="14.98%"><p style="text-align:right">Tests</p><p style="text-align:left">Year</p></td> 
      <td class="custom-bottom-td acenter" width="18.22%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             χ 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="16.14%"><p style="text-align:center">Ks</p></td> 
      <td class="custom-bottom-td acenter" width="16.14%"><p style="text-align:center">Mdist</p></td> 
      <td class="custom-bottom-td acenter" width="16.14%"><p style="text-align:center">Edist</p></td> 
      <td class="custom-bottom-td acenter" width="18.22%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             U 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="18.22%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <msup> 
           <mi>
             J 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </math></p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="14.98%"><p style="text-align:center">2017</p></td> 
      <td class="custom-top-td acenter" width="18.22%"><p style="text-align:center">9617.5</p></td> 
      <td class="custom-top-td acenter" width="16.14%"><p style="text-align:center">25.980</p></td> 
      <td class="custom-top-td acenter" width="16.14%"><p style="text-align:center">6.4447</p></td> 
      <td class="custom-top-td acenter" width="16.14%"><p style="text-align:center">13.613</p></td> 
      <td class="custom-top-td acenter" width="18.22%"><p style="text-align:center">171.59</p></td> 
      <td class="custom-top-td acenter" width="18.22%"><p style="text-align:center">0.9342</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">2018</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">6978.2</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">33.565</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">2.8508</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">9.417</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">136.11</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9614</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">2019</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">9350.5</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">32.366</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">4.2332</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">12.187</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">148.19</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9291</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">2020</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">4255.8</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">19.299</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">3.0658</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">7.973</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">52.39</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9708</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">2021</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">7205.7</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">20.647</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">3.5087</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">10.879</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">84.43</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9635</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">Overall</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">261537.0</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">491.77</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">15.9630</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">67.633</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">16452.00</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9609</p></td> 
     </tr> 
    </table>
   </table-wrap>
   <p>Source: Author’s calculation with R.</p>
   <p>Similarly, the conformity to Benford’s law by using the distribution of First Two Significant Digits (first two digits) of Daily Return is tested as a supplement and a comparison. The result is shown in <xref ref-type="table" rid="table6">
     Table 6
    </xref>. The values of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>, ks, Mdist, Edist, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         U 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> are all large enough to reject the Hypotheses. 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> is also not much close to 1. Again, this shows first two digits as a kind of Benford’s law is not a good choice compared with first digits.</p>
   <table-wrap id="table6">
    <label>
     <xref ref-type="table" rid="table6">
      Table 6
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.137704-"></xref>Table 6. Tests of conformity of Benford’s law for the distribution of first digits of Daily Return.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td cell-with-diagonal-border aright" width="14.98%"><p style="text-align:right">Tests</p><p style="text-align:left">Year</p></td> 
      <td class="custom-bottom-td acenter" width="18.22%"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td acenter" width="16.14%"><p style="text-align:center">Ks</p></td> 
      <td class="custom-bottom-td acenter" width="16.14%"><p style="text-align:center">Mdist</p></td> 
      <td class="custom-bottom-td acenter" width="16.14%"><p style="text-align:center">Edist</p></td> 
      <td class="custom-bottom-td acenter" width="18.22%"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td acenter" width="18.22%"><p style="text-align:center"></p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="14.98%"><p style="text-align:center">2017</p></td> 
      <td class="custom-top-td acenter" width="18.22%"><p style="text-align:center">6185.0</p></td> 
      <td class="custom-top-td acenter" width="16.14%"><p style="text-align:center">21.855</p></td> 
      <td class="custom-top-td acenter" width="16.14%"><p style="text-align:center">4.5095</p></td> 
      <td class="custom-top-td acenter" width="16.14%"><p style="text-align:center">7.9037</p></td> 
      <td class="custom-top-td acenter" width="18.22%"><p style="text-align:center">148.11</p></td> 
      <td class="custom-top-td acenter" width="18.22%"><p style="text-align:center">0.9791</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">2018</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">8069.5</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">24.427</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">3.7678</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">8.1888</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">167.95</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9781</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">2019</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">6964.3</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">27.527</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">3.5691</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">7.6872</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">160.29</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9824</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">2020</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">10658.0</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">27.446</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">5.0129</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">9.5614</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">153.62</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9695</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">2021</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">15457.0</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">31.042</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">6.0819</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">11.2290</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">156.95</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9684</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.98%"><p style="text-align:center">Overall</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">313228.0</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">539.120</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">21.6670</p></td> 
      <td class="acenter" width="16.14%"><p style="text-align:center">66.0970</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">20480.00</p></td> 
      <td class="acenter" width="18.22%"><p style="text-align:center">0.9778</p></td> 
     </tr> 
    </table>
   </table-wrap>
   <p>Source: Author’s calculation with R.</p>
  </sec><sec id="s4">
   <title>4. Conclusions</title>
   <p>Assessing the conformity to Benford’s law for large data size is still an open question now, especially for the financial market trading data. There are mainly two problems that need to be addressed. One problem is which statistical test is an appropriate choice or a better choice in comparison with other tests. The other is to choose which variable is an indicator to show the benfordness of the big data. Another problem is whether to test first digits or test first two digits or test both. We select China Stock Market trading data as big data here. Six common statistical tests are selected to implement the test procedure; they are 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>, Ks, Mdist, Edist, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         U 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>, respectively. Relative entropy J-div is chosen as an addition.</p>
   <p>Firstly, descriptive analysis is given before the formal tests based on yearly trading data. We think such a procedure is a necessity to present a visual impression whether the data follow Benford’s law. The analysis indeed tells us that China Stock Market is approximately close to the law, whether the indicator is Close Price or Daily Return. This observation is conformed to other financial market such as $&amp;P500. In order to check the observation precisely, we further test the result by using the listed statistical tests. We found these tests ( 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         χ 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>, ks, Mdist, Edist, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         U 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>) are all sensitive to the data size, except 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> and J-div. So, we think the 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         J 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> and J-div are fit for such big data test.</p>
   <p>Back to the China Stock Market, the Close Price and Daily Return are all to present the benfordness of the Market. But the Daily Return is closer to Benford’s law compared with Close Price. Some basic theory behind this is worth to further research, maybe it is related to Stock Price following geometric brown motion. In real application, we think Daily return would be a suitable indicator to test the benfordness of financial market and be used to study other problems, such as system risk.</p>
   <p>We know Benford’s law has different equations, in this work we have tested the distribution of first digit and first two digits. Obviously, the distribution of first digit is more fit to be used to test the benfordness than the distribution of first two digits. So, our suggestion is, in such kind of tests, testing the distribution of first digit is enough and testing the distribution of first two digits is not necessary, but testing it can be as a supplement.</p>
  </sec><sec id="s5">
   <title>Acknowledgements</title>
   <p>This work was supported by the Science and Technology Research Project of Jiangxi Provincial Department of Education with Grant Number GJJ2203412.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.137704-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Newcomb, S. (1881) Note on the Frequency of Use of the Different Digits in Natural Numbers. American Journal of Mathematics, 4, 39-40. &gt;https://doi.org/10.2307/2369148
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Benford, F. (1938) The Law of Anomalous Numbers. Proceedings of the American Philosophical Society, 78, 551-572.
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Hill, T.P. (1995) A Statistical Derivation of the Significant-Digit Law. Statistical Science, 10, 354-363. &gt;https://doi.org/10.1214/ss/1177009869
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Hill, T.P. (1995) Base-Invariance Implies Benford’s Law. Proceedings of the American Mathematical Society, 123, 887-895. &gt;https://doi.org/10.1090/s0002-9939-1995-1233974-8
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Leemis, L.M., Schmeiser, B.W. and Evans, D.L. (2000) Survival Distributions Satisfying Benford’s Law. The American Statistician, 54, 236-241. &gt;https://doi.org/10.1080/00031305.2000.10474554
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Engel, H. and Leuenberger, C. (2003) Benford’s Law for Exponential Random Variables. Statistics &amp; Probability Letters, 63, 361-365. &gt;https://doi.org/10.1016/s0167-7152(03)00101-9
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Cuff, V., Lewis, A. and Miller, S.J. (2015) The Weibull Distribution and Benford’s Law. Involve, a Journal of Mathematics, 8, 859-874. &gt;https://doi.org/10.2140/involve.2015.8.859
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Durst, R.F., Chi, H., Lott, A., Miller, S.J., Palsson, E.A., Touw, W. and Vriend, G. (2017) The Inverse Gamma Distribution and Benford’s Law.
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Scott, P. and Fasli, M. (2001) CSM-349—Benford’s Law: An Empirical Investigation and a Novel Explanation.
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Rodriguez, R.J. (2004) Reducing False Alarms in the Detection of Human Influence on Data. Journal of Accounting, Auditing &amp; Finance, 19, 141-158. &gt;https://doi.org/10.1177/0148558x0401900202
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Fang, G. and Chen, Q. (2020) Several Common Probability Distributions Obey Benford’s Law. Physica A: Statistical Mechanics and Its Applications, 540, Article ID: 123129. &gt;https://doi.org/10.1016/j.physa.2019.123129
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Fang, G. (2022) Investigating Hill’s Question for Some Probability Distributions. AIP Advances, 12, Article ID: 095004. &gt;https://doi.org/10.1063/5.0100429
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Gauvrit, N. and Delahaye, J.-P. (2018) Scatter and Regularity Imply Benford’s Law ... and More. 
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Nigrini, M.J. (2012) Benford’s Law: Applications for Forensic Accounting, Auditing, and Fraud Detection. John Wiley&amp;Sons. &gt;https://doi.org/10.1002/9781119203094.
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kaiser, M. (2019) Benford’s Law as an Indicator of Survey Reliability—Can We Trust Our Data? Journal of Economic Surveys, 33, 1602-1618. &gt;https://doi.org/10.1111/joes.12338
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Li, F., Han, S., Zhang, H., Ding, J., Zhang, J. and Wu, J. (2019) Application of Benford’s Law in Data Analysis. Journal of Physics: Conference Series, 1168, Article ID: 032133. &gt;https://doi.org/10.1088/1742-6596/1168/3/032133
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Cerqueti, R. and Lupi, C. (2023) Severe Testing of Benford’s Law. TEST, 32, 677-694. &gt;https://doi.org/10.1007/s11749-023-00848-z
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Joenssen, D.W. (2014) Testing for Benford’s Law: A Monte Carlo Comparison of Methods. SSRN Electronic Journal. &gt;https://doi.org/10.2139/ssrn.2545243
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Joenssen, D.W. (2013) Two Digit Testing for Benford’s Law. Proceedings 59th ISI World Statistics Congress, Hong Kong, 25-30 August 2013, 3881-3886.
    </mixed-citation>
   </ref>
   <ref id="scirp.137704-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Corazza, M., Ellero, A. and Zorzi, A. (2010) Checking Financial Markets via Benford’s Law: The S&amp;P 500 Case. In: Corazza, M. and Pizzi, C., Eds., Mathematical and Statistical Methods for Actuarial Sciences and Finance, Springer, 93-102. &gt;https://doi.org/10.1007/978-88-470-1481-7_10
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>