Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to display stddev as a % around the mean #409

Closed
kettch opened this issue May 14, 2014 · 6 comments
Closed

Add an option to display stddev as a % around the mean #409

kettch opened this issue May 14, 2014 · 6 comments

Comments

@kettch
Copy link

@kettch kettch commented May 14, 2014

It would be great to be able to display the standard deviation as a range around the mean (that is a bar, or band, around the curve of the mean), rather than an absolute value.
It is much more readable to be able to see the mean and the range as a whole, and the evolution in time, instead of two values without any relation.

@torkelo
Copy link
Member

@torkelo torkelo commented May 15, 2014

Could you describe in a little more detail what you mean? Do you want stddev in the graph? It would only be a straight line. Or do you want a moving stddev or based on a graphite function?

@kettch
Copy link
Author

@kettch kettch commented May 15, 2014

It's indeed pretty tricky to explain...

In addition to the 'mean' function in queries, there's also 'stddev'. Both will coalesce some data points in the DB into one point in the graph, applying the function. The problem is the way they are displayed in the graph.
Here's an example, quickly drawn in Excel, with the stddev expressed in %:
screen shot 2014-05-15 at 13 35 56

In terms of readability, this is really not the best that can be done. The stddev is relative to the mean, so it doesn't mean much by itself.

Some more readable ways would be to:

  • display a line for the mean, and trace, on each point, a bar showing the min and max of the deviation around it (half above, half below)
  • display a line for the mean, and a band (with inside color or not) around the curve for the mean. This is pretty similar to what's done with Bollinger Bands in financial graphs. (example below)
    screen shot 2014-05-15 at 13 37 17

That way, you have a line showing you the mean, since it is the main information on the graph, then a curve or bars around that curve to show how it deviates, with the absolute evolution over time.

@eliperelman
Copy link

@eliperelman eliperelman commented Nov 30, 2014

Being able to plot the standard deviation of an entire graph as a fill with an upper and lower bound would help find mean points that are outliers of the standard deviation. +1 to some variation of the above.

@torkelo torkelo closed this Apr 17, 2015
@torkelo
Copy link
Member

@torkelo torkelo commented Apr 17, 2015

needs to implemented in time series store (in query), before aggregation

@fsaf11
Copy link

@fsaf11 fsaf11 commented Feb 15, 2017

Please, how to do it?

@yanivmo
Copy link

@yanivmo yanivmo commented Jul 19, 2017

It is possible to graph deviations around a metric using the "fill below" display option. See #940 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants