An Empirical Bayes Method for Chi-Squared Data
Lilun Du, Inchi Hu

TL;DR
This paper develops a Bayesian hierarchical model for chi-squared data that extends Tweedie's formula, enabling bias correction directly from data without prior assumptions, and reveals new phenomena specific to chi-squared distributions.
Contribution
It introduces a novel hierarchical model for chi-squared data that allows Tweedie's formula to be applied, overcoming limitations of existing methods for non-exponential family distributions.
Findings
Tweedie's formula can be adapted for chi-squared data.
New phenomena in bias correction for chi-squared distributions are identified.
The method enables bias correction without prior information.
Abstract
In a thought-provoking paper, Efron (2011) investigated the merit and limitation of an empirical Bayes method to correct selection bias based on Tweedie's formula first reported by \cite{Robbins:1956}. The exceptional virtue of Tweedie's formula for the normal distribution lies in its representation of selection bias as a simple function of the derivative of log marginal likelihood. Since the marginal likelihood and its derivative can be estimated from the data directly without invoking prior information, bias correction can be carried out conveniently. We propose a Bayesian hierarchical model for chi-squared data such that the resulting Tweedie's formula has the same virtue as that of the normal distribution. Because the family of noncentral chi-squared distributions, the common alternative distributions for chi-squared tests, does not constitute an exponential family, our results…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Statistical Methods and Models · Statistical Methods and Inference · Bayesian Modeling and Causal Inference
An Empirical Bayes Method for Chi-Squared Data
Lilun Du and Inchi Hu***Address for correspondence: Inchi Hu, Department of Information Systems, Business Statistics and Operations Management, Hong Kong University of Science and Technology, Hong Kong. E-mail: [email protected]
Hong Kong University of Science and Technology, Hong Kong
Abstract
In a thought-provoking paper, Efron (2011) investigated the merit and limitation of an empirical Bayes method to correct selection bias based on Tweedie’s formula first reported in Robbins (1956). The exceptional virtue of Tweedie’s formula for the normal distribution lies in its representation of selection bias as a simple function of the derivative of log marginal likelihood. Since the marginal likelihood and its derivative can be estimated from the data directly without invoking prior information, bias correction can be carried out conveniently. We propose a Bayesian hierarchical model for chi-squared data such that the resulting Tweedie’s formula has the same virtue as that of the normal distribution. Because the family of noncentral chi-squared distributions, the common alternative distributions for chi-squared tests, does not constitute an exponential family, our results cannot be obtained by extending existing results. Furthermore, the corresponding Tweedie’s formula manifests new phenomena quite different from those of the normal distribution and suggests new ways of analyzing chi-squared data.
Keywords: False discovery rate; High dimensional data analysis; Large-scale inference; Post-selection inference; Selection bias; Tweedie’s formula
1 Introduction
In this paper, we take the chi-squared test to be any statistical test such that the test statistic under the null hypothesis is approximately chi-squared distributed. Pearson’s chi-squared test represents an important subclass. Other examples include Fisher’s exact test, the Cochran-Mantel-Haenszel test, McNemar’s test for contingency tables, Turkey’s test for additivity in the analysis of variance, the portmanteau test in time-series analysis, and Wald’s test and likelihood ratio test in general statistical modelling etc. Indeed, the chi-squared test is one of the most widely used statistical hypothesis tests. Among other objectives, it can be applied to test goodness of fit, homogeneity, and independence etc.
Suppose we conduct a large number of chi-squared tests simultaneously. Based on these test results, not only would we like to know which test is significant after adjustment for multiplicity, but also the effect size of the significant test results. Large scale studies and the associated compound decision problems of this kind have motivated a revival of empirical Bayes methods; see Efron (2010).
Our approach to the issue raised above hinges on Tweedie’s formula based on a Bayesian hierarchical model for chi-squared data, which is then employed to construct posterior intervals of the effect size. The Bayesian hierarchical model has a long history in empirical Bayes literature. Robbins (1956) contained several remarkable Bayesian estimation formulae under such models, which were referred to as Tweedie’s formula by Efron (2011). The superiority of empirical Bayes estimates derived from such formulas and their dominance over maximum likelihood estimates are part of the profound study in Brown (1971) and Stein (1981). More recent works include Yuan and Lin (2005), Jiang and Zhang (2009), Muralidharan (2010), Brown et al. (2013), Fu et al. (2017), and Weinstein et al. (2018).
In this paper, we assume that the chi-squared statistic for a large number of chi-squared tests are generated from the following Bayesian hierarchical model
[TABLE]
where the noncentrality parameters ’s are i.i.d. draws from an unspecified prior distribution
[TABLE]
Here and , are not observable and , are observable. The goal is to estimate the noncentrality parameters , based on the sample data as a compound estimation problem.
We will show later that the posterior mean has a close-form representation in the marginal density and its derivatives like Tweedie’s formula in the empirical Bayes literature. It is notable that Tweedie’s formula is previously known to hold only in the exponential family, while ours is outside the exponential family. With the new Tweedie’s formula, we can estimate the Bayes rule from the sample data and make progress on the corresponding compound estimation problem, which typically involves the estimation of all ’s. However, in large scale studies, it is quite common to select a subset of test statistics, such as largest values of , for followup study. Such a selected subset is subjected to selection bias as perceptively explained in Efron (2011).
The Bayes rule is free from selection bias which is nicely explained in Dawid (1994), Senn (2008), and Lu and Deng (2016). Efron (2010, 2011) therefore advocated an empirical Bayes procedure for large scale inference, incorporating a plug-in estimate of the marginal likelihood and its derivatives in Tweedie’s formula to correct for selection bias. The procedure does not rely on the particular form of selections and works for selection of any kind, including no selection. For the same reason, selection is not a prerequisite of our method.
It is possible to transform the chi-squared values into z-values, then use Tweedie’s formula for normal distributions, following Efron (2010, 2011), to overcome selection bias. The merit of this approach is to save the trouble of developing a new theory for chi-squared tests. On the other hand, in the process of transformation, we lose the intrinsic meaning of the noncentrality parameter of chi-squared distribution and have to interpret the chi-squared data in normal-distribution terms. In this paper, we develop a separate theory so that the chi-squared data can be interpreted in their own right.
Our contribution is twofold. First, we formulate a somewhat unexpected model showing that Tweedie’s formula can hold outside the exponential family. Secondly, we introduce new statistical tools to carry out a type of post-selection inference for chi-squared data. The rest of the paper is organised as follows. In Section 2, we present a Bayesian hierarchical model, which can accommodate data from a large number of chi-squared tests. In Section 3, we show that it is possible to derive explicit formulae for the posterior mean and variance of the noncentrality parameter from an unspecified prior, which are then employed to construct posterior intervals for the effect size. Section 4 explains how to estimate log-density derivatives in the posterior mean and variance. Section 5 suggests ideas to interpret the noncentrality parameter estimates. Section 6 contains a simulation study on a sparse model with interaction effects, exploring possible applications to variable selection for high-dimensional data. Two real data examples are presented in Section 7. Some concluding remarks are given in Section 8. The proofs are in the appendix.
2 From Problem Description to Statistical Modeling
2.1 A Motivating example
Suppose subjects under study come from several groups. The group membership is decided by either innate or acquired attributes of the subject. For instance, they can be patients subjected to different treatments or individuals from different ethnic groups etc. We would like to test homogeneity among groups with respect to some response variables. In particular, consider the following simple model for the expression level of gene
[TABLE]
where is the vector of expression levels of gene for all subjects in the study, the matrix describing to which group each subject belongs, the vector of parameters determining gene mean expression level for each group, and are random errors.
To find out which among a large number of genes generate inhomogeneous expression levels for subjects from different groups, we test the null hypothesis of homogeneity, which is a test of equality of several group means. This is a linear hypothesis testing problem; see e.g. Chapter 7 of Lehmann (1986). The likelihood ratio test is also the uniform most powerful (UMP) invariant test. The test statistic has -distribution under the null hypothesis and is well approximated by chi-squared distribution when the denominator degrees of freedom (essentially the number of subjects in the study) is large. This situation brings one face to face with a large number of chi-squared tests, one for each gene, simultaneously.
After conducting a large number of chi-squared tests, such as those mentioned above, one selects a subset of large chi-squared statistic values to estimate the effect sizes. The usual parameter estimates based on selected chi-squared values are subjected to selection bias and thus misleading. We next introduce a Bayesian hierarchical model to address the selection bias issue amid a large number of chi-squared tests.
For easy reference, we record here the chi-squared density function with degrees
[TABLE]
where is the celebrated gamma function. It is known that the non-central chi-squared distribution with noncentrality parameter can be written as the Poisson mixture of chi-squared densities as follows
[TABLE]
Let be the prior distribution function over . Whenever necessary, we assume that the prior density exists and denote it by . The marginal density function is and the posterior density equals .
We encapsulate the preceding results in a Bayesian hierarchical model as follows
[TABLE]
First draw the noncentrality parameter from the unspecified prior distribution . Next generate a non-negative integer according to a Poisson distribution with mean . Then sample from the chi-squared population with degrees of freedom. Thus condition on , has a noncentral chi-squared distribution with noncentrality parameter and degrees of freedom. Repeating (2.2) times, we arrive at (1.1), a generative model for data from a large number of chi-squared tests.
2.2 Noncentrality parameter as effect size of chi-squared test
Chi-squared statistics often arise as the sum of square independent normal variates . For instance, dropping the index in the linear model (2.1) to test the null hypothesis for , the -statistic up to a constant equals
[TABLE]
where and are the maximum likelihood estimates of and the variance of random errors, respectively. The asymptotic distribution of is the same as with .
Under the alternative hypothesis , has noncentral chi-squared distribution with noncentrality parameter . The distribution of depends on only through the noncentrality parameter due to rotational invariance of the normal distribution. If we view as the effect size of , then the noncentrality parameter equals the squared distance between the null and non-null mean vectors.
The noncentral chi-squared distributions are stochastically increasing in the noncentralily parameter ; see e.g. van der Vaart (1998). Hence the power of a chi-squared test is an increasing function of , which implies that the test with higher underlying noncentrality parameter has higher power. Sometimes, this monotone relationship can be quite simple to describe using . Cox and Reid (1987) obtained the following approximation of a noncentral chi-squared probability by a central one for small
[TABLE]
In brief, common alternative hypotheses for chi-squared tests and rotational invariance of normal distributions lead to noncentral chi-squared distributions with noncentrality parameter , which has intrinsic geometrical meaning. Moreover, the noncentrality parameter ranks chi-squared tests according to their powers. These facts together provide compelling reasons to adopt the noncentrality parameter as the effect size of chi-squared tests.
3 Tweedie’s Formula for Chi-squared Data
The main result of this section concerns the posterior mean of model (2.2).
Theorem 1
Under model (2.2) with and an unspecified prior distribution , the posterior mean of the effect size given the observed value can be calculated from the marginal log-density derivatives according to
[TABLE]
where and equal the first and second derivatives of the marginal log-density, respectively.
3.1 Preliminary results for posterior mean
To help appreciate the implications of Theorem 1, we will go through a few preliminary results. When a chi-squared statistic is observed under model (2.2), then
[TABLE]
where is calculated under null degrees of freedom. To proceed further, we need
Lemma 1
The following relationship holds between the marginal density and its derivative under model (2.2)
[TABLE]
or equivalently .
Proof Taking the derivative of chi-squared density function
[TABLE]
and integrating with respect to and to obtain yield the desired result.
Applying Lemma 1 and (3.2), we arrive at the following result.
Proposition 1
Assume that data are generated from model (2.2) with and an unspecified prior distribution , the posterior mean of noncentral parameter given
[TABLE]
where is the derivative of marginal log likelihood with degrees of freedom.
We can view (3.3) as a preliminary Tweedie’s formula for chi-squared distribution. It bears considerable resemblance to Tweedie’s formula for the normal distribution
[TABLE]
The most visible feature in Tweedie’s formula for normal distributions (3.4) and chi-squared distributions (3.3) is that both depend on marginal log likelihood in an essential way. Since , reflects the effect size in (2.2). At the risk of terminology abuse, call the ‘pseudo-observed’ effect size, as (2.2) has one step closer to the observed value than . The variance of chi-squared random variable is twice the mean, which explains the ‘2’ in . Altogether we see remarkable similarity between Tweedie’s formula for the normal and the chi-squared distributions, matching everywhere except for the curious appearance of instead of as the null degrees of freedom in .
Figure 1(a) indicates that the multiplier of the pseudo-observed value in (3.3) is bigger than one for small , implying the posterior mean is larger than the observed value . For larger value, it is smaller than one, implying the posterior mean is smaller than observed value . For near , the posterior mean is close to the observed value . All these are anticipated bias-correction outcomes of the posterior mean.
Proposition 1 expresses the posterior mean in terms of , the expected effect-size degrees of freedom. We now study how to estimate it from the data. The resulting estimates are inaccurate and we shall not use them for bias correction. Nevertheless, these estimates provide insight into as an important part of the posterior mean.
According to (2.2), in is selected from a chi-squared population with degrees of freedom. If we employ maximum likelihood estimation, then , which leads to
[TABLE]
where . If one prefers the method of moments, then and the corresponding estimate is
[TABLE]
Both methods estimate the effect-size degrees of freedom by soft-thresholding. It appears that the presence of in (3.3) carries a shrinkage effect on the observed value .
3.2 Tweedie’s formula for posterior mean
While being a Tweedie-type of result, (3.3) is not suitable for selection-bias correction, since is not directly estimable by sample data. Although we can estimate by (3.5) and (3.6), both estimates are unsatisfactory and their accuracy does not improve even with infinite amount of data. Here we present a formula for so that the Tweedie’s formula (3.1) of Theorem 1 can be obtained
[TABLE]
The proofs of (3.7) and Theorem 1 are given in the appendix.
The second term, , on the right hand side of (3.7) matches (3.5), which to some extent explains why (3.5) is inaccurate. Comparing to (3.7), (3.5) lacks a bias correction term like the first term on the right hand side of (3.7), which ‘borrows strength’ from nearby observed values, and thus exposes the primitive nature of (3.5) as an estimate of .
The formula (3.1) can be employed to estimate the posterior mean after estimating the 1st and 2nd derivatives of log-density by the sample data. The other useful expression of the posterior mean is given by the following corollary.
Corollary 1
Under the same conditions as Theorem 1, the posterior mean of the model (2.2) can also be written as
[TABLE]
Equation (3.8) reveals that the posterior mean achieves bias correction in two steps, which is totally new to Tweedie’s formula for normally distributed data. The first step is a two-layer multiplicative adjustment of , followed by a deduction by a reduced null degrees of freedom times the first layer of multiplicative adjustment. The next lemma is useful in comparing the two layers of multiplicative adjustment.
Lemma 2
If the marginal density is log concave, then the derivative of marginal log likelihood for each .
Proof. Since
[TABLE]
it is sufficient to prove that for each positive value.
Log concavity of implies that . Using Lemma 1, we can show that
[TABLE]
which is equivalent to . The proof is completed.
Assuming log concavity, Lemma 2 implies that the second layer of correction, , produces smaller adjustment than the first layer for small value because for close to zero. For large value, however, the second layer produces larger adjustment than the first layer since for far away from zero.
The two-layer adjustment is plotted in Figure 1(b) and basically the same as one layer: pulling up small value and pushing down large value of . The adjustment at both ends are obviously magnified by incorporating the second layer.
The bias correction effect of the posterior mean is shown in Figure 2. With only two layers of multiplicative adjustment, the resulting values are too large for small values and have to make an awkward turn around . After a reduction proportional to a reduced null degrees of freedom, the posterior mean increases steadily with , which is what ought to be. Figure 2 also shows that one-layer correction is inadequate because its values are larger than the two-layer values for all values of except for small values on the extreme left of the picture.
3.3 Posterior variance and related results
The following theorem is the main result of this subsection. It gives an expression of the posterior variance, which makes possible direct estimation from sample data.
Theorem 2
In model (2.2) with and unspecified prior distribution , the posterior variance for equals
[TABLE]
Theorem 2 has the posterior variance as the sum of two terms. If the marginal likelihood is log concave, the first term is negative because is negative and its multiplier is positive. The second term, involving , must be positive because the posterior variance would be negative otherwise. It then follows that the multiplier must be positive. This multiplier roughly corresponds to the variance of , if we ignore the difference between the second factorial moment and the second moment of , and the difference between and in the second moment and the first moment of , respectively. With all these modifications to facilitate interpretation, (3.9) presents the posterior variance of as the adjusted variance of by multiplying , followed by a deduction proportional to the second derivative of marginal log likelihood times the second moment of .
In (3.9), we know how to estimate each part on the right hand side from the data directly except for , which is the task we now undertake.
Lemma 3
Under model (2.2), the second factorial moment of can be expressed in terms of the marginal densities with different null degrees of freedom via
[TABLE]
where
[TABLE]
[TABLE]
[TABLE]
where and are the third and fourth order derivative of , respectively.
In Lemma 3, we apply Lemma 1 successively, which results in decreasing null degrees of freedom from to and increasing order of derivatives for . The process begs the question “how far can it go?”. When , we lose the natural interpretation of the chi-squared density as the sum of independent standard normal squares. However, the gamma function can be extended to negative non-integer values via analytic continuation. For odd , we can write down when . Lemma 1 is still valid because the only mathematical property used is . To be more precise, when , is no longer a probability density function but we can formally write it down. It would not cause any problem because we never integrate with respect to in the whole process. Hence, it is straightforward to define based on for both positive and negative so long as it is not an even integer.
When is a nonpositive even integer, we let be zero for all . This definition preserves the validity of Lemma 1 and thus all subsequent results in our paper for nonpositive even values of . To conclude, would not cause problems in derivation and presentation of formulae such as those in Lemma 3 so long as we define the corresponding as described above.
The following theorem answers affirmatively the existence question of the posterior mean and the posterior variance. The proof is given in the appendix.
Theorem 3
Let the prior distribution of the model (2.2) be any probability distribution over . Let , then both the posterior mean and the posterior variance
[TABLE]
exist and are finite for each .
3.4 Effect size posterior intervals
Next we will examine the performance of posterior intervals of the form
[TABLE]
where , the 95% quantile of the standard normal. Posterior intervals of this form are first introduced by Efron (2010); see (11.67) on p. 229 of Efron (2010).
The simulation in Figure 3 is based on repetitions. The coverage rates of the proposed method and the normal transformation method (NT) are and , respectively. Figure 4 is obtained from repetitions, are sampled from the chi-squared distribution with and 10% from the same noncentral chi-squared distribution as in Figure 3. With , the BH procedure selects cases at cutoff value , among them cases are non-null with empirical FDR . The coverage rates for the proposed, NT’s, and BY’s methods are , , and , respectively.
Since the prior distribution in Figure 4 has a point mass at zero , the formulae for posterior mean and variance in Figure 4 need to be adjusted. Let be the local false discovery rate
[TABLE]
see Chapter 5 of Efron (2010). Then
[TABLE]
Let and . Applying (3.11) with , we obtain the posterior mean and posterior variance in Figure 4
[TABLE]
where is given by (3.1), by Theorem 2; see p. 228 of Efron (2010).
Benjamini and Yekutieli (2005) pioneered interval estimates, controlling for the false coverage rate (FCR). In our study, their intervals indeed keep FCR () close to the desired level at the cost of overshooting the intended coverage rate. The intervals are much wider than the proposed ones with the lower half covering a lot more points than the upper half, indicating re-center is needed.
The FCR, however, is unfit for the purpose of the posterior interval. The interpretation of the coverage rate of posterior intervals in Figure 4 is , otherwise . This bifurcated interpretation is inherited from the model and consistent with our goal to estimate the effect size under the alternative hypothesis. The BY’s interval is designed to control coverage rate under both null and alternatives hypotheses . In other words, BY’s method combines two different groups of cases that we want to separate.
In Figures 3 and 4, the normal transformation method (NT) first turns chi-squared values into z-values via , where is the chi-squared CDF and is noncentral chi-squared distributed with noncentrality parameter , both of degrees of freedom. Next find the posterior interval for , using Tweedie’s formula (3.4) for the normal distribution, then convert the interval of to the interval of . For various priors, the NT method works well for small but not so for large . In practice, large values are more interesting and deserve more attention. The NT method runs into problems due to numerical instability of Gaussian quantile transformation for values close to 1. We resort to extrapolation in Figures 3 and 4, otherwise the coverage rate would be even lower. The proposed method, however, does not suffer from such problems. Overall, both methods have reasonable coverage rates, close to 90%, and the latter is somewhat better.
Another way to construct posterior intervals is the -modeling method of Efron (2016), which estimates the prior density via deconvolution; also see Yekutieli and Weinstein (2019). Efron (2016) adopted exponential family modelling of . Figure 5 compares 90% posterior intervals of the -modelling method to the proposed method, where the log-density derivatives are estimated by the PLE method in Section 4. In Figure 5(a), the coverage rates of the proposed method and the -modeling method are and , and 90.2% and 91.6% in Figure 5 (b), respectively. The coverage rates of both methods are quite close to each other and to the nominal level.
3.5 Justification for posterior interval
Figures 3 and 4 show that the posterior interval has coverage probability close to the nominal level. In both simulation studies, the posterior interval performs as anticipated. We now explain why one can expect the posterior interval for large values to have coverage probability close to the desired level in general. By (A.3), we have an upper bound for the non-central chi-squared density
[TABLE]
where is a polynomial and inconsequential for it is cancelled in both the numerator and denominator of the posterior density . More detailed analysis refines the preceding upper bound , where and are two algebraic functions playing minor roles in the shape of the posterior distribution. As a result, the crucial part of is the exponential term
[TABLE]
which is log-concave (thus unimodal) and roughly symmetric in . If is log-concave, so is . Several well-known families of distributions over have log-concave densities; e.g. gamma, uniform, truncated normal, truncated logistic, Weibull etc. Furthermore, , indicates that the larger the the more pivotal in the log-concavity (unimodality) of the posterior density.
In conclusion, recognizing as the commanding part of noncentral chi-squared density, one can reasonably expect the posterior density for large values to be unimodal and roughly symmetric. This conclusion is supported by numerical and Monte Carlo experiments. Therefore, the posterior distribution is well summarized by the posterior mean and posterior variance via posterior intervals, just like the mean and variance in prediction intervals for normal distributions.
4 Log-Density Derivative Estimation
To apply the formulae of the posterior mean in Theorem 1 and posterior variance in Theorem 2 to data analysis of latter sections requires the estimation of log density derivatives. Such estimates in Figures 6-8 were provided by a penalized least squares (PLE) method introduced in Hyvärinen (2005) and Sasaki et al. (2014), which we now describe.
4.1 Penalized least squares and score matching
Assume square error loss for log-density derivative estimation
[TABLE]
where the last equality follows from integration by parts and denotes a constant independent of the estimate . Assume the boundary condition , then the square error loss is equivalent to
[TABLE]
which suggests that one should minimize the sample version of square error loss
[TABLE]
The above described technique leading to (4.1) is referred to as score matching by Hyvärinen (2005). Suppose that the desired estimate comes from a space spanned by a collection of basis functions
[TABLE]
where . In Figures 6-8, we adopt B-spline basis functions.
Adding the -regularizer to the square error loss (4.1) results in the PLE criterion
[TABLE]
where , and . The solution of (4.2) equals
[TABLE]
As usual, the tuning parameter is chosen by cross-validation. Accordingly, the first order log-density derivative is estimated by . The second derivative can be estimated analogously. Specifically, we adopt the score matching technique to estimate , and then convert it to an estimate of via .
4.2 Discussion of the PLE method
The PLE method described above is quite fitting for the estimation of the posterior mean and variance, and produces satisfactory results for it estimates the log-density derivatives directly. As we know well, a good density estimate does not necessarily produce accurate estimates of its derivatives and it is better to estimate the density derivatives directly.
The score matching technique is quite flexible and can be used to estimate higher order log-density derivatives, which appear in the posterior variance formula. Even though PLE can handle higher order density derivatives, it is helpful to note that the 3rd and 4th derivatives are essentially zero for large values. To see this, let’s consider
[TABLE]
where
[TABLE]
Differentiating to get 3rd and 4th derivatives of the log-density reveals that the first terms are and , respectively, which converge to zero very fast as . More elaborated analysis of the last term shows that the convergence rates are actually and .
In brief, estimating log-density derivatives directly without first estimating lower order derivatives, the PLE method suits our purpose here. The higher order derivatives in posterior variance are negligible for large values. These facts together adequately address the estimation issue of log-density derivatives.
5 Interpretation of Posterior Mean Estimates
In Theorems 1 and 2, after plugging in the estimated log density derivatives, we obtain estimates for the posterior mean and variance of noncentrality parameter. Here we suggest ideas to interpret such estimates. The ideas are grouped under two definitions: posterior significance for point estimates and posterior dominance for interval estimates.
5.1 Posterior significance
*Begin with average per DF
*The noncentrality parameter equals the sum of squared effects over components. Thus the posterior mean represents the total contribution from degrees of freedom (DF). Having observed without information on individual contribution from each DF, it is natural to begin our analysis with the average per DF. Average per DF is also the contribution allocated to each DF by the maximum entropy distribution. By the maximum entropy principle, after observing the total contribution, the best guess of the state is that the individual contribution from each DF equals the average per DF because such a state has maximum entropy. Thus for interpreting a point estimate of the posterior mean , it makes sense to base that on the average per DF.
*Calibrate average per DF
*By (2.2), the observed value has chi-squared distribution with DF
[TABLE]
where ’s are independent standard normal random variables. Under the null hypothesis, has chi-squared distribution with DF so the sum of the first ’s contains no information on . If its value were known, one would subtract that from , then the sum of remaining ’s is an unbiased estimate of . Thus we can rightfully refer to the sum of the first as ‘noise’ and the sum of remaining ’s as ‘signal’. Both the signal and noise consist of chi-squared one random variables as the basic unit. In particular, the contribution to per DF under the null hypothesis is chi-squared one distributed. Therefore we calibrate the average per DF by chi-squared one. These considerations call for the following definition.
Definition 1 is posteriorly significant at -level per degrees of freedom, if
[TABLE]
where is the -quantile of a standard normal distribution so that . For example, is posteriorly significant at level with DF, it means
[TABLE]
If a posterior mean is posteriorly significant at 10%, then the average per DF is larger than 90% of the noises. Knowing that the noise and selection bias have already been removed in the posterior mean supposedly, it is very significant that a point estimate of the posterior mean exceeds 90% noises per DF and such a result should be highlighted in data analysis.
5.2 Posterior dominance
*Interval estimate
*As interval estimates accommodate sampling variation, posterior intervals accommodate variation when sampling from the posterior distribution. The posterior interval of (3.10) gives the range that covers about 90% of the values from the posterior distribution at .
*A point estimate above an interval estimate
*If a posterior mean is above another 90% posterior interval, the former posterior mean not only is larger than the latter posterior mean but also larger than 90% of the values sampled from the latter posterior distribution. This type of strong results leads to
Definition 2 posteriorly dominates at level , if
[TABLE]
For instance,
[TABLE]
then dominates with posterior probability at least 90%. The ‘at least’ here is because is at least as high as the upper limit of the interval at and thus the concerned posterior probability is actually close to .
*One interval estimate above another
*The strongest possible type of results considered in this section is when the posterior interval at is entirely above that at the other value . It indicates that except for a small bottom portion, the former posterior distribution has all its values larger than all values except for a small top portion of the latter posterior distribution.
Definition 3 The posterior interval at dominates the other at at level, when
[TABLE]
In the next two sections, we will apply the concepts of posterior significance and posterior (interval) dominance defined above to interpret the results in the simulation study and real data examples, where the posterior mean and intervals are estimated from the sample data.
6 Variable Selection via Chi-squared Statistic
Let be i.i.d. Bernoulli distributed with . Consider the following model for the response variable ,
[TABLE]
where is independent normal distributed with mean zero and standard deviation . The expression in (6.1) is the celebrated XOR function, a classical example in neural networks demonstrating that a nonlinear function can be learned via hidden layers, whereas the part involving is the triplet version of XOR; see e.g. §6.1 of Goodfellow et al. (2017). The model (6.1) has nature flip a fair coin. If head (tail) appears, then equals the XOR function (the triplet version) plus the random error , respectively.
Simulate 300 i.i.d. copies of , where obeys (6.1), as the data matrix (). Each triplet divides the data into 8 groups according to . Let be the sample mean of ’s and be the mean of observations in -th group and be the sample variance of ’s.
To see how the variables in a triplet jointly affect the value of , we employ the chi-squared statistic
[TABLE]
where represents the partition of 8 groups by -th triplet. Thus equals the sum of squared standardized deviations of group means from the sample mean over 8 groups. When , that is, the triplet contains no causal variables, is asymptotically chi-squared distributed with degrees of freedom since the population mean estimated by the sample mean costs one degree of freedom.
We compute the -values for all triplets. Then apply the BH procedure with to select triplets. The results are given in Figure 6(a). The far right point concerns the -value of ; the middle trunk consists of -values of triplets , ; the horizontal lines are , , and with , respectively.
The triplets and are distinctively separated from other triplets. These 99 triplets have their effect size estimates attain posterior significance at 10% level. They also achieve posterior interval dominance over other triples at 90% level. That is, the lower limits of 99 posterior intervals on the right all exceed the upper limits of the other 8 posterior intervals on the left. Therefore, the data provide strong, if not overwhelming, evidence that these 99 triplets contain causal variables that influence the values of . The preceding analysis suggests that .
Assume that the underlying model is sparse, then one can infer that are included in the high-scored triplet because they are free-riders with . Dropping from yields a more significant result for . Therefore, Figure 6(a) indicates that the proposed method can correctly identify two signaling modules, and from many irrelevant -variables.
The posterior mean estimated by the normal transformation method for the top 99 triplets are larger and appear more significant. However, these estimates are unreliable for two reasons. First, the corresponding posterior intervals are too wide. More importantly, these posterior mean estimates do not carry shrinkage effect and are larger than the corresponding -values. This is not supposed to happen as the estimates are corrected for selection bias. These results occur possibly due to unsatisfactory density derivative estimates by Poisson regression method that comes with the normal transformation method.
For comparison, we expand the design matrix by adding all of the two-way and three-way interaction terms and run the LASSO analysis of Tibshirani (1996) to select the relevant variables. We adopt -fold cross-validation to estimate the mean squared error (MSE) curve for given values of tuning parameter in Figure 6(b).
Persistently decreasing MSE implies that the LASSO fails to select any variable, possibly because it is designed to detect main effects instead of interaction. The LASSO is correlation-based and under (6.1) all relevant variables have zero correlation with so that it is difficult for the LASSO to pick up the signal in these variables. Consequently, other correlation-based variable selection methods are likely to experience the same difficulty with (6.1). Further discussion are in Section 8.
7 Real Data Examples
7.1 Differences in gene expression among ethnic groups
We apply the proposed method to the microarray data first analyzed in Spielman et al. (2007) to characterize genetic variation among four ethnic groups. The dataset consists of annotated genes expression levels of individuals from four populations. These include European-derived individuals from the Utah pedigrees of the Centre d’Etude du Polyporphisme Humain (CEU), Han Chinese in Beijing (CHB), Japanese in Tokyo (JPT), and from the Han Chinese in Los Angeles (CHLA). While Spielman et al. (2007) reported that of gene expression levels differ significantly between populations, possibly due to allele frequency differences at cis-linked regulators, some follow-up studies (Leek et al., 2010) criticized the pervasive significance because the populations and processing dates are highly correlated. Strong batch effects such as the processing dates should be accounted for before any significance test is conducted.
For each gene, the following statistical model decomposes the expression level into contributions from three sources: ethnic group membership, latent common factors, and random errors. Specifically, the expression level of th-gene,
[TABLE]
where is the contrast matrix for the group membership, denotes the latent common factors, and is the random error with constant variance . The latent factor part is estimated by using the restricted principle component analysis algorithm proposed by Du and Zhang (2017). Then a chi-squared statistic is employed to test homogeneity among the four groups. The test statistic , which has chi-squared distribution with degrees of freedom asymptotically under the null hypothesis, is computed as
[TABLE]
where is the root mean squared error of the -th regression and is the dummy matrix for testing the homogeneity hypothesis .
At FDR = 0.10, 164 genes were identified and their corresponding posterior intervals are shown in Figure 7. The results indicate that 58 and 26 out of 164 genes achieve posterior significance at 10% and 5% levels, respectively. The two genes on the far right with the largest effect sizes attain posterior dominance over other genes at 90% level.
The posterior intervals of both the proposed and the normal transformation methods are all above zero, but the latter intervals are wider and further away from zero, with 87 and 33 genes posterior significant at 10% and 5%, respectively. These results are consistent with findings from simulation studies that the normal transformation method has a smaller shrinkage effect than the proposed method for large test statistic values.
7.2 Gene expression profiling and breast cancer metastasis
The data set of this example is taken from the study in van’t Veer et al. (2002). About of breast cancer patients would benefit from chemotherapy or hormonal therapy, which reduces the risk of distant metastasis. The other - of patients would survive without the adjuvant therapies. van’t Veer et al. (2002) advocated using gene expression profiling to select breast cancer patients for such therapies. The original data contain the expression levels of over 20,000 genes for each of 78 breast cancer patients, which they used as the training set in developing their prognosis classifier. After pre-processing, 4918 gene expression levels are retained for our analysis.
The paper, van’t Veer et al. (2002), is well cited and the dataset has been extensively analyzed by numerous authors using a wide variety of feature selection and classification methods; see e.g. Wang et al. (2012) for a brief review. The classification error rates (with correct cross-validation) reported in the literature up to year 2011 typically are around 30%. Some authors suspect that the high error rates are due to interactions among genes have not been accounted for and methods applied to the dataset only consider the main effect of genes. Wang et al. (2012) proposed an interaction-based feature selection and classification method, which yields a cross-validated error rate of 8%. However, it focused on prediction and statistical inference was largely ignored. Here, under model (2.2), we would like to see if there is statistical evidence of higher order interactions in the data.
The response variable , if the patient is free from disease in an interval of at least five years after initial diagnosis, and , if the patient develops distant metastasis in five years. Order expression levels of each gene for 78 patients from large to small. Let (high expression) or (low expression) depending on the patient belong to the upper or lower half, respectively, in the ordered gene expression levels.
We examine the interaction among 4918 genes via the chi-squared statistic
[TABLE]
where represents the partition of the sample into 8 groups by the triplet . The sample mean, group means, and the sample variance of are denoted by , and , respectively. We use the statistic to capture three-way interactions in triplets. The reason for focusing on three-way interaction is that two-way interaction is deemed too simple to explain complex disease such as breast cancer, while four-way interaction is computationally prohibiting.
We compute the chi-squared statistic for all triplets. It takes about 28 hours on a PC with two CPU of 2.66G Hz each. Thus with parallel computing, it can be done in a few hours, a very manageable task. From the top 50,000 -values, we identify 35 non-overlap triplets by going down the ordered list, removing all triplets overlapped with previously retained ones of higher -values. This is for reducing the dependence among overlapping triplets. Then randomly select 10,000 triplets and combine with the 35 non-overlapped ones to produce the posterior bands in Figure 8.
With a little over 10,000 triplets, we can cover nearly all genes (missing only 7 out of 4918 genes in a simulation experiment). It is reasonably close to the minimum number of randomly selected triplets that achieves nearly complete coverage (a naive approximation via coupon collector’s problem yields an expected value of around 12,000). If we go well beyond 10,000 triplets, then there would be too many overlapped genes and the dependence problem becomes severe. On the other hand, using substantially below 10,000 triplets not only leaves a sizable subset of genes uncovered but also produces unreasonable posterior mean estimates. Therefore, with a random sample of around 10,000 triplets, we have a comprehensive coverage of the whole gene pool and not too many overlapped genes in triplets, which may otherwise distort the findings due to dependence.
Using the BH procedure with FDR = 0.10, 37 triplets are selected and their corresponding point and interval estimates are in Figure 8. Nearly all (34 out 35) triplets from the top 50,000 triplets attain 10% posterior significance, while 11 reach 5% level. Moreover, 34 triplets on the right achieve posterior dominance over two triplets on the far left at 90% level. These results imply that . The preceding analysis indicates that there is considerable evidence of higher order interactions among top-scored triplets. To predict the metastasis status of a breast cancer patient, it is advisable to incorporate higher order interactions as in Wang et al. (2012).
For this dataset, the normal transformation method produces unreasonable results. Specifically, the posterior mean for is even larger than , losing the shrinkage effect expected of any selection bias corrected estimate. Furthermore, the posterior intervals are much wider than those of the proposed method. This is particularly so for large values. These results confirm previous findings from the simulation studies in Section 3.2 that the normal transformation method does not perform well for large values.
Gene-gene interaction or epistasis is much more challenging to analyse than a single gene because of combinatorial explosion. There are just too many gene combinations to investigate. Thus in the literature, many gene-interaction studies confine themselves within established gene sets or genetic pathways; see e.g. Zhang et al. (2009). Others studies investigate gene combinations up to certain level (mostly pairwise) and require extremely small p-values to claim significance; see e.g. Chu et al. (2014). However, small p-values do not necessarily lead to sizeable effects. The tools developed in this paper make possible the assessment of the effect size of gene interaction without involving biological information. It is interesting to compare the findings with those from existing gene networks/pathways, an issue of quite different nature and we shall not pursue that here.
8 Concluding Remarks and Discussions
For large scale inference, controlling FDR is now a standard practice after performing a large number of hypothesis tests. Suppose that controlling FDR selects a small subset of supposedly non-null cases to estimate their effect sizes. In this regards, Efron (2010) proposed an empirical Bayes method based on Tweedie’s formula for normal data.
Tweedie’s formula captures selection bias in a simple relationship involving the marginal likelihood, which allows direct estimation by sample data. Here we develop a parallel formulation for chi-squared data. A Bayesian hierarchical model is introduced as the starting point. We also examine a few new phenomena in the resulting Tweedie’s formula, which may inspire the construction of new data-dependent procedures for bias correction.
One application of Efron (2011) is the -test whereas ours is the chi-squared test. Both are time-honored statistical tests. In variable selection for high dimensional data, -tests are useful in linear main effect models, while chi-squared tests can be applied to models with sparsity, nonlinearity, interaction, and mixture features such as the one in Section 6.
The simulation study in Section 6 is intriguing in three aspects. First, having its root in deep learning, (6.1) differs from the usual regression models for high dimensional data. It is challenging to identify the causal variables not only because (6.1) is highly nonlinear with interactions as large as main effects in size and opposite in sign, but also because all causal variables in a signaling module have to be identified together. An incomplete module behaves like noises since each causal variable has zero correlation with the response variable. Secondly, (6.1) bears no resemblance to (2.2). However, statistical tools derived from (2.2) can identify two signaling modules perfectly as if the tools were designed specifically for (6.1). Thirdly, the shape of posterior bands in Figures 6(a) and 8 are similar, though the former is based on simulated data and the latter comes from real data. Does it mean that the real data are generated by a mechanism sharing something in common with (6.1)?
Two real data applications are considered: interaction-based variable selection for high dimensional data paving the way for prediction of breast cancer metastasis, and testing genetic homogeneity among ethnic groups with confounding latent factors. We provide point and interval estimates corrected for selection bias and interpret these estimates to assess different levels of evidence among selected chi-squared statistics.
Several issues remain to be explored. We argue in Section 3.5 that one can expect the posterior distribution to be unimodal for large . What is the best condition to ensure unimodality of the posterior distribution under (2.2)? Unimodality provides support for the posterior intervals proposed in Section 3.2. How to estimate and adjust for skewness in the posterior distribution? Skewness adjustment would improve the coverage rate of posterior intervals. We redesign the PLE method in Hyvärinen (2005) and Sasaki et al. (2014) to provide reliable log-density derivative estimates. What optimal properties does the PLE method have? All these issues will be addressed in another paper.
Appendix
Proofs of (3.7) and Theorem 1 Let so that . The chi-squared density assures that and
[TABLE]
Consequently,
[TABLE]
where the second equation is obtained by repeatedly applying Lemma 1. Substituting the preceding equation, which is exactly (3.7), into (3.3), we obtain Theorem 1 and (3.1).
Proof of Theorem 2 We begin with
[TABLE]
Apply Lemma 1 twice, first on then on , to obtain
[TABLE]
then by (A.1)
[TABLE]
In view of
[TABLE]
the proof is complete.
Proof of Lemma 3 The chi-squared density satisfies
[TABLE]
Thus
[TABLE]
Since
[TABLE]
combining (A.2) and (3.7) with replaced by , we obtain the desired expression for . Furthermore, the equations for and follow from applying Lemma 1 successively on subscript , which goes backward at step size of 2.
Proof of Theorem 3 We first bound the noncentral chi squared density as follows.
[TABLE]
Let . By (A.3),
[TABLE]
The integrand of the integral above
[TABLE]
because grows at a polynomial rate and at an exponential rate as . Since the integrand is continuous, it must be bounded over . This implies that for each . The proof is completed by observing
[TABLE]
**Acknowledgement
**We thank the Editor, Associate Editor and reviewers for helpful comments and suggestions. The initial ideas of this work were conceived while Inchi Hu was on sabbatical leave in Taiwan 2016/2017. The hospitality of Professors Mei-Hui Guo and Mong-Na Lo Huang of National Sun Yat Sen University, Professor Cheng-Der Fuh of National Central University, Professors Yi-Ching Yao and Feng-Shun Chai of Institute of Statistical Science, Academia Sinica, and Professor Chii-Ruey Hwang of Institute of Mathematics, Academia Sinica is gratefully acknowledged. The research of Inchi Hu is supported by Grant SGI19BM01 and Lilun Du by Hong Kong RGC ECS26301216.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Benjamini and Hochberg (1995) Benjamini, Y., and Hochberg, Y. (1995). Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal Statistical Society, Ser. B , 57 , 289-300.
- 2Benjamini and Yekutieli (2005) Benjamini, Y., and Yekutieli, D. (2005). False discovery rate-adjusted multiple confidence intervals for selected parameters. Journal of the American Statistical Association , 100 , 71-93.
- 3Brown (1971) Brown, L. D. (1971). Admissible estimators, recurrent diffusions, and insoluble boundary value problems. Annuals of Mathematical Statistics , 42 , 855-903.
- 4Brown et al. (2013) Brown, L. D., Greenshtein, E., and Ritov, Y. (2013). The Poisson compound decision problem revisited. Journal of the American Statistical Association , 108 , 741–749.
- 5Chu et al. (2014) Chu, M.J., et al. (2014). A genome-wide gene-gene interaction analysis identifies an epistatic gene pair for lung cancer susceptibility in Han Chinese. Carcinogenesis , 35 (3), 572-577
- 6Cox and Reid (1987) Cox, D. R., and Reid, N. (1987). Approximation to noncentral distributions. Canadian Journal of Statistics , 15 , 105-114
- 7Dawid (1994) Dawid, A. (1994). Selection paradoxes of Bayesian inference. in Multivariate Analysis and its Applications (Hong Kong, 1992). IMS Lecture Notes Monograph Series, Vol. 24 , Hayward CA: IMS, 211-220.
- 8Du and Zhang (2017) Du, L., and Zhang, C.M. (2017). Estimation of false discovery proportion in multiple testing: from normal to chi-squared test statistics. Electronic Journal of Statistics , 11 , 1048–1091.
