Function Repository Resource:

# CumulativeAverages

Calculate the cumulative averages of a list

Contributed by: Sander Huisman
 ResourceFunction["CumulativeAverages"][list] calculates the cumulative averages of list.

## Details and Options

ResourceFunction["CumulativeAverages"] calculates the average up to a certain time.
The nth element of the output is given by Mean[{e1,e2,…,ei}], where ei is the ith element of list. Hence, the nth output element is given as .

## Examples

### Basic Examples (3)

Find the averages up to the nth element:

 In[1]:=
 Out[1]=

Use symbolic input:

 In[2]:=
 Out[2]=

Compute the cumulative averages of the digits of Pi:

 In[3]:=
 Out[5]=

### Scope (4)

Use a TimeSeries object:

 In[6]:=
 Out[7]=

Use a TimeSeries object from FinancialData:

 In[8]:=
 Out[9]=

Use a TimeSeries object with multiples paths:

 In[10]:=
 Out[14]=

Use an EventSeries object:

 In[15]:=
 Out[18]=

### Neat Examples (1)

Plot the cumulative average of the digits of the ChampernowneNumber:

 In[19]:=
 Out[21]=

SHuisman

## Version History

• 1.0.0 – 24 June 2019