Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a test() function that takes an array as input and returns the minimum value, maximum value, mean, median, mode, standard deviation, variance, Quartile1,
Create a test() function that takes an array as input and returns the minimum value, maximum value, mean, median, mode, standard deviation, variance, Quartile1, Quartile3, and Quartile deviation of the array. Note: All values must be rounded off to 2 decimal places. Type of the final output must be tuple. Input Format For Custom Testing Array has the input. Sample Case 0 Sample Input For Custom Testing 10, 20, 30, 40,50,10,60,70 Sample Output (10, 70, 36.25, 35.0, 10, 21.18, 448.44, 17.5, 52.5, 17.5) Explanation minimum value = 10 maximum value = 70 mean = 36.25 median = 35.0 mode=10 standard deviation = 21.18 variance = 448.44 Quartile1(Q1) 17.5 Quartile3(Q3) 52.5 Quartile deviation = 17.5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
import statistics import math def testarr arrsort n lenarr Min...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started