Test whether data set approximates normal distribution using mean and median

I am of the knowledge that to test whether a data set approximates a normal distribution, the median and the mean should be approximately equal. So my question is to what degree should the difference between the median and the mean be accepted?

• You should first tell us why this matters to you/what you intend to do with this information.
– Gala
Jul 11 '13 at 6:50
• You could work out (via simulation at the very least) a distribution for the difference in sample mean and sample median, which would be symmetric about 0 and whose variance multiplied by $n$ would asymptotically go to some constant. As such you could construct some kind of test for normality, but it would be a pretty poor test for it, since it would have fairly poor power against a host of symmetric alternatives that aren't normal. If you're interested in assessing normality, there are better ways Jul 11 '13 at 6:58
• @Glen_b even understates the problem as there are also asymmetric distributions for which mean = median, such as some Poisson and binomial distributions. Jul 11 '13 at 7:31
• – Gala
Jul 11 '13 at 7:49

As I said in comments, you could work out (via simulation at the very least) a distribution for the difference in sample mean and sample median, which would be symmetric about 0 and whose variance multiplied by n would asymptotically go to some constant. As such you could construct some kind of test for normality, but it would be a pretty poor test for it, since it would have fairly poor power against a host of symmetric alternatives that aren't normal -- nor indeed even against asymmetric alternatives that happen to have mean=median. If you're interested in assessing normality, there are certainly better ways.

To answer the question though, this paper says that asymptotically, that constant I mentioned is $\pi/2-1$ (that is the variance of $\bar x - \tilde{x}$ in large samples is about $0.571\sigma^2/n$. In small samples, it's a bit smaller. As a rough rule of thumb, you expect the standard deviation of the difference between mean and median to be about $0.75 \sigma/\sqrt{n}$ (in odd samples; a bit smaller for even $n$).

Simulation of 10000 samples of size 25 gives a constant of $0.7390$ (that is, the s.d. of the difference was about $0.739\sigma/\sqrt{n}$, which is consistent with the results from the paper.

This boils down to basically using Pearson's second skewness coefficient as a way of assessing normality (I haven't used the factor of 3 here, though - I agree with Nick Cox's comment below that it's more intuitive without it in any case). That's sometimes called the nonparametric skew (though there's nothing that makes it any more nonparametric than any other skewness coefficient).

Now, considering it as a test statistic, since $\sigma$ will generally be unknown, it must usually be estimated; except for large samples (when we may apply Slutsky's theorem), this will lead to a coefficient that's heavier tailed than normal - though not actually t-distributed, it will probably be close to it* - meaning a critical value will tend to be larger for smaller samples. This will somewhat counteract the effect above of the coefficient being smaller with smaller $n$, though not completely; an asymptotic 5% test rejects when $\frac{\mid\bar x - \tilde{x}\mid}{k.s/\sqrt{n}}>1.96$ where $k = \sqrt{\pi/2-1}\approx 0.756$.

Using 0.75 for $k$ is easy to remember and works quite well for odd $n$ down to about 25 or even a bit lower; the actual significance level at $n$ = 25 is close to 4.5% (on normal data, naturally). It's a reasonably easy test to remember even if it's not always useful.

* though we won't know suitable approximate df without further effort

• Thanks for your answer. It is exactly what I was looking for. The publication from Electronic Journal of Applied Stats clarifies the issues that led to my post. Much appreciated. Jul 11 '13 at 13:23
• I think it's simpler and clearer to work with (mean - median) / SD. Multiplying that by 3 does have historic roots in Pearson's system of distributions. But setting that aside this measure then has the property, intermittently rediscovered and often thought contrary to intuition, that it is bounded by -1 and 1. It is clearly 0 for mean = median. Jul 11 '13 at 14:43
• @NickCox I agree, but felt the connection was worth pointing out. Jul 11 '13 at 15:01

There is no hard and fast rule for that, Its depend on your data. Please specify your data for more detail and you may try other methods to check the normality of data.

• I'm actually trying to establish control charts. I have collected the data. So all I needed was a way to determine whether my data is distributed normally, so that I could use appropriate formulas to calculate limits. Hence my post. Jul 11 '13 at 13:30