**Xi'an's Og » R**, and kindly contributed to R-bloggers)

**A**s a coincidence, or not, I received the following email just before starting our mixture estimation workshop (the above is Ben Nevis on Monday, whose skyline really looks like a three component mixture!) and giving a discussion on label switching:

I am implementing a Markov-Chain Monte Carlo method for Gibbs sampling from a simple mixture of normal model. I am using a decision-theoretic approach per Stephens (2000), but am also looking at simpler methods. Specifically, I have used:

i) mean ordering

and also tried

ii) ordering by the mixture component weights

I have gotten much better results with the former approach than the later. I was wondering if (ii) was, in fact, an accepted approach? Per Stephens (2000), it seems ordering is only done by means or variances.PS- By ordering by the cluster weights w (taken from Dirichlet distribution as I believe is standard I mean):

i) discard burn-in

ii) for each iteration check order of $ latex w$’s. if order satisfies our condition (e.g., keep the iteration; otherwise, discard this iterationMIsha xxxx

**O**bviously, any ordering creates an identifiability constraint and is equally acceptable. Or not. Indeed, my opinion on ordering is now the same as it was at the time our 2000 JASA paper got published: the cut (or more exactly quotienting) of the parameter space created by the ordering is not tuned to the topology of the likelihood/posterior surface. Therefore, the resulting subset may well contain incomplete parts of several modes, instead of concentrating on one of the modes. The right identifiability constraint should provide a single modal region, but I am unclear whether or not this is at all possible… Anyway, with a large enough number of components, I believe any ordering device, whether it is on mean, variance or weight, will eventually fail.

**N**ote that the above email implements the ordering by discarding wrongly ordered ‘s. This is unnecessary: when running the MCMC sampler, wrongly ordered ‘s can simply be reordered by the appropriate permutation. (In R, just use the function order().)

Filed under: pictures, R, Statistics

**leave a comment**for the author, please follow the link and comment on his blog:

**Xi'an's Og » R**.

R-bloggers.com offers

**daily e-mail updates**about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...