Blog Archives

The Most Comprehensive Review of Comic Books Teaching Statistics

June 11, 2014
By
The Most Comprehensive Review of Comic Books Teaching Statistics

As I’m more or less an autodidact when it comes to statistics, I have a weak spot for books that try to introduce statistics in an accessible and pedagogical way. I have therefore collected what I believe are all books that introduces statistics using comics (at least those written in English). What follows are highly subjective reviews of those...

Read more »

Jeffreys’ Substitution Posterior for the Median: A Nice Trick to Non-parametrically Estimate the Median

May 3, 2014
By
Jeffreys’ Substitution Posterior for the Median: A Nice Trick to Non-parametrically Estimate the Median

While reading up on quantile regression I found a really nice hack described in Bayesian Quantile Regression Methods (Lancaster & Jae Jun, 2010). It is called Jeffreys’ substitution posterior for the median, first described by Harold Jeffreys in his Theory of Probability, and is a non-parametric method for approximating the posterior of the median. What makes it...

Read more »

Bayesian First Aid: Pearson Correlation Test

March 17, 2014
By
Bayesian First Aid: Pearson Correlation Test

Correlation does not imply causation, sure but, as Edward Tufte writes, “it sure is a hint.” The Pearson product-moment correlation coefficient is perhaps one of the most common ways of looking for such hints and this post describes the Bayesian First Aid alternative to the classical Pearson correlation test. Except for being based on Bayesian estimation (a good...

Read more »

A Hack to Create Matrices in R, Matlab style

March 7, 2014
By
A Hack to Create Matrices in R, Matlab style

The Matlab syntax for creating matrices is pretty and convenient. Here is a 2x3 matrix in Matlab syntax where , marks a new column and ; marks a new row: Here is how to create the corresponding matrix in R: matrix(c(1,4,2,5,3,6), 2, 3) ## ## 1...

Read more »

Oldies but Goldies: Statistical Graphics Books

March 1, 2014
By
Oldies but Goldies: Statistical Graphics Books

I just wanted to plug for three classical books on statistical graphics that I really enjoyed reading. The books are old (that is, older than me) but still relevant and together they give a sense of the development of exploratory graphics in general and the graphics system in R specifically as all three books were written at Bell Labs...

Read more »

Bayesian First Aid: Two Sample t-test

February 24, 2014
By
Bayesian First Aid: Two Sample t-test

As spring follows winter once more here down in southern Sweden, the two sample t-test follows the one sample t-test. This is a continuation of the Bayesian First Aid alternative to the one sample t-test where I’ll introduce the two sample alternative. It will be a quite short post as the two sample alternative is just more of...

Read more »

A Significantly Improved Significance Test. Not!

February 12, 2014
By
A Significantly Improved Significance Test. Not!

It is my great pleasure to share with you a breakthrough in statistical computing. There are many statistical tests: the t-test, the chi-squared test, the ANOVA, etc. I here present a new test, a test that answers the question researchers are most anxious to figure out, a test of significance, the significance test. While a test like the two...

Read more »

Bayesian First Aid: One Sample and Paired Samples t-test

February 4, 2014
By
Bayesian First Aid: One Sample and Paired Samples t-test

Student’s t-test is a staple of statistical analysis. A quick search on Google Scholar for “t-test” results in 170,000 hits in 2013 alone. In comparison, “Bayesian” gives 130,000 hits while “box plot” results in only 12,500 hits. To be honest, if I had to choose I would most of the time prefer a notched boxplot to...

Read more »

Announcing pingr: The R Package that Sounds as it is Called

January 26, 2014
By
Announcing pingr: The R Package that Sounds as it is Called

pingr is an R package that contains one function, ping(), with one purpose: To go ping on whatever platform you are on (thanks to the audio package). It is intended to be useful, for example, if you are running a long analysis in the background and want to know when it is ready. It’s also useful if...

Read more »

Bayesian First Aid: Binomial Test

January 20, 2014
By
Bayesian First Aid: Binomial Test

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 ANOVA...

Read more »