Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am learning python and it is getting interesting. I would like to know how to calculate uncertainty in an array.

This is my 2D array loaded from a .txt file

[[5,5,5] 
 [3,4,5]
 [7,8,9]]


what i want to do is calculate the average of the of all the numbers in the row, and then have the uncertainty for that average.

in my case it would be 5+3+7 = 15/3 = 5 then 5+4+9 = 18/3 = 6 and so on. then i need the uncertainty of those average numbers so uncertainty of 5 and 6 and so on.


much appreciated.
Posted
Comments
OriginalGriff 6-Sep-14 9:51am    
And?
What have you tried?
Where are you stuck?
Member 11063284 6-Sep-14 10:27am    
I don't know the formula for uncertainty. I got the average calculated. What i did to calculate uncertainty was

print average / sqrt(rows)

I don't know if that is the answer because i don't know the formula for uncertainty.

1 solution

"I don't know if that is the answer because i don't know the formula for uncertainty."

So try here: http://www.wikihow.com/Calculate-Uncertainty[^] - about 1/3 of the way down is the steps for the calculation you want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900