note 89248 added to function.stats-variance

From: Date: Fri, 27 Feb 2009 21:43:58 +0000
Subject: note 89248 added to function.stats-variance
Groups: php.notes 
Request: Send a blank email to php-notes+get-151232@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 lower 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/89248 Del: integrated -- https://master.php.net/note/delete/89248/integrated Del: useless -- https://master.php.net/note/delete/89248/useless Del: bad code -- https://master.php.net/note/delete/89248/bad+code Del: spam -- https://master.php.net/note/delete/89248/spam Del: non-english -- https://master.php.net/note/delete/89248/non-english Del: in docs -- https://master.php.net/note/delete/89248/in+docs Del: other reasons-- https://master.php.net/note/delete/89248 Reject -- https://master.php.net/note/reject/89248 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151232) next »