Re: version of Golub Chan LeVeque stable algorithm for sample variance applicable to weighted observations
- From: "Ray Koopman" <koopman@xxxxxx>
- Date: 8 Jul 2006 23:35:39 -0700
William M. Grove wrote:
In article <1152316445.668105.289070@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
koopman@xxxxxx says...
The unweighted code is wrong. Reverse the order of the updates,Sorry about the errors; thanks for the corrections. I wrote hurriedly
change oldVar to var, and change (i-2) to (i-1) in the var update:
away from the office, so I was going from memory (I had a variable
oldVar in the code that was cluttering up my head, for reasons that
don't matter here...).
Anybody know the update for weighted observations?
Regards,
Will Grove
I seem to remember seeing pseudocode for updating weighted means,
variances, and covariances in an appendix of the old BMDP manual.
.
- Follow-Ups:
- References:
- version of Golub Chan LeVeque stable algorithm for sample variance applicable to weighted observations
- From: William M . Grove
- Re: version of Golub Chan LeVeque stable algorithm for sample variance applicable to weighted observations
- From: Ray Koopman
- Re: version of Golub Chan LeVeque stable algorithm for sample variance applicable to weighted observations
- From: William M . Grove
- version of Golub Chan LeVeque stable algorithm for sample variance applicable to weighted observations
- Prev by Date: Re: PCA - separation and variance
- Next by Date: which model (GLMs)is the best?
- Previous by thread: Re: version of Golub Chan LeVeque stable algorithm for sample variance applicable to weighted observations
- Next by thread: Re: version of Golub Chan LeVeque stable algorithm for sample variance applicable to weighted observations
- Index(es):