mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
7170f3c534
* prefer relative links from root * wip * split aggregate function reference * split system tables
28 lines
668 B
Markdown
28 lines
668 B
Markdown
---
|
|
toc_priority: 151
|
|
---
|
|
|
|
# skewSamp {#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)
|
|
```
|
|
|
|
**Parameters**
|
|
|
|
`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
|
|
```
|