Robust 1

RunningHead:RobustStatistics

RobustStatistics:

WhatTheyAre,WhyTheyAreSoImportant

Papertobepresentedat

SouthwestEducationalResearchAssociation32 nd AnnualConference,SanAntonio,TX

February47,2009

By

M.SencerCorlu

TexasA&MUniversity

RobustStatistics 2 "Modern"statisticsmaygeneratemorereplicablecharacterizationsof,becauseatleastinsome respectstheinfluencesofmoreextremeandlessrepresentativescoresareminimized.Thepresent paperexplainsbothtrimmedandwinsorizedstatistics,andusesaminiMonteCarlodemonstration of the robust regression analysis as well as describes other computerintensive methods such as jackknifingandbootstrapping. Almosteveryoneknowsabouttheaverageortheeveniftheyhavenotheardofany

otherconceptinstatistics.Meanistheveryfirststatisticalconcepttaughtinschools,and

studentsaretoldthatitisagreattooltorepresentawholebunchofnumbers.Practically

speaking,meaniseasytocompute,anditscalculationhelpsstudents’arithmeticskillsimprove.

However,isitreallytruethatthemeanisthegreatesttooltorepresentanysetofnumbers?

Comparison of mean and in terms of their robustness:

TurkishpeoplehavealltherighttobeproudoftheircountrymanHedo,notonlybecauseheis

oneoftheveryfewEuropeanplayersinNBA,butalsobecauseofhisprogressasabasketball playerin20082009season.AskepticalPhDstudentfromTurkeywantedtoseeifHedoreally

deservedtheappreciationof70millionTurkishpeople.Inbetweenhishecticscheduleof

statisticscourses,hecouldonlyfindenoughtimetowatchonegameperseason,anddecidedto

recordthenumberofpointsHedoscoredagainsttheNBAchampionofthepreviousyear.He

assumedthatwouldbeagoodestimateofhisperformanceduringthatparticularyear.Heformed

thefollowingtableandstartedtowaitOrlandoMagicgameagainstBostonCelticsin20082009

season.

RobustStatistics 3 Table1.Hedo’sscoresummarybetween19992008

Season ScoreagainstChamp. NumberofYearsinNBA

19992000 8 1

20002001 9 2

20012002 10 3

20022003 10 4

20032004 11 5

20042005 12 6

20052006 12 7

20062007 13 8

20072008 14 9

ThebusyPhDstudentbelievingthemeanwouldbeagreatwayofrepresentingHedo’s performanceasabasketballplayer,decidedtoreportonlyHedo’sstatisticswhicharethe momentsaboutthemean.

RobustStatistics 4 Table2.MomentsaboutthemeanstatisticsvaluesforHedosamplebetween19992008

Statistic Value

11

1.94

Skewness 0

Kurtosis 0.8

Pearsonr 0.99 inrelationtoexperienceasyears

Overthepast9years,heprepareddifferenttableswithsimilarnumbersfillingit.Withno

knowledgeofhowwellHedohasbeenplayingsofarthisseason,ourskepticalPhDstudent,with

considerationofthePearsonrscorebeingalmostequalto1,expectedHedotohaveascoreof15

orsoduringthegameagainstCeltics.However,Hedoscoredjust45pointswhichwillprobably

leadhimtobethesecondTurkishplayerinanAllStargame.OurPhDstudenthadtostartover

fromscratchtoformanewtableofstatistics.

RobustStatistics 5 Table3.MomentsaboutthemeanstatisticsvaluesforHedosamplebetween19992009

Statistic Value

14.4

10.91

Skewness 3

Kurtosis 9.24

Pearsonr 0.66 inrelationtoexperienceasyears

Lateron,hewonderedonwhatstatisticHedo’slatestperformanceshadthegreatesteffect.So,he

calculatedthepercentchangefor and as25%and462%,respectively.Apparently,the latestperformanceofHedohadanincreasingeffectontheincreasingmomentsaboutthemean.

