Question: Answer the questions Outliers In many statistical analysis programs, data values that are considerably outside the range of the majority of the values are simply

Answer the questions

Outliers In many statistical analysis programs, data values that are considerably outside the range of the majority of the values are simply dropped from consideration. using this informa- tion write a program named outliers.py that accepts a number of floating point values from the user and display the average and the sample standard deviation of the input val- ues. All values more than two standard deviations away from the computed average are to be displayed and dropped from any further calculation, the new average and standard deviation should be computed and displayed. For example if the input consist of the following list of numbers 7 4 6 6 5 5 3 10 19 9 The average of the above values is 7.4 and the sample standard deviation is 4.6. The only outlier in the above data is 19 because it more that two standard deviation larger than the average. Thus your program should display 19 as an outliers remove it from the list and then compute the new average and standard deviation which are 6.11 and 2.26. Add the following comments to the beginning of outliers.py # FileName : # StudentID : # StudentName: outliers.py Run and test your program. Once your are able to run the program successfully, submit outliers.py using the E-learning system. Hint: For this program you are not allowed to use any library functions or methods for computing the average and sample standard deviations. We have covered the average calculation in the class. To learn how to calculate the sample standard deviation see the following link https://bit.ly/33TtLdu.

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 Databases Questions!