Blog Archives

Moustache target distribution and Wes Anderson

March 31, 2014
By
Moustache target distribution and Wes Anderson

Today I am going to introduce the moustache target distribution (moustarget distribution for brievety). Load some packages first. Let’s invoke the moustarget distribution. This defines a target distribution represented by a SVG file using RShapeTarget. The target probability density function is defined on and is proportional to on the segments described in the SVG files,

Read more »

Rasmus Bååth’s Bayesian first aid

January 23, 2014
By
Rasmus Bååth’s Bayesian first aid

Besides having coded a pretty cool MCMC app in Javascript, this guy Rasmus Bååth has started the Bayesian first aid project. The idea is that if there’s an R function called blabla.test performing test “blabla”, there should be a function bayes.blabla.test performing a similar test in a Bayesian framework, and showing the output in a

Read more »

From SVG to probability distributions [with R package]

August 25, 2013
By
From SVG to probability distributions [with R package]

Hey, To illustrate generally complex probability density functions on continuous spaces, researchers always use the same examples, for instance mixtures of Gaussian distributions or a banana shaped distribution defined on with density function: If we draw a sample from this distribution using MCMC we obtain a plot like this one: Clearly it doesn’t really look

Read more »

PAWL package on CRAN

October 26, 2011
By
PAWL package on CRAN

The PAWL package (which I talked about there, and which implements the parallel adaptive Wang-Landau algorithm and adaptive Metropolis-Hastings for comparison) is now on CRAN! http://cran.r-project.org/web/packages/PAWL/index.html which means that within R you can easily install it by typing install.packages("PAWL") Isn’t that amazing? It’s just amazing. Kudos to the CRAN team for their quickness and their

Read more »

Calling Google Maps API from R

October 5, 2011
By
Calling Google Maps API from R

Hi, Related to Julyan’s previous post, I want to share an easy way to access Google Maps API through R. And then we’ll stop about Google, otherwise it’ll look like we’re just looking for jobs. My problem was the following: … Continue reading →

Read more »

Density exploration and Wang-Landau algorithms [with R package]

September 21, 2011
By
Density exploration and Wang-Landau algorithms [with R package]

Hey, Since a new paper that I’ve co-written has appeared on arXiv, here is a quick post summarizing it. The paper is named: An Adaptive Interacting Wang-Landau Algorithm for Automatic Density Exploration and describes improvements over the Wang-Landau algorithm described … Continue reading →

Read more »

Speed up your R code with C++

February 3, 2011
By
Speed up your R code with C++

Hi again, Recently, Julyan blogged about allocating memory first before modifying R objects. That’s a very useful trick that applies to most programming languages. Tonight I want to blog about something a bit more complicated and more specific to R, but which can lead to massive speed-ups: interfacing C/C++ within R codes. The rationale behind

Read more »