> ## 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 kurtosis of a sequence.

# kurtSamp

<h2 id="kurtSamp">
  kurtSamp
</h2>

Introduced in: v20.1.0

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.

**Syntax**

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

**Arguments**

* `expr` — [Expression](/reference/syntax#expressions) returning a number. [`(U)Int*`](/reference/data-types/int-uint) or [`Float*`](/reference/data-types/float) or [`Decimal`](/reference/data-types/decimal)

**Returned value**

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

**Examples**

**Computing sample kurtosis**

```sql title=Query theme={null}
CREATE TABLE test_data (x Float64) ENGINE = Memory;
INSERT INTO test_data VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);

SELECT kurtSamp(x) FROM test_data;
```

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