Skip to main content

mean

Returns the arithmetic average value from a list of values

Returns the arithmetic average value from a list of values using the formula:

Syntax

var = mean(List or TimeSeries)

Result

A number representing the arithmetic average value from the input List or TimeSeries

Example

data = [1,2,3]
print mean(data)
2