Question: Assigment - Chicago Energy.oynb Runtime Tools we changes ved - Problem 4 (25%) murces this before One analysis we might want to do is to
Assigment - Chicago Energy.oynb Runtime Tools we changes ved - Problem 4 (25%) murces this before One analysis we might want to do is to compute an average of a set of numbers but with some others removed. A simple version of this analysis might remove the smallest values and the largest 3 values, the compute an average of those that remain. We can generalize this to remove the smallest and largest k values, where is some positive integer Define a function named cale wer e lding extremes that removes a specified number of outliers and returns an average of the remaining values . It has two parameters: The first is a list of numeric values The second is an integer The function should return the average of the values that remain after removing or ignoring the smallest and largest kwalues from the given ist. det cale were in extremit, ku - Tests Emoting the cell below will run some tests on the sale were dintre function you define above it passes a variety of and values to the function. The expected retum values for the first two are shown here, and you should think about what the others should be to verify that your function is passing all of the best First we expected test outputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
