Lecture 3: Randomization

51
Lecture 3: Randomization Maarten Voors and EGAP Learning Days Instructors 9 April 2019 — Bogotá Learning Days X

Transcript of Lecture 3: Randomization

Page 1: Lecture 3: Randomization

Lecture3:RandomizationMaartenVoorsandEGAPLearningDaysInstructors

9April2019— BogotáLearningDaysX

Page 2: Lecture 3: Randomization

Today• Exercise• Threecoreassumptions• Review:RandomSamplingvs.RandomAssignment• Differentdesigns

• Access• Factorial• Timing(akastepped-wedge)• Encouragement

• StrategiesofRandomization• Simple• Complete• Blocked• Clustered• Factorial• (Twolevel)

• EssentialGoodPractices

Page 3: Lecture 3: Randomization

Exercise

• Seehandout• 15minsworkinpairs/groupsofthree

• Makenotesforyourself

• 10minplenarydiscussion

Page 4: Lecture 3: Randomization

Recapthesekeyterms(moretomorrow)

4

• Samplingdistributions• Standarddeviation(andvariation)• Standarderror• Confidenceinterval• Centrallimittheorem• p-value• T-test

Page 5: Lecture 3: Randomization

Threecoreassumptions

1. Randomassignmentofsubjectstotreatmentso impliesthatreceivingthetreatmentisstatisticallyindependentofsubjects’

potentialoutcomes

Page 6: Lecture 3: Randomization

Threecoreassumptions

2. Non-interference:asubject’spotentialoutcomesreflectonlywhethertheyreceivethetreatmentthemselveso Sounaffectedbyhowthetreatmentshappenedtobeallocatedo i.e.therearenospilloverso orSUTVAholds(stableunittreatmentvalueassumption)

Page 7: Lecture 3: Randomization

Threecoreassumptions

3. Excludability:asubject’spotentialoutcomesrespondonlytothedefinedtreatment,nototherextraneousfactorsthatmaybecorrelatedwithtreatmento Importanceofdefiningthetreatmentpreciselyo Maintainingsymmetry betweentreatmentandcontrolgroups(e.g.,through

blinding,behavioralmeasures,etc)o Noattrition

Page 8: Lecture 3: Randomization

Absentfromthelistofcoreassumptions…

• Randomsamplingofsubjectsfromalargerpopulationisnotacoreassumption• Thoughrandomassignmentislikerandomsamplingfromtwoalternative

universes

• Theissueofexternalvalidity isaseparatequestionthatrelatestotheissueofwhethertheresultsobtainedfromagivenexperimentapplytoothersubjects,treatments,contexts,andoutcomes

Page 9: Lecture 3: Randomization

RandomSamplingvs.RandomAssignment

• Randomsampling(from population):selectingsubjectsfromapopulationwithknownprobability

• Randomassignment(to treatmentconditions):assigningsubjectswithknownprobabilitytoexperimentalconditions

Page 10: Lecture 3: Randomization

RandomSamplingandRandomAssignmentRandomly samplefrom area of interest

Page 11: Lecture 3: Randomization

Randomly samplefrom area of interest

Randomly assignto treatmentand control

RandomSamplingandRandomAssignment

Page 12: Lecture 3: Randomization

StrictDefinitionofRandomAssignment

• Everyobservationmusthavethesameknownprobability• between0and1

Page 13: Lecture 3: Randomization

RandomizationDesigns

1. Access

2. Factorial

3. Waitlist(akastepped-wedge)

4. Encouragement

Page 14: Lecture 3: Randomization

RandomizationDesignI- Access

• Throughalottery

• Forexample,whenyoudonothaveenoughresourcestotreateveryone,randomlyselectatreatmentgroup

• Thisrandomizesaccesstotheprogram

• Example:HealthinterventionsinSierraLeone

Page 15: Lecture 3: Randomization

ConsortDiagram

Page 16: Lecture 3: Randomization

RandomizationDesignI- Access

• Sometimes,someunits(peoples,communities)musthaveaccesstoaprogram.

• EXAMPLE:apartnerorganizationdoesn’twanttoriskavulnerablecommunityNOTgettingaprogram(wantaguaranteethattheywillbealwaysbetreated).

• Youcanexcludethoseunits,anddorandomassignmentamongtheremainingunitsthathaveaprobabilityofassignmentstrictlybetween(andnotincluding)0and1.

Page 17: Lecture 3: Randomization

RandomizationDesignII:FactorialDesign• Factorialdesignenablestestingofmorethanonetreatment

• Youcananalyzeonetreatmentatatime

• Orcombinationsthereof

T2=0 T2=1

T1=0 25% 25%

T1=1 25% 25%

Page 18: Lecture 3: Randomization

Example:ColombianBureaucrats(Tara)

• Phoneauditonbureaucratsadministeringsocialprograms(SISBÉNandMás Familias en Acción)inColombianalcaldías

• Highdimensional,twodimensionswere:• Socialclass• Regionalaccent

Bogotá Costeño Paisa

LowerClass(~estratos 1and2)

306calls 306calls 306calls

LowerMiddleClass(~estrato 3)

306calls 306calls 306calls

Page 19: Lecture 3: Randomization

RandomizationDesignIII-Timingofaccess

• Randomizetimingofaccess totheprogram

• Whenaninterventioncanbeormustberolledoutinstages,youcanrandomizetheorderinwhichunitsaretreated

• Oftenyoudonotthecapacitytoimplementthetreatmentinalotofplacesatonce.

Page 20: Lecture 3: Randomization

RandomizationDesignIII-Timingofaccess

• Yourcontrolgrouparetheas-yetuntreatedunits• Becareful:theprobabilityofassignmenttotreatmentwillvaryovertime

Page 21: Lecture 3: Randomization

VargasEGAPpresentation:TheTwistsandTurnsintheRoadtoJusticeandPeaceinColombia

60eligiblemunicipalities,Allshouldbetreated

Page 22: Lecture 3: Randomization

RandomizationDesignIV- Encouragementdesign

• Randomizesinvitationstosubjectstoparticipateinaprogram.

• Usefulwhenyoucannot‘force’asubjecttoparticipate• andaprogramisONLYavailablethroughtheinvitation.

• Instrumentalvariables,exclusionrestriction• Vouchersforprivateschool,attendingprivateschool,academicperformance

• Wecanlearntheaveragecausaleffectforcompliers:thecausaleffectoftheparticipation(nottheinvitation!)fortheunitsthatparticipatewheninvitedanddon’tparticipatewhennotinvited.

Page 23: Lecture 3: Randomization

RandomAssignmenttoRelevantUnits

• Treatmentcanbeassignedatmanydifferentlevels:individuals,groups,institutions,communities,timeperiods,ormanydifferentlevels.

• Youmaybeconstrainedinwhatlevelyoucanassigntreatmentandmeasureoutcomes.

• Yourchoiceofanalyticlevelaffectswhatyourstudycandemonstrate.

• Yourdesign?

Page 24: Lecture 3: Randomization

Controlgroups

• Whattypeofcontrolgroupisneeded?• Nointervention?• Placebointervention?

• Example:• DidanewHausatelevisionstationinnorthernNigeriachangeattitudesaboutviolence,theroleofwomeninsociety,ortheroleofyouthinsociety?

• Doyouwanttolearntheeffectofwatchingafilm+contentofdrama?• Doyouwanttolearntheeffectofthecontentofthedrama,giventhatpeoplearewatchingafilm?

• Orboth?

Page 25: Lecture 3: Randomization

Implementingrandomizationdesigns

1. Simple

2. Complete

3. Cluster

4. Block

5. Factorial

• Withacomputerinadvance!(ifyoucan)

Page 26: Lecture 3: Randomization

BasicRandomization

• Excel• Stata• R

Page 27: Lecture 3: Randomization

SimpleRandomization

• Foreachunit,flipacointoseeifitwillbetreated.Thenyoumeasureoutcomesatthecoin-level.

• Thecoinsdon’thavetobefair(50-50),butyouhavetoknowtheprobabilityoftreatmentassignment.

