Work on the following items step by step. a. Write a function (name it outlier_remover) that will
Fantastic news! We've Found the answer you've been seeking!
Question:
Work on the following items step by step.
a. Write a function (name it outlier_remover) that will first detect the values beyond +2 standard deviation of the mean for each numeric variable in a .csv data file, and then delete the rows including these values in each numeric variable. Note that if a variable has a data type other than numeric type, function should not perform any operation for that variable.
b. Use promotion.csv file to test your function. After removing the outliers, how many observations do you have in your data set?
Related Book For
Practical Management Science
ISBN: 978-1305250901
5th edition
Authors: Wayne L. Winston, Christian Albright
Posted Date: