note 89249 added to function.stats-variance

From: Date: Fri, 27 Feb 2009 21:46:33 +0000
Subject: note 89249 added to function.stats-variance
Groups: php.notes 
Request: Send a blank email to php-notes+get-151233@lists.php.net to get a copy of this message
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. ---- Server IP: 217.13.201.10 Probable Submitter: 92.76.117.58 ---- Manual Page -- http://www.php.net/manual/en/function.stats-variance.php Edit -- https://master.php.net/note/edit/89249 Del: integrated -- https://master.php.net/note/delete/89249/integrated Del: useless -- https://master.php.net/note/delete/89249/useless Del: bad code -- https://master.php.net/note/delete/89249/bad+code Del: spam -- https://master.php.net/note/delete/89249/spam Del: non-english -- https://master.php.net/note/delete/89249/non-english Del: in docs -- https://master.php.net/note/delete/89249/in+docs Del: other reasons-- https://master.php.net/note/delete/89249 Reject -- https://master.php.net/note/reject/89249 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151233) next »