• Youcan’tguaranteeaspecificnumberoftreatedunitsandcontrolunits.• EXAMPLE:Ifyouhave6unitsandyouflipafaircoinforeach,youhaveabouta3%chanceofgettingallunitsassignedtotreatmentorallunitsassignedtocontrol.

• (1/2)6 +(1/2)6

Page 28: Lecture 3: Randomization

Example

• Excel

• Stata

• R(inabit)

Page 29: Lecture 3: Randomization

CompleteRandomization

• Mostcases

• AfixednumbermoutofN unitsareassignedtotreatment.

• Theprobabilityaunitisassignedtotreatmentism/N.

Page 30: Lecture 3: Randomization

CompleteRandomization

DonebycomputerSimplygivearandomnumbertoeachofN unitsThenselecttheT unitswiththehighestrandomnumber

Page 31: Lecture 3: Randomization

Blockrandomization

• Wecancreateblocksofthatcategoryandrandomizeseparatelywithineachblock.Youaredoingmini-experimentsineachblock.

• EXAMPLE:block=district,units=communities

• Probabilityoftreatmentassignmentcanbedifferentineachblock• Example:UnconditionalTransfersandDeforestation• Blocks:Chiefdoms,nj=6• Villages:n=68

Page 32: Lecture 3: Randomization

• 68villages

• 46aid

• 22noaid

Page 33: Lecture 3: Randomization

Blockrandomization

Page 34: Lecture 3: Randomization

Blockrandomization

• Advantagestoblockingonfeaturesthatpredicttheoutcome:• Guaranteethatsomeunitsofevery“type”gettreatment,• Treatmentandcontrolgroupsaremoresimilardistributionsofthesetypesthanwithoutblocking

• Iftheblocksarelargeenough:youcanestimatetreatmenteffectsforthosesubgroups

• Usuallyimprovespower – yourprobabilityofdetectingatreatmenteffectifthereisone

• Generally,blockifyoucan.

Page 35: Lecture 3: Randomization

Clusterrandomization

• Aclusterisagroupofunits,andallunitsintheclustergetthesametreatmentstatus.

• Thisisassigningtreatmentatthecluster-level.

Page 36: Lecture 3: Randomization

VargasEGAPpresentation:TheTwistsandTurnsintheRoadtoJusticeandPeaceinColombia

Page 37: Lecture 3: Randomization

Clusterrandomization

• Aclusterisagroupofunits,andallunitsintheclustergetthesametreatmentstatus.

• Thisisassigningtreatmentatthecluster-level.

• Useiftheinterventionhastoworkattheclusterlevel.• Example:Vargas’study.Clustersarethetowns,unitsofanalysisarepeople

• Havingfewerclustershurtsyourpower.Howmuchdependsontheintra-clustercorrelation(rho).

• Higherisworse.

Page 38: Lecture 3: Randomization

Clusterrandomization

DonebycomputerSimplygivearandomnumbertoeachofN CLUSTERSThenselecttheT CLUSTERSwiththehighestrandomnumber

Page 39: Lecture 3: Randomization

Clusterrandomization

• Forthesamenumberofunits,havingmoreclustersandsmallerclusterscanhelp.

• Tradeoffspillover andpower

Page 40: Lecture 3: Randomization
Page 41: Lecture 3: Randomization

DidRandomizationWork?

• Ofcourse:always

• Makeitreplicable– Setaseed!• Don’tuseexcel

• Sometimesincreasedtransparency>replicability• Preservedistributions• Verify

Page 42: Lecture 3: Randomization

Goodpractice

• CheckoverallbalancewithanD-squaretest(HansenandBowers2008)

• UseanF-test(treatmentassignmentonLHSandcovariatesonRHS)• Randomassignmentgivesus,inexpectation,overallbalanceonthecovariates.

• Youwillseet-testsofcovariatesonebyone.Justbychance,youmightgetdifferencesononevariable.

Page 43: Lecture 3: Randomization

Goodpractice

• Afterrandomassignment,don’tmaketheTandCgroupsdifferentbytreatingthemdifferently!– maintainsymmetry

• Don’ttakeextrameasurementsoftheTgroup• Usethesamemeasurementstrategy• Asmuchaspossible,otherpeopleshouldnotknowwhetheraunitisinTorCsotheydon’ttreatthemdifferently

