Dirichlet Process Gaussian Mixture Models: Choice of the Base Distribution

Total Page:16

File Type:pdf, Size:1020Kb

Dirichlet Process Gaussian Mixture Models: Choice of the Base Distribution GÄorÄurD, Rasmussen CE. Dirichlet process Gaussian mixture models: Choice of the base distribution. JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY 25(4): 615{626 July 2010/DOI 10.1007/s11390-010-1051-1 Dirichlet Process Gaussian Mixture Models: Choice of the Base Distribution Dilan GÄorÄur1 and Carl Edward Rasmussen2;3 1Gatsby Computational Neuroscience Unit, University College London, London WC1N 3AR, U.K. 2Department of Engineering, University of Cambridge, Cambridge CB2 1PZ, U.K. 3Max Planck Institute for Biological Cybernetics, D-72076 TÄubingen,Germany E-mail: [email protected]; [email protected] Received May 2, 2009; revised February 10, 2010. Abstract In the Bayesian mixture modeling framework it is possible to infer the necessary number of components to model the data and therefore it is unnecessary to explicitly restrict the number of components. Nonparametric mixture models sidestep the problem of ¯nding the \correct" number of mixture components by assuming in¯nitely many components. In this paper Dirichlet process mixture (DPM) models are cast as in¯nite mixture models and inference using Markov chain Monte Carlo is described. The speci¯cation of the priors on the model parameters is often guided by mathematical and practical convenience. The primary goal of this paper is to compare the choice of conjugate and non-conjugate base distributions on a particular class of DPM models which is widely used in applications, the Dirichlet process Gaussian mixture model (DPGMM). We compare computational e±ciency and modeling performance of DPGMM de¯ned using a conjugate and a conditionally conjugate base distribution. We show that better density models can result from using a wider class of priors with no or only a modest increase in computational e®ort. Keywords Bayesian nonparametrics, Dirichlet processes, Gaussian mixtures 1 Introduction The hierarchical models in which the DP is used as a prior over the distribution of the parameters are re- ferred to as the Dirichlet process mixture (DPM) mod- Bayesian inference requires assigning prior distribu- els, also called mixture of Dirichlet process models by tions to all unknown quantities in a model. The uncer- some authors due to [7]. Construction of the DP using tainty about the parametric form of the prior distribu- a stick-breaking process or a gamma process represents tion can be expressed by using a nonparametric prior. the DP as a countably in¯nite sum of atomic measures. The Dirichlet process (DP) is one of the most promi- These approaches suggest that a DPM model can be nent random probability measures due to its richness, seen as a mixture model with in¯nitely many compo- computational ease, and interpretability. It can be used nents. The distribution of parameters imposed by a DP to model the uncertainty about the functional form of can also be obtained as a limiting case of a parametric the distribution for parameters in a model. mixture model[8-11]. This approach shows that a DPM The DP, ¯rst de¯ned using Kolmogorov consistency can easily be de¯ned as an extension of a parametric conditions[1], can be de¯ned in several di®erent per- mixture model without the need to do model selection spectives. It can be obtained by normalising a gamma for determining the number of components to be used. process[1]. Using exchangeability, a generalisation of Here, we take this approach to extend simple ¯nite mix- the P¶olya urn scheme leads to the DP[2]. A closely re- ture models to Dirichlet process mixture models. lated sequential process is the Chinese restaurant pro- The DP is de¯ned by two parameters, a positive cess (CRP)[3-4], a distribution over partitions, which scalar ® and a probability measure G , referred to as also results in the DP when each partition is assigned 0 the concentration parameter and the base measure, re- an independent parameter with a common distribution. spectively. The base distribution G is the parameter A constructive de¯nition of the DP was given by [5], 0 on which the nonparametric distribution is centered, which leads to the characterisation of the DP as a stick- which can be thought of as the prior guess[7]. The breaking prior[6]. Regular Paper This work is supported by Gatsby Charitable Foundation and PASCAL2. ©2010 Springer Science + Business Media, LLC & Science Press, China 616 J. Comput. Sci. & Technol., July 2010, Vol.25, No.4 concentration parameter ® expresses the strength of be- out conditioned on the other, but both parameters can- lief in G0. For small values of ®, samples from a DP not simultaneously be integrated out. In the following, is likely to be composed of a small number of atomic we give formulations of the DPGMM with both a con- measures with large weights. For large values, most jugate and a conditionally conjugate base distribution samples are likely to be distinct, thus concentrated on G0. For both prior speci¯cations, we de¯ne hyperpri- G0. ors on G0 for robustness, building upon [11]. We refer The form of the base distribution and the value of to the models with the conjugate and the conditionally the concentration parameter are important parts of the conjugate base distributions shortly as the conjugate model choice that will e®ect the modeling performance. model and the conditionally conjugate model, respec- The concentration parameter can be given a vague prior tively. After specifying the model structure, we discuss distribution and its value can be inferred from the data. in detail how to do inference on both models. We show It is harder to decide on the base distribution since the that mixing performance of the non-conjugate sampler model performance will heavily depend on its paramet- can be improved substantially by exploiting the con- ric form even if it is de¯ned in a hierarchical manner ditional conjugacy. We present experimental results for robustness. Generally, the choice of the base distri- comparing the two prior speci¯cations. Both predic- bution is guided by mathematical and practical conve- tive accuracy and computational demand are compared nience. In particular, conjugate distributions are pre- systematically on several arti¯cial and real multivariate ferred for computational ease. It is important to be density estimation problems. aware of the implications of the particular choice of the base distribution. An important question is whether 2 Dirichlet Process Gaussian Mixture Models the modeling performance is weakened by using a con- A DPM model can be constructed as a limit of a jugate base distribution instead of a less restricted dis- parametric mixture model[8-11]. We start with setting tribution. A related interesting question is whether the out the hierarchical Gaussian mixture model formula- inference is actually computationally cheaper for the tion and then take the limit as the number of mixture conjugate DPM models. components approaches in¯nity to obtain the Dirichlet The Dirichlet process Gaussian mixture model process mixture model. Throughout the paper, vector (DPGMM) with both conjugate and non-conjugate quantities are written in bold. The index i always runs base distributions has been used extensively in appli- over observations, i = 1; : : : ; n, and index j runs over cations of the DPM models for density estimation and components, j = 1;:::;K. Generally, variables that clustering[11-15]. However, the performance of the mod- play no role in conditional distributions are dropped els using these di®erent prior speci¯cations have not from the condition for simplicity. been compared. For Gaussian mixture models the con- jugate (Normal-Inverse-Wishart) priors have some un- The Gaussian mixture model with K components appealing properties with prior dependencies between may be written as: the mean and the covariance parameters, see e.g., [16]. XK The main focus of this paper is empirical evaluation p(xjθ1; : : : ; θK ) = ¼jN (xj¹j;Sj) (1) of the di®erences between the modeling performance of j=1 the DPGMM with conjugate and non-conjugate base distributions. where θj = f¹j;Sj; ¼jg is the set of parameters for Markov chain Monte Carlo (MCMC) techniques are component j, ¼ are the mixing proportions (which must the most popular tools used for inference on the DPM be positive and sum to one), ¹j is the mean vector for models. Inference algorithms for the DPM models with component j, and Sj is its precision (inverse covariance a conjugate base distribution are relatively easier to im- matrix). plement than for the non-conjugate case. Nevertheless De¯ning a joint prior distribution G0 on the com- several MCMC algorithms have been developed also for ponent parameters and introducing indicator variables the general case[17-18]. In our experiments, we also com- ci; i = 1; : : : ; n, the model can be written as: pare the computational cost of inference on the conju- gate and the non-conjugate model speci¯cations. xi j ci; £ »N (¹ci ;Sci ) We de¯ne the DPGMM model with a non-conjugate c j ¼ » Discrete(¼ ; : : : ; ¼ ) base distribution by removing the undesirable depen- i 1 K dency of the distribution of the mean and the covari- (¹j;Sj) » G0 ance parameters. This results in what we refer to as ¼ j ® » Dir(®=K; : : : ; ®=K): (2) a conditionally conjugate base distribution since one of the parameters (mean or covariance) can be integrated Given the mixing proportions ¼, the distribution of the Dilan GÄorÄur et al.: (Conditionally) Conjugate DP Gaussian Mixtures 617 number of observations assigned to each component, Note that these probabilities are the same as the proba- called the occupation number, is multinomial bilities of seating a new customer in a Chinese restau- rant process[4]. Thus, the in¯nite limit of the model in YK n! nj (2) is equivalent to a DPM which we de¯ne by starting p(n1; : : : ; nK j¼) = ¼j ; n1!n2! ¢ ¢ ¢ nK ! with Gaussian distributed data xijθ »N (xij¹i;Si), j=1 with a random distribution of the model parameters and the distribution of the indicators is (¹i;Si) » G drawn from a DP, G » DP (®; G0).
Recommended publications
  • Hyperprior on Symmetric Dirichlet Distribution
    Hyperprior on symmetric Dirichlet distribution Jun Lu Computer Science, EPFL, Lausanne [email protected] November 5, 2018 Abstract In this article we introduce how to put vague hyperprior on Dirichlet distribution, and we update the parameter of it by adaptive rejection sampling (ARS). Finally we analyze this hyperprior in an over-fitted mixture model by some synthetic experiments. 1 Introduction It has become popular to use over-fitted mixture models in which number of cluster K is chosen as a conservative upper bound on the number of components under the expectation that only relatively few of the components K0 will be occupied by data points in the samples X . This kind of over-fitted mixture models has been successfully due to the ease in computation. Previously Rousseau & Mengersen(2011) proved that quite generally, the posterior behaviour of overfitted mixtures depends on the chosen prior on the weights, and on the number of free parameters in the emission distributions (here D, i.e. the dimension of data). Specifically, they have proved that (a) If α=min(αk; k ≤ K)>D=2 and if the number of components is larger than it should be, asymptotically two or more components in an overfitted mixture model will tend to merge with non-negligible weights. (b) −1=2 In contrast, if α=max(αk; k 6 K) < D=2, the extra components are emptied at a rate of N . Hence, if none of the components are small, it implies that K is probably not larger than K0. In the intermediate case, if min(αk; k ≤ K) ≤ D=2 ≤ max(αk; k 6 K), then the situation varies depending on the αk’s and on the difference between K and K0.
    [Show full text]
  • Hierarchical Dirichlet Process Hidden Markov Model for Unsupervised Bioacoustic Analysis
    Hierarchical Dirichlet Process Hidden Markov Model for Unsupervised Bioacoustic Analysis Marius Bartcus, Faicel Chamroukhi, Herve Glotin Abstract-Hidden Markov Models (HMMs) are one of the the standard HDP-HMM Gibbs sampling has the limitation most popular and successful models in statistics and machine of an inadequate modeling of the temporal persistence of learning for modeling sequential data. However, one main issue states [9]. This problem has been addressed in [9] by relying in HMMs is the one of choosing the number of hidden states. on a sticky extension which allows a more robust learning. The Hierarchical Dirichlet Process (HDP)-HMM is a Bayesian Other solutions for the inference of the hidden Markov non-parametric alternative for standard HMMs that offers a model in this infinite state space models are using the Beam principled way to tackle this challenging problem by relying sampling [lO] rather than Gibbs sampling. on a Hierarchical Dirichlet Process (HDP) prior. We investigate the HDP-HMM in a challenging problem of unsupervised We investigate the BNP formulation for the HMM, that is learning from bioacoustic data by using Markov-Chain Monte the HDP-HMM into a challenging problem of unsupervised Carlo (MCMC) sampling techniques, namely the Gibbs sampler. learning from bioacoustic data. The problem consists of We consider a real problem of fully unsupervised humpback extracting and classifying, in a fully unsupervised way, whale song decomposition. It consists in simultaneously finding the structure of hidden whale song units, and automatically unknown number of whale song units. We use the Gibbs inferring the unknown number of the hidden units from the Mel sampler to infer the HDP-HMM from the bioacoustic data.
    [Show full text]
  • A Dirichlet Process Mixture Model of Discrete Choice Arxiv:1801.06296V1
    A Dirichlet Process Mixture Model of Discrete Choice 19 January, 2018 Rico Krueger (corresponding author) Research Centre for Integrated Transport Innovation, School of Civil and Environmental Engineering, UNSW Australia, Sydney NSW 2052, Australia [email protected] Akshay Vij Institute for Choice, University of South Australia 140 Arthur Street, North Sydney NSW 2060, Australia [email protected] Taha H. Rashidi Research Centre for Integrated Transport Innovation, School of Civil and Environmental Engineering, UNSW Australia, Sydney NSW 2052, Australia [email protected] arXiv:1801.06296v1 [stat.AP] 19 Jan 2018 1 Abstract We present a mixed multinomial logit (MNL) model, which leverages the truncated stick- breaking process representation of the Dirichlet process as a flexible nonparametric mixing distribution. The proposed model is a Dirichlet process mixture model and accommodates discrete representations of heterogeneity, like a latent class MNL model. Yet, unlike a latent class MNL model, the proposed discrete choice model does not require the analyst to fix the number of mixture components prior to estimation, as the complexity of the discrete mixing distribution is inferred from the evidence. For posterior inference in the proposed Dirichlet process mixture model of discrete choice, we derive an expectation maximisation algorithm. In a simulation study, we demonstrate that the proposed model framework can flexibly capture differently-shaped taste parameter distributions. Furthermore, we empirically validate the model framework in a case study on motorists’ route choice preferences and find that the proposed Dirichlet process mixture model of discrete choice outperforms a latent class MNL model and mixed MNL models with common parametric mixing distributions in terms of both in-sample fit and out-of-sample predictive ability.
    [Show full text]
  • Part 2: Basics of Dirichlet Processes 2.1 Motivation
    CS547Q Statistical Modeling with Stochastic Processes Winter 2011 Part 2: Basics of Dirichlet processes Lecturer: Alexandre Bouchard-Cˆot´e Scribe(s): Liangliang Wang Disclaimer: These notes have not been subjected to the usual scrutiny reserved for formal publications. They may be distributed outside this class only with the permission of the Instructor. Last update: May 17, 2011 2.1 Motivation To motivate the Dirichlet process, let us consider a simple density estimation problem: modeling the height of UBC students. We are going to take a Bayesian approach to this problem, considering the parameters as random variables. In one of the most basic models, one would define a mean and variance random parameter θ = (µ, σ2), and a height random variable normally distributed conditionally on θ, with parameters θ.1 Using a single normal distribution is clearly a defective approach, since for example the male/female sub- populations create a skewness in the distribution, which cannot be capture by normal distributions: The solution suggested by this figure is to use a mixture of two normal distributions, with one set of parameters θc for each sub-population or cluster c ∈ {1, 2}. Pictorially, the model can be described as follows: 1- Generate a male/female relative frequence " " ~ Beta(male prior pseudo counts, female P.C) Mean height 2- Generate the sex of each student for each i for men Mult( ) !(1) x1 x2 x3 xi | " ~ " 3- Generate the mean height of each cluster c !(2) Mean height !(c) ~ N(prior height, how confident prior) for women y1 y2 y3 4- Generate student heights for each i yi | xi, !(1), !(2) ~ N(!(xi) ,variance) 1Yes, this has many problems (heights cannot be negative, normal assumption broken, etc).
    [Show full text]
  • Lectures on Bayesian Nonparametrics: Modeling, Algorithms and Some Theory VIASM Summer School in Hanoi, August 7–14, 2015
    Lectures on Bayesian nonparametrics: modeling, algorithms and some theory VIASM summer school in Hanoi, August 7–14, 2015 XuanLong Nguyen University of Michigan Abstract This is an elementary introduction to fundamental concepts of Bayesian nonparametrics, with an emphasis on the modeling and inference using Dirichlet process mixtures and their extensions. I draw partially from the materials of a graduate course jointly taught by Professor Jayaram Sethuraman and myself in Fall 2014 at the University of Michigan. Bayesian nonparametrics is a field which aims to create inference algorithms and statistical models, whose complexity may grow as data size increases. It is an area where probabilists, theoretical and applied statisticians, and machine learning researchers all make meaningful contacts and contributions. With the following choice of materials I hope to take the audience with modest statistical background to a vantage point from where one may begin to see a rich and sweeping panorama of a beautiful area of modern statistics. 1 Statistical inference The main goal of statistics and machine learning is to make inference about some unknown quantity based on observed data. For this purpose, one obtains data X with distribution depending on the unknown quantity, to be denoted by parameter θ. In classical statistics, this distribution is completely specified except for θ. Based on X, one makes statements about θ in some optimal way. This is the basic idea of statistical inference. Machine learning originally approached the inference problem through the lense of the computer science field of artificial intelligence. It was eventually realized that machine learning was built on the same theoretical foundation of mathematical statistics, in addition to carrying a strong emphasis on the development of algorithms.
    [Show full text]
  • Final Report (PDF)
    Foundation of Stochastic Analysis Krzysztof Burdzy (University of Washington) Zhen-Qing Chen (University of Washington) Takashi Kumagai (Kyoto University) September 18-23, 2011 1 Scientific agenda of the conference Over the years, the foundations of stochastic analysis included various specific topics, such as the general theory of Markov processes, the general theory of stochastic integration, the theory of martingales, Malli- avin calculus, the martingale-problem approach to Markov processes, and the Dirichlet form approach to Markov processes. To create some focus for the very broad topic of the conference, we chose a few areas of concentration, including • Dirichlet forms • Analysis on fractals and percolation clusters • Jump type processes • Stochastic partial differential equations and measure-valued processes Dirichlet form theory provides a powerful tool that connects the probabilistic potential theory and ana- lytic potential theory. Recently Dirichlet forms found its use in effective study of fine properties of Markov processes on spaces with minimal smoothness, such as reflecting Brownian motion on non-smooth domains, Brownian motion and jump type processes on Euclidean spaces and fractals, and Markov processes on trees and graphs. It has been shown that Dirichlet form theory is an important tool in study of various invariance principles, such as the invariance principle for reflected Brownian motion on domains with non necessarily smooth boundaries and the invariance principle for Metropolis algorithm. Dirichlet form theory can also be used to study a certain type of SPDEs. Fractals are used as an approximation of disordered media. The analysis on fractals is motivated by the desire to understand properties of natural phenomena such as polymers, and growth of molds and crystals.
    [Show full text]
  • A Tutorial on Bayesian Nonparametric Models
    A Tutorial on Bayesian Nonparametric Models Samuel J. Gershman1 and David M. Blei2 1Department of Psychology and Neuroscience Institute, Princeton University 2Department of Computer Science, Princeton University August 5, 2011 Abstract A key problem in statistical modeling is model selection, how to choose a model at an appropriate level of complexity. This problem appears in many settings, most prominently in choosing the number of clusters in mixture models or the number of factors in factor analysis. In this tutorial we describe Bayesian nonparametric methods, a class of methods that side-steps this issue by allowing the data to determine the complexity of the model. This tutorial is a high-level introduction to Bayesian nonparametric methods and contains several examples of their application. 1 Introduction How many classes should I use in my mixture model? How many factors should I use in factor analysis? These questions regularly exercise scientists as they explore their data. Most scientists address them by first fitting several models, with different numbers of clusters or factors, and then selecting one using model comparison metrics (Claeskens and Hjort, 2008). Model selection metrics usually include two terms. The first term measures how well the model fits the data. The second term, a complexity penalty, favors simpler models (i.e., ones with fewer components or factors). Bayesian nonparametric (BNP) models provide a different approach to this problem (Hjort et al., 2010). Rather than comparing models that vary in complexity, the BNP approach is to fit a single model that can adapt its complexity to the data. Furthermore, BNP models allow the complexity to grow as more data are observed, such as when using a model to perform prediction.
    [Show full text]
  • Gaussian Process-Mixture Conditional Heteroscedasticity
    888 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 36, NO. 5, MAY 2014 Gaussian Process-Mixture Conditional Heteroscedasticity Emmanouil A. Platanios and Sotirios P. Chatzis Abstract—Generalized autoregressive conditional heteroscedasticity (GARCH) models have long been considered as one of the most successful families of approaches for volatility modeling in financial return series. In this paper, we propose an alternative approach based on methodologies widely used in the field of statistical machine learning. Specifically, we propose a novel nonparametric Bayesian mixture of Gaussian process regression models, each component of which models the noise variance process that contaminates the observed data as a separate latent Gaussian process driven by the observed data. This way, we essentially obtain a Gaussian process-mixture conditional heteroscedasticity (GPMCH) model for volatility modeling in financial return series. We impose a nonparametric prior with power-law nature over the distribution of the model mixture components, namely the Pitman-Yor process prior, to allow for better capturing modeled data distributions with heavy tails and skewness. Finally, we provide a copula-based approach for obtaining a predictive posterior for the covariances over the asset returns modeled by means of a postulated GPMCH model. We evaluate the efficacy of our approach in a number of benchmark scenarios, and compare its performance to state-of-the-art methodologies. Index Terms—Gaussian process, Pitman-Yor process, mixture model, conditional heteroscedasticity, copula, volatility modeling 1INTRODUCTION TATISTICAL modeling of asset values in financial mar- and the past variances, which facilitates model estimation S kets requires taking into account the tendency of assets and computation of the prediction errors.
    [Show full text]
  • Maximum Likelihood Estimation of Dirichlet Distribution Parameters
    Maximum Likelihood Estimation of Dirichlet Distribution Parameters Jonathan Huang Abstract. Dirichlet distributions are commonly used as priors over propor- tional data. In this paper, I will introduce this distribution, discuss why it is useful, and compare implementations of 4 different methods for estimating its parameters from observed data. 1. Introduction The Dirichlet distribution is one that has often been turned to in Bayesian statistical inference as a convenient prior distribution to place over proportional data. To properly motivate its study, we will begin with a simple coin toss example, where the task will be to find a suitable distribution P which summarizes our beliefs about the probability that the toss will result in heads, based on all prior such experiments. 16 14 12 10 8 6 4 2 0 0 0.2 0.4 0.6 0.8 1 H/(H+T) Figure 1. A distribution over possible probabilities of obtaining heads We will want to convey several things via such a distribution. First, if we have an idea of what the odds of heads are, then we will want P to reflect this. For example, if we associate P with the experiment of flipping a penny, we would hope that P gives strong probability to 50-50 odds. Second, we will want the distribution to somehow reflect confidence by expressing how many coin flips we have witnessed 1 2 JONATHAN HUANG in the past, the idea being that the more coin flips one has seen, the more confident one is about how a coin must behave. In the case where we have never seen a coin flip experiment, then P should assign uniform probability to all odds.
    [Show full text]
  • Statistical Analysis of Neural Data Lecture 6
    Statistical Analysis of Neural Data Lecture 6: Nonparametric Bayesian mixture modeling: with an introduction to the Dirichlet process, a brief Markov chain Monte Carlo review, and a spike sorting application Guest Lecturer: Frank Wood Gatsby Unit, UCL March, 2009 Wood (Gatsby Unit) Dirichlet Process Mixture Modeling March 2009 1 / 89 Motivation: Spike Train Analysis What is a spike train? Cell 1 Cell 2 Spike Cell 3 Time Figure: Three spike trains Action potentials or “spikes” are assumed to be the fundamental unit of information transfer in the brain [Bear et al., 2001] Wood (Gatsby Unit) Dirichlet Process Mixture Modeling March 2009 2 / 89 Motivation: The Problem Prevalence Such analyses are quite common in the neuroscience literature. Potential problems Estimating spike trains from a neural recording (“spike sorting”) is sometimes difficult to do Different experts and algorithms produce different spike trains It isn’t easy to tell which one is right Different spike trains can and do produce different analysis outcomes Worry How confident can we be about outcomes from analyses of spike trains? Wood (Gatsby Unit) Dirichlet Process Mixture Modeling March 2009 3 / 89 Approach: Goal of today’s class Present all the tools you need to understand a novel nonparametric Bayesian spike train model that Allows spike sorting uncertainty to be reprensented and propagated through all levels of spike train analysis Making modeling assumptions clear Increasing the amount and kind of data that can be utilized Accounting for spike train variability in analysis outcomes Makes “online” spike sorting possible Roadmap Spike Sorting Infinite Gaussian mixture modeling (IGMM) Dirichlet process MCMC review Gibbs sampler for the IGMM WoodExperiments (Gatsby Unit) Dirichlet Process Mixture Modeling March 2009 4 / 89 Goal: philosophy and procedural understanding ..
    [Show full text]
  • The Infinite Hidden Markov Model
    The Infinite Hidden Markov Model Matthew J. Beal Zoubin Ghahramani Carl Edward Rasmussen Gatsby Computational Neuroscience Unit University College London 17 Queen Square, London WC1N 3AR, England http://www.gatsby.ucl.ac.uk m.beal,zoubin,edward @gatsby.ucl.ac.uk f g Abstract We show that it is possible to extend hidden Markov models to have a countably infinite number of hidden states. By using the theory of Dirichlet processes we can implicitly integrate out the infinitely many transition parameters, leaving only three hyperparameters which can be learned from data. These three hyperparameters define a hierarchical Dirichlet process capable of capturing a rich set of transition dynamics. The three hyperparameters control the time scale of the dynamics, the sparsity of the underlying state-transition matrix, and the expected num- ber of distinct hidden states in a finite sequence. In this framework it is also natural to allow the alphabet of emitted symbols to be infinite— consider, for example, symbols being possible words appearing in En- glish text. 1 Introduction Hidden Markov models (HMMs) are one of the most popular methods in machine learning and statistics for modelling sequences such as speech and proteins. An HMM defines a probability distribution over sequences of observations (symbols) y = y1; : : : ; yt; : : : ; yT by invoking another sequence of unobserved, or hidden, discrete f g state variables s = s1; : : : ; st; : : : ; sT . The basic idea in an HMM is that the se- f g quence of hidden states has Markov dynamics—i.e. given st, sτ is independent of sρ for all τ < t < ρ—and that the observations yt are independent of all other variables given st.
    [Show full text]
  • A Dirichlet Process Model for Detecting Positive Selection in Protein-Coding DNA Sequences
    A Dirichlet process model for detecting positive selection in protein-coding DNA sequences John P. Huelsenbeck*†, Sonia Jain‡, Simon W. D. Frost§, and Sergei L. Kosakovsky Pond§ *Section of Ecology, Behavior, and Evolution, Division of Biological Sciences, University of California at San Diego, La Jolla, CA 92093-0116; ‡Division of Biostatistics and Bioinformatics, Department of Family and Preventive Medicine, University of California at San Diego, La Jolla, CA 92093-0717; and §Antiviral Research Center, University of California at San Diego, 150 West Washington Street, La Jolla, CA 92103 Edited by Joseph Felsenstein, University of Washington, Seattle, WA, and approved March 1, 2006 (received for review September 21, 2005) Most methods for detecting Darwinian natural selection at the natural selection that is present at only a few positions in the molecular level rely on estimating the rates or numbers of non- alignment (21). In cases where such methods have been successful, synonymous and synonymous changes in an alignment of protein- many sites are typically under strong positive selection (e.g., MHC). coding DNA sequences. In some of these methods, the nonsyn- More recently, Nielsen and Yang (2) developed a method that onymous rate of substitution is allowed to vary across the allows the rate of nonsynonymous substitution to vary across the sequence, permitting the identification of single amino acid posi- sequence. The method of Nielsen and Yang has proven useful for tions that are under positive natural selection. However, it is detecting positive natural selection in sequences where only a few unclear which probability distribution should be used to describe sites are under directional selection.
    [Show full text]