Standard deviation results do not meet expectations

Asked 1 years ago, Updated 1 years ago, 323 views

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..

python numpy

2022-10-26 00:01

1 Answers

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


2022-10-26 00:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.