I need to find Standard Deviation of a percentage list, e.g. [0.5, 0.8, 0.8] in Python would give:
>>> import numpy
>>> a = numpy.array([0.5, 0.8, 0.8])
>>> numpy.mean(a)
0.70000000000000007
>>> numpy.std(a)
0.14142135623730953
My question is weather there is difference how the percentage list was created originally.
For example [1000/2000, 80/100, 8/10] will give the same percentages, but the 1000/2000=0.5 has more impact than 8/10. Or is there no difference?
Thank you.
No, you don't add fractions by adding the numerators and denominators separately. And a scalar number has no "memory" of how it was computed. $1000/2000$, $1/2$, $0.00012/0.00006$ are all equivalent representations of the same number, $0.5$.
You are possibly thinking of a weighted average, where not all values are considered as accurate or reliable.
In this case, you would indeed compute $$m=\frac{2000\ 0.5+100\ 0.8+10\ 0.8}{2000+100+10},$$ assuming weights $2000$, $100$ and $10$. Just as if you had drawn $2000$ times $0.5$, $100$ times $0.8$ and again $10$ times $0.8$. Then you don't just have a list of values, but a list of values and a list of corresponding weights.
You will similarly compute the standard deviation using the weights, $$s^2=\frac{2000\ (0.5-m)^2+100\ (0.8-m)^2+10\ (0.8-m)^2}{2000+100+10}.$$