ClickHouse/docs/en/sql-reference/aggregate-functions/reference/kurtsamp.md

29 lines
721 B
Markdown
Raw Normal View History

---
2022-08-28 14:53:34 +00:00
slug: /en/sql-reference/aggregate-functions/reference/kurtsamp
sidebar_position: 154
---
2022-06-02 10:55:18 +00:00
# kurtSamp
Computes the [sample kurtosis](https://en.wikipedia.org/wiki/Kurtosis) of a sequence.
It represents an unbiased estimate of the kurtosis of a random variable if passed values form its sample.
``` sql
kurtSamp(expr)
```
**Arguments**
`expr` — [Expression](../../../sql-reference/syntax.md#syntax-expressions) returning a number.
**Returned value**
The kurtosis of the given distribution. Type — [Float64](../../../sql-reference/data-types/float.md). If `n <= 1` (`n` is a size of the sample), then the function returns `nan`.
**Example**
``` sql
SELECT kurtSamp(value) FROM series_with_value_column;
```