<?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">OJS</journal-id><journal-title-group><journal-title>Open Journal of Statistics</journal-title></journal-title-group><issn pub-type="epub">2161-718X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ojs.2020.103024</article-id><article-id pub-id-type="publisher-id">OJS-100041</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>
 
 
  Exact Distribution of Difference of Two Sample Proportions and Its Inferences
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Keshab</surname><given-names>R. Dahal</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mohamed</surname><given-names>Amezziane</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Department of Statistics, Central Michigan University, Mt. Pleasant, USA</addr-line></aff><aff id="aff1"><addr-line>Department of Statistics, Truman State University, Kirksville, USA</addr-line></aff><pub-date pub-type="epub"><day>08</day><month>05</month><year>2020</year></pub-date><volume>10</volume><issue>03</issue><fpage>363</fpage><lpage>374</lpage><history><date date-type="received"><day>14,</day>	<month>April</month>	<year>2020</year></date><date date-type="rev-recd"><day>6,</day>	<month>May</month>	<year>2020</year>	</date><date date-type="accepted"><day>9,</day>	<month>May</month>	<year>2020</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>
 
 
  Comparing two population proportions using confidence interval could be misleading in many cases, such 
  as
   the sample size 
  being
   small and the test 
  being
   based on normal approximation. In this case, the only 
  one
   option that we have is to collect a large sample. Unfortunately, the large sample might not be possible. One example is a person suffering from a rare disease. The main purpose of this journal is to derive a closed formula for the exact distribution of the difference between two independent sample proportions, and use it to perform related inferences such as a confidence interval, regardless of the sample sizes and compare with the existing Wald, Agresti-Caffo 
  and
   Score. In this journal, we have derived a closed formula for the exact distribution of the difference between two independent sample proportions. This distribution doesn’t need any 
  requirements,
   and can be used to perform inferences such 
  as:
   a hypothesis test for two population proportions, regardless of the nature of the distribution and the sample sizes. We claim 
  that
   exact distribution has the 
  least
   confidence width among Wald, Agresti-Caffo 
  and
   Score, so it is suitable for inferences of the difference between the population proportion regardless of sample size.
 
</p></abstract><kwd-group><kwd>Statistical Inferences</kwd><kwd> Exact Distribution</kwd><kwd> Difference of Sample Proportions</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Comparing two population proportions, especially when the sample size is small is very challenging in statistics, and has applications in many fields. Several procedures have been suggested [One of the most popular and common methods that has been used for a long time is the Wald interval]. Due to simplicity and convenience, the first method that comes in the mind of most statisticians is the Wald method. However, there are some disadvantages of the Wald interval. Firstly, it is based on normal approximation and for this approximation to work well, we need a large sample. Unfortunately, large samples may be costly in practice. Secondly, the coverage probability is liberal. The coverage probability with nominal 95% confidence interval is almost less than 0.5 when the sample size is small. Even for a large sample size, the coverage probability is always less than the nominal confidence level ( 1 − α ).</p><p>Agresti and Brian Caffo (2000) [<xref ref-type="bibr" rid="scirp.100041-ref1">1</xref>] introduced Adjusted Wald Confidence Interval by slightly modifying Wald interval by adding one success and one failure for each group. They have also shown that the coverage probability of the Adjusted Wald Interval is reasonably greater than the regular Wald interval. However, Agresti-Caffo interval is also based on normal approximation.</p><p>Robert G. Newcombe (1998) [<xref ref-type="bibr" rid="scirp.100041-ref2">2</xref>] has explained eleven different methods to compare the difference between two population proportions. Some of them are conservative, like Score, while others are liberal, like Wald.</p><p>The main purpose of this journal is to derive a closed formula for the exact distribution of the difference between two independent sample proportions, and use it to perform related inferences such as a hypothesis test. The rest of the journal is organized as follows. In Section 2, we derive the closed formula for exact distribution of the difference between two independent sample proportions and break it into different cases. We obtain the support of the distribution in Section 3. In Section 4, we perform the hypothesis test. In Section 5, we compute the power of the hypothesis test. In Section 6, we compute the confidence interval and compare it to others. In Section 7, we summarize the main findings and conclude the journal.</p></sec><sec id="s2"><title>2. Exact Distribution of Difference of Two Sample Proportions</title><p>Let X 1 , X 2 , ⋯ , X m and Y 1 , Y 2 , ⋯ , Y n are iid Bernoulli random samples from two different populations with parameters p 1 and p 2 respectively and let</p><p>p ^ 1 = 1 m ∑ i = 1 m     X i and p ^ 2 = 1 n ∑ i = 1 n     Y i be the point estimates of the parameters p 1</p><p>and p 2 respectively. We denote the difference between p ^ 1 and p ^ 2 by D.</p><p>To obtain the exact distribution of D, we first derive the probability generating function (pgf) of W = m n ( D + 1 ) in the following lemma.</p><p>Lemma</p><p>Let W = m n ( D + 1 ) , then the pgf of W is given by</p><p>p w ( z ) = ∑ s = 0 m ∑ u = 0 s ∑ t = 0 n ∑ v = 0 t ( − 1 ) s + t + u + v ( m s ) ( s u ) ( n t ) ( t v ) p 1 s ( 1 − p 2 ) t z u n + v m (1)</p><p>Now, let f ( k m − l n ) denote the probability mass function (pmf) of D at the point k m − l n , for k = 0, ⋯ , m and l = 0, ⋯ , n .</p><p>Theorem</p><p>Let the greatest common divisor: g c d ( m , n ) = r , and m ′ and n ′ be such that m = r m ′ and n = r n ′ . The pmf of D is given by</p><p>f ( k m − l n ) = ( − 1 ) k + n − l ∑ s = 0 m ( − 1 ) s ( m s ) p 1 s ∑ t = 0 n ( − 1 ) t ( n t ) ( 1 − p 2 ) t     ⋅ ∑ i ∈ S m , n ( s , t ) ( − 1 ) i ( m ′ − n ′ ) ( s k + i m ′ ) ( t ( n − l ) − i n ′ ) ,</p><p>for k = 0, ⋯ , m and l = 0, ⋯ , n , where</p><p>S m , n ( s , t ) = [ max ( − k m ′ , ( n − l ) − t n ′ ) , min ( s − k m ′ , ( n − l ) n ′ ) ] ∩ ℤ .</p><p>From the Theorem above, we derive the next results by corresponding them to different relations between m and n.</p><p>Corollary 1</p><p>If g c d ( m , n ) = 1 , then the exact distribution of D is given by:</p><p>P r ( D = k m − l n ) = ( m k ) ( n l ) p 1 k p 2 l ( 1 − p 1 ) m − k ( 1 − p 2 ) n − l</p><p>for k m − l n ≠ 0 , while P r ( D = 0 ) = ( 1 − p 1 ) m ( 1 − p 2 ) n + p 1 m p 2 n .</p><p>Corollary 2</p><p>If m = n and k = l then the exact distribution of D is given by</p><p>P r ( D = 0 ) = ( − 1 ) n ∑ s = 0 n ( − 1 ) s ( n s ) p 1 s ∑ t = 0 n ( − 1 ) t ( n t ) ( 1 − p 2 ) t ∑ u = n − t s ( s u ) ( t n − u )</p><p>Corollary 3</p><p>The exact distribution of D is given by</p><p>P r ( D = k m − l n ) = ∑ s = 0 m ∑ t = 0 n ∑ ( u , v ) ∈ S s , t ( − 1 ) s + t + u + ( k − u ) n m + n − l ( m s ) ( s u ) ( n t ) ( t ( k − u ) n m + n − l ) p 1 s ( 1 − p 2 ) t</p><p>for k = 0, ⋯ , m and l = 0, ⋯ , n where,</p><p>S s , t = { ( u , ( k − u ) n m + n − l ) ∈ ℕ 2 : max ( 0 , k + ( n − l − t ) m n )                     ≤ u ≤ min ( s , k + ( n − l ) m n ) }</p><p>Corollary 4</p><p>The exact distribution of D is symmetrical about zero if m = n and p 1 = p 2 .</p></sec><sec id="s3"><title>3. Support of the Distribution</title><p>Support of the exact distribution is denoted by D ( m , n ) . For small values of m and n, it can be derived manually. However, for larger values of m and n, it is tedious and time consuming, so the software such as R is used.</p><p>For m = n = 2 , D = k 2 − l 2 . Where k = 0,1,2 and l = 0,1,2 .</p><p>Thus the support for m = n = 2 is − 1, − 0.5,0,0.5,1 .</p><p>The graphs of the Probability mass function for exact distribution for the difference of two population proportion for m = n and p<sub>1</sub> = p<sub>2</sub> are plotted in <xref ref-type="fig" rid="fig1">Figure 1</xref>. These graphs (<xref ref-type="fig" rid="fig1">Figure 1</xref>) are the evidence to support corollary 4.</p></sec><sec id="s4"><title>4. Hypothesis Testing</title><p>To test H 0 : p 1 = p 2 = p against H 1 : p 1 − p 2 = δ ≠ 0 , we use D as a test statistic. Let p ( D = k m − l n | H 0 ) = f 0 ( k m − l n ) . Then the null distribution of D is given by</p><p>f 0 ( k m − l n ) = ( − 1 ) k + n − l ∑ s = 0 m ( − 1 ) s ( m s ) p s ∑ t = 0 n ( − 1 ) t ( n t ) ( 1 − p ) t     ⋅ ∑ i ∈ S m , n ( s , t ) ( − 1 ) i ( m ′ − n ′ ) ( s k + i m ′ ) ( t ( n − l ) − i n ′ ) ,</p><p>for k = 0, ⋯ , m and l = 0, ⋯ , n , where</p><p>S m , n ( s , t ) = [ max ( − k m ′ , ( n − l ) − t n ′ ) , min ( s − k m ′ , ( n − l ) n ′ ) ] ∩ ℤ .</p><p>The critical region can be obtained by finding c α / 2 and c 1 − α / 2 such that:</p><p>max { D : p r ( D ≤ c α 2 | H 0 ) ≤ α 2 } and min { D : p r ( D ≥ c 1 − α 2 | H 0 ) ≤ α 2 } .</p><p>This means that:</p><p>∑ ( k , l ) ∈ E α 2 f 0 ( k m − l n ) ≤ α 2 and ∑ ( k , l ) ∈ E 1 − α 2 f 0 ( k m − l n ) ≤ α 2 .</p><p>where</p><p>E α 2 = { ( k , l ) ∈ ℕ 2 : 0 ≤ k ≤ m ,0 ≤ l ≤ n , k m − l n ≤ c α 2 }</p><p>and</p><p>E 1 − α 2 = { ( k , l ) ∈ ℕ 2 : 0 ≤ k ≤ m ,0 ≤ l ≤ n , k m − l n ≥ c 1 − α 2 }</p><p>Example: Gender Discrimination</p><p>The table below shows the gender distribution of the promoted files.</p><p>Data Source:</p><p>https://www2.stat.duke.edu/courses/Spring12/sta101.1/lec/lec14S.pdf.</p><p>In this question, we will investigate whether or not gender discrimination is associated with the promotion of the employees. In other words, we would like to conduct the following hypothesis test.</p><p>H 0 : There is no gender discrimination in promotion vs H 1 : There is gender discrimination in promotion.</p><p>We run the R program for exact distribution for m = 24 , n = 24 , p ^ 1 = 21 24 , and p ^ 2 = 14 24 , obtain the test statistic, and p-value to 0.291667 and 0.03286628</p><p>respectively. Since p-value is less than α , we reject the null hypothesis and conclude that there is gender discrimination in promotion. However the p-value is slightly less than α , so there is moderate gender discrimination for the promotion of the employees.</p></sec><sec id="s5"><title>5. Power Calculation</title><p>If c α 2 and c 1 − α 2 are the left and right critical values and if the Null hypothesis is rejected for the test statistic, d = p ^ 1 − p ^ 2 then the power of the corresponding hypothesis test is given by:</p><p>1 − β = 2 min { p r ( D ≤ d | H α ) , p r ( D ≥ d | H α ) } = 2 ∑ ( k , l ) ∈ E α f ( k m − l n )</p><p>where</p><p>E α = { ( k , l ) ∈ ℕ 2 : 0 ≤ k ≤ m ,0 ≤ l ≤ n , k m − l n ≤ d     or     k m − l n ≥ d }</p><p>Continuation of the example: Gender Discrimination</p><p>In this example, we have rejected null hypothesis with the significance level α = 0.05 . Now we want to find power of the hypothesis test for</p><p>p 1 = p ^ 1 = 21 24 , p 2 = p ^ 2 = 14 24 , and α = 0.05 . We run the R program for the power</p><p>calculation of exact distribution and obtain that the power of the hypothesis test equals to 0.5657226.</p></sec><sec id="s6"><title>6. Confidence Interval</title><p>Point estimator of p 1 − p 2 is D = p ^ 1 − p ^ 2 , which can be obtained by the given samples. Let L α / 2 and U α / 2 are lower and upper bound for 1 − α confidence coefficient for p 1 − p 2 . We obtain L α / 2 and U α / 2 as follows:</p><p>L α / 2 = max { D : p r ( D ≤ L α 2 ) ≤ α 2 }</p><p>U α / 2 = min { D : p r ( D ≥ U α 2 ) ≤ α 2 } .</p><p>Thus, ( 1 − α ) 100 % confidence interval for p 1 − p 2 is ( L α / 2 , U α / 2 ) .</p><p>A relatively easy approach to compare the difference between population proportions ( p 1 − p 2 ) is confidence interval. We calculate the sample proportions p ^ 1 and p ^ 2 from respective samples. Once p ^ 1 and p ^ 2 are calculated, we use them to construct confidence interval with nominal confidence coefficient 1 − α . If the confidence interval does not include 0, we reject the null hypothesis. Otherwise fail to reject null hypothesis.</p><table-wrap-group id="1"><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> 95% confidence interval for Exact, Wald, Agresti-Caffo, and Score</title></caption><table-wrap id="1_1"><caption><title> (b)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >k</th><th align="center" valign="middle" >m</th><th align="center" valign="middle" >l</th><th align="center" valign="middle" >n</th><th align="center" valign="middle" >α</th><th align="center" valign="middle" >L. Exact</th><th align="center" valign="middle" >U. Exact</th><th align="center" valign="middle" >L. Wald</th><th align="center" valign="middle" >U. Wald</th><th align="center" valign="middle" >L. AC</th><th align="center" valign="middle" >U. AC</th><th align="center" valign="middle" >L. Score</th></tr></thead><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >0.85</td><td align="center" valign="middle" >0.360</td><td align="center" valign="middle" >0.840</td><td align="center" valign="middle" >0.304</td><td align="center" valign="middle" >0.787</td><td align="center" valign="middle" >0.313</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >0.85</td><td align="center" valign="middle" >0.295</td><td align="center" valign="middle" >0.805</td><td align="center" valign="middle" >0.247</td><td align="center" valign="middle" >0.753</td><td align="center" valign="middle" >0.252</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >0.50</td><td align="center" valign="middle" >0.90</td><td align="center" valign="middle" >0.419</td><td align="center" valign="middle" >0.881</td><td align="center" valign="middle" >0.356</td><td align="center" valign="middle" >0.826</td><td align="center" valign="middle" >0.365</td></tr><tr><td align="center" valign="middle" >17</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >0.50</td><td align="center" valign="middle" >0.90</td><td align="center" valign="middle" >0.415</td><td align="center" valign="middle" >0.885</td><td align="center" valign="middle" >0.353</td><td align="center" valign="middle" >0.829</td><td align="center" valign="middle" >0.358</td></tr><tr><td align="center" valign="middle" >18</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >20</td><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >0.60</td><td align="center" valign="middle" >0.90</td><td align="center" valign="middle" >0.419</td><td align="center" valign="middle" >0.881</td><td align="center" valign="middle" >0.356</td><td align="center" valign="middle" >0.826</td><td align="center" valign="middle" >0.365</td></tr></tbody></table></table-wrap><table-wrap id="1_2"><caption><title></title></caption><table><tbody><thead><tr><th align="center" valign="middle" >U. Score</th><th align="center" valign="middle" >Exact. CI. Width</th><th align="center" valign="middle" >Wald. CI. Width</th><th align="center" valign="middle" >AC. CI. Width</th><th align="center" valign="middle" >Score. CI. Width</th></tr></thead><tr><td align="center" valign="middle" >0.790</td><td align="center" valign="middle" >0.45</td><td align="center" valign="middle" >0.480</td><td align="center" valign="middle" >0.484</td><td align="center" valign="middle" >0.477</td></tr><tr><td align="center" valign="middle" >0.754</td><td align="center" valign="middle" >0.50</td><td align="center" valign="middle" >0.509</td><td align="center" valign="middle" >0.505</td><td align="center" valign="middle" >0.503</td></tr><tr><td align="center" valign="middle" >0.825</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >0.462</td><td align="center" valign="middle" >0.470</td><td align="center" valign="middle" >0.461</td></tr><tr><td align="center" valign="middle" >0.826</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >0.470</td><td align="center" valign="middle" >0.476</td><td align="center" valign="middle" >0.469</td></tr><tr><td align="center" valign="middle" >0.825</td><td align="center" valign="middle" >0.30</td><td align="center" valign="middle" >0.462</td><td align="center" valign="middle" >0.470</td><td align="center" valign="middle" >0.461</td></tr></tbody></table></table-wrap></table-wrap-group><p>For the purpose of this comparison, we have constructed some confidence intervals including respective confidence width for Exact, Wald, Agresti-Caffo and Score for m = n = 20 and 95% confidence coefficient (<xref ref-type="table" rid="table1">Table 1</xref>).</p><p>The last four columns of the above table are the confidence widths for Exact, Wald, Agrest-Caffo, and Score. It can be seen that the confidence width of Exact has the least amount.</p></sec><sec id="s7"><title>7. Conclusion</title><p>Inferences of the difference of the population proportion are a very basic problem in statistics. Standard Wald interval has been used universally. Standard Wald interval is persistently chaotic, and has unacceptably poor coverage probabilities when either the sample sizes are small or one proportion is very large and the other is very small. Several intervals have been suggested but their level of performance is not satisfactory when the sample size is small. We have been shown that our distribution does not depend on sample size. We have also shown that exact distribution has the least confidence width among Wald, Agresti-Caffo and Score, so it is suitable for inferences of the difference between the population proportion regardless of sample size.</p></sec><sec id="s8"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s9"><title>Cite this paper</title><p>Dahal, K.R. and Amezziane, M. (2020) Exact Distribution of Difference of Two Sample Proportions and Its Inferences. Open Journal of Statistics, 10, 363-374. https://doi.org/10.4236/ojs.2020.103024</p></sec><sec id="s10"><title>Appendix</title><p>Proof of lemma</p><p>If we define Z j = ( 1 − Y j ) , then W can be written as W = n ∑ i = 1 m     X i + m ∑ j = 1 n     Z j . The pgf of W can be written as p w ( z ) = ∏ i = 1 m E ( z n X i ) ∏ i = 1 n E ( z m Z j ) since the two</p><p>samples are independent of each other and the observations in each sample are independent and identically distributed.</p><p>Since X i ~ i i d B e r ( p 1 ) for i = 1, ⋯ , m , then E ( z n X i ) = 1 − p 1 ( 1 − z n ) and</p><p>E ( ∏ i = 1 m     z n X i ) = ( 1 − p 1 ( 1 − z n ) ) m = ∑ s = 0 m ( − 1 ) s ( m s ) p 1 s ( 1 − z n ) s = ∑ s = 0 m ∑ u = 0 s ( − 1 ) s + u ( m s ) ( s u ) p 1 s z u n . (2)</p><p>Similarily, since Y i ~ B e r ( p 2 ) for j = 1, ⋯ , n , then</p><p>E ( ∏ j = 1 n     z m Z j ) = ∑ t = 0 n ∑ v = 0 t ( − 1 ) t + v ( n t ) ( t v ) ( 1 − p 2 ) t z v m . (3)</p><p>We multiply the RHS’ of 2 and 3 to obtain 1.</p><p>Proof of Theorem</p><p>Notice that, even though the support of D and W are different, their pmf’s have</p><p>the same probabilities: P r ( W = k n + ( n − l ) m ) = P r ( D = k m − l n ) for k = 0, ⋯ , m</p><p>and l = 0, ⋯ , n . The pmf of W can be obtained from the pgf as follows:</p><p>P r ( W = k n + ( n − l ) m ) = 1 ( k n + ( n − l ) m ) ! d k n + ( n − l ) m d z k n + ( n − l ) m p w ( z ) | z = 0 .</p><p>Therefore,</p><p>P r ( W = k n + ( n − l ) m ) = ∑ s = 0 m ∑ u = 0 s ∑ t = 0 n ∑ v = 0 t ( − 1 ) s + t + u + v ( m s ) ( s u ) ( n t ) ( t v ) p 1 s ( 1 − p 2 ) t δ k n + ( n − l ) m ( u n + v m ) , (4)</p><p>where δ a ( x ) = 1 if x = a and 0 otherwise.</p><p>To simplify the formula 4, we use the fact that δ k n + ( n − l ) m ( u n + v m ) = 1 is equivalent to k n + ( n − l ) m = u n + v m which, in its turn, is equivalent to ( u − k ) n ′ = ( n − l − v ) m ′ . From this last equality, we conclude that u − k = i m ′ and n − l − v = i n ′ for some i ∈ ℤ because m ′ and n ′ are relative prime to each other. The values of i are hence obtained by solving the following system of equations:</p><p>( u − k = i m ′ ( n − l ) − v = i n ′ 0 ≤ u ≤ s 0 ≤ v ≤ t i ∈ ℤ</p><p>This leads to the following simplified system: ( − k m ′ ≤ i ≤ s − k m ′ ( n − l ) − t n ′ ≤ i ≤ ( n − l ) n ′ i ∈ ℤ . which corresponds to the values of i that forms the set S m , n ( s , t ) = [ max ( − k m ′ , ( n − l ) − t n ′ ) , min ( s − k m ′ , ( n − l ) n ′ ) ] ∩ ℤ .</p><p>Proof of Corollary 1</p><p>Since m and n are relatively prime to each other, the support of D becomes:</p><p>S m , n ( s , t ) = [ max ( − k m , ( n − l ) − t n ) , min ( s − k m , ( n − l ) n ) ] ∩ ℤ .</p><p>when k m − l n ≠ 0 , we have ( k , l ) ∉ { ( 0,0 ) , ( m , n ) } , hence − 1 &lt; max ( − k m , ( n − l ) − t n ) &lt; 1 and − 1 &lt; min ( s − k m , ( n − l ) n ) &lt; 1 . Therefore S m , n ( s , t ) = { 0 } . Now from Theorem above we get,</p><p>P r ( D = k m − l n ) = ∑ s = k m ∑ t = n − l n ( − 1 ) s + t + k + n − l ( m s ) ( s k ) ( n t ) ( t n − l ) p 1 s ( 1 − p 2 ) t = ( − 1 ) k + n − l [ ∑ s ′ = 0 m − k ( − 1 ) s ′ + k ( m s ′ + k ) ( s ′ + k k ) p 1 s ′ + k ]       ⋅ [ ∑ t ′ = 0 l ( − 1 ) t ′ + n − l ( n t ′ + n − l ) ( t ′ + n − l n − l ) ( 1 − p 2 ) t ′ + n − l ] = p 1 k ( 1 − p 2 ) n − l [ ∑ s ′ = 0 m − k ( − 1 ) s ′ ( m k ) ( m − k s ′ ) p 1 s ′ ] [ ∑ t ′ = 0 l ( − 1 ) t ′ ( n l ) ( l t ′ ) ( 1 − p 2 ) t ′ ] = ( m k ) ( n l ) p 1 k p 2 l ( 1 − p 1 ) m − k ( 1 − p 2 ) n − l</p><p>when k m − l n = 0 , we have ( k , l ) ∈ { ( 0,0 ) , ( m , n ) } and hence:</p><p>S m , n ( s , t ) = ( [ max ( 0 , n − t n ) , min ( s m , 1 ) ] ∩ ℤ )       ∪ ( [ max ( − 1 , − t n ) , min ( s − m m , 0 ) ] ∩ ℤ ) = ( [ n − t n , s m ] ∩ ℤ ) ∪ ( [ − t n , s − m m ] ∩ ℤ )</p><p>For this case, − k m is either 0 or −1 and n − l n is either 0 or 1 so, now from the theorem we get,</p><p>P r ( D = 0 ) = ∑ s = k m ∑ t = n − l n ( − 1 ) s + t + k + n − l ( m s ) ( s k ) ( n t ) ( t n − l ) p 1 s ( 1 − p 2 ) t</p><p>= ∑ s = 0 m ∑ t = n n ( − 1 ) s + t + n ( m s ) ( s 0 ) ( n t ) ( t n ) p 1 s ( 1 − p 2 ) t       + ∑ s = m m ∑ t = 0 n ( − 1 ) s + t + m + n − n ( m s ) ( s m ) ( n t ) ( t n − n ) p 1 s ( 1 − p 2 ) t</p><p>= ∑ s = 0 m ( − 1 ) s + n + n ( m s ) ( n n ) ( n n ) p 1 s ( 1 − p 2 ) n       + ∑ t = 0 n ( − 1 ) m + t + m ( m m ) ( m m ) ( n t ) p 1 m ( 1 − p 2 ) t = ∑ s = 0 m ( − 1 ) s ( m s ) p 1 s ( 1 − p 2 ) n + ∑ t = 0 n ( − 1 ) t ( n t ) p 1 m ( 1 − p 2 ) t = ( 1 − p 1 ) m ( 1 − p 2 ) n + p 1 m ( 1 − ( 1 − p 2 ) ) n = ( 1 − p 1 ) m ( 1 − p 2 ) n + p 1 m p 2 n</p><p>Proof of corollary 2</p><p>For m = n and k = l , the theorem reduces to,</p><p>P r ( D = 0 ) = ( − 1 ) n ∑ s = 0 n ( − 1 ) s ( n s ) p 1 s ∑ t = 0 n ( − 1 ) t ( n t ) ( 1 − p 2 ) t ∑ i ∈ S n , n ( s , t ) ( s k + i n ) ( t n − k − i n ) ,</p><p>where,</p><p>i ∈ S n , n ( s , t ) = [ max ( − k n , n − k − t n ) , min ( s − k n , n − k n ) ] ∩ ℤ .</p><p>i n ∈ S n , n ( s , t ) = [ max ( − k , n − k − t ) ) , min ( s − k , n − k ) ) ] ∩ ℤ .</p><p>k + i n ∈ S n , n ( s , t ) = [ max ( 0 , n − t ) , min ( s , n ) ] .</p><p>Now we replace k + i n by u and obtain the following result:</p><p>P r ( D = 0 ) = ( − 1 ) n ∑ s = 0 n ( − 1 ) s ( n s ) p 1 s ∑ t = 0 n ( − 1 ) t ( n t ) ( 1 − p 2 ) t ∑ u = max ( 0 , n − t ) min ( s , n ) ( s u ) ( t n − u ) = ( − 1 ) n ∑ s = 0 n ( − 1 ) s ( n s ) p 1 s ∑ t = 0 n ( − 1 ) t ( n t ) ( 1 − p 2 ) t ∑ u = n − t s ( s u ) ( t n − u ) .</p><p>Proof of corollary 3</p><p>The exact distribution of D, using lemma, is given by;</p><p>P r ( D = k m − l n ) = ∑ s = 0 m ∑ u = 0 s ∑ t = 0 n ∑ v = 0 t ( − 1 ) s + t + u + v ( m s ) ( s u ) ( n t ) ( t v ) p 1 s ( 1 − p 2 ) t δ k n + ( n − l ) m ( u n + v m )</p><p>where δ a ( x ) = 1 if x = a and 0 otherwise. Let us define a set H s , t as follows:</p><p>H s , t = { ( u , v ) ∈ ℕ 2 : 0 ≤ u ≤ s , 0 ≤ v ≤ t , u n + v m = k n + ( n − l ) m } = { ( u , v ) ∈ ℕ 2 : 0 ≤ u ≤ s , 0 ≤ v ≤ t , v = ( k − u ) n m + n − l } = { ( u , ( k − u ) n m + n − l ) ∈ ℕ 2 : 0 ≤ u ≤ s , 0 ≤ ( k − u ) n m + n − l ≤ t } = { ( u , ( k − u ) n m + n − l ) ∈ ℕ 2 : 0 ≤ u ≤ s , − t ≤ ( u − k ) n m + l − n ≤ 0 }</p><p>= { ( u , ( k − u ) n m + n − l ) ∈ ℕ 2 : 0 ≤ u ≤ s , n − l − t ≤ ( u − k ) n m ≤ n − l } = { ( u , ( k − u ) n m + n − l ) ∈ ℕ 2 : 0 ≤ u ≤ s , k + ( n − l − t ) m n ≤ u ≤ k + ( n − l ) m n } = { ( u , ( k − u ) n m + n − l ) ∈ ℕ 2 : max ( 0 , k + ( n − l − t ) m n )         ≤ u ≤ min ( s , k + ( n − l ) m n ) } = S s , t</p><p>Thus, P r ( D = k m − l n ) = ∑ s = 0 m ∑ t = 0 n ∑ u ∈ S s , t ( − 1 ) s + t + u + ( k − u ) n m + n − l ( m s ) ( s u ) ( n t ) ( t ( k − u ) n m + n − l ) p 1 s ( 1 − p 2 ) t</p><p>Proof of corollary 4</p><p>Using Corollary (3), the exact distribution of D for m = n and p 1 = p 2 is given by</p><p>P r ( D = k n − l n ) = ∑ s = 0 n ∑ t = 0 n ∑ u ∈ S s , t ( − 1 ) s + t + u + ( k − u ) n n + n − l ( n s ) ( s u ) ( n t ) ( t ( k − u ) n n + n − l ) p 1 s ( 1 − p 1 ) t = ∑ s = 0 n ∑ t = 0 n ∑ u ∈ S s , t ( − 1 ) s + t + u + k − u + n − l ( n s ) ( s u ) ( n t ) ( t k − u + n − l ) p 1 s ( 1 − p 1 ) t = ∑ s = 0 n ∑ t = 0 n ∑ u ∈ S s , t ( − 1 ) s + t + n + k − l ( n s ) ( s u ) ( n t ) ( t k − l + u + n ) p 1 s ( 1 − p 1 ) t</p><p>where,</p><p>S s , t = { ( u , k − l + n − u ) ∈ ℕ 2 : max ( 0 , k − l + n − t ) ≤ u ≤ min ( s , k − l + n ) }</p><p>Since both k and l run from 0 to n so P r ( D = k n − l n ) = P r ( − D = l n − k n ) .</p></sec></body><back><ref-list><title>References</title><ref id="scirp.100041-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Agresti, A. and Caffo, B. (2000) Simple and Effective Confidence Interval for Proportions and Differences of Proportions Result from Adding Two Successes and Two Failures. American Statistical Association, 54, 280-288.  
https://doi.org/10.2307/2685779</mixed-citation></ref><ref id="scirp.100041-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Newcombe, R.G. (1998). Interval Estimation for the Difference between Independent Proportions: Comparison of Eleven Methods. John Wiley &amp; Sons, Ltd., Hoboken. https://doi.org/10.1002/(SICI)1097-0258(19980430)17:8&lt;873::AID-SIM779&gt;3.0.CO;2-I</mixed-citation></ref></ref-list></back></article>