Skip to main content

Appendix A. Some Formulas for Statistical Aggregation

Some formulas for statistical aggregation

The following naming conventions are being used:

        For poll values poll(n)_j

n = Polling or aggregation period
j = Entry number

poll(900)_j is thus the 15 minute total value.

        For peak values peak(n,m)_j

n = Period over which the peak is calculated
m = The peak period length
j = Entry number

peak(3600,900)_j is thus the maximum 15 minute period calculated

                     over 1 hour.

Assume a polling over 24 hour period giving 1440 logged entries.

=========================

Without any aggregation we have

        poll(60)_1
......
poll(60)_1439

========================

15 minute aggregation will give 96 entries of total values

        poll(900)_1
....
poll(900)_96

j=(n+14)

        poll(900)_k = SUM  poll(60)_j  n=1,16,31,...1425
j=n k=1,2,....,96

There will also be 96 1 minute peak values.
                        j=(n+14)
peak(900,60)_k = MAX poll(60)_000j n=1,16,31,....,1425
j=n k=1,2,....,96

=======================

Next aggregation step is from 15 minute to 1 hour.

This gives 24 totals

                           j=(n+3)
poll(3600)_k = SUM poll(900)_j n=1,5,9,.....,93
j=n k=1,2,....,24

and 24 1 minute peaks calculated over each hour.

                          j=(n+3)
peak (3600,60)_k = MAX peak(900,60)_j n=1,5,9,.....,93
j=n k=1,2,....24

and finally 24 15 minute peaks calculated over each hour.

                         j=(n+3)
peak (3600,900) = MAX poll(900)_j n=1,5,9,.....,93
j=n

===================

Next aggregation step is from 1 hour to 24 hour

For each day with 1440 entries as above this will give

                        j=(n+23)

        poll(86400)_k = SUM  poll(3600)_j  n=1,25,51,.......
j=n k=1,2............

j=(n+23)
peak(86400,60)_k = MAX peak(3600,60)_j n=1,25,51,....
j=n k=1,2.........

which gives the busiest 1 minute period over 24 hours.

j=(n+23)
peak(86400,900)_k = MAX peak(3600,900)_j n=1,25,51,....
j=n k=1,2,........

which gives the busiest 15 minute period over 24 hours.

j=(n+23)
peak(86400,3600)_k = MAX poll(3600)_j n=1,25,51,....
j=n k=1,2,........

which gives the busiest 1 hour period over 24 hours.

===================

There will probably be a difference between the three peak values in the final 24 hour aggregation. Smaller peak period will give higher values than longer, i.e., if adjusted to be numerically comparable.

poll(86400)/3600 < peak(86400,3600) < peak(86400,900)*4

           < peak(86400,60)*60