Skip to content

Commit 03125c3

Browse files
amanycodesbeorn7
andauthored
Clarify geometric vs. arithmetic mean for histogram_stddev and histogram_stdvar
Signed-off-by: amanycodes <[email protected]> Signed-off-by: Aman <[email protected]> Co-authored-by: Björn Rabenstein <[email protected]>
1 parent 9bd232e commit 03125c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/specs/native_histograms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ averaged histogram.)
19781978
Similarly, `histogram_stddev()` and `histogram_stdvar()` return the estimated
19791979
standard deviation or standard variance, respectively, of the observations in a
19801980
native histogram. For this estimation, all observations in a bucket are assumed to
1981-
have the value of the geometric mean of the bucket boundaries.
1981+
have the value of the mean of the bucket boundaries. For the zero bucket and for buckets with custom boundaries, the arithmetic mean is used. For standard exponential buckets, the geometric mean is used.
19821982

19831983
`histogram_fraction(lower, upper, histogram)` returns the estimated fraction of
19841984
observations in `histogram` between the provided boundaries, the scalar values

0 commit comments

Comments
 (0)