Assume you are given an array of percentages:
test=np.array([1.0, 1.0, 1.0, 0.8571428571428571, 0.7142857142857143, 0.8571428571428571, 0.8571428571, 1.0, 1.0]) * 100
If you calculate the average value and standard deviation, the results will be as follows, but considering the standard deviation, it will exceed 100%.What's wrong with this?
np.mean(test)#92.857..
np.std(test)#9.58314..
The standard deviation is the number of 68% of the total values in the range from the mean (which takes the square root of the square mean of the difference from the mean of the data), so even if pulled down, it will swell up the same way.So there's nothing wrong.
·Reference link
https://data-viz-lab.com/standarddeviation
© 2024 OneMinuteCode. All rights reserved.