Blog Archives

Introduction to Approximate Bayesian Computation (ABC)

March 31, 2013
By
Introduction to Approximate Bayesian Computation (ABC)

Many of the posts in this blog have been concerned with using MCMC based methods for Bayesian inference. These methods are typically “exact” in the sense that they have the exact posterior distribution of interest as their target equilibrium distribution, but are obviously “approximate”, in that for any finite amount of computing time, we can […]

Read more »

Getting started with Bayesian variable selection using JAGS and rjags

November 20, 2012
By
Getting started with Bayesian variable selection using JAGS and rjags

Bayesian variable selection In a previous post I gave a quick introduction to using the rjags R package to access the JAGS Bayesian inference from within R. In this post I want to give a quick guide to using rjags for Bayesian variable selection. I intend to use this post as a starting point for […]

Read more »

Keeping R up to date on Ubuntu linux

November 10, 2012
By
Keeping R up to date on Ubuntu linux

R is included as part of the standard Ubuntu distribution, and can be installed with a command like Obviously the software included as part of the standard distribution usually lags a little behind the latest version, and this is usually quite acceptable for most users most of the time. However, R is evolving quite quickly […]

Read more »

Inlining JAGS models in R scripts for rjags

October 2, 2012
By
Inlining JAGS models in R scripts for rjags

JAGS (Just Another Gibbs Sampler) is a general purpose MCMC engine similar to WinBUGS and OpenBUGS. I have a slight preference for JAGS as it is free and portable, works well on Linux, and interfaces well with R. It is tempting to write a tutorial introduction to JAGS and the corresponding R package, rjags, but […]

Read more »

MCMC on the Raspberry Pi

July 7, 2012
By
MCMC on the Raspberry Pi

I’ve recently taken delivery of a Raspberry Pi mini computer. For anyone who doesn’t know, this is a low cost, low power machine, costing around 20 GBP (25 USD) and consuming around 2.5 Watts of power (it is powered by micro-USB). This amazing little device can run linux very adequately, and so naturally I’ve been […]

Read more »

Metropolis Hastings MCMC when the proposal and target have differing support

June 4, 2012
By
Metropolis Hastings MCMC when the proposal and target have differing support

Introduction Very often it is desirable to use Metropolis Hastings MCMC for a target distribution which does not have full support (for example, it may correspond to a non-negative random variable), using a proposal distribution which does (for example, a Gaussian random walk proposal). This isn’t a problem at all, but on more than one […]

Read more »

Gibbs sampling a Gaussian Markov random field (GMRF) using Java

June 1, 2012
By
Gibbs sampling a Gaussian Markov random field (GMRF) using Java

Introduction As I’ve explained previously, I’m gradually coming around to the idea of using Java for the development of MCMC codes, and I’m starting to build up a collection of simple examples for getting started. One of the advantages of Java is that it includes a standard cross-platform GUI library. This might not seem like […]

Read more »

Multivariate data analysis (using R)

May 29, 2012
By
Multivariate data analysis (using R)

I’ve been very quiet on-line in the last few months, due mainly to the fact that I’ve been writing a new undergraduate course on multivariate data analysis. Although there are many books and on-line notes on the general topic of multivariate statistics, I wanted to do something a little bit different from any text I […]

Read more »

Catalogue of my first 25 blog posts

December 30, 2011
By
Catalogue of my first 25 blog posts

This is my 25th blog post, so this seems like a good time to provide an index to those first 25 posts for ease of reference. I’ve covered a range of topics over my first two years of blogging, and managed to average almost one post per month, as suggested in my first post. Due […]

Read more »

Parallel particle filtering and pMCMC using R and multicore

December 29, 2011
By
Parallel particle filtering and pMCMC using R and multicore

Introduction In a previous post I showed how to construct a PMMH pMCMC algorithm for parameter estimation with partially observed Markov processes. The inner loop of a pMCMC algorithm consists of running a particle filter to construct an unbiased estimate of marginal likelihood. This inner loop is the place where the code spends almost all […]

Read more »

Subscribe

Email:

  Subscribe