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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
