Question: Write Program to calculate Mean, Median, Mode , Standard Deviation, and Variance of an array. Coding Import the Packages numpy,statistics Declare a numpy array with
Write Program to calculate Mean, Median, Mode , Standard Deviation, and Variance of an array.
Coding
- Import the Packages numpy,statistics
- Declare a numpy array with values 9.2,10.7,6.8,9,3.4,5.7,5.7
- Calculate Mean, Median, Standard Deviation and Variance with the built-in functions of Numpy Package.
- Calculate Mode with the built-in function of Statistics Package.(Calculation of mode must print the value which has the greatest number of occurrences in the array)
- Display the output in the following order
- Mean
- Median
- Standard Deviation
- Variance
- Mode
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
