subsection contents

Simple Stats

Use this page to enter a series of values and work out some basic statistics for that data. See below for notes.

Tested with Safari and Firefox on Mac OS X. According to Browsershots, the page loads and appears to work with Firefox, Chrome and Safari on Windows. Getting it to work with Internet Explorer (and other browsers) may not be easy, but I'll look at it one day.

Data

Please enter a series of numbers:

Statistics

Notes

  • Enter one value per line.
  • Validation is done as values are entered, and values are sanitised to remove non-numeric and/or redundant characters.
  • In Safari, pressing Return also initiates the adding of another value.
  • Click on the icon to the right of a value to remove it.
  • Statistics are calculated using jsstats.
  • Most calculations are rounded up, to two decimal places. However, Sum and Range are not rounded, and may suffer from precision issues.
  • The data series can be passed to the page via the url, e.g.:
    SimpleStats.html?values=10.0,20.3,16.5
    SimpleStats.html?10.1,20.3,21.5,14.6

Future enhancements

  • Support for more browsers.
  • Calculation of additional statistics.
  • Allowance for a second data series.
  • Support for values using "," as decimal separator.

Last updated: April 17, 2009