MathOverflow is a question and answer site for professional mathematicians. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some statistical data from which I want to graph the means and use the standard deviations as error bars. However this produces a graph with some of the error bars passing below zero. A negative value is silly for this data (mean trip times), so I was wondering what is a sensible way to graph the data.

share|cite|improve this question
Perhaps you could clarify what you mean by STD? Is it standard deviation? Also, you could use the [statistics] tag. – Sonia Balagopalan Nov 10 '09 at 12:47
Yes, "STD" is an unfortunate acronym. – Theo Johnson-Freyd Nov 10 '09 at 19:04
in the context of a math question, do you really need clarification what STD means? – hoju Nov 10 '09 at 20:30
up vote 7 down vote accepted

Your error bars may be giving you a hint to look more closely at the distribution of your data: it may not be symmetric. For example, if your data is essentially log-normal you could work with the logs of your numbers and the problem will automatically go away.

I'm not a fan of error bars. In theory they let you visually do some statistical significance estimates and perhaps give some sense of the underlying data. But there are a lot of subtleties and at least one study has found that even experienced scientists often misinterpret them. This nice blog post discusses some of the issues.

If you do need to summarize the data with a few statistics, I'd argue for boxplots as a better way to represent asymmetric distributions, along with text/captions that highlight important statistical significance conclusions.

share|cite|improve this answer

Perhaps means and standard deviations are the wrong way to present the data. It sounds like you would communicate more information if you graph the medians and used quartiles as "error bars".

share|cite|improve this answer

Assuming you mean standard deviation, if the error bars are $\mu \pm \sigma$, and $\mu - \sigma < k$, where $\mu$ and $\sigma$ are mean and standard deviation respectively, and $k$ is the minimum value taken by your random variable, you can always leave the error bars at $k$ and $\mu + \sigma$. Similarly for $\mu + \sigma > K$, where $K$ is the maximum value your random variable takes.

share|cite|improve this answer

Probably its very late answer for the actual person. But I am going to suggest an answer anyways so that others can use this formation.

"You can calculate standard error (SE) for the data and include them as error bars and they should not go below zero". SE = Standard deviation / SQRT(sample size). SE represents for the population rather than sample so it will be more informative than Standard deviation.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.