< Previous | Next | Contents >

Time Variance

To compute variance of a large measurement sequence data, recursive time-variance formula (4) below give more efficient computation and data storage. You don't need to keep all the measurement data. All you need is to compute the current variance Time Variance is the current measurement data Time Variance , current time-average Time Variance and the previous variance Time Variance . The formula is as follow

Time Variance (4)

Click here to see the proof of the formula above

For time Time Variance , it is defined that Time Variance . Thus, the computation using equation (4) starts at Time Variance .

Using the previous measurement data of 4, 6, 12, 9 we can get exactly the same result of variance as the usual computation method, but in more efficient way. Table below show the example of computation using the recursive time-variance formula above.

Time

( Time Variance )

Measurement

( Time Variance )

Average

( Time Variance )

Variance

( Time Variance )

1

Time Variance

Time Variance

Time Variance (by definition).

2

Time Variance

Time Variance

Time Variance

3

Time Variance

Time Variance

Time Variance

4

Time Variance

Time Variance

Time Variance


To give you better understanding about recursive mean and variance, I made a simple program below. You can try with your own data or test it with the example above. To use the program you need to set JavaScript enabled in your browser and you need to type the input data one at a time (I include 4 as an initial current input data), then press "Input" button to compute the time average and time variance. Alternatively, click "Random Input" button repeatedly to create simulated data. You need at least two data points to plot the chart. To restart with an empty data, click "Reset" button. If you use Internet Explorer, the chart may not work properly to show the effect of variance, please use FireFox or Google Chrome instead.

Current input data

Current Average:
0

Current Variance:
0

Previous Average:
0

Previous Variance:
0

Number of data:
0


List of your inputted data:
None
None
None

If you click Random input for about more than say 25 points, you will notice that not only the time average is moving and varies over time, even the time variance is also fluctuated. Compare this result with the constant average and constant variance of traditional mean and average .

The next section we will do something reverse: to get the data from the statistics

< Previous | Next | Contents >

These tutorial is copyrighted .

Preferable reference for this tutorial is

Teknomo, Kardi. (2006) Recursive Average and Variance.
http://people.revoledu.com/kardi/tutorial/RecursiveStatistic/index.html