PHP Classes
elePHPant
Icontem

Weighted PHP Statistics: Calculate statistics on weighted data sets

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-05-24 (3 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 1 This week: 1All time: 9,606 This week: 372Up
Version License PHP version Categories
weightedstats 1.0Freely Distributable5Algorithms, PHP 5, Statistics
Description Author

This class can calculate statistics on weighted data sets.

It can take as parameters one data set array with numeric values and another array with the respective weights for the values in the first parameter array.

The class can calculate several types of common statistics on the data set values considering the weight values, like: the mean, average, standard deviation, percentile and skew.

  Performance   Level  
Name: Greg Neyman <contact>
Classes: 2 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 2x

Details
Many datasets have individual points which have differing weights than other points in the set. These datasets will include that information in a Weight column.
Attempting to calculate statistics in a traditional way on such data will give incorrect results.
This class has packaged the modified methods for common stats so they can be reliably performed when needed.
  Files folder image Files  
File Role Description
Accessible without login Plain text file readme Doc. readme
Accessible without login Plain text file weightedexample.php Example Example
Plain text file weightedstats.php Class Source File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1
This week:1
All time:9,606
This week:372Up