category

# `statistics`

Statistical calculations over a list of numbers.

Availability:
`logtalk_load(statistics(loader))`
Author: Paulo Moura
Version: 1:7:1
Date: 2023-05-29
Compilation flags:
`static`
Implements:
`public` statisticsp
Uses:
list
numberlist
Remarks:
(none)
Inherited public predicates:
arithmetic_mean/2 average_deviation/3 coefficient_of_variation/2 fractile/3 geometric_mean/2 harmonic_mean/2 kurtosis/2 max/2 mean_deviation/2 median/2 median_deviation/2 min/2 min_max/3 modes/2 product/2 range/2 relative_standard_deviation/2 skewness/2 standard_deviation/2 sum/2 valid/1 variance/2 weighted_mean/3 z_normalization/2

## Public predicates

(no local declarations; see entity ancestors if any)

## Protected predicates

(no local declarations; see entity ancestors if any)

## Private predicates

### `arithmetic_mean/5`

Auxiliary predicate for computing the arithmetic mean.

Compilation flags:
`static`
Template:
`arithmetic_mean(List,Length0,Length,Sum,Mean)`
Mode and number of proofs:
`arithmetic_mean(+list(number),+integer,-integer,+number,-float)` - `one`

### `squares_and_cubes/6`

Auxiliary predicate for computing the skewness.

Compilation flags:
`static`
Template:
`squares_and_cubes(List,Mean,Squares0,Squares,Cubes0,Cubes)`
Mode and number of proofs:
`squares_and_cubes(+list(number),+float,+float,-float,+float,-float)` - `one`

### `squares_and_hypers/6`

Auxiliary predicate for computing the kurtosis.

Compilation flags:
`static`
Template:
`squares_and_hypers(List,Mean,Squares0,Squares,Hypers0,Hypers)`
Mode and number of proofs:
`squares_and_hypers(+list(number),+float,+float,-float,+float,-float)` - `one`

### `variance/6`

Auxiliary predicate for computing the variance.

Compilation flags:
`static`
Template:
`variance(List,Length0,Length,Mean,M20,M2)`
Mode and number of proofs:
`variance(+list(number),+integer,-integer,+float,+float,-float)` - `one`

## Operators

(none)