---
name: "Catmandu::Fix::stat_variance"
section: "3pm"
platform: "linux"
package: "libcatmandu-stat-perl"
version: "0.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Fix::stat_variance"
---

# Catmandu::Fix::stat\_variance(3pm)

calculate the variance of an array

## NAME

Catmandu::Fix::stat\_mean - calculate the variance of an array

## SYNOPSIS

```
   # Calculate the variance of foo. E.g. foo => [1,2,3,4]
   stat_variance(foo)  # foo => '1.25'
```

## SEE ALSO

Catmandu::Fix
