<?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.101006</article-id><article-id pub-id-type="publisher-id">OJS-98250</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>
 
 
  Bayes Factor with Lindley Paradox and Tow Standard Methods in Model
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Xiaoting</surname><given-names>Nie</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Changsha Normal University, Changsha, China</addr-line></aff><pub-date pub-type="epub"><day>08</day><month>01</month><year>2020</year></pub-date><volume>10</volume><issue>01</issue><fpage>74</fpage><lpage>86</lpage><history><date date-type="received"><day>1,</day>	<month>December</month>	<year>2019</year></date><date date-type="rev-recd"><day>10,</day>	<month>February</month>	<year>2020</year>	</date><date date-type="accepted"><day>13,</day>	<month>February</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>
 
 
  For any statistical analysis, Model selection is necessary and required. In many cases of selection,
   
  Bayes factor is one of the important basic elements. For the unilateral hypothesis testing problem, we extend the harmony of frequency and Bayesian evidence to the generalized p-value of unilateral hypothesis testing problem, and study the harmony of generalized P-value and posterior probability of original hypothesis. For the problem of single point hypothesis testing, the posterior probability of the Bayes evidence under the traditional Bayes testing method, that is, the Bayes factor or the single point original hypothesis is established, is analyzed
  , 
  a phenomenon known as the Lindley paradox, which is at odds with the classical frequency evidence of p-value.
   
  At this point, many statisticians have been worked for this from both frequentist and Bayesian perspective. In this paper
  ,
   I am going to focus on Bayesian approach to model selection
  ,
   
  s
  tarting from Bayes factors and go
  ing
   within Lindley Paradox, which also briefly talks about partial and fractional Bayes factor.
   
  Trying to use a simple way to consider this paradox is the thing what I want to do in the paper. On the other hand, a detailed derivation of BIC and AIC is given in 
  S
  ection 4. The guiding principle of selecting the optimal model is to investigate from two aspects: one is to maximize the likelihood function, the other is to minimize the number of unknown parameters in the model. The larger the likelihood function value, the better the model fitting, but we can not simply measure the model fitting accuracy, which leads to more and more unknown parameters in the model, and the model that
   
  becomes more and more complex would have caused an overmatch. Therefore, a good model should be the combination of the fitting accuracy and the number of unknown parameters to optimize the configuration.
 
