Question: Problem 4 (8 points} Write a function called statistics which takes one input parameter samples , a list of numbers, and returns a tuple (of

Problem 4 (8 points} Write a function called statistics which takes one input parameter samples , a list of numbers, and returns a tuple (of length T) of statistics: (mean, standard deviation, minimum, median, maximum, range, total number of samples) Recall, if samples is the list ofnumbers [xmxl ....,x~]then 1 N mean . y _ N+] g\" N _ 2 standard deviation : SHOEJR) N+ 1 range: mme,} min{xk} The median is the middle value if the number of samples is odd, or the median is the average of the two middle values if the number of samples is even. Use the builtin function sorted to sort the list Of values. Remember: - Do not import any Python packages - Do not use Python keywords or builtin function names (such as max , min , and range ) as variable names
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
