> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Computes the sample skewness of a sequence.

# skewSamp

<h2 id="skewSamp">
  skewSamp
</h2>

Introduced in: v20.1.0

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.

**Syntax**

```sql theme={null}
skewSamp(expr)
```

**Arguments**

* `expr` — An expression returning a number. [`Expression`](/reference/data-types/special-data-types/expression)

**Returned value**

Returns the skewness of the given distribution. If `n <= 1` (`n` is the size of the sample), then the function returns `nan`. [`Float64`](/reference/data-types/float)

**Examples**

**Symmetric distribution**

```sql title=Query theme={null}
SELECT skewSamp(number) FROM numbers(100);
```

```response title=Response theme={null}
┌─skewSamp(number)─┐
│                0 │
└──────────────────┘
```

**Right-skewed distribution**

```sql title=Query theme={null}
SELECT skewSamp(x) FROM (SELECT pow(number, 2) AS x FROM numbers(10));
```

```response title=Response theme={null}
┌────────skewSamp(x)─┐
│ 0.5751042382747413 │
└────────────────────┘
```
