Hans Gilde’s weblog

Normal Q-Q plot in R is easily misinterpreted

Posted in R, statistics by Hans on March 18, 2009

Many R users don’t know this and they could be misinterpreting the R QQ plot.

Here is an example QQ plot from R, generated from an object of type aov named ‘fit’:

plot(fit, which=2)

qq

Now there is a line on this image, and one might naturally assume that this line represents the perfect match with the standard normal, leading to one interpretation.

But let’s try plotting the 45 degree line representing a perfect match:

plot(fit, which=2)

abline(0,1)

qq-abline
Woah, quite a different interpretation.

The line drawn by default is not the 45 degree line, but rather the line “which passes through the first and third quartiles”.

 
See “?qqplot” for more info.

About these ads

2 Responses

Subscribe to comments with RSS.

  1. [...] Normal Q-Q Plot in R is Easily Misinterpreted [...]

  2. Sharan Sharma said, on June 6, 2009 at 1:26 pm

    That is useful. Thanks!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: