python —Something is wrong with the standard deviation.

Asked 1 years ago, Updated 1 years ago, 406 views

Assume you are given an array that shows the following 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 this mean and standard deviation,

np.mean(test)#92.857..
np.std(test)#9.58314..

is the case.
Considering the standard deviation, it will exceed 100%.
What's wrong with this?

python numpy

2022-10-25 00:01

1 Answers

The standard deviation is the number where 68% of the total values are included in the range from the mean (the square root of the square mean of the difference from the mean of the data), so even if it is pulled down, it will swell up in the same way.So there's nothing wrong.

·Reference link
https://data-viz-lab.com/standarddeviation


2022-10-25 00:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.