Re: Real-time Calculation of Standard Deviation




"gd1956" <gdalby1956@xxxxxxxxxxxxx> wrote in message
news:1137916269.535456.162060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>A while back, I was working on a project where data (a wire diameter)
> was measured and displayed. I wanted to display the mean and standard
> deviation from the start of the measurement but couldn't store all the
> data values until the end of the measurement due to memory limitations.
> I worked out a formula for calculating the current standard deviation
> based on the new data value, the previous mean and the previous
> standard deviation.
> Can anyone tell me whether this is 'common knowledge' (I am not a
> mathematician) as I haven't seen it mentioned anywhere.
>
See
http://en.wikipedia.org/wiki/Standard_deviation#Rapid_calculation_methods
Especially take note of the formula for running sums!
You need only to keep in memory....
(i) previous sample size.
(ii) previous SumOf ( diameters^2)
(iii) previous ( SumOf (diameters))^2
hth Mick


.



Relevant Pages

  • Real-time Calculation of Standard Deviation
    ... I wanted to display the mean and standard ... data values until the end of the measurement due to memory limitations. ... I worked out a formula for calculating the current standard deviation ...
    (sci.math)
  • Re: Real-time Calculation of Standard Deviation
    ... I wanted to display the mean and standard ... >deviation from the start of the measurement but couldn't store all the ... >data values until the end of the measurement due to memory limitations. ...
    (sci.math)
  • Re: Assumption of standard
    ... right - by petition and award - to display banners of their own. ... States has no legitimate right to display a standard. ... You yourself display arms which are used ...
    (rec.heraldry)
  • Re: Big Canon Announcement
    ... The HD journey tried to reach a single worldwide standard, however it had to settle on a compromise of mutual compatibility. ... I don't think that an HD display cares what the delivered frame rate is as long as the rate is described in the headers of the data stream. ... As a camera designer (not conventional video, but output to HD screens) I have had the misfortune of having one HD screen be damaged in preparation for a customer demo and have to be replaced by something similar from exactly the same manufacturer. ...
    (rec.photo.digital.slr-systems)
  • Re: Assumption of standard
    ... right - by petition and award - to display banners of their own. ... States has no legitimate right to display a standard. ...
    (rec.heraldry)