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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
723 B
Markdown
Raw Normal View History

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