AlthoughourPhDstudentdidn’thavetheopportunitytotesthishypothesisforthethird aboutthemean(since Skewness inthefirstdatawas0),heextendedhispercentchange calculationstothefourthmomentaboutthemean,andfoundoutthattherewasa1569%change inthe Kurtosis value.Hethoughtperhapsitwastimetoupdatehisknowledge,sincehehasbeen ingraduateschoolfor10yearsnow,anddecidedtoreadmoreaboutmodernstatisticalmethods.

However,notonlymodernstatisticalmethodsarerobuststatistics.Thesamplemedian couldindeedhavebeenagreatchoicetoestimateHedo’soverallperformanceasanNBAplayer.

Themedianscoresbeforeandafterthisyear’sgamewere11and11.5,respectively.These valueswerenotonlyveryclosetoeachotherbutalsosimilartothemeanofHedo’sscores beforethisyear’sgame.Hedo’sperformanceatthisyear’sgamewasdefinitelyan(Wasit really?Howwouldweknowthismathematically?),butthathadlittleeffectonthesample RobustStatistics 6 medianonthecontrarytoitseffectonallthemomentsaboutthemean.Twoquestionsemergeat thispoint:

1) Why is median a robust procedure whereas the mean isn’t?

Theanswertothefirstquestionistrivial,becausewhencalculatingthemean,onehastoconsider theeffectsofeachandeverydatapointincludingthe,whereasthemediandisregardsthe actualdataandconcernedwiththepositions,instead.

⋯ lim = lim (1)

Asyouseefromtheformulaofthemean,whenallbut arefixed,andwhen goesto infinity,the approachestoinfinity.Shortly,onebizarrexvaluecanchangethesamplemean dramatically.Oneofthemanywaystodeterminewhetherastatisticisrobustornot,istolookat theshapeoftheinfluencefunctiontodescribetheeffectofoneoutlier(Reid,2006)The influencefunctionisactuallythederivativeofafunctional,anditmeasurestheeffectofasmall perturbationonacertainstatistic.ReadWilcox(2005)foracomparisonoftheinfluence functionsofsomerobuststatistics.Anothermethodtotestforrobustnessistosimulatethe contaminateddatasetsandseehowwellthedoes(Rousseeuw,1991).Wewilltrythis withaMonteCarlosimulationinthispaper.Theeasiestmethodhowever,isthetoolnamed breakdown point .AsdefinedbyDonoho&Huber(1983),thebreakdownpointisthesmallest amountofcontaminationthatmaycauseanestimatortotakelargebizarrevalues.The breakdownfortheaverageis11%(1in9)forHedoexamplesinceoneoutlierwasenoughfor theaveragetomakethenatureofthedataabnormal.However,thebreakdownpointforthe medianis50%,andthatequalstoatleastfivescores(fiveoutliers)thatareneededtodivertthe RobustStatistics 7 valueofthemedian.Forinfinitelylargenumberofdatapoints,breakdownpointforthemean approachestothelim1/n=0,whereasthelim(n1)/2nstays0.5forthemedian.

2) How can an outlier be detected mathematically?

Aneffectivemethodtoanswerthesecondquestioniscalledjackknifealgorithm(Thompson,

2008)Inthismethod,aftertheinitialcalculationofthesamplestatistic,onecaseinturnis dropped,andthestatisticisrecalculatedforthenewsubset.Someadditionalcomputations provideaconfidenceintervalforthestatistic.Forexample,thetableshowstheLowerandUpper confidenceintervalsaroundthemeancalculatedbyanExceladdinforHedo’spointsasthey weregivenearlier.

Table4.JackknifeStatisticsforHedosamplebetween19992008

JackknifeStatistics mean 14.40 std.error 3.45 alpha 0.05 t 1.83

LCL 8

UCL 21

Anyscorenotintheof8to21isconsideredasanoutlierforHedocase.

Robust statistics on :

Let’scontinueourdiscussiononrobuststatisticswithmultivariatestatistics.Thefollowing scattergraphsshowthelinearrelationshipbetweenthenumberofyearsofexperienceofHedoin RobustStatistics 8 NBA,andhisperformanceintermsofbasketshescoredatacertaingame.Itisclearfromthe

figure1andfigure2thattheoutlier(scorein20082009was45points)greatlyaffectedtheline

ofbestfit.Comparing valuesofbothsetstellsusthattherewasapproximately50%decrease inthelinearity(0.99 − 0.66 =0.55).WearenowdonewithHedofornow.

Clean Data Dirty Data 50 50 45 45 40 40 35 35 30 30 25 25 y = 2.4x + 1.4 20 20 y = 0.7x + 7.5 15 15 10 10 5 5 0 0 0 5 10 0 5 10 15

Figure1:HedoScattergramCase1 Figure2:HedoScattergramCase2

Is there any other regression method that is more robust than the method of

(LS)?

Rousseeuw(1984)suggestsminimizingthemedianofsquaredresiduals(LMS)insteadoftrying

tominimizethesumofsquaredresidualswouldproducemorerobustestimation.Afterall,aswe RobustStatistics 9 explainedearlierthemedianismorerobusttochangecomparedtothemean,thuscomparedto

thesum.Giventhedatageneratingprocess = + + ,a10,000timesiteratedMonte

Carlosimulationoftheslopesofsomeother11sampleswithparametervalues =1(y

th intercept), = (),andα=10andanoutlierfactorof100addedtothe11 sample

producedthefollowingtwofiguresforLS,andLMS,respectively.

Empirical for 10,000 Repetitions Empirical Histogram for 10,000 Repetitions Clean Clean Dirty Dirty

0 5 10 15 -10 0 10 20 slope estimates slope estimates

Figure3:Leastsquaresregression Figure4:LeastMedianofSquares

However,althoughLMSestimatestheslopesbetter,itiswaylessprecisethantheLS.The

followingtwofiguresshowthisfactwithaMonteCarlosimulationofslopesforcleanand

contaminateddatawiththesameparameters,i.e., = .

Empirical Histogram for 10,000 Repetitions Empirical Histogram for 10000 Repetitions

LS LS LMS LMS

-10 0 10 20 -5 0 5 10 15 Slope estimates for clean data Slope estimates for dirty data

Figure5.ComparisonofLSandLMSon Figure6.ComparisonofLSandLMSon cleandata cleandata RobustStatistics 10 TheMonteCarlosimulationsrevealthefactthatordinaryleastsquaresisnotarobustestimator, thatitisweakagainstextremevaluesofdata.Ontheotherhand,LMSisnotmuchaffectedby theoutliers;howeveritsuffersfromlowprecision.

Couldn’twejustgetridoftheoutlierdatainsteadgoingthroughthecomplicatedprocessof

LMS?Infact,anotherrobustestimatorcalledLeastTrimmedSquares(LTS)followthismethod.

InsteadofworkingonLTS,wewillleavethistothereader,andgobacktounivariatedatatotalk moreabouttrimming.

Trimming and

HedoisnottheonlyTurkishbasketballplayerinNBA,norishethefirstplayertoplayanAll

Stargame.MehmetOkur,akaMemohasbeenselectedasanAllStarplayerin20072008.A randomsampleofthepointshescoredin10gamesthroughouthiscareerinNBAare22,22,28,

27,19,2,19,88,100,and1.Someofthescoresaremorelikelythantheotherstobeselected fromapreassumednormaldistributionofMemo’sscoresandsomeofthesescoresappeartobe sobizarrethattheydonotbelongtotheMemo’sscorepopulationwithanormaldistribution.We speculatethereasonsforthebizarrenessas

1) Inaccuratedataentry,becausenba.comismaintainedbyacarelesswebmaster

2) Afterlookingatthedetailsofthegame,wefiguredoutthatMemowasinjuredandleft

somegamesearly.

Otherwise,withoutbeingabletoexplainthereasonsforthebizarredata,weshouldmerely concludethatMemoperformedwithinhispotential,andshouldkeepthedataastheyare.This leadsustotreattheoutliersasotherdata,andnotdiscriminateagainstthem.

AfterfindingagoodvalidreasontotreatoutliersasdatathatcontaminatedMemo’soverall performance,wesortthedatainanincreasingfashion,andtrimthe20%ofthedatafromboth ends.Thisleavesusonly60%oftheoriginalsample,whichincludes19,19,22,22,27,and28 RobustStatistics 11 asournewtrimmedsample.Wilcox(1997)suggests20%asthebestamountoftrimmingfor generalpurposes.Consideringthereasonsbehindthebizarrenessofourdata,wekeephisadvice inthiscase.Themainadvantageofusingatrimmedmeanisthatwedonotriskthenormality presumption,becauseifMemo’sscoresthroughouthisentirecareerarenormallydistributed,the trimmedmeanwillbeequaltothemean.(ErcegHun&Mirosevich,2008)

Whathappensifwedecidetotrim50%oftheoddnumberedsample?Wearethenleftwiththe medianonly,asourtrimmedmean.Theotherextremetrimmingpercentmerelygivesusthe samplemeanwith0%trimming.

Alternatively,wecanreplacethetrimmedsampleswiththefirstandlastsamplesinourtrimmed sample.Memo’swinsorizedsamplebecomes 19, 19, 19,19,22,22,27,28, 28, and 28 .Bydoing so,wearepayingmoreattentiontothosescoresnearthecentrebygivinglessimportancetothe extremes.Thefollowingtablecomparessomestatisticsofouroriginalsample,trimmedsample, andwinsorizedsample.

Table5.ComparisonofrobustnessmethodsinmomentsaboutthemeanstatisticsforMemo’s scores

OriginalSample 20%TrimmedSample 20%WinsorizedSample Statistic Value Statistic Value Statistic Value 32.8 22.83 22.5 Median 22 Median 22 Median 22 33.65 3.87 4.18 Skewness 1.47 Skewness 0.5 Skewness 0.26 Kurtosis 1.05 Kurtosis -1.73 Kurtosis -2.12

Range 99 Range 9 Range 9 RobustStatistics 12 Inthecaseofchoosingourtrimpercentageto25%,therangeautomaticallybecomesIQR(inter range),whichisthedifferencebetween75th and25 th ofthedataset.Thisis

givenasarobustdispersiondescriptivestatisticsinThompson(2008).

Bootstrapping

Bootstrappingisamethodperformedbythehelpofacomputersoftware,suchasan

Exceladdin.ConsiderMemo’ssampleofscores:22,22,28,27,19,2,19,88,100,and1witha

samplemeanof32.8.AnExceladdinreplacestheoriginalsamplewitharandomlyselected12

observations.Onerandomsamplegeneratedbybootstrappingmightbe1,1,1,1,1,1,1,1,1,1,

1,1withameanof1oranothermightbe100repeated12times.Thisprocessofgenerating bootstrapsamplesfromtheoriginalsampleisrepeatedthousandsoftimes,togetabetter

approximationofthedistributionofthemean(oranyotherstatistic).With bootstrappingmethodpvaluecalculations,hypothesis,orevenformingconfidenceintervals

aroundthemeanortheeffectsizesbecomemoreaccurateandreplicableeveniftheassumptions

aroundthepopulationisviolated(ErcegHun&Mirosevich,2008).Bootstrappingisusedtoget

amorerobustestimationofsamplingdistributionthanthetheoreticaldistributions.Thisismost

helpfulwhenthepopulationisnotassumedtobenormalorhomogenousin.

ErcegHun&Mirosevich(2008)reportsthenormalityassumptionisrarelymetinpractice,

supportingMicceri(1989)whofoundoutthatrealdataaremorelikelytoresemblean

exponentialcurveratherthananormal.Thiscausesmanystudieswronglyrejectingthenull

hypothesisorreportinglowpowervalues.Besidesnormality,thereisanotherissuewhichis prettyimportantevenifthepopulationisrightlyassumedtobenormal.Itistheexistenceof

differencesbetweenrandomvariables.Wilcox(1998)clearlymentionsthatasmalldiversion

fromthehomogeneityofvarianceprinciplemaycauseadramaticlowpowervalue,evenifthe

samplesizesareequal.Herightlyasksthequestion,“Howmanydiscoverieshavebeenlostby RobustStatistics 13 ignoringmodernstatisticalmethods?”(Wilcox,1998,p.1)andstatesthatmanynonsignificant resultshavebeenfoundtobesignificantbecausemodernstatisticalmethodswereignored.

Computer Software

Risastatisticalsoftwarepackage,whichisfreeandabletodoalltheproceduresdescribedin thispaper.ZumaStatclaimstobemoreuserfriendlythanR,andusesSPSSandExcelforrobust analysis.Otherthanthesetwo,severalexceladdin’sareavailableontheInternet,andare availablethroughmywebpageat http://people.tamu.edu/~sencer ,whereasmalldescriptionand

assessmentintermsoftheireaseofuseisincluded.

Conclusion

AsThompson(2008)warns,outliersarenotmerelyevilpeoplewhodistortallstatisticsforall

variables.Insomecases,outliersandtheireffectsaremoreimportantthantherestofthedata,

andthemeanwouldabetterestimateregardingthepurposeofourresearch(e.g.thewomenwho

werehavingahealthylifewithHIVvirus).Osborne,Jason&Overbay(2004)sayanunlikely

casemightshedlightonanimportantprincipleorissue,whichmightbetoovaluabletoignore.

Incaseswhereoutlierscontaminatethegeneralnatureofthedataset,robuststatisticalmethods

areconsideredasmodernandgeneratemorereplicableresultsthanclassicalmethods.Givenall

therecentdevelopmentsincomputertechnology,itiseasierthanevertouserobustmethods,and perhapsitistimeforalltheresearcherstoconsidereffectsofthemodernmethods.

RobustStatistics 14 References

Donoho,D.L.,&Huber,P.J.(1983).Thenotionofbreakdownpoint.InP.Bickel,K.Doksum,

&J.L.HodgesJr(Eds.), A Festschrift for Erich Lehmann (pp.157184).Belmont,CA:

Wadsworth.

ErcegHurn,D.M.,&Mirosevich,V.M.(2008).Modernrobuststatisticalmethods. American

Psychologist , 63 ,591601.

Micceri,T.(1989).Theunicorn,thenormalcurve,andotherimprobablecreatures.

Psychological bulletin , 105 ,156166.

Osborne,J.W.,&Overbay,A.(2004).Thepowerofoutliers(andwhyresearchersshould

alwayscheckforthem). Practical Assessment, Research & Evaluation , 9(6).Retrieved

fromhttp://PAREonline.net/getvn.asp?v=9&n=6

Reid,N.(2006).Influencefunctions.In(NoEd.), Encyclopedia of statistical sciences .Retrieved

February1,2009,from

http://mrw.interscience.wiley.com/emrw/9780471667193/ess/article/ess1240/current/pdf

Rousseeuw,P.J.(1984).Leastmedianofsquaresregression. Journal of American Statistical

Association , 79 ,871880.

Rousseeuw,P.J.(1991).Tutorialtorobuststatistics. Journal of , 5(1),120.

Thompson,B.(2008). Foundations of Behavioral Statistics: An Insight-Based Approach

(Paperbacked.).NY:Guilford.

Wilcox,R.R.(1998).Howmanydiscoverieshavebeenlostbyignoringmodernstatistical

methods?. American Psychologist , 53 ,300314.

Wilcox,R.R.(2005). Introduction to robust estimation and hypothesis testing (2nded.).San

Diego:CA:AcademicPress.