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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!