# LIST_STAT_GEOMETRIC_MEAN

*LSL constant*

```lsl
integer LIST_STAT_GEOMETRIC_MEAN = 9;
```

Constant groups: [ListStatisticsOperation](/constants/groups/ListStatisticsOperation/)

Returns the geometric mean of a list of numbers.

```lsl
float geometric_mean = llListStatistics( LIST_STAT_GEOMETRIC_MEAN, numList );
```

For two numbers, *a* and *b*, the geometric mean is [llSqrt](/functions/llSqrt/)(a\*b). For a list of *n* numbers, the geometric mean is the n-th root of their product. It indicates the central tendency or typical value to expect. It only works for positive numbers.

In comparison, the arithmetic mean (known as the average) is the sum of the numbers divided by how many numbers there are.

## See also

### Functions

- [llListStatistics](/functions/llListStatistics/)

---

*Source: [LIST STAT GEOMETRIC MEAN](https://wiki.secondlife.com/wiki/LIST_STAT_GEOMETRIC_MEAN) on the Second Life Wiki. Content from the Second Life Wiki article LIST STAT GEOMETRIC MEAN (revision 1194668, 2015-01-23), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/LIST_STAT_GEOMETRIC_MEAN/