• Enumeratorsdon’tneedtoknowwhethertheyaresurveyingaTorCcommunity

Page 44: Lecture 3: Randomization

LevelsofrandomizationIIRandomizeinsuchawayastominimizespillovers

• Whenonesubjectlearnsofanothersubject'streatmentstatus,thenon-interferenceassumptionisviolated

• Thenon-interferenceassumptionstatesthatasubjectcanreceivethetreatmentonlyif heorsheisassignedtotreatmentstatus– e.g.neighborsdiscusswhattheyhavelearnedinaneducationprogramwiththeirneighbors

• Treatingatthecommunitylevelcansometimesmitigatethis

Page 45: Lecture 3: Randomization

• RandomizationforSpillovers

• Twoleveldesigns• Control• Spillovercontrol• Treatment

Ichino,Nahomi,andMatthiasSchündeln.2012.Deterringordisplacingelectoralirregularities?SpillovereffectsofobserversinarandomizedfieldexperimentinGhana.JournalofPolitics74(1):292-307.

Page 46: Lecture 3: Randomization

Spillovers

• Whenonesubjectrespondstoanothersubject'streatmentstatus,thenon-interferenceassumptionisviolated

• EXAMPLE:vaccinationsandherdimmunity• EXAMPLE:peoplediscusswhattheyhavelearnedinaneducationprogramwiththeirneighborswhodidnotgototheprogram

• Whatistheproblemifwerandomizetreatmentassignmenttounits,andweestimatetheAverageTreatmentEffectas:

• Mean(Ys forthetreatedunits)– Mean(Ys forthecontrolunits)?

Page 47: Lecture 3: Randomization

Spillovers

• OneproblemisthatYi(1)andYi(0)canbedifferent(notstable)dependingonwhichotherunitsaretreated,soYi(1)-Yi(0)isnotwell-defined.

• Oneexample:Y=daysIamsickthisyear(myvaccinationstatus,myroommate’svaccinationstatus)

Y(0,0) 30

Y(0,1) 20

Y(1,0) 10

Y(1,1) 5

Page 48: Lecture 3: Randomization

Spillovers

• Youmightbeabletomitigatetheproblem:

• Ifyou’reworriedaboutspilloverswithinacommunitybecausepeopletalktoeachotherwithinacommunity,randomizeatthecommunitylevel(clusterrandomize).

• Ifyou’reworriedaboutspilloversacrosscommunitiesbecausepeoplevisiteachotheracrosscommunities,sampleyourcommunities(beforetreatmentassignment)inawaythatguaranteesthatthecommunitiesarefarapart.

• Butsometimes,youwanttostudythespillovers.•

Page 49: Lecture 3: Randomization

DesignV– Two-Level

• CODEO’sobserversforvoterregistrationin2008

• Two-leveldesign• Constituency• RegistrationCenters

• Y(0,0),Y(1,0),Y(1,1)

Ichino,Nahomi,andMatthiasSchündeln.2012.Deterringordisplacingelectoralirregularities?SpillovereffectsofobserversinarandomizedfieldexperimentinGhana.JournalofPolitics74(1):292-307.

Page 50: Lecture 3: Randomization

NineLimitationsofRandomization

1.Ethics – isthissortofmanipulationethical?Sometimesnot.2.Therealtime constraint.Sometimestoslow.Notmuchgoodtohelpunderstandhistory

3.Theproblemofcost (sometimes;butpossibleverylow)4.Thepowerconstraint.Youneedalotofunits(actually:aproblemforanystatisticalapproaches)

5.Externalvalidity(problemforanyevaluation)6.Theproblemofspillovers(problemforanyevaluation)7.Thevariablesasattributes constraint(problemforanyevaluation)8.Theassignmenttotreatmentconstraint.9.Reducedflexibility fororganization(problemforanyprospectiveevaluation)

Page 51: Lecture 3: Randomization

Disclaimer

• AfewslidesarefromDonGreenfromhisbookwithAlanGerber,FieldExperiments

• ManyslidesareadaptedfrompreviouslecturesandEGAPworkshops