Variational Nonparametric Discriminant Analysis
Weichang Yu, Lamiae Azizi, John T. Ormerod

TL;DR
This paper introduces a Bayesian nonparametric discriminant analysis model that effectively performs variable selection and classification in high-dimensional data without relying on restrictive distributional assumptions.
Contribution
It proposes a novel framework using Pólya tree priors and collapsed variational Bayes inference, enabling flexible, low-cost classification with interpretable decision rules.
Findings
Performs well on simulated datasets
Outperforms current state-of-the-art methods
Provides interpretable decision rules
Abstract
Variable selection and classification are common objectives in the analysis of high-dimensional data. Most such methods make distributional assumptions that may not be compatible with the diverse families of distributions data can take. A novel Bayesian nonparametric discriminant analysis model that performs both variable selection and classification within a seamless framework is proposed. P{\'o}lya tree priors are assigned to the unknown group-conditional distributions to account for their uncertainty, and allow prior beliefs about the distributions to be incorporated simply as hyperparameters. The adoption of collapsed variational Bayes inference in combination with a chain of functional approximations led to an algorithm with low computational cost. The resultant decision rules carry heuristic interpretations and are related to an existing two-sample Bayesian nonparametric…
| Table 1 Pólya tree construction scheme |
| 1. Construct the dyadic tree in Figure 1 by specifying recursive partitions |
| of the domain . Note that each tree layer is a partition of and the |
| recursive relationship between successive layers is: , |
| , and so on. |
| 2. Set as the collection of partition-subsets |
| obtained by taking the union of the partitions in step 1. |
| Remark: Notice that the partition-subsets are enumerated with binary |
| representations. These representations carry information about the path |
| down the tree which is taken to reach the subset from the start point at . |
| In particular, a ‘0’ indicates branching in the leftward direction, whereas ‘1’ |
| denotes branching rightwards. For example, the subset denotes |
| branching right from followed by branching left from |
| and finally branching left again from . |
| 3. Specify an infinite set of non-negative numbers: |
| . |
| 4. Attach random probabilities at all edges on the tree. For every binary |
| representation , draw independently |
| 5. Set the probability of each partition-subset as the product of the |
| probabilities along the path taken. For example, . |
| Table 2 Iterative scheme for obtaining the parameters of the optimal |
| densities . |
| Require: For each , initialise with a number in . |
| while is greater than tolerance , do |
| At iteration , compute for , |
| 1: |
| 2: |
| Upon convergence of , compute for , |
| 3: |
| Table 3 Method for choosing |
|---|
| 1. Under , we assess the goodness of fit of to for each by the |
| p-value of an appropriate hypothesis test, eg. the Shapiro-wilk’s test. |
| Here, a large p-value favours a large . |
| 2. Under , we assess the distance between and by computing |
| the p-value of a Kolmogorov-Smirnov test. Here, a large p-value favours |
| a large . |
| 3. Denote the p-values computed in steps 1 and 2 by and |
| respectively. Let be the p-value of whichever or is true, i.e. |
| if is true; otherwise. Calculate the prior expected |
| value of : |
| . |
| 4. Rank the expected values in ascending order: . |
| 5. Assign |
| where are constants that may be chosen from the range |
| to minimise resubstitution classification error in the training data. |
| Sim. Set. | VLDA | VQDA | penLDA | NSC | naïveBayesKernel | VNPDA |
|---|---|---|---|---|---|---|
| Sim. 1 | 89.91 | 75.72 | 83.07 | 87.13 | 93.10 | 97.62 |
| Sim. 2 | 97.02 | 76.22 | 96.58 | 95.87 | 94.38 | 93.36 |
| Sim. 3 | 90.40 | 74.37 | 82.72 | 89.48 | 92.25 | 99.09 |
| Sim. 4 | 89.93 | 81.84 | 79.90 | 86.36 | 95.55 | 96.60 |
| Sim. 5 | 89.97 | 72.52 | 82.69 | 87.32 | 85.68 | 90.00 |
| Sim. 6 | 97.85 | 81.98 | 97.88 | 96.12 | 92.66 | 92.48 |
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBayesian Methods and Mixture Models · Statistical Methods and Inference · Gene expression and cancer classification
Variational Nonparametric Discriminant Analysis
Weichang Yu
Lamiae Azizi
John T. Ormerod
School of Mathematics and Statistics, University of Sydney
ARC Centre of Excellence for Mathematical and Statistical Frontiers,
The University of Melbourne, Parkville VIC 3010, Australia
Abstract
Variable selection and classification are common objectives in the analysis of high-dimensional data. Most such methods make distributional assumptions that may not be compatible with the diverse families of distributions data can take. A novel Bayesian nonparametric discriminant analysis model that performs both variable selection and classification within a seamless framework is proposed. Pólya tree priors are assigned to the unknown group-conditional distributions to account for their uncertainty, and allow prior beliefs about the distributions to be incorporated simply as hyperparameters. The adoption of collapsed variational Bayes inference in combination with a chain of functional approximations led to an algorithm with low computational cost. The resultant decision rules carry heuristic interpretations and are related to an existing two-sample Bayesian nonparametric hypothesis test. By an application to some simulated and publicly available real datasets, the proposed method exhibits good performance when compared to current state-of-the-art approaches.
keywords:
Variational inference , Bayesian nonparametrics , Pólya trees , Classification , Variable selection , High dimensional statistics.
††journal: Computational Statistics and Data Analysis
1 Introduction
Discriminant analysis (DA) is a classifier that has seen several recent applications in high dimensional data analysis. In the context of two response groups (group 1 and group 0), DA classifies a new observation to group 1 if the likelihood of the variables and response evaluated at group 1 is greater than the likelihood evaluated at group 0. To facilitate the computation of the likelihood, the group-conditional distribution (the conditional distribution given the response) of the predictor-variables is commonly assumed to be Gaussian as with the popular variants such as linear discriminant analysis and quadratic discriminant analysis (Fisher, 1936; McLachlan, 1992).
Drawbacks of traditional formulations of DA for high-dimensional data analysis include the lack of variable selection options, and restrictive distributional assumptions. Variable selection techniques are important because they overcome the gradual accumulation of estimation errors as the number of variables increases (Fan and Lv, 2010). In addition, erroneous assumptions imposed on the diverse range of distributional families from which the variables could be drawn may lead to an inflation of classification errors. While extensions that perform variable selection are available (see for example: Friedman, 1989; Ahdesmäki and Strimmer, 2010; Witten and Tibshirani, 2011; Yu et al., 2018), most of these rely on normality assumptions that do not hold in general. Other extensions perform dimension reduction at the pre-classification stage that sacrifice the interpretability of results which is usually required to shed light on underlying scientific questions (see for example Sugiyama, 2007).
While solutions such as monotonic transformations (see for example Box and Cox, 1964; Benjamini and Speed, 2012) and finite mixture modelling for the group-conditional distributions (Hastie and Tibshirani, 1993; Celeux, 2006) can improve the fit of the data, problems can still arise. In particular, finite mixture modelling is still subject to model misspecification if the number of mixture components and/or the mixture densities are incorrectly specified (Fraley and Raftery, 2002).
Model specification problems can be mitigated by adopting nonparametric approaches as they do not confine the model space to a particular parametric family of distributions. An example of the nonparametric approach is to estimate the unknown group-conditional distributions with kernel density estimators (see Hall and Wand, 1988; Ghosh and Chaudhuri, 2004; Ghosh et al., 2006). However, the density may be undersmoothed in regions of the domain space where there are few observations.
In Bayesian nonparametrics, the unknown distributions are regarded as random measures, and assigned a prior on the space of possible distributions. A popular option for this prior is the Dirichlet process mixture that has been incorporated into several DA models (see for example Fuentes-García et al., 2010; Ouyang and Liang, 2017). One alternative has been proposed by Gutiérrez et al. (2014). In their two-stage variable selection and classification procedure for high dimensional data, they assigned a Gaussian process prior in a penalised spline model to identify informative variables, and then a geometric-weighted mixture model for the classification step.
An alternative nonparametric prior is the Pólya tree (Mauldin et al., 1992). Unlike the other Bayesian nonparametric priors, this prior allows information about the unknown distribution to be incorporated as the prior expectation. The Pólya tree has been applied extensively to density estimation, and Bayesian nonparametric hypothesis testing problems (Hanson and Johnson, 2002; Berger and Guglielmi, 2001; Ma and Wong, 2011; Holmes et al., 2015; Cipolli et al., 2016; Filippi and Holmes, 2017). In particular, Chen and Hanson (2014) proposed a Bayesian nonparametric analogue of the multiple samples test that demonstrated superior results to a similar model (Holmes et al., 2015) by assigning a Pólya tree to each of the unknown population distribution. Cipolli et al. (2016) proposed a multiple hypothesis testing framework, and assigned a Pólya tree hyper-prior for the unknown mean parameters of a Gaussian model. However, according to our knowledge, only Cipolli and Hanson (2018) attempted to use multivariate Pólya tree prior on the joint distribution of the variables in the context of classification. Although their proposed method seems to have good performance in most suitable datasets, additional pre-processing is required in high dimensional settings.
In this paper, we propose a novel dual-objective Bayesian nonparametric DA model that makes inference for variable selection and classification in a unified framework. This is achieved by introducing a set of variable selection parameters into the hierarchical framework of the Bayesian DA model, and an independence assumption between variables to handle high dimensionality. We assign a Pólya tree prior to the unknown group-conditionals as a representation of our uncertainty and use collapsed variational Bayes inference to obtain posterior estimates. This combination of prior choice and posterior inference method lead to a classification rule that carries a heuristic interpretation. The heavy computational burden that comes with fitting a nonparametric model is reduced to an acceptable range through several computational shortcuts that follow from functional approximations. This makes our proposed model appealing for analysing high dimensional data.
Our approach builds on the previous works described above, but differs in several ways related to the use of the Pólya tree prior. In Cipolli et al. (2016), the Pólya tree is assigned as a hyperprior to unknown Gaussian means of the data, whereas in our model the Pólya tree is assigned as the prior of the unknown group-conditional distributions that the variables are drawn from. Cipolli and Hanson (2018) assigned a Pólya tree prior on the joint group-conditional distribution of the variables instead of having univariate Pólya tree priors, as is the case with our model. Both of these papers have been proposed for low dimensional data analysis in contrast to our approach that was specifically designed to handle situations in which the number of variables () is greater than the sample size (). Furthermore, we have simplified the model for high dimensional datasets by assuming independence between variables and assigned a separate Pólya tree prior to the group-conditional distribution of each variable.
In Section 2, we will provide a description of our proposed unified model for high dimensional classification and justify the choice of priors. This will also include a brief description of the Pólya tree construction scheme. In Section 3, we will elaborate on the posterior inference of our model, and the heuristic interpretation of our resultant classification rule. This will be followed by a short Section 4 that discusses the setting of a hyperparameter in our model. In Section 5, we compare our proposed model with existing options in simulated, and gene expression datasets. Circumstances that lead to good performance of the model will also be discussed. Finally, we will suggest possible extensions, and conclude in Section 6.
2 Discriminant analysis with variable selection
Consider a data set consisting of observations , where are predictor variables and is the binary response of the th observation respectively. In this paper, we focus on the case of continuous variables, and will defer the discussion of an extension to other variable types to Section 6. By conditioning on the responses , we assume independence between observations, i.e., {\bf x}_{u}\,\raisebox{0.50003pt}{\rotatebox[origin={c}]{90.0}{\models}}\,{\bf x}_{v} where , and between variables, i.e., x_{ih}\,\raisebox{0.50003pt}{\rotatebox[origin={c}]{90.0}{\models}}\,x_{ig} where . The latter is a common assumption for high-dimensional DA models known as the naïve Bayes assumption (see Fan and Fan, 2008; Ahdesmäki and Strimmer, 2010; Witten, 2011; Witten and Tibshirani, 2011). This assumption allows us to circumvent infeasible computations imposed in high dimensional settings (), and has been shown to perform reasonably well under some conditions (Bickel and Levina, 2004; Yu et al., 2018).
Here, we describe a modification of the usual DA model described in McLachlan (1992) that allows for variable selection in the context of pairwise independent variables. Given two distributions and , the group-conditional distributions of the usual discriminant analysis are
[TABLE]
To extend this model to select discriminative variables, we shall introduce a set of binary variable selection parameters Given three distributions , and , each controls the sampling scheme of for as follows:
[TABLE]
and if , then
[TABLE]
Note that corresponds to a case in which variable is discriminative while corresponds to a non-discriminative case.
The binary responses are distributed as
[TABLE]
where the parameter may be interpreted as the prior probability of sampling an observation from response group 1.
2.1 Priors for and
In most applications, the population proportion is unknown and this has also been the case with the data which we have analysed in Section 5. A Bayesian solution is to assign a hyper prior distribution for , and a natural choice of prior would be the beta distribution, i.e.,
[TABLE]
Due to the beta-binomial conjugacy, this choice leads to a closed form expression for the joint density of the model marginalised over which is useful for posterior inference.
A natural choice of prior for the binary variable selection parameters, , is the Bernoulli distribution, i.e.,
[TABLE]
The parameter may be interpreted as the proportion of discriminative variables in the dataset. Following the class of complexity priors (Castillo et al., 2015) that has demonstrated the ability to down-weight high-dimension models while allocating sufficient prior probability to the true model in several problems, we have chosen the hyper prior
[TABLE]
The choice of the constant affects the penalty of the resultant variable selection rule as described later in Section 3.
2.2 Priors for unknown distributions
Yu et al. (2018) modelled the distributions , and , described in (1) and (2) as Gaussian. As discussed in the introduction this is restrictive. Instead we will treat the ’s in this paper as unknown probability measures and assign them a Pólya tree prior (Lavine, 1992). This prior is a distribution defined on a family of distributions on a domain . Hence, one draw from a Pólya tree is a particular probability distribution. The process to draw a distribution from a Pólya tree is described in Table 2.2.
Following the Pólya tree prior construction scheme, we specify our priors for the unknown distributional components of variable as
[TABLE]
for some collections of partition-subsets and non-negative numbers .
We consider the setting of hyperparameters and . Their choices should depend on the domain and prior information about the unknown distributional components of variable . Since we are considering only continuous variables here, we ensure that each of the unknown distributional components is continuous with probability one (Blackwell, 1973) by adopting the canonical choice for (Lavine, 1992) as follows. Let bin denote the set of all binary representations. For any , set
[TABLE]
where is the length of and , are smoothing parameters.
We have allowed the smoothing parameters to vary between variables This differs from other papers (Hanson, 2006; Cipolli et al., 2016) that deal with multivariate data in which a common smoothing parameter was used instead of a separate smoothing parameter for each variable . Although such a specification incurs extra computational cost, we found it to be a necessary price to pay as it takes into account the varying closeness between the distribution of each variable to its respective Pólya tree centring distribution which we shall describe here.
The partitions may be specified such that the Pólya tree prior is centred about a (fixed) “centring” distribution , i.e., for all measurable subsets . This is implemented through the following scheme - for any binary representation ,
[TABLE]
where is the length of , the binary digit if the path involves branching left at layer of the tree; and otherwise. We denote a Pólya tree prior centred about by . In our model, we set , where is the Gaussian distribution parameterised by sample moments as were similarly specified in Chen and Hanson (2014), Holmes et al. (2015), and Cipolli and Hanson (2018). This is in line with other DA models that outrightly assume a Gaussian distribution for the variables. However, unlike these Gaussian DA models, the choice of has little influence on the posterior inference as it will be overruled by a sufficient amount of data.
3 Model inference
The objective of our model is to identify the discriminative variables and classify new observations. Suppose we have observed as realisations of the model in Section 2. Let denote new observations to be classified. The required posterior is
[TABLE]
where and are the responses and variables of the new observations respectively. Clearly, this posterior is intractable as it requires a sum of over combinations of .
We will utilise the collapsed variational Bayes (CVB) as described in Teh et al. (2007) to approximate the required posterior. This choice of posterior inference stems from the scalability of CVB to high dimensional problems. Since we have performed posterior inference with variational inference, we shall name our model the variational nonparametric discriminant analysis (VNPDA).
The CVB approach approximates the actual posterior in (7) with a product of densities of the form
[TABLE]
that minimises the KL-divergence
[TABLE]
where is an expectation with respect to . The product components of this optimal -density may be obtained via the iterative equation:
[TABLE]
[TABLE]
where the expectations are taken with respect to and respectively.
Since and are binary random variables, their respective q-densities are Bernoulli probability mass functions and hence we need only to compute their probabilities for , and for . These values are computed with a coordinate ascent algorithm (Blei et al., 2017) as described in Table 3. Details on the derivations of the algorithm may be found in A.
The update equations are as follows.
Update for . Following equation (8), the resultant update equation for is approximately
[TABLE]
where , the column vector is the result of removing the th entry from , the function and the term (refer to equation (A) for explicit expression) is the log Bayes factor of a two-sample Bayesian nonparametric test between the hypotheses against (Holmes et al., 2015). Consequently, is an increasing function of a penalised log Bayes factor.
To keep the computational cost of the CVB algorithm within an acceptable range, we used the following approximations: (i) Taylor’s expansion on nonlinear functions of , e.g. ; (ii) Stirling’s approximation (Abramowitz and Stegun, 2002) on beta functions involving (under the assumption that is small). The reader may refer to A for details on how we have applied the approximations.
Observe that the penalty term is decreasing in . Therefore, the setting of should be considered carefully as it controls the trade-off between errors of type I (selecting truly non-discriminative variables as discriminative) and type II (missing out on truly discriminative variables).
Update for . The update equation for is approximately
[TABLE]
where the number of observations from response group is , the column vector of size is such that the j-th element is
[TABLE]
the binary representation denotes the first branching directions of the path of through the Pólya tree , the number of observations from response group that fall in the partition-subset is , and is a constant.
Both Taylor’s and Stirling’s approximations are also used to obtain (11). This allows us to update in isolation before using the converged value to calculate each individually, thus reducing the computational cost.
The final classification rule may be heuristically interpreted as a function of pseudo-proportion ratios. Observe that the term
[TABLE]
is a weighted sum of log proportion ratios. Briefly, the proportion is large if a large proportion of observations from group 1 have similar branching directions as . In other words, the classification rule classifies a new observation as group 1 if its path is more similar to paths taken by group 1 observations than those from group 0.
Our approach to computing the marginal log-likelihood of the data is very similar to that described by Holmes et al. (2015). The computational efficiency of the algorithm is of order based on the settings justified in A. This comes from traversing through Pólya trees each truncated at layer .
4 The smoothing parameter
The choice of the ’s is crucial as it affects both the variable selection and classification rules. Unfortunately, most existing options in the literature such as assigning a hyper-prior and empirical estimation have been proposed in the context of low dimensional problems only and are not easily scalable to high dimensionality settings. Hanson and Johnson (2002), Zhao and Hanson (2011), and Cipolli et al. (2016) dealt with a limited number of smoothing parameters in their respective models by assigning them a hyper-prior. Although these methods yielded good numerical results in their papers, putting hyper-priors on the ’s will compound the computational difficulties we already have to tackle. More specifically, a hyper-prior on each will lead to an extra update steps in our coordinate ascent algorithm (see Table 2). These extra steps may be bypassed by collapsing our model over the ’s but it will lead to difficulties with the computation of the -densities for and . Holmes et al. (2015) found that any value of a single smoothing parameter between 1 to 10 works well in practice. However, a generalisation to multiple smoothing parameters has not been discussed. Among the empirical estimation methods (Berger and Guglielmi, 2001; Chen and Hanson, 2014; Holmes et al., 2015; Cipolli and Hanson, 2018), the only algorithm that has been applied to a model with multiple ’s has been proposed in Chen and Hanson (2014). However, this approach involves a -dimensional grid search in the high-dimensionality context which is infeasible in our context.
Since our context is the analysis of high dimensional data, we suggest a novel heuristic approach of choosing based on an a priori analysis that can be executed efficiently. More specifically, we “infer” a likely value of from a list of candidate values that has generated our observed data under each of the two possible hypotheses and . Under , the value of that generated our data is likely to be large if the empirical distribution of is close to , whereas under , the value of that generated our data is likely to be large if the Euclidean distance between the empirical distributions of and is small. To make the implementation more computationally feasible, the variables are grouped into clusters such that variables within each cluster are assumed to have equal values of . The best setting for the ’s are selected to minimise resubstitution classification error. This choice of objective function aligns with the classification objective of our proposed model and differs from the log marginal likelihood objective used in Chen and Hanson (2014). Detailed steps of this proposed a priori analysis can be found in Table 4.
5 Numerical results
In this section, we examine the performance of our proposed method in 6 simulation settings and 2 publicly-available gene expression datasets. We fitted our proposed VNPDA model with the publicly available R package that can be found at the website https://github.com/weichangyu10/VaDA and compared its performance with the classifiers - variational linear discriminant analysis (VLDA, Yu et al., 2018), variational quadratic discriminant analysis (VQDA, Yu et al., 2018), penalised-LDA (penLDA, Witten and Tibshirani, 2011), nearest shrunken centroid (NSC, Tibshirani et al., 2003) (NSC) and naïve Bayes kernel discriminant analysis (naiveBayesKernel, Strbenac et al., 2015). Both VLDA and VQDA are Bayesian analogues of naïve Bayes discriminant analysis (McLachlan, 1992) that have exhibited competitive classification errors. The penLDA classifier is a penalised version of Fisher’s discriminant analysis that performs well when the true signal (difference in true group-conditional means divided by standard deviation) is sparse, whereas the NSC classifier has been chosen as a competing classifier due to its popularity in bioinformatics literature. Lastly, the naiveBayesKernel is a two-stage nonparametric classifier that performs variable selection with the Kolmogorov-Smirnov test before fitting the selected variables into a naïve Bayes discriminant analysis model that estimates the group-conditional distributions with kernel density estimates. Further details of the comparison methods have been provided in Section 1 of the Supplementary Material.
5.1 Simulation Study
The models are trained with observations and are used to classify new observations in each simulation setting for repetitions. At each repetition, the simulated dataset consists of truly discriminative variables that follow various non-Gaussian distributions (simulation 2 as an exception), and 450 non-discriminative variables. Details of their distributions are provided below and in Figure 2.
Simulation 1
We compare the models’ performances in discriminating a trimodal distribution from a kurtotic unimodal distribution. The distributions have equal means. These two distributions are mentioned in Marron and Wand (1992).
Group 1: . Group 0: .
Simulation 2
Here, we assess the loss incurred by nonparametric classification when the Gaussian assumption holds.
Group 1: .
Group 0: .
Simulation 3
We examine the models’ ability to discriminate distributions that differ by a density spike at .
Group 1: .
Group 0: .
Simulation 4
We assess the models’ performances when the group-conditional distributions differ largely by tail thickness.
Group 1: .
Group 0: Cauchy distribution with location [math] and scale .
Simulation 5
Here, we compare the models’ performances in a challenging classification scenario when the group-conditional distributions differ by an additional minor mode between two major modes. These two distributions are mentioned in Marron and Wand (1992).
Group 1: .
Group 0: .
Simulation 6
We assess the models’ performances when discriminating two Exponential distributions of different rates.
Group 1: Exp.
Group 0: Exp.
The non-discriminative variables are partitioned into 9 groups of 50 variables. Within each group, variables are independent, identically distributed. The distributions of each group are: , , , , , , (zero-inflated model),
(multiple modes), and
(bi-normal).
Results of the simulation study are summarised in Figure 3, Figure 4, and Table 4. The median computation time of VNPDA for one repetition is approximately 55s (an acceptable time) on a 1.6GHz Intel Core i5 processor.
In simulations 1 and 4, three models VNPDA, naiveBayesKernel and VQDA have high selection rates among the discriminative variables. In simulation 1, the group-conditional distributions have well-separated major modes ([math] vs. ), while the two distributions have differing tail thickness in simulation 4. However, VQDA did not perform as well in variable selection accuracy as it is unable to distinguish noise generated by non-discriminative variables with thick-tailed distributions such as and Cauchy. This directly leads to VQDA’s poor classification performance. VNPDA performed excellently in simulation 3 and this is evidence of its superiority in detecting density spikes. However, it did not perform better than the other models in simulations 2 and 6. In simulation 2, we expected the nonparametric classifiers naiveBayesKernel and VNPDA to exhibit poorer performance than the other models as the Gaussian assumption holds. In simulation 6, VLDA and penLDA exhibited a slight edge over VNPDA as the nonparametric option did not perform as well in identifying the discriminative variables. This is due to the lack of separation between the modes of the group-conditional distributions.
We repeated the simulation study for various training sample sizes ( and ) and the results are displayed in Section 2 of the Supplementary Material. Classification and variable selection performances generally improve across all models for Simulations 2, 3 and 6 as increases and remain similar for other simulation settings. The classification errors for VNPDA appear to have stabilised at for all simulation settings except for Simulation 2. When the Gaussian assumption is indeed true, nonparametric DA models require a much larger training sample size to achieve similar classification error with Gaussian DA models. No significant changes in the performance ranking have been observed as sample size changes. These findings suggest that the methods are sample-efficient in Simulations 2, 3 and 6 and that the results hold for a wide range of sample sizes.
Overall, the conditions which appear to be favourable to VNPDA are: (i) differing tail thickness; (ii) well-separated major modes.
5.2 Application to gene expression datasets
Melanoma dataset
The melanoma dataset has been analysed by Mann et al. (2013). The data underwent preprocessing to remove underexpressed genes, i.e. median . Patients whose survival time are lesser than 1 year and died due to the disease are labelled as poor prognosis; patients who are still alive and free from Melanoma after 4 years are labelled as good prognosis. Finally, we standardise the dataset to obtain , where is the gene reading for observation . The processed dataset that has been analysed consists of observations by DNA microarray readings.
Sarcoma dataset
The sarcoma dataset is uploaded by Colaprico et al. (2016) and is made publicly available on bioconductor. The data underwent preprocessing to retain only variables with variance . Patients whose survival time are lesser than the 20th percentile are labelled as poor prognosis; patients whose survival time are greater than 80th percentile are labelled as good prognosis. The dataset is standardised in a similar manner to the melanoma dataset. The processed dataset that has been analysed consists of observations by RNA readings.
The classification errors are summarised in Figure 5. The median computation times for one CV iteration are approximately 80s and 200s for the melanoma and sarcoma dataset respectively on a 1.6GHz Intel Core i5 processor. This is slower than other methods but is believed to be within an acceptable range to most users. In terms of classification errors, VNPDA outperformed the Gaussian DA models, including VLDA, in the melanoma dataset but there is no significant difference in performance in the sarcoma dataset. This warrants a more detailed investigation into the reasons that led to this disparity. For simplicity, we shall focus on the performances of VLDA and VNPDA as these classifiers exhibited the greatest contrast in performance between the two gene expression datasets. A visualisation of genes selected by each classifiers has been provided in Section 3 of the Supplementary Material.
Based on the venn diagrams in Figure 6, it is clear that the disparity is due to the number of frequently selected genes. In particular, we found that VNPDA has more frequently selected genes than VLDA in the melanoma dataset, whereas VLDA has more frequently selected genes than VNPDA in the sarcoma dataset.
Next, we shall identify the reason that led to this difference in the number of frequently selected genes. In the melanoma dataset, there are 925 genes selected by VNPDA but not VLDA. Among these genes, a substantial proportion (18.8%) are not selected because their group-conditional distributions exhibited a strong departure from normality assumptions (Shapiro-Wilk’s -value 0.05). Figure 7 presents the Pólya predictive density plot (see Hanson and Johnson, 2002, for definition) of of these genes which shows that their group-conditional distributions are favourable for VNPDA to perform well, i.e., they either differ in tail thickness or have well-separated major modes. For example, the group-conditional distribution of the poor prognosis group (red) for the C1ORF53 gene looks like a kurtotic unimodal distribution.
In contrast, more genes are selected by VLDA than VNPDA in the sarcoma dataset. By plotting the Pólya predictive density of genes that are selected by VLDA but not VNPDA, we observed that many of these genes have unimodal, right skewed group-conditional distributions (see Figure 8). We notice that the positions of their group-conditional major modes nearly coincide with one another. Such conditions lead to a smaller Bayes factor for the VNPDA variable selection rule and hence weaker evidence for the variable to be discriminative. On the other hand, the VLDA variable selection rule performed better as they depend only on the separation between the group-conditional means, and these are indeed well-separated among most of the genes.
6 Discussion
In this paper, we presented a novel Bayesian discriminant analysis model that performs both variable selection and classification without making assumptions about the parametric form of the unknown distributions. To deal with our uncertainty about these distributions, we assigned them with Pólya tree priors. Since the results using the Pólya tree prior are sensitive to the choice of the smoothing parameter, we suggested a data-driven approach based on an a priori inference that helps with the choice of this parameter. By adopting a CVB approximation for posterior inference, we arrive at a classification rule that carries a heuristic interpretation.
As Bayesian nonparametric methods are unpopular for analysing high-dimensional data due to the computational cost, we applied computational short-cuts to the CVB update equations. The approximations effectively isolate the updates of the variable selection probabilities from the classification probabilities. Thus, we compute the variable selection probabilities in an iterative loop before using the converged value for calculating the classification probabilities. This, in combination with an implementation in C++, led to a computation cost that we believe is within an acceptable range (80 to 200s) for most users in both the simulated and publicly available datasets we have examined.
The numerical results indicate that our proposed model performs reasonably well in most cases and is superior when the group-conditional distribution have either well-separated major modes or differing tail thickness. The findings are validated when we examine the group-conditional distributions of the variables in two publicly-available datasets.
Our proposed model structure also allows for several possible extensions. A possible extension that is beyond the scope of the motivating problem is to accommodate categorical variables in three scenarios. In the first scenario whereby all variables are binary, we may model each variable with a pair of Bernoulli-beta group-conditional distributions under the alternative hypothesis and a corresponding common Bernoulli-beta distribution under the null. In the second scenario whereby we have a mix of continuous and binary variables, the continuous variables may be modelled in accordance to equation (2), while binary variables are modelled with the Bernoulli-beta distributions. In the third scenario whereby we have a mix of continuous and nominal variables, each nominal variable may be modelled with a multinomial-Dirichlet distribution. If the variables are ordinal instead of nominal, we may utilise the structure of the categorical ordering by penalising the differences between adjacent categorical probabilities (see for example Gertheiss and Tut, 2009; Witten and Tibshirani, 2011). To reduce the number of parameters to be estimated, the models in all three scenario may be marginalised over the probability parameters. When there is a need to account for correlation between variables, suitable strategies include re-representing each multi-category variable with a set of binary variables (Cipolli and Hanson, 2018) or specifiying a location model (Krzanowski, 1975; Daudin and Bar-Hen, 1999; Mbina et al., 2018).
Another possible extension is to allow for response groups which consequently involves a comparison of number of possible hypotheses (Gian-Carlo, 1964). This increases the computational burden of our algorithm drastically and therefore would be pursued as future research.
By taking these into account, we believe that VNPDA has great potentials in analysing many high dimensional datasets when the normality assumption is questionable.
Funding information and conflict of interest
This research was partially supported by an Australian Postgraduate Award (Weichang Yu); and the Australian Research Council Discovery Project grant DP170100654 (John T. Ormerod).
The authors declare that they have no conflict of interest.
Appendix A Derivation for algorithm in Table 2
We shall present the derivation in the case where we have a single new observation and describe the generalisation to multiple new observations towards the end. Following (8), the updates for the parameter may be computed as
[TABLE]
The expression involves an expectation of the log Bayes factor
[TABLE]
where bin is the set of all binary representations of length , is the indicator function, is the Beta function, is the number of group observations in the partition-subset and .
Clearly, the expectation in equation involves nonlinear functions of and . Therefore, we shall utilise some approximations to get around this. We may use Taylor’s expansion about to approximate
[TABLE]
and, for small , a Stirling’s approximation to approximate the Beta functions
[TABLE]
Hence, the update equation for may be approximated as
[TABLE]
where
[TABLE]
The sum to infinity in the above expression is computationally tractable as the subset counts decreases as we go further down the layers of the tree. In particular, there exists a constant such that either or for all bin and . Hence, we may rewrite the log Bayes factor as
[TABLE]
Similarly, we use (8) to derive the update for as
[TABLE]
and if is large, then
[TABLE]
where the number of observations in groups 1 and 0 are and respectively, the vector of size is such that the j-th element is
[TABLE]
the prefix of a vector denotes element-wise , the binary representation denotes the first branching directions taken by and the number is such that for all and . Note that the approximation in equation (A) follows from Taylor’s approximation.
We may extend the classification rule in equation (A) to new observations by simply replacing each with , where the j-th element of is
[TABLE]
the number is such that for all and and the rest of the notations used have been explained in Section 3.
Remark: In our numerical examples, we truncate the Pólya tree priors at layers for all . This allows us to account for the details at higher resolution of the group-conditional distributions as increases (Hanson and Johnson, 2002).
References
- Abramowitz and Stegun (2002)
Abramowitz, M., Stegun, I., 2002.
Handbook of mathematical functions. Wiley.
- Ahdesmäki and Strimmer (2010)
Ahdesmäki, M., Strimmer, K., 2010.
Feature selection in omics prediction problems using CAT score and false discovery rate control.
The Annals of Applied Statistics 4, 503–519.
- Benjamini and Speed (2012)
Benjamini, Y., Speed, T.P., 2012.
Summarizing and correcting the GC content bias in high-throughput sequencing.
Nucleic Acids Research 40.
doi:10.1093/nar/gks001.
- Berger and Guglielmi (2001)
Berger, J.O., Guglielmi, A., 2001.
Bayesian and conditional frequentist testing of a parametric model versus nonparametric alternatives.
Journal of the American Statistical Association 96, 174–184.
- Bickel and Levina (2004)
Bickel, P.J., Levina, E., 2004.
Some Theory for Fisher’s linear discriminant function, ‘Naive Bayes’ and some alternatives when there are many more variables than observations.
Bernoulli 10, 989–1010.
- Blackwell (1973)
Blackwell, D., 1973.
Discreteness of Ferguson selections.
The Annals of Statistics 1, 356–358.
- Blei et al. (2017)
Blei, D., Kucukelbir, A., McAuliffe, J.D., 2017.
Variational inference: a review for statisticians.
Journal of the American Statistical Society 112, 859–877.
- Box and Cox (1964)
Box, G.E.P., Cox, D.R., 1964.
An analysis of transformations.
Journal of Royal Statistical Society Series B 26, 211–252.
- Castillo et al. (2015)
Castillo, I., Schmidt-Hieber, J., van der Vaart, A., 2015.
Bayesian linear regression with sparse priors.
The Annals of Statistics 43, 1986–2018.
- Celeux (2006)
Celeux, G., 2006.
Advances in data analysis. Springer. chapter Mixtrue models for classification.
pp. 3–14.
- Chen and Hanson (2014)
Chen, Y., Hanson, T.E., 2014.
Bayesian nonparametric k-sample tests for censored and uncensored data.
Computational Statistics and Data Analysis 71, 335–346.
- Cipolli and Hanson (2018)
Cipolli, W., Hanson, T.E., 2018.
Supervised learning via smoothed Polya trees.
Advances in Data Analysis and Classification , 1–28.
- Cipolli et al. (2016)
Cipolli, W., Hanson, T.E., McLain, A., 2016.
Bayesian nonparametric multiple testing.
Computational Statistics and Data Analysis 101, 64–79.
- Colaprico et al. (2016)
Colaprico, A., Silva, T., Olsen, C., Garofano, L., Cava, C., Garolini, D., Sabedot, T., Malta, T., Pagnotta, S., Castiglioni, I., Ceccarelli, M., Bontempi, G., Noushmehr, H., 2016.
TCGAbiolinks: an R/Bioconductor package for integrative analysis of TCGA data.
Nucleic acids research 44, e71.
- Daudin and Bar-Hen (1999)
Daudin, J.J., Bar-Hen, A., 1999.
Selection in discriminant analysis with continuous and discrete variables.
Computational Statistics and Data Analysis 32, 161–175.
- Fan and Fan (2008)
Fan, J., Fan, Y., 2008.
High-dimensional classification using features annealed independence rules.
The Annals of Statistics 36, 2605–2637.
- Fan and Lv (2010)
Fan, J., Lv, J., 2010.
A selective overview of variable selection in high dimensional feature space.
Statistica Sinica 20, 101–148.
- Filippi and Holmes (2017)
Filippi, S., Holmes, C.C., 2017.
A Bayesian nonparametric approach to testing for dependence between random variables.
Bayesian Analysis 12, 919–938.
- Fisher (1936)
Fisher, R.A., 1936.
The use of multiple measurements in taxonomic problems.
Annals of Eugenics 7, 179–188.
- Fraley and Raftery (2002)
Fraley, C., Raftery, A.E., 2002.
Model-based clustering, discriminant analysis, and density estimation.
Journal of the American Statistical Association 97, 611–631.
- Friedman (1989)
Friedman, J.H., 1989.
Regularized discriminant analysis.
Journal of the American Statistical Association 84, 165–175.
- Fuentes-García et al. (2010)
Fuentes-García, R., Mena, R.H., G, W.S., 2010.
A probability for classification based on Dirichlet process mixture model.
Journal of Classification 27, 389–403.
- Gertheiss and Tut (2009)
Gertheiss, J., Tut, G., 2009.
Penalized regression with ordinal predictors.
International statistical review 77, 345–365.
- Ghosh and Chaudhuri (2004)
Ghosh, A.K., Chaudhuri, P., 2004.
Optimal smoothing in kernel discriminant analysis.
Statistica Sinica 14, 457–483.
- Ghosh et al. (2006)
Ghosh, A.K., Chaudhuri, P., Sengupta, D., 2006.
Classification using kernel density estimates: multiscale analysis and visualization.
Technometrics 48, 120–132.
- Gian-Carlo (1964)
Gian-Carlo, R., 1964.
The number of partitions of a set.
American Mathematical Monthly 71, 498–504.
- Gutiérrez et al. (2014)
Gutiérrez, L., Gutiérrez-Peña, E., Mena, R.H., 2014.
Bayesian nonparametric classification for spectroscopy data.
Computational Statistics and Data Analysis 78, 56–68.
- Hall and Wand (1988)
Hall, P., Wand, M.P., 1988.
On nonparametric discrimination using density differences.
Biometrika 75, 541–547.
- Hanson (2006)
Hanson, T.E., 2006.
Inference for mixtures of finite Pólya tree models.
Journal of the American Statistical Association 101, 1548–1565.
- Hanson and Johnson (2002)
Hanson, T.E., Johnson, W.O., 2002.
Modeling regression error with a mixture of Pólya trees.
Journal of the American Statistical Association 97, 1020–1033.
- Hastie and Tibshirani (1993)
Hastie, T., Tibshirani, R., 1993.
Discriminant analysis by Gaussian mixtures.
Journal of the Royal Statistical Society Series B 18, 87–95.
- Holmes et al. (2015)
Holmes, C.C., Francois, C., Griffin, J.E., Stephens, D.A., 2015.
Two-sample bayesian nonparametric hypothesis testing.
Bayesian Analysis 10, 297–320.
- Krzanowski (1975)
Krzanowski, W.J., 1975.
Discrimination and classification using both binary and continuous variables.
Journal of the American Statistical Association 70, 782–790.
- Lavine (1992)
Lavine, M., 1992.
Some aspects of Pólya tree distributions for statistical modelling.
The Annals of Statistics 20, 1222–1235.
- Ma and Wong (2011)
Ma, L., Wong, W.H., 2011.
Coupling optional Pólya trees and the two sample problem.
Journal of the American Statistical Association 106, 1553–1565.
- Mann et al. (2013)
Mann, G.J., Pupo, G.M., Campain, A.E., Carter, C.D., Schramm, S.J., Pianova, S., Gerega, S.K., DeSilva, C., Lai, K., Wilmott, J.S.e.a., 2013.
BRAF mutations, NRAS mutation, and absence of an immune-related expressed gene profile predict poor outcome in patients with stage III melanoma.
Journal of Investigative Dermatology 133, 509–517.
- Marron and Wand (1992)
Marron, J.S., Wand, M.P., 1992.
Exact Mean Integrated Squared Error.
The Annals of Statistics 20, 712–736.
- Mauldin et al. (1992)
Mauldin, R.D., Sudderth, W.D., Williams, S.C., 1992.
Pólya trees and random distributions.
The Annals of Statistics 20, 1203–1221.
- Mbina et al. (2018)
Mbina, A.M., Nkiet, G.M., Obiang, F.E., 2018.
Variable selection in discriminant analysis for mixed continuous-binary variables and several groups.
Advances in Data Analysis and Classification , 1–23.
- McLachlan (1992)
McLachlan, G.J., 1992.
Discriminant analysis and statistical pattern recognition. Wiley.
- Ouyang and Liang (2017)
Ouyang, Y., Liang, F., 2017.
An empirical Bayes approach for high dimensional classification.
ArXiV .
- Strbenac et al. (2015)
Strbenac, D., Mann, G.J., Ormerod, J.T., Yang, J.Y.H., 2015.
ClassifyR: an R package for performance assessment of classification with applications to transcriptomics.
Bioinformatics 31, 1851–1853.
- Sugiyama (2007)
Sugiyama, M., 2007.
Dimensionality reduction of multimodal labeled data by local Fisher discriminant analysis.
Journal of Machine Learning Research 8, 1027–1061.
- Teh et al. (2007)
Teh, Y.W., Newman, D., Welling, M., 2007.
A Collapsed Variational Bayesian Inference Algorithm for Latent Dirichlet Allocation, in: Advances in Neural Information Processing Systems. MIT Press. volume 19, pp. 1353–1360.
- Tibshirani et al. (2003)
Tibshirani, R., Hastie, T., Narasimhan, B., Chu, G., 2003.
Class Prediction by Nearest Shrunken Centroids, with Applications to DNA Microarrays.
Statistical Science 18, 104–117.
- Witten and Tibshirani (2011)
Witten, D., Tibshirani, R., 2011.
Penalized classification using Fisher’s linear discriminant.
Journal of Royal Statistical Society Series B 73, 754–772.
- Witten (2011)
Witten, D.M., 2011.
Classification and clustering of sequencing data using a Poisson model.
The Annals of Applied Statistics 5, 2493–2518.
- Yu et al. (2018)
Yu, W., Ormerod, J.T., Stewart, M., 2018.
Variational discriminant analysis with variable selection.
Submitted to Statistics and Computing .
- Zhao and Hanson (2011)
Zhao, L., Hanson, T.E., 2011.
Spatially dependent Polya tree modeling for survival data.
Biometrics 67, 391–403.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Abramowitz and Stegun (2002) Abramowitz, M., Stegun, I., 2002. Handbook of mathematical functions. Wiley.
- 2Ahdesmäki and Strimmer (2010) Ahdesmäki, M., Strimmer, K., 2010. Feature selection in omics prediction problems using CAT score and false discovery rate control. The Annals of Applied Statistics 4, 503–519.
- 3Benjamini and Speed (2012) Benjamini, Y., Speed, T.P., 2012. Summarizing and correcting the GC content bias in high-throughput sequencing. Nucleic Acids Research 40. doi: 10.1093/nar/gks 001 . · doi ↗
- 4Berger and Guglielmi (2001) Berger, J.O., Guglielmi, A., 2001. Bayesian and conditional frequentist testing of a parametric model versus nonparametric alternatives. Journal of the American Statistical Association 96, 174–184.
- 5Bickel and Levina (2004) Bickel, P.J., Levina, E., 2004. Some Theory for Fisher’s linear discriminant function, ‘Naive Bayes’ and some alternatives when there are many more variables than observations. Bernoulli 10, 989–1010.
- 6Blackwell (1973) Blackwell, D., 1973. Discreteness of Ferguson selections. The Annals of Statistics 1, 356–358.
- 7Blei et al. (2017) Blei, D., Kucukelbir, A., Mc Auliffe, J.D., 2017. Variational inference: a review for statisticians. Journal of the American Statistical Society 112, 859–877.
- 8Box and Cox (1964) Box, G.E.P., Cox, D.R., 1964. An analysis of transformations. Journal of Royal Statistical Society Series B 26, 211–252.
