Publications by Rasmus Bååth

A Bayesian Twist on Tukey’s Flogs

30.09.2013

In the last post I described flogs, a useful transform on proportions data introduced by John Tukey in his Exploratory Data Analysis. Flogging a proportion (such as, two out of three computers were Macs) consisted of two steps: first we “started” the proportion by adding 1/6 to each of the counts and then we “folded” it using what was bas...

2772 sym R (131 sym/1 pcs)

How Do You Write Your Model Definitions?

20.10.2013

I’m often irritated by that when a statistical method is explained, such as linear regression, it is often characterized by how it can be calculated rather than by what model is assumed and fitted. A typical example of this is that linear regression is often described as a method that uses ordinary least squares to calculate the best fitting li...

8778 sym 8 img

Easy Laplace Approximation of Bayesian Models in R

21.11.2013

Thank you for tuning in! In this post, a continuation of Three Ways to Run Bayesian Models in R, I will: Handwave an explanation of the Laplace Approximation, a fast and (hopefully not too) dirty method to approximate the posterior of a Bayesian model. Show that it is super easy to do Laplace approximation in R, basically four lines of code. Put...

3072 sym R (32 sym/1 pcs) 6 img

Shaping up Laplace Approximation using Importance Sampling

02.12.2013

In the last post I showed how to use Laplace approximation to quickly (but dirtily) approximate the posterior distribution of a Bayesian model coded in R. This is just a short follow up where I show how to use importance sampling as an easy method to shape up the Laplace approximation in order to approximate the true posterior much better. But fi...

8523 sym R (1641 sym/1 pcs) 12 img

An Animation of the t Distribution as a Mixture of Normals

07.12.2013

You’ve probably heard about the t distribution. One good use for this distribution is as an alternative to the normal distribution that is more robust against outliers. But where does the t distribution come from? One intuitive characterization of the t is as a mixture of normal distributions. More specifically, as a mixture of an infinite numb...

2483 sym 6 img

Three Syntax Additions that Would Make R Even More Awesome

19.12.2013

So R is awesome. Felt good to get that out of the way! But sometimes I long for some small syntax additions while programming away in R in the night… The picture is of a restaurant called Risotto in Berlin. Just to make it clear, I fully understand that changing the syntax of a language as popular as R is a pretty big thing and I’m not argui...

1006 sym R (70 sym/1 pcs) 2 img

The Mascots of Bayesian Statistics

25.12.2013

Why would Bayesian statistics need a mascot/symbol/logo? Well, why not? I don’t know of any other branch of statistics that has a mascot but many programming languages have. R has an “R”, Python has a python snake, and Go has an adorable little gopher. While Bayesian statistics isn’t a programming language it could be characterized as a t...

3669 sym 20 img

An Animation of the Construction of a Confidence Interval

30.12.2013

I’m playing blog ping-pong with John Kruschke’s Doing Bayesian Data Analysis blog as he was partly inspired by my silly post on Bayesian mascots when writing a nice piece on Icons for the essence of Bayesian and frequentist data analysis. That piece, in turn, inspired me resulting in the following wobbly backhand. The confidence interval is,...

3063 sym 2 img

Bayesian First Aid

10.01.2014

So I have a secret project. Come closer. I’m developing an R package that implements Bayesian alternatives to the most commonly used statistical tests. Yes you heard me, soon your t.testing days might be over! The package aims at being as easy as possible to pick up and use, especially if you are already used to the classical .test functions. T...

8681 sym R (22 sym/1 pcs) 4 img

Bayesian First Aid: Binomial Test

20.01.2014

The binomial test is arguably the conceptually simplest of all statistical tests: It has only one parameter and an easy to understand distribution for the data. When introducing null hypothesis significance testing it is puzzling that the binomial test is not the first example of a test but sometimes is introduced long after the t-test and the AN...

4581 sym R (20 sym/1 pcs) 8 img