note 89249 deleted from function.stats-variance by danbrown

From: Date: Fri, 27 Feb 2009 22:37:21 +0000
Subject: note 89249 deleted from function.stats-variance by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151236@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- This will return surprising values for most users, since the default of sample=false is rather unusual when speaking about variance. Point is: When using stats_variance($foo,TRUE) the sum is divided by n-1 while the default just divides it by n. So when you expect your variance to be higher you probable wanted to divide by n-1, therefore should set the second parameter =TRUE.

« previous php.notes (#151236) next »