Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Integers or floats?</p> <p>If they're integers, you need to accumulate a frequency distribution by reading the numbers and recording how many of each value you see. That can be averaged easily.</p> <p>For floating point, this is a bit of a problem. Given the overall range of the floats, and the actual distribution, you have to work out a bin-size that preserves the accuracy you want without preserving all of the numbers.</p> <hr> <p><strong>Edit</strong></p> <p>First, you need to sample your data to get a mean and a standard deviation. A few thousand points should be good enough. </p> <p>Then, you need to determine a respectable range. Folks pick things like ±6σ (standard deviations) around the mean. You'll divide this range into as many buckets as you can stand. </p> <p>In effect, the number of buckets determines the number of significant digits in your average. So, pick 10,000 or 100,000 buckets to get 4 or 5 digits of precision. Since it's a measurement, odds are good that your measurements only have two or three digits.</p> <hr> <p><strong>Edit</strong></p> <p>What you'll discover is that the mean of your initial sample is very close to the mean of any other sample. And any sample mean is close to the population mean. You'll note that most (but not all) of your means are with 1 standard deviation of each other. </p> <p>You should find that your measurement errors and inaccuracies are larger than your standard deviation.</p> <p>This means that a sample mean is as useful as a population mean.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload