Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Standard deviation?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00352292
Message ID:
00352421
Vues:
12
Leave it to a statitician ...
>>I'm in a bit of a problem here. I need to compute the standard deviation on an array of values. I know it's easy to do it on table data: CALCULATE STD(numfield). But what is the actual textbook formula? Anyone got a mathematics textbook handy or a darn good memory?
>
>I see Mark found you the formula - careful about the squared, it's not on the entire summation, but on each individual x(i) - Mean term. You have to make two passes throught the data for this, of course. There is a slightly easier computational version of this as follows:
>
>SD = SQRT(n * sum(x(i)^2) - sum(x(i))^2/(n * (n-1))
>
>That said, I would use JVP's suggestion of dumping it into a cursor, much nicer.
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform