butlet' say we had to use the mean for some reasonand the right way to deal with this would be to exclude these outliers like donald trump sowe need to figure out how do we identify these people wellyou could just pick some arbitrary cutoffand say" ' going to throw out all the billionaires"but that' not very principled thing to do where did billion come fromit' just some accident of how we count numbers soa better thing to do would be to actually measure the standard deviation of your datasetand identify outliers as being some multiple of standard deviation away from the mean sofollowing is little function that wrote that does just that it' called sfkfdu@pvumjfst efgsfkfdu@pvumjfst ebub oqnfejbo ebub oqtue ebub gjmufsfe sfuvsogjmufsfe gjmufsfe sfkfdu@pvumjfst jodpnft qmuijtu gjmufsfeqmutipx it takes in list of data and finds the median it also finds the standard deviation of that dataset soi filter that outso only preserve data points that are within two standard deviations of the median for my data soi can use this handy dandy sfkfdu@pvumjfst function on my income datato actually strip out weird outliers automatically