Answer to Question #291959 in Python for Karan

Question #291959

Consider the data X = (58,59,63,60,60,63,60,57,58,59). An unbiased estimation for population variance would be


1
Expert's answer
2022-01-31T15:17:28-0500
arr = [58, 59, 63, 60, 60, 63, 60, 57, 58, 59]
n = 10
avg = 0
variance = 0
for i in range(n):
    avg += arr[i]
avg = avg / n
for i in range(n):
    variance += ((arr[i] - avg) ** 2)
variance = variance / (n - 1)
print(variance)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS