Answer to Question #241040 in Python for saksham

Question #241040
Find out the mean, median and standard deviation of this numpy array -> np.array([1,5,3,100,4,48])
1
Expert's answer
2021-09-23T00:12:32-0400


import numpy as np

A = np.array([1,5,3,100,4,48])
Mean = np.mean(A)
Median = np.median(A)
SD = np.std(A)
print("Input Array: ",A)
print("Mean      = %.3f"%Mean)
print("Median    = %.3f"%Median)
print("Std. Dev. = %.3f"%SD)

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