<?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">AM</journal-id>
      <journal-title-group>
        <journal-title>Applied Mathematics</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2152-7385</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/am.2022.136031</article-id>
      <article-id pub-id-type="publisher-id">AM-117845</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Articles</subject>
        </subj-group>
        <subj-group subj-group-type="Discipline-v2">
          <subject>Physics&amp;Mathematics</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>


          High-Accuracy Confidence Regions for Distribution Parameters

        </article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" xlink:type="simple">
          <name name-style="western">
            <surname>Jan</surname>
            <given-names>Vrbik</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">
            <sub>1</sub>
          </xref>
          <xref ref-type="corresp" rid="cor1">
            <sup>*</sup>
          </xref>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <addr-line>Department of Mathematics and Statistics, Brock University, St. Catharines, Canada</addr-line>
      </aff>
      <pub-date pub-type="epub">
        <day>16</day>
        <month>06</month>
        <year>2022</year>
      </pub-date>
      <volume>13</volume>
      <issue>06</issue>
      <fpage>488</fpage>
      <lpage>501</lpage>
      <history>
        <date date-type="received">
          <day>8,</day>
          <month>April</month>
          <year>2022</year>
        </date>
        <date date-type="rev-recd">
          <day>14,</day>
          <month>June</month>
          <year>2022</year>
        </date>
        <date date-type="accepted">
          <day>17,</day>
          <month>June</month>
          <year>2022</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>&#169; 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>
        <p>
          <html>
            <head></head>

            With the help of today’s computers, it is always relatively easy to find maximum-likelihood estimators of one or more parameters of any specific statistical distribution, and use these to construct the corresponding
            <em>approximate</em> confidence interval/region, facilitated by the well-known asymptotic properties of the likelihood function. The purpose of this article is to make this approximation substantially more accurate by extending the Taylor expansion of the corresponding probability density function to include quadratic and cubic terms in several centralized sample means, and thus finding the corresponding
            -proportional correction to the original algorithm. We then demonstrate the new procedure’s usage, both for constructing confidence regions and for testing hypotheses, emphasizing that incorporating this correction carries minimal computational and programming cost. In our final chapter, we present two examples to indicate how significantly the new approximation improves the procedure’s accuracy.

          </html>
        </p>
      </abstract>
      <kwd-group>
        <kwd>High-Accuracy Confidence Regions</kwd>
        <kwd> Distribution Parameters</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="s1">
      <title>1. Introduction</title><p>
        Using the likelihood function to find an approximate confidence region for several parameters (often only one, in which case we speak of a confidence interval) of a specific distribution goes back to the classic publication of Kendall and Stuart [<xref ref-type="bibr" rid="scirp.117845-ref1">1</xref>] . To understand the rest of our article, it is necessary to briefly review their main result, summarized by
      </p><p>Theorem 1. Assuming a case of regular (meaning the distribution’s support is not a function of any of the distribution’s parameters) estimation, the following random variable</p><p>2 ln L ( X ; θ ^ ) − 2 ln L ( X ; θ 0 ) (1)</p><p>has approximately the chi-square distribution with K degrees of freedom, where K is the number of parameters to be estimated, X is the set of n observations (allowing for the possibility of a multivariate distribution), L ( X ; θ ) denotes the corresponding likelihood function, θ ^ is the vector of the resulting ML estimates, and θ 0 represents the true (but unknown) values of the parameters.</p><p>Proof. Realizing that</p><p>ln L ( X ; θ ) : = ∑ i = 1 n ln f ( x i ; θ ) (2)</p><p>where x i are the individual observations, then differentiating the RHS with respect to θ and setting each component of the answer to 0 yields</p><p>∑ i = 1 n ∂ ln f ( x i ; θ ) ∂ θ = 0 (3)</p><p>where ∂ ∂ θ implies differentiating ln f ( x i ; θ ) with respect to each parameter; the result is thus a vector with K components.</p><p>To solve the corresponding set of equations, we expand the LHS of (3) at θ = θ 0 , thus getting</p><p>∑ i = 1 n ∂ ln f ( x i ; θ ) ∂ θ | θ = θ 0 + ∑ i = 1 n ∂ 2 ln f ( x i ; θ ) ∂ θ 2 | θ = θ 0 ( θ − θ 0 ) + ⋯ = 0 (4)</p><p>where the second derivative of ln f ( x i ; θ ) is a symmetric K by K matrix. Dividing each side of the last equation by n, we solve it for θ − θ 0 getting, to the first-order accuracy</p><p>θ ^ − θ 0 ≃ − μ 2 − 1 Y (5)</p><p>where</p><p>Y : = 1 n ∑ i = 1 n ∂ ln f ( x i ; θ ) ∂ θ | θ = θ 0 (6)</p><p>μ 2 : = E ( ∂ 2 ln f ( X ; θ ) ∂ θ 2 | θ = θ 0 ) (7)</p><p>Note that the expected value of Y is 0 , since</p><p>∫ All x ∂ ln f ( x ; θ ) ∂ θ f ( x ; θ ) d x = ∫ All x ∂ f ( x ; θ ) ∂ θ d x = ∂ ∂ θ ( 1 ) = 0 (8)</p><p>and its variance-covariance matrix equals to − μ 2 / n , due to</p><p>d d θ ∫ All x ∂ ln f ( x ; θ ) ∂ θ f ( x ; θ ) d x = μ 2 + μ 11 = O (9)</p><p>where</p><p>μ 11 : = E ( ∂ ln f ( X ; θ ) ∂ θ ∘ ∂ ln f ( X ; θ ) ∂ θ | θ = θ 0 ) (10)</p><p>is the variance-covariance matrix of ∂ ln f ( X ; θ ) ∂ θ | θ = θ 0 (the small circle implies direct product of the two vectors), and O is the zero matrix.</p><p>Similarly expanding (1) and utilizing (5) we get, to the same level of accuracy</p><p>2 n Y ( θ ^ − θ 0 ) + n ( θ ^ − θ 0 ) T μ 2 ( θ ^ − θ 0 ) = − n Y T μ 2 − 1 Y (11)</p><p>resulting in the following simple approximation to (1)</p><p>− n Y T μ 2 − 1 Y n (12)</p><p>where Y n has (due to Central Limit Theorem) a K-variate Normal distribution with the mean of 0 and the variance-covariance matrix of − μ 2 . Introducing Z = Y n , the moment generating function of (12) is then computed by</p><p>∫ − ∞ ∞ exp ( − z T ( − μ 2 ) − 1 z 2 + t   z T ( − μ 2 ) − 1 z ) d z ( 2 π ) K / 2 det ( − μ 2 ) = det ( − μ 2 1 − 2 t ( − μ 2 ) − 1 ) = ( 1 − 2 t ) − K / 2 (13)</p><p>easily identified as the MGF of χ K 2 distribution. ■</p><p>The result then leads to a simple (we call it basic) algorithm of constructing the corresponding confidence region based on a random independent sample of n observations.</p>Examples<p>From the last theorem it follows that an approximate confidence region is found by following these steps:</p><p>● Using sample values drawn from the distribution, maximize its likelihood function, thus getting the ML estimates of all parameters;</p><p>● Choose a confidence level (denoted τ ) and make (1) (where θ ^ represents the ML estimates, but θ 0 are now variables to be solved for) equal to the corresponding critical value of the χ K 2 distribution;</p><p>● Solve for θ 0 , resulting in two limits of the corresponding confidence interval when K = 1 , a closed curve when K = 2 , a closed surface when K = 3 , etc.; this means that, beyond a one-parameter case, the resulting region can be displayed only graphically (a trivial task for today’s computers).</p><p>The following Mathematica program shows how it is done, first using a Geometric distribution with a (computer generated) sample of 40 and confidence level of 90%, then a Gamma distribution with a sample of 60 and confidence level of 95%.</p><disp-formula id="scirp.117845-formula1">
        <graphic  xlink:href="//html.scirp.org/file/2-7404924x45.png?20220622112115312"  xlink:type="simple"/>
      </disp-formula><disp-formula id="scirp.117845-formula2">
        <graphic  xlink:href="//html.scirp.org/file/2-7404924x46.png?20220622112115312"  xlink:type="simple"/>
      </disp-formula><p>
        The last line of the program has produced the following 95% confidence region (see <xref ref-type="fig" rid="fig1">Figure 1</xref>) for α (horizontal scale) and β (vertical scale).
      </p><p>A three-parameter estimation can be done in a similar manner, only the call to “ContourPlot” needs to be replaced by “ContourPlot3D”. Visualizing a confidence region for more than three parameters would require slicing it into a sequence of cross-sections.</p><p>The error of this procedure depends on the sample size, decreasing with n in the O ( 1 n ) manner; it can reach several percent for small samples. The purpose of the next section is to show how to substantially reduce this error, making it rather insignificant in all practical situations.</p>
    </sec>
    <sec id="s2">
      <title>2. High-Accuracy Extension</title>
      <p>
        There have been many attempts at improving the accuracy of this approximation, starting with Bartlett [<xref ref-type="bibr" rid="scirp.117845-ref2">2</xref>] , followed by [<xref ref-type="bibr" rid="scirp.117845-ref3">3</xref>] and many others, all concentrating on higher moments of the approximately Normal distribution of ML estimators. Our approach is different: we aim at finding an appropriate correction to the χ 2 distribution of the Likelihood function. The technique we use is not unlike that of [<xref ref-type="bibr" rid="scirp.117845-ref4">4</xref>] , in spite of diverging objectives.
      </p>
      <p>
        It has been shown in previous publications [<xref ref-type="bibr" rid="scirp.117845-ref5">5</xref>] and [<xref ref-type="bibr" rid="scirp.117845-ref6">6</xref>] that the distribution of (1) is more accurately described by the following probability density function
      </p>
      <p>χ K 2 ( u ) ( 1 + A n ⋅ ( u K − 1 ) ) (14)</p>
      <p>where χ K 2 ( u ) is the chi-square PDF of the original theorem, A is a quantity (often a simple constant) specific to the sampled distribution, and K is the number of parameters to be estimated. In terms of the corresponding CDF, this becomes</p>
      <p>1 − Γ ( K 2 , u 2 ) + 2 A n K ( u 2 ) K / 2 exp ( − u 2 ) Γ ( K 2 ) (15)</p>
      <p>(the two-argument Γ denotes the incomplete Gamma function) or, more explicitly</p>
      <p>e r f ( u 2 ) − A n 2 u π exp ( − u 2 )</p>
      <p>when K = 1 , and</p>
      <p>1 − ( 1 + A u 2 n ) exp ( − u 2 ) (16)</p>
      <p>when K = 2 (the two most important cases).</p>
      <p>Note that the expected value of distribution (14) is K + 2 A n ; similarly expanding (1) then yields the formula for computing A, given the PDF of the sampled distribution.</p>
      <p>Leaving out less important details, we now indicate the individual steps of such derivation.</p>
      <p>● Extend the LHS of (4) by two more terms of the corresponding expansion, namely by</p>
      <p>+ 1 2 ∑ i = 1 n ∂ 3 ln f ( x i ; θ ) ∂ θ 3 | θ = θ 0 ( θ − θ 0 ) 2 + 1 6 ∑ i = 1 n ∂ 4 ln f ( x i ; θ ) ∂ θ 4 | θ = θ 0 ( θ − θ 0 ) 3 + ⋯ (17)</p>
      <p>Note that the third and fourth derivatives of ln f ( x i ; θ ) constitute fully symmetric tensors of ranks 3 and 4 respectively; each is further multiplied by the corresponding power (one less than the derivative’s order) of θ − θ 0 . The multiplication is carried out by taking the dot product along one of the tensor’s indices with vector θ − θ 0 , and repeating as many times as the power of θ − θ 0 indicates; the result is thus always a vector with one remaining index.</p>
      <p>● Solve the resulting equation (iteratively) for θ ^ − θ 0 , to the same order of accuracy. This extends our existing solution (5), which we denote Θ 1 , by the following quadratic term</p>
      <p>Θ 2 = − μ 2 − 1 ( Y 2 − μ 2 + 1 2 μ 3 Θ 1 ) Θ 1 (18)</p>
      <p>and a cubic term, given by</p>
      <p>Θ 3 = − μ 2 − 1 ( 1 2 ( Y 3 − μ 3 ) Θ 1 2 + μ 3 Θ 2 Θ 1 + 1 6 μ 4 Θ 1 3 + ( Y 2 − μ 2 ) Θ 2 ) (19)</p>
      <p>where</p>
      <p>Y l : = 1 n ∑ i = 1 n ∂ l ln f ( x i ; θ ) ∂ θ l | θ = θ 0 (20)</p>
      <p>μ l : = E ( ∂ l ln f ( X ; θ ) ∂ θ l | θ = θ 0 ) (21)</p>
      <p>(we have already explained how to multiply a symmetric tensor by a power or a product of vectors).</p>
      <p>● Similarly expand (1); further divided by the sample size n, this results in the following scalar expression</p>
      <p>Y Θ ( 1 ) + Y Θ 2 − 1 6 μ 3 Θ 1 3 + Y Θ 3 − 1 2 μ 3 Θ 2 Θ 1 2 − 1 6 ( Y 3 − μ 3 ) Θ 1 3 − 1 12 μ 4 Θ 1 4 + ⋯ = Y Θ ( 1 ) + ( Y 2 − μ 2 ) Θ 1 2 + 1 3 μ 3 Θ 1 3 + 1 3 ( Y 3 − μ 3 ) Θ 1 3 + 1 4 ( μ 3 Θ 1 2 ) &#215; ( μ 3 Θ 1 2 )       + 1 12 μ 4 Θ 1 4 + ( μ 3 Θ 1 2 + ( Y 2 − μ 2 ) Θ 1 ) &#215; ( ( Y 2 − μ 2 ) Θ 1 ) + ⋯ (22)</p>
      <p>where the &#215; symbol between two vectors (not used beyond this formula) implies an operation we call contraction of the two vectors, carried out by</p>
      <p>V 1 &#215; V 2 : = − V 1 μ 2 − 1 V 2 (23)</p>
      <p>This is also how we perform a contraction of two specific indices of a tensor (required shortly); e.g. contracting the first two indices of μ 3 would be done (and denoted) by</p>
      <p>μ 3 ˙ : = ∑ i , j = 1 K ( μ 3 ) i , j , n ( − μ 2 − 1 ) i , j (24)</p>
      <p>resulting in a vector.</p>
      <p>● Finally, take the expected value of (22) to get K n + 2 A n 2 + ⋯ .</p>
      <p>This yields (term by term)</p>
      <p>K n + μ 211 + K n 2 + μ 3 μ 111 3 n 2 + μ 31 n 2 + 2 μ 3 μ 3 + μ 3 ˙ μ 3 ˙ 4 n 2 + μ 4 4 n 2 + 2 μ 3 μ 21 + μ 3 ˙ μ 21 + μ 21 ∘ ∘ μ 21 + μ 21 ∘ μ 21 ∘ + μ 22 − K n 2 (25)</p>
      <p>where</p>
      <p>μ 21 : = E ( ∂ 2 ln f ( X ; θ ) ∂ θ 2 ∘ ∂ ln f ( X ; θ ) ∂ θ | θ = θ 0 ) (26)</p>
      <p>with μ 211 , μ 111 , μ 22 and μ 31 defined analogously. Bold-face notation indicates that each term of (25) has been contracted in all of its indices, resulting in a scalar. For some of these terms, there are several possibilities to carry out such a contraction (e.g. the six indices of μ 21 μ 21 can be contracted in altogether five non-equivalent ways, only two of which we actually need); it is thus very important to indicate (in the ambiguous cases only; note that all pair-wise contractions of μ 4 , and also of μ 31 , yield the same answer) the proper way of doing it.</p>
      <p>A dot implies contraction of two of the indicated indices ( μ 3 ˙ thus making the result into a vector, while μ 211 implies, by the absence of a dot over 2, that the first two indices have been contracted with the third and fourth index, rather than with each other); similarly, two circles indicate that the corresponding two indices are to be contracted: μ 21 ∘ ∘ μ 21 thus makes the first index of μ 21 ∘ ∘ contract with its last index, returning a vector yet to be contracted with the first index of μ 21 (due to the lack of a dot over 2); similarly μ 21 ∘ μ 21 ∘ indicates contracting the last index of μ 21 ∘ with the first index of μ 21 ∘ , while the remaining two indices of μ 21 ∘ are contracted with the remaining two indices of μ 21 ∘ .</p>
      <p>Since μ 3 μ 111 = − μ 3 μ 3 − 2 μ 3 μ 21 , which can be verified in a manner of (9), the final formula for 2A then reads</p>
      <p>μ 211 + μ 31 + μ 22 + 1 4 μ 4 + 1 4 μ 3 ˙ μ 3 ˙ + 1 6 μ 3 μ 3 + μ 3 ˙ μ 21 + μ 3 μ 21 + μ 21 ∘ ∘ μ 21 + μ 21 ∘ μ 21 ∘ (27)</p>
      <p>when K = 1 , the formula simplifies to</p>
      <p>A = μ 211 + μ 31 + μ 22 + 1 4 μ 4 2 ( − μ 2 ) 2 + 5 12 μ 3 2 + 2 μ 3 μ 21 + 2 μ 21 2 2 ( − μ 2 ) 3 (28)</p>
      <p>
        We should mention that, in principle, the 1 n -proportional correction in (14) has two more terms of increasing complexity (see [<xref ref-type="bibr" rid="scirp.117845-ref5">5</xref>] ), namely
      </p>
      <p>χ K 2 ( u ) ( 1 + A n ⋅ ( u K − 1 ) + B n ⋅ ( u 2 K ( K + 2 ) − 2 u K + 1 ) + C n ⋅ ( u 3 K ( K + 2 ) ( K + 4 ) − 3 u 2 K ( K + 2 ) + 3 u K − 1 ) ) (29)</p>
      <p>where the B and C coefficients can be found in a manner very similar to how we have just established the value of A; most surprisingly, both B and C then turn out to be equal to zero.</p>
      <sec id="s2_1">
        <title>2.1. Location and Scaling Parameters</title>
        <p>An important feature of the last two formulas is the fact that A may be a function of shape parameters (if any) of the sampled distribution, but not of a location or a scaling parameter, as these always cancel out from the resulting expression. To understand why, consider</p>
        <p>f ( x ; μ , σ ) = f 0 ( x − μ σ ) σ : = f 0 ( y ) σ (30)</p>
        <p>This enables us to simplify the two derivatives of ln f ( x ; μ , σ ) thus</p>
        <p>∂ ( ln f 0 ( y ) − ln σ ) ∂ μ = − f ′ 0 ( y ) σ f 0 ( y ) (31)</p>
        <p>∂ ( ln f 0 ( y ) − ln σ ) ∂ σ = − y f ′ 0 ( y ) σ f 0 ( y ) − 1 σ (32)</p>
        <p>from which it is clear that each further differentiation (whether with respect to μ or σ ) yields a function of y, divided by an extra power of σ . Taking the expected value of any product of such derivatives amounts to further multiplying by f 0 ( y ) d y and integrating over all possible values of y, leaving us with a number divided by power (equal to the derivative’s total order) of σ . These powers of σ then always cancel out from (27).</p>
        <p>This implies that, for distributions having only location and/or scaling parameters, A will turn out to be a constant.</p>
      </sec>
      <sec id="s2_2">
        <title>2.2. Examples</title>
        <p>
          Values of A are summarized in <xref ref-type="table" rid="table1">Table 1</xref> for some of the most common distributions.
        </p>
        <p>For Gamma and Beta distributions, A is a complicated function of its first (Gamma) and both (Beta) parameter(s); yet, under the indicated constrains (see the above table), the value of A remains fairly constant.</p>
        <p>For Gamma distribution (to illustrate the complexity of A as a function of a shape parameter), the full formula reads</p>
        <p>A = [ 12 ψ 1 + α ( 16 ψ 2 − 9 ψ 1 2 ) + α 2 ( 2 ψ 1 3 − 6 ψ 1 ψ 2 + 3 ψ 3 ) + α 3 ( 5 ψ 2 2 − 3 ψ 1 ψ 3 ) ] 2 288 ( α ψ 1 − 1 ) 6 (33)</p>
        <p>where ψ i is the i + 1 st derivative of the natural logarithm of the Γ ( α ) function, evaluated at α . Yet, by plotting the last expression as a function of α , we can confirm that, with the exception of only the smallest (say &lt; 0.5) values of α ,</p>
        <p>A is nearly a constant, quickly approaching its α → ∞ limit of 121 72 . We can</p>
        
          </sec> </sec>
      </body>
            
            <back>
          <ref-list>
            <title>References</title>
            <ref id="scirp.117845-ref1">
              <label>1</label>
              <mixed-citation publication-type="other" xlink:type="simple">Kendall, M.G. and Stuart, A. (1969) The Advanced Theory of Statistics, Vol. 1, Chapter 3. Hafner Publishing Company, New York.</mixed-citation>
            </ref>
            <ref id="scirp.117845-ref2">
              <label>2</label>
              <mixed-citation publication-type="other" xlink:type="simple">Bartlett, M.S. (1953) Approximate Confidence Intervals. Biometrica, 40, 12-19.https://doi.org/10.1093/biomet/40.1-2.12</mixed-citation>
            </ref>
            <ref id="scirp.117845-ref3">
              <label>3</label>
              <mixed-citation publication-type="other" xlink:type="simple">Cysneiros, F.J.deA., dos Santos, S.J.P. and Cordeiro, G.M. (2001) Skewness and Kurtosis for Maximum Likelihood Estimator in One-Parameter Exponential Family Models. Brazilian Journal of Statistics and Probability, 15, 85-108.</mixed-citation>
            </ref>
            <ref id="scirp.117845-ref4">
              <label>4</label>
              <mixed-citation publication-type="other" xlink:type="simple">Bowman, K.O. and Shenton, L.R. (1998) Aymptotic Skewness and the Distribution of Maximum Likelihood Estimators. Communications in Statistics—Theory and Methods, 27, 2743-2760. https://doi.org/10.1080/03610929808832252</mixed-citation>
            </ref>
            <ref id="scirp.117845-ref5">
              <label>5</label>
              <mixed-citation publication-type="journal" xlink:type="simple">
                <name name-style="western">
                  <surname>Vrbik</surname>
                  <given-names> J. </given-names>
                </name>,<etal>et al</etal>. (<year>2013</year>)<article-title>Accurate Confidence Regions Based on MLEs</article-title><source> Advances and Applications in Statistics</source><volume> 32</volume>,<fpage> 33</fpage>-<lpage>56</lpage>.<pub-id pub-id-type="doi"></pub-id>
              </mixed-citation>
            </ref>
            <ref id="scirp.117845-ref6">
              <label>6</label>
              <mixed-citation publication-type="journal" xlink:type="simple">
                <name name-style="western">
                  <surname>Vrbik</surname>
                  <given-names> J. </given-names>
                </name>,<etal>et al</etal>. (<year>2013</year>)<article-title>Addendum and Errata to “Accurate Confidence Regions Based on MLEs”</article-title><source> Advances and Applications in Statistics</source><volume> 35</volume>,<fpage> 161</fpage>-<lpage>163</lpage>.<pub-id pub-id-type="doi"></pub-id>
              </mixed-citation>
            </ref>
          </ref-list>
        </back>
</article>