Real-Life Math
You are a simulation engineer. You have been asked to run a set of
simulations and produce a set of average results based on a large number of
simulations. You need to find the average and standard deviation for a given
data set.
Standard deviation is a measure of how the actual values
vary from the mean or average. A standard deviation close to zero would indicate
that the actual data points tend to be very close to the mean or average.
A high standard deviation would indicate that the actual data points are
spread out over a wider range.
Find the average and standard deviation
for the following set of numbers: [102.5, 101.7, 103.1, 100.9, 100.5, 102.2]
Here's what you have to do:
1. Calculate the mean (the simple average
of the values in your data set).
2. For each of the values in your
data set, subtract the mean and square the result.
3. Sum those squared
differences and then divide by one less than the total number of sample values.
4.
Take the square root of that.