---
title: "list_var_samp function in Strata | Oplema"
description: "Calculate the sample variance of the values in a list. For example, list_var_samp([3,3,9]) returns 12.0. Works in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/list-var-samp"
updated: "2026-11-04"
---

# list\_var\_samp

Calculate the sample variance from the values in a list.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **DOUBLE**.

### Expression

```
list_var_samp([3,3,9])
```

### Result

```
12.0
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 12 |

## Arguments and types

```
list_var_samp(l)
```

**l**

Any value

Supported signatures (1)

```
list_var_samp(l: ANY)
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[list\_kurtosis

Calculate the sample excess kurtosis from the values in a list.

](https://oplema.com/docs/strata/functions/list-kurtosis)[list\_skewness

Calculate the sample skewness from the values in a list.

](https://oplema.com/docs/strata/functions/list-skewness)[list\_stddev\_samp

Calculate the sample standard deviation from the values in a list.

](https://oplema.com/docs/strata/functions/list-stddev-samp)[list\_var\_pop

Calculate the population variance from the values in a list.

](https://oplema.com/docs/strata/functions/list-var-pop)

[Browse lists & arrays](https://oplema.com/docs/strata/functions#lists-&-arrays) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/list.html#list_var_samplist)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