</p></abstract><kwd-group><kwd>Bayes Factors</kwd><kwd> Lindley Paradox</kwd><kwd> Fractional Bayes Factor</kwd><kwd> BIC</kwd><kwd> AIC</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Many statisticians are naturally involved in the question of model selection [<xref ref-type="bibr" rid="scirp.98250-ref1">1</xref>], in case to define the “best model” to fit real data, different approaches have been proposed since last century, many well-known methods such as F-test [<xref ref-type="bibr" rid="scirp.98250-ref2">2</xref>], AIC, BIC [<xref ref-type="bibr" rid="scirp.98250-ref3">3</xref>], Bayesian model averaging [<xref ref-type="bibr" rid="scirp.98250-ref4">4</xref>]. We are focusing on Bayesian approach, as we analyze data from some possible models M 1 , ⋯ , M k . We denote θ ∈ Θ as parameter and π ( θ ) as prior probability, then for likelihoods f ( D a t a | θ ) and prior g ( θ ) . The posterior for model M k with parameter θ k is proportional to f k ( D a t a | θ k ) g k ( θ k ) π k , we get posterior probability as</p><p>P ( M k | D a t a ) ∝ π k ∫ Ω k f k ( D a t a | θ k ) g k ( θ k ) d θ k = π k ∫ Ω k f k ( D a t a | θ k ) g k ( θ k ) d θ k ∑ j = 1 K π j ∫ Ω j f j ( D a t a | θ j ) g j ( θ j ) d θ j</p><p>In a Bayesian analysis, the priors π k on each model and g k ( θ k ) on the parameters of model k are proper and subjective. And the Bayesian solutions to do questions are to compute the posterior probability P ( M k | D a t a ) for each model. For model selection, we would choose the model from Bayesian conclusion as maximizes P ( M k | D a t a ) .</p><p>However, Bayes factor has its only limitation, that is Bayes factors itself can only show the difference of how hypothesis model is against a null model [<xref ref-type="bibr" rid="scirp.98250-ref5">5</xref>]. Also, Bayes factor has a close connection with priors, if we change the width of the prior, it will also change the Bayes factor. At this point, we may need to consider about Lindley Paradox.</p><p>In Section 2, we give a simple and general explanation of Bayes factor. Following, in Section 3, we will talk about Lindley’s Paradox. And Section 4 can be one of the main parts of the theoretical approach for AIC and BIC, for which we give the derivation. A simple example is given as well to use AIC and BIC.</p></sec><sec id="s2"><title>2. Bayes Factor</title><p>Before talking about all things, first we would construct one of the most important variables within Bayesion Methods-Bayes Factor [<xref ref-type="bibr" rid="scirp.98250-ref6">6</xref>].</p><p>Suppose we have data D with prior θ and M 1 , M 2 as two different models. By Condition Rule, we have:</p><p>P ( M 1 | D ) = P ( D | M 1 ) P ( M 1 ) P (D)</p><p>Recall for Odds we have P ( M 1 ) = 1 − P ( M 2 ) . And for P ( D | M 1 ) is the marginal likelihood, which P ( D | M 1 ) = ∫   P ( D | θ , M 1 ) P ( θ | M 1 ) d θ . θ denotes prior. Then, by Bayes’ Rule,</p><p>P ( M 1 | D ) = P ( D | M 1 ) P ( M 1 ) P ( D | M 1 ) P ( M 1 ) + P ( D | M 2 ) P (M2)</p><p>P ( M 1 | D ) P ( M 2 | D ) = P ( D | M 1 ) P ( D | M 2 ) P ( M 1 ) P (M2)</p><p>where P ( D | M 1 ) P ( D | M 2 ) is defined as Bayes’ factor, and realized it is also the ratio of marginal likelihood. Furthermore, we denote Bayes’ factor as:</p><p>B 1,2 ( y ) = P ( y | M 1 ) P ( y | M 2 )</p><p>Bayesian method fits in many models for testing because it can provide a decisiveness of the evidence agree the null model in contrast p-values [<xref ref-type="bibr" rid="scirp.98250-ref7">7</xref>] which are usually just regarded as evidence mearsurement against the alternative [<xref ref-type="bibr" rid="scirp.98250-ref8">8</xref>]. Also, the Bayes factor (Jefferys, 1961) [<xref ref-type="bibr" rid="scirp.98250-ref9">9</xref>] is used in Bayesian hypothesis. Assuming that p i ( D | θ i ) , i = 1 , 2 are the likelihoods for D under two competing models H 1 and H 2 , and the parameters are θ i . Meanwhile, let π i ( θ i ) be their prior distributions [<xref ref-type="bibr" rid="scirp.98250-ref10">10</xref>]. The Bayes factor for H 2 against H 1 :</p><p>B 2,1 = ∫   P 2 ( D | θ 2 ) π 2 ( θ 2 ) d θ 2 ∫   P 1 ( D | θ 1 ) π 1 ( θ 1 ) d θ 1</p><p>Above these, evidence from the data agrees H 2 , against H 1 . So Bayes factor can avoid many limitations in p-value testing. The development of Bayes factor in statistical models test can applicate in many areas of research [<xref ref-type="bibr" rid="scirp.98250-ref11">11</xref>].</p></sec><sec id="s3"><title>3. Priors and Lindley Paradox</title><sec id="s3_1"><title>3.1. Introduction to Lindley Paradox</title><p>The Lindley’s Paradox shows how a value (or the number of standard deviations) is used in a Frequent Assumption [<xref ref-type="bibr" rid="scirp.98250-ref12">12</xref>] test results in a completely different inference from Bayesian hypothesis [<xref ref-type="bibr" rid="scirp.98250-ref13">13</xref>].</p><p>When we faced with improper priors (like priors can’t integrate to one) in the null hypothesis and model selection, we will find some problems. Such priors can be acceptable, but for other purposes it is also acceptable. So we consider testing the hypotheses:</p><p>H 0 : θ ∈ Θ 0   vs   H 1 : θ ∈ Θ 1</p><p>Defining θ for marginal density, so we can use the following model:</p><p>p ( θ ) = p ( θ | H 0 ) p ( H 0 ) + p ( θ | H 1 ) p (H1)</p><p>Making p ( θ | H 0 ) and p ( θ | H 1 ) are proper density functions, the posterior is given by:</p><p>p ( H 0 | D ) = p ( H 0 ) p ( D | H 0 ) p ( H 0 ) P ( D | H 0 ) + p ( H 1 ) p ( D | H 1 ) = p ( H 0 ) ∫ Θ 0   p ( D | θ ) p ( θ | H 0 ) d θ p ( H 0 ) ∫ Θ 0   p ( D | θ ) p ( θ | H 0 ) d θ + p ( H 1 ) ∫ Θ 1 p ( D | θ ) p ( θ | H 1 ) d θ</p><p>Then we can suppose that we use improper priors, making p ( θ | H 0 ) ∝ z 0 and p ( θ | H 1 ) ∝ z 1 . So:</p><p>p ( H 0 | D ) = p ( H 0 ) z 0 ∫ Θ 0 p ( D | θ ) d θ p ( H 0 ) z 0 ∫ Θ 0   p ( D | θ ) d θ + p ( H 1 ) z 1 ∫ Θ 1   p ( D | θ ) d θ = p ( H 0 ) z 0 s 0 p ( H 0 ) z 0 s 0 + p ( H 1 ) z 1 s 1</p><p>Establishing model i that s i = ∫ Θ i   p ( x | θ ) d θ is the marginal likelihood or the integrated. So we assume that p ( H 0 ) = p ( H 1 ) = 1 2</p><p>Then an equation can be obtained:</p><p>p ( H 0 | D ) = z 0 s 0 z 0 s 0 + z 1 s 1 = s 0 s 0 + ( z 1 z 0 ) s 1</p><p>So we can use different z that we want to change the posterior arbitrarily. Meanwhile, when using proper and not clear priors might cause similar problems. Because the probability of data in a complex model with a diffuse prior will be very small. So one thing we must know, when we do research in Bayes factor a clearer and simper model is better. It was called the Lindley paradox.</p></sec><sec id="s3_2"><title>3.2. A Simple Model in Lindley Paradox</title><p>Many authors [<xref ref-type="bibr" rid="scirp.98250-ref14">14</xref>] have discussed this so-called paradox [<xref ref-type="bibr" rid="scirp.98250-ref15">15</xref>] in different ways [<xref ref-type="bibr" rid="scirp.98250-ref16">16</xref>]. So I want to find a simple way to consider this problem. The usual point null hypothesis testing problem is to test:</p><p>H 0 : θ = 0   vs   H 1 : θ ≠ 0</p><p>In normal model N ( x | θ ,1 ) . The prior probability is p ( H 0 )   ( p ( H 0 ) = ρ 0 ) .</p><p>Let π ( θ ) = N ( θ | 0 , σ 2 )   ( σ &gt; 0 ) be the prior distribution for the unknowm parameter θ in the model.</p><p>The Bayes factor is given by:</p><p>B = N ( x | 0 , 1 ) ∫   N ( x | θ , 1 ) π ( θ ) d θ</p><p>In order to consider the paradox, we can formalise it and compare the two following normal models:</p><p>M 0 = { N ( x | 0 , 1 ) = ( 2 π ) − 1 2 exp ( − 1 2 x 2 ) }</p><p>M 1 = { N ( x | θ , 1 ) = ( 2 π ) − 1 2 exp { − 1 2 ( x − θ ) 2 } }</p><p>Consider a physical system where quantity X may be measured and assume. And we need to use the σ to define both the priors. The prior of the null hypothesis is ρ 0 supposing the ρ 0 can depend on σ .</p><p>Computing the Bayes factor representing the odds of the null hypothesis H 0 is:</p><p>B 0 = N ( x | 0 , 1 ) ∫ N ( x | θ , 1 ) N ( θ | 0 , σ 2 ) d θ = e − 1 2 x 2 e − 1 2 x 2 σ 2 + 1 σ 2 + 1</p><p>In this case, prior probabilities p ( H 0 ) and p ( H 1 ) = 1 − P ( H 0 ) for two hypotheses can be expressed. Given the result x, in Bayes theory that:</p><p>p ( H m | x ) p ( x ) = p ( x | H m ) p (Hm)</p><p>for m = 0 , 1 , p ( H m ) is prior probabilities and p ( x | H m ) is the conditional distribution, p ( x ) = p ( x | H 0 ) P ( H 0 ) + P ( x | H 1 ) p ( H 1 ) can outcome the overall distribution. Posterior probability p ( H m | x ) is in the hypothesis H m . In Bayes theory we can evaluate the posterior probabilities, p ( H 0 | x ) is given by:</p><p>p ( H 0 | x ) = p ( x | H 0 ) p ( H 0 ) p ( x ) = p ( x | H 0 ) p ( H 0 ) p ( x | H 0 ) p ( H 0 ) + p ( x | H 1 ) p ( H 1 ) = [ 1 + p ( x | H 1 ) p ( H 1 ) p ( x | H 0 ) p ( H 0 ) ] − 1 = [ 1 + 1 − p ( H 0 ) p ( H 0 ) p ( x | H 1 ) p ( x | H 0 ) ] − 1</p><p>Then, we can use the mean value in prior distribution with π m ( θ ) ≡ p ( θ | H m ) and make the rest of the prior probability as a normal distribution with variance τ , so:</p><p>π 1 ( θ ) = ( 2 π τ 2 ) − 1 2 exp { − θ 2 2 τ 2 }</p><p>Evaluating the conditional probabilities:</p><p>p ( x | H m ) = ∫   π m ( θ ) p ( x | θ ) d θ</p><p>We can evaluate p ( x | H 0 ) and p ( x | H 1 ) , overall:</p><p>p ( H 0 | x ) = [ 1 + 1 − ρ 0 ρ 0 e − 1 2 x 2 / ( σ 2 + 1 ) e − 1 2 x 2 1 σ 2 + 1 ] − 1 = [ 1 + 1 − ρ 0 ρ 0 1 B 0 ] − 1</p><p>So we have an equation like before, we can talk about the prior ρ ( σ ) . Our approach is to measure the value of alternative assumptions about zero. In Asymptotically Bayesian attribute, if the model is incorrectly specified, the posterior will accumulates in the model. In the case of the Kullback-Leibler divergence, the closest to the real model [<xref ref-type="bibr" rid="scirp.98250-ref17">17</xref>]. As a result, divergence D K L ( N | x ( θ ,1 ) ∥ N ( x | 0,1 ) ) represents the loss. Because we know the prior before. The excepted loss can be given:</p><p>∫ Θ D K L ( N ( x θ ,1 ) ∥ N ( x | 0,1 ) ) π ( θ ) d θ = ∫ 1 2 θ 2 π ( θ ) d θ = 1 2 σ 2</p><p>The model prior represent the loss relatied with a probability statement, it also determined self-information loss function. So we have the prior on the alternative model is:</p><p>1 − ρ 0 ( σ ) ∝ e σ 2</p><p>The prior of the null hypothesis is ρ ( σ ) ∝ 1 , then we can get:</p><p>ρ 0 ( σ ) = 1 1 + exp { 1 2 σ 2 }</p><p>Then, this applies to the category of large σ and p ( H 0 | x , σ ) goes to zero, so p ( H 0 ) → 0 . Therefore, this method is consistent, we do not advocate the choice of big σ .</p></sec></sec><sec id="s4"><title>4. BIC and AIC</title><sec id="s4_1"><title>4.1. BIC</title><sec id="s4_1_1"><title>4.1.1. Notation (<xref ref-type="table" rid="table1">Table 1</xref>)</title><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Notation 1</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >y</th><th align="center" valign="middle" >observed data y 1 , ⋯ , y n</th></tr></thead><tr><td align="center" valign="middle" >M i</td><td align="center" valign="middle" >candidate model</td></tr><tr><td align="center" valign="middle" >θ i</td><td align="center" valign="middle" >vector of parameters in the model</td></tr><tr><td align="center" valign="middle" >g ( θ i )</td><td align="center" valign="middle" >the prior density of the parameters θ i</td></tr><tr><td align="center" valign="middle" >P ( y | M i )</td><td align="center" valign="middle" >marginal likelihood</td></tr><tr><td align="center" valign="middle" >f ( y | θ i )</td><td align="center" valign="middle" >the density of the data given</td></tr><tr><td align="center" valign="middle" >L ( θ i | y )</td><td align="center" valign="middle" >the likelihood of y given the model M i</td></tr></tbody></table></table-wrap></sec><sec id="s4_1_2"><title>4.1.2. Derivation of BIC</title><p>In this section we are going to talk about the basic idea [<xref ref-type="bibr" rid="scirp.98250-ref18">18</xref>] of how BIC (Bayesian information criterion) constructed and given the derivation of BIC [<xref ref-type="bibr" rid="scirp.98250-ref4">4</xref>].</p><p>As what we have showed in section one, B 1,2 ( y ) = P ( y | M 1 ) P ( y | M 2 ) as Bayes factor for two models, then we consider more models M i which i ∈ { 1, ⋯ , n }</p><p>P ( y | M i ) = ∫ f ( y | θ i ) = ∫ exp ( log ( f ( y | θ i ) g i ( θ i ) ) ) d θ i</p><p>f ( y | θ i ) g i ( θ i ) where θ i is the vector of parameters in the model M i , L is the likelihood function and g i ( θ i ) is the p.d.f. of the distribution of parameters θ i</p><p>Denoting θ ˜ i as the posterior mode, then we use Taylor expansion, let Q ( θ i ) = log ( f ( y | θ i ) g i ( θ i ) ) , Q ( θ i ) = log ( f ( y | θ i ) g i ( θ i ) ) ≈ log ( f ( y | θ ˜ i ) ) g i ( θ ˜ i ) + ( θ i − θ ˜ i ) ∇ θ i Q | θ ˜ i + 1 2 ( θ i − θ ˜ i ) T H θ i ( θ i − θ ˜ i ) .</p><p>where H θ i is a | θ i | | θ i | matrix such that H m n = ∂ 2 Q ∂ θ m ∂ θ n | θ ˜ i , where | θ i | = d i = d i m e n s i o n ( θ i ) . since Q attains its maximum, the Hessian matrix H θ i is negative definite. Let us denote H &#175; θ i = − H θ i , and then approximate P ( y | M i ) :</p><p>P ( y | M i ) ≈ ∫ exp { Q | θ ˜ i + ( θ i − θ ˜ i ) ∇ θ i Q | θ ˜ i + 1 2 ( θ i − θ ˜ i ) T H θ i ( θ i − θ ˜ i ) } d θ i</p><p>Then, by higher dimension normal distribution,</p><p>∵ ∫ 1 ( 2 π ) d i 2 | H ˜ θ i − 1 | 1 2 exp ( − 1 2 ( θ i − θ ^ i ) Τ H → θ i ( θ i − θ ^ i ) ) d θ i = 1</p><p>⇒ ∫ exp ( − 1 2 ( θ i − θ ^ i ) Τ H → θ i ( θ i − θ ^ i ) ) d θ i = ( 2 π ) d i 2 | H ˜ θ i − 1 | 1 2</p><p>⇒ P ( y | M i ) = f ( y | θ ˜ i ) g i ( θ ˜ i ) ( 2 π ) d i 2 | H ˜ θ i − 1 | 1 2</p><p>⇒ log P ( y | M i ) = log f ( y | θ ˜ i ) + log g i ( θ ˜ i ) + d i 2 log ( 2 π ) + 1 2 log | H ˜ θ i − 1 |</p><p>Furthermore, let us think about Weak Law of Large Numbers. For y is given data, f ( y | θ i ) is the likelihood L ( θ i | y ) and L attains its maximum at the maximum likelihood estimate θ i − θ ^ i .</p><p>We set g i ( θ i ) = ( 1, θ ∈ [ θ ˜ i − 1 2 , θ ˜ i + 1 2 ] 0, else , then each element in the matrix, H ˜ θ i , can be expressed as:</p><p>H ˜ m n = − ∂ 2 log L ( θ i | y ) ∂ θ m ∂ θ n | θ i = θ ^ i</p><p>Then, for H ˜ θ i as a Fisher information matrix that,</p><p>H ˜ m n = − ∂ 2 log ( ∏ j = 1 n L ( θ i | y j ) ) ∂ θ m ∂ θ n | θ i = θ ^ i = − ∂ 2 ∑ j = 1 n log L ( θ i | y j ) ∂ θ m ∂ θ n | θ i = θ ^ i = − ∂ 2 ( 1 n ∑ j = 1 n n log L ( θ i | y j ) ) ∂ θ m ∂ θ n | θ i = θ ^ i</p><p>In this case, for the data y 1 , ⋯ , y n is IID, and n is large, we would apply Weak Law of Large number here, as random variable X j = n log L ( θ i | y j ) we have 1 n ∑ j = 1 n     n log L ( θ i | y j ) → P E ( n log L ( θ i | y j ) ) , Moreover, for Fisher information matrix:</p><p>H ˜ m n = − ∂ 2 E [ n log L ( θ i | y j ) ] ∂ θ m ∂ θ n | θ i = θ ^ i = − n ∂ 2 E [ log L ( θ i | y j ) ] ∂ θ m ∂ θ n | θ i = θ ^ i = − n ∂ 2 E [ log L ( θ i | y 1 ) ] ∂ θ m ∂ θ n | θ i = θ ^ i = n I m n</p><p>⇒ | H ˜ θ i | = n | θ i | | I θ i</p><p>For which I θ i is the Fisher information matrix for a single data point y 1 , and after substituting we final get for BIC:</p><p>2 log P ( y | M i ) = 2 log L ( θ ^ i | y ) + 2 log g i ( θ ˜ i ) + | θ i | log ( 2 π ) − | θ i | log n − log | I θ i |</p></sec></sec><sec id="s4_2"><title>4.2. AIC</title><sec id="s4_2_1"><title>4.2.1. Notation (<xref ref-type="table" rid="table2">Table 2</xref>)</title><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Notation 2</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >M j = { P ( y | θ j ) : θ j ∈ Θ j } ,</th><th align="center" valign="middle" >Different models(each is a set of density)</th></tr></thead><tr><td align="center" valign="middle" >K ( x , y )</td><td align="center" valign="middle" >The Kullback-Leibler distance between x, y</td></tr><tr><td align="center" valign="middle" >l j ( θ j )</td><td align="center" valign="middle" >the log-likelihood function for model j</td></tr><tr><td align="center" valign="middle" >P ^ j ( y ) = P ( y | θ ^ j )</td><td align="center" valign="middle" >An estimate of P based on model j</td></tr><tr><td align="center" valign="middle" >d j</td><td align="center" valign="middle" >The dimension of Θ j</td></tr><tr><td align="center" valign="middle" >Y j</td><td align="center" valign="middle" >The Data drawn from density P</td></tr><tr><td align="center" valign="middle" >θ ^ j</td><td align="center" valign="middle" >The MLE of model j</td></tr><tr><td align="center" valign="middle" >s ( y | θ j ) = ∂ log P ( y | θ j ) ∂ θ j</td><td align="center" valign="middle" >The Jaccobi Matrix of log P ( y | θ j )</td></tr></tbody></table></table-wrap></sec><sec id="s4_2_2"><title>4.2.2. Derivation of AIC</title><p>We can measure the quality of p ^ j ( y ) (as an estimate of p) by the Kullback-Leibler distance [<xref ref-type="bibr" rid="scirp.98250-ref19">19</xref>] :</p><p>K ( p , p ^ j ) = ∫   p ( y ) log ( p ( y ) p ^ j ( y ) ) d y = ∫   p ( y ) log p ( y ) d y − ∫   p ( y ) log p ^ j ( y ) d y</p><p>So, we want to minimize K ( p , p ^ j ) over j, which is the same as maximizing</p><p>K j = ∫   p ( y ) log p ( y | θ ^ j ) d y</p><p>For calculating K j , we can use Monte Carlo method to do an estimate</p><p>K &#175; j = 1 n ∑ i = 1 n log p ( Y i | θ ^ j ) = l j ( θ ^ j ) n</p><p>However, this estimate is very biased because the data are being used twice: first to get the MLE and second to estimate the integral by Monte Carlo method, and the bias is approximayely d j n . That means we should prove [<xref ref-type="bibr" rid="scirp.98250-ref20">20</xref>]</p><p>K &#175; j − d n ≈ K j</p><p>Choose θ j 0 , s.t. p ( y | θ j 0 ) = max θ j ∈ Θ j p ( y | θ j ) , and let</p><p>s ( y , θ j ) = ∂ log p ( y | θ j ) ∂ θ j ,   H ( y , θ j ) = ∂ 2 log p ( y | θ j ) ∂ θ j 2</p><p>So, s ( y , θ j ) is the Jacobi martix of log p ( y | θ j ) , and H ( y , θ j ) is the Hessian martix of log p ( y | θ j ) .</p><p>⇒ K j ≈ ∫ p ( y ) ( log p ( y | θ j 0 ) + ( θ ^ − θ j 0 ) T s ( y , θ j 0 )                               + 1 2 ( θ ^ − θ j 0 ) T H ( y , θ j 0 ) ( θ ^ − θ j 0 ) ) d y                   = K 0 − 1 2 n Z n T J Z n</p><p>where</p><p>K 0 = ∫ p ( y ) log p ( y | θ j 0 ) d y ,     Z n = n ( θ ^ j − θ j 0 ) ,     J = − E [ H ( y , θ j 0 ) ] .</p><p>⇒ K &#175; j ≈ 1 n ∑ i = 1 n ( l ( Y i , θ j 0 ) + ( θ ^ − θ j 0 ) T s ( Y i , θ j 0 ) + 1 2 ( θ ^ − θ j 0 ) T H ( Y i , θ j 0 ) ( θ ^ − θ j 0 ) )                     = K 0 + A n + ( θ ^ − θ 0 ) T S n − 1 2 n Z n T J n Z n                     = K 0 + A n + Z n T S n n − 1 2 n Z n T J Z n</p><p>where</p><p>A n = 1 n ∑ i = 1 n ( l ( Y i , θ 0 ) − K 0 ) ,   S n = 1 n ∑ i = 1 n     s ( Y i , θ 0 )</p><p>and</p><p>J n = − 1 n ∑ i = 1 n     H ( Y i , θ 0 ) → P J</p><p>K &#175; j − K j ≈ A n + n Z n T S n n ≈ A n + Z n T J Z n n</p><p>From the knowledge of asymptotic distribution, we have three claims [<xref ref-type="bibr" rid="scirp.98250-ref21">21</xref>] :</p><p>Claim 4.1 Z n = n ( θ ^ − θ j 0 ) → N ( 0 , J − 1 V J − 1 ) , where V = V a r ( s ( Y , θ j 0 ) ) = J − 1 .</p><p>Claim 4.2 n S n = n n ∑ i = 1 n     s ( Y i , θ j 0 ) → N ( 0 , V )</p><p>Claim 4.3 Let ϵ be a random vector with mean μ and covariance Σ , and Q = ϵ T A ϵ , then,</p><p>E ( Q ) = t r a c e ( A Σ ) + μ T A μ</p><p>So, with these calims above,</p><p>⇒ E ( K &#175; − K ) ≈ E ( A n ) + E ( Z n T J Z n n ) = 0 + E ( Z n T J Z n ) n                                       = t r a c e ( J J − 1 V J − 1 ) n + 0 T J 0                                       = t r a c e ( V J − 1 ) n = t r a c e ( I ) n = d j n</p><p>⇒ K ^ j = l j ( θ ^ j ) n − d j n = K &#175; j − d j n</p><p>So, we define</p><p>A I C ( j ) = 2 n K ^ j = 2 l j ( θ ^ j ) − 2 d j</p></sec></sec><sec id="s4_3"><title>4.3. Example of Simple Model</title><p>Let us consider again with the example in section 3, if we take data Y 1 , ⋯ , Y n ∼ N ( θ ,1 ) , and compare it with two models, such that, M 0 : N ( 0,1 ) and M 1 : N ( θ ,1 ) . Then take the same hypothesis as in section 3.2, we test:</p><p>H 0 : θ = 0   vs   H 1 : θ ≠ 0</p><p>By standard normal distribution we have,</p><p>Z = Y &#175; − 0 V a r ( Y &#175; ) = n Y &#175;</p><p>In case to avoid Type I error in our test, for α = 0.05 , by Z table, we would reject H 0 if | Z | &gt; z α 2 ≈ 1.96 (we take | Z | &gt; 2 ). Which implies if | Y &#175; | &gt; 2 n , we reflect H 0 .</p><p>Case 1: BIC</p><p>For what we have showed in section 4.1, we proved that B I C = 2 log L ( θ ^ i | y ) + 2 log g i ( θ ˜ i ) + | θ i | log ( 2 π ) − | θ i | log n − log | I θ i | . However, in case to make comparison with two models, we could get away some unnecessary part, we take B I C = log L ( θ ^ i | y ) − | θ i | 2 log n . Thus,</p><p>For H 0 ,</p><p>B I C = log L ( 0 ) − 0 2 log n = − n Y &#175; 2 2 − n S 2 2</p><p>and H 1 ,</p><p>B I C = log L ( θ ^ ) − 1 2 log n = − n S 2 2 − 1 2 log n</p><p>where S 2 = ∑ i ( Y i − Y &#175; ) 2 . If we want to choose M 1 as a better model, then we would make − n Y &#175; 2 2 − n S 2 2 &lt; − n S 2 2 − 1 2 log n , in other words, | Y &#175; | &gt; log n n . And BIC is an estimate of a function of the posterior probability of a model under Bayesian setup.</p><p>Case 2: AIC</p><p>And from section 4.2, for A I C = 2 l j ( θ ^ j ) − 2 d j , for which as what we have defined above S 2 = ∑ i ( Y i − Y &#175; ) 2 that l ( θ ) = − n ( Y &#175; − θ ) 2 2 − n S 2 2 . Further deduce A I C = l S − | S | Thus,</p><p>For H 0 ,</p><p>A I C = l ( 0 ) − 0 = − n Y &#175; 2 2 − n S 2 2</p><p>and H 1 ,</p><p>A I C = l ( θ ) − 1 = − n S 2 2 − 1</p><p>If we want to choose M 1 as a better model at this point, we would take − n Y &#175; 2 2 − n S 2 2 &lt; n S 2 2 − 1 , implies | Y &#175; | &gt; 2 n . Which AIC is estimate a constant plus the relative distance between unknow likelihood function.</p></sec></sec><sec id="s5"><title>5. Conclusion</title><p>The question of how to choose a best model and what is a best model, it is hard to define. More precise, the controversy has existed for a long time, and no doubt it will continue longer. In this paper, we have discussed Bayes factor in hypothesis. It is obviously that Bayes factor is increasingly used in many fields of statistic research. For Bayes factor standard methods, AIC and BIC, we would consider to use for model selection. However, we also should notice that for all methods they all have their own limitation, such as the sensitivity of priors in Lindley’s paradox. Even both frequentist and Bayesian statisticians have came up with different new ideas, it is still hard to be implemented or understand by all other. Moreover, from statistic point, the method also needs to be general enough to apply. Such as for Lindley’s paradox, the partial Bayes factor in case to avoid the sensitive of priors, it takes the minimal training sample from data set to get prior and then apply with rest of the data. Partial Bayes factor at some point did deduce the influence of sensitivity of prior, but how to find the minimal training sample could also be a hard problem. Same as fractional Beyes factor, even it proves the method of choosing data for partial Bayes facto, it still has many limitations we need consider.</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The author declares no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Nie, X.T. (2020) Bayes Factor with Lindley Paradox and Tow Standard Methods in Model. Open Journal of Statistics, 10, 74-86. https://doi.org/10.4236/ojs.2020.101006</p></sec></body><back><ref-list><title>References</title><ref id="scirp.98250-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Vehtari, A., Gelman, A. and Gabry, J. (2017) Practical Bayesian Model Evaluation Using Leave-One-Out Cross-Validation and WAIC. Statistics and Computing, 27, 1413-1432.</mixed-citation></ref><ref id="scirp.98250-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Hartman, B.M. and Groendyke, C. (2013) Model Selection and Averaging in Financial Risk Management. North American Actuarial Journal, 17, 216-228.  
https://doi.org/10.1080/10920277.2013.824374</mixed-citation></ref><ref id="scirp.98250-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Bayarri, M.J., Berger, J.O., Forte, A. and Garca-Donato, G. (2012) Criteria for Bayesian Model Choice with Application to Variable Selection. The Annals of Statistics, 40, 1550-1577. https://doi.org/10.1214/12-AOS1013</mixed-citation></ref><ref id="scirp.98250-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Wasserman, L. (2000) Bayesian Model Selection and Model Averaging. Journal of Mathematical Psychology, 44, 92-107. https://doi.org/10.1006/jmps.1999.1278</mixed-citation></ref><ref id="scirp.98250-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Ardila, F., et al. (2008) Root Polytopes and Growth Series of Root Lattices. SIAM Journal on Discrete Mathematics, 25, 1-17.</mixed-citation></ref><ref id="scirp.98250-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Kass, R.E. and Raftery, A.E. (1999) Bayes Factors. Journal of the American Statistical Association, 90, 773-795.</mixed-citation></ref><ref id="scirp.98250-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Bayarri, M.J. and Berger, J.O. (2004) The Interplay of Bayesian and Frequentist Analysis. Statistical Science, 19, 58-80.</mixed-citation></ref><ref id="scirp.98250-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Spezzaferri, F., Verdinelli, I. and Zeppieri, M. (2007) Bayes Factors for Goodness of Fit Testing. Journal of Statistical Planning and Inference, 137, 43-56.  
https://doi.org/10.1016/j.jspi.2005.09.002</mixed-citation></ref><ref id="scirp.98250-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Jeffery, H. (1961) Theory of Probability.</mixed-citation></ref><ref id="scirp.98250-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Bhat, H.S. and Kumar, N. (2010) On the Derivation of the Bayesian Information Criterion.</mixed-citation></ref><ref id="scirp.98250-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Kadane, J.B. and Lazar, N.A. (2004) Methods and Criteria for Model Selection. Journal of the American Statistical Association, 99, 279-290.</mixed-citation></ref><ref id="scirp.98250-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Merhav, N. and Feder, M. (1998). Universal Prediction. IEEE Transactions on Information Theory, 44, 2124-2147. https://doi.org/10.1109/18.720534</mixed-citation></ref><ref id="scirp.98250-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Lindley, D.V. (1957) A Statistical Paradox. Biometrika, 44, 187-192.  
https://doi.org/10.1093/biomet/44.1-2.187</mixed-citation></ref><ref id="scirp.98250-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Bartlett, M.S. (1957) A Comment on D. V. Lindley’s Statistical Paradox. Biometrika, 44, 533-534. https://doi.org/10.2307/2332888</mixed-citation></ref><ref id="scirp.98250-ref15"><label>15</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Robert</surname><given-names> C.P. </given-names></name>,<etal>et al</etal>. (<year>1993</year>)<article-title>A Note on Jeffreys-Lindley Paradox</article-title><source> Statistica Sinica</source><volume> 3</volume>,<fpage> 601</fpage>-<lpage>608</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.98250-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Villa, C. and Walker, S. (2015) On the Mathematics of the Jeffreys-Lindley Paradox. Communications in Statistics—Theory and Methods, 46, 12290-12298.</mixed-citation></ref><ref id="scirp.98250-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Cousins, R.D. (2014) The Jeffreys-Lindley Paradox Discovery Criteria in High Energy Physics. Synthese, 194, 395-432. https://doi.org/10.1007/s11229-015-0687-3</mixed-citation></ref><ref id="scirp.98250-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Shively, T. and Walker, S.G. (2013) On the Equivalence between Bayesian and Classical Hypothesis Testing.</mixed-citation></ref><ref id="scirp.98250-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Vardeman, S.B. (1987) Testing a Point Null Hypothesis: The Irreconcilability of p-Values and Evidence Comment. Journal of the American Statistical Association, 82, 130-131. http://www.jstor.org/stable/2289136  
https://doi.org/10.2307/2289136</mixed-citation></ref><ref id="scirp.98250-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Penny, W.D. (2012) Comparing Dynamic Causal Models Using AIC, BIC and Free Energy. Neurolmage, 59, 319-330. https://doi.org/10.1016/j.neuroimage.2011.07.039</mixed-citation></ref><ref id="scirp.98250-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Zellner, A. and Siow, A. (1980) Posterior Odds Ratios for Selected Regression Hypotheses. Trabajos de Estadistica Y de Investigacion Operativa, 31, 585-603.  
https://doi.org/10.1007/BF02888369</mixed-citation></ref></ref-list></back></article>