{"schemaVersion":2,"id":"iv2sls","title":"Instrumental Variables & 2SLS","totalStages":31,"modules":[{"id":"iv2sls-why-ols-fails","title":"1 · Why OLS fails","summary":"Endogeneity from omitted variables and simultaneity makes OLS biased and inconsistent.","stageCount":6,"stages":[{"id":"iv2sls-why-ols-fails-01","index":0,"moduleId":"iv2sls-why-ols-fails","moduleIndex":0,"type":"read","title":"The exogeneity assumption","skillIds":["iv2sls.endogeneity"],"estimatedMinutes":6,"difficulty":"applied","points":5},{"id":"iv2sls-why-ols-fails-02","index":1,"moduleId":"iv2sls-why-ols-fails","moduleIndex":1,"type":"read","title":"The sign and size of the bias","skillIds":["iv2sls.instrument-relevance"],"estimatedMinutes":6,"difficulty":"applied","points":5},{"id":"iv2sls-why-ols-fails-03","index":2,"moduleId":"iv2sls-why-ols-fails","moduleIndex":2,"type":"code","title":"Watch OLS miss the truth","skillIds":["iv2sls.endogeneity"],"estimatedMinutes":10,"difficulty":"applied","points":10},{"id":"iv2sls-why-ols-fails-04","index":3,"moduleId":"iv2sls-why-ols-fails","moduleIndex":3,"type":"interactive","title":"Confounding slider","skillIds":["iv2sls.instrument-relevance"],"estimatedMinutes":8,"difficulty":"applied","points":10},{"id":"iv2sls-why-ols-fails-05","index":4,"moduleId":"iv2sls-why-ols-fails","moduleIndex":4,"type":"quiz","title":"Check: source of the bias","skillIds":["iv2sls.endogeneity"],"estimatedMinutes":5,"difficulty":"applied","points":15},{"id":"iv2sls-why-ols-fails-06","index":5,"moduleId":"iv2sls-why-ols-fails","moduleIndex":5,"type":"quiz","title":"Check: sign of the bias","skillIds":["iv2sls.instrument-relevance"],"estimatedMinutes":5,"difficulty":"applied","points":15}]},{"id":"iv2sls-instruments","title":"2 · Instruments","summary":"A valid instrument is relevant (moves x) and excluded (affects y only through x).","stageCount":8,"stages":[{"id":"iv2sls-instruments-01","index":6,"moduleId":"iv2sls-instruments","moduleIndex":0,"type":"read","title":"What is an instrument?","skillIds":["iv2sls.exclusion-restriction"],"estimatedMinutes":6,"difficulty":"applied","points":5},{"id":"iv2sls-instruments-02","index":7,"moduleId":"iv2sls-instruments","moduleIndex":1,"type":"read","title":"Why both conditions are indispensable","skillIds":["iv2sls.first-stage"],"estimatedMinutes":6,"difficulty":"applied","points":5},{"id":"iv2sls-instruments-03","index":8,"moduleId":"iv2sls-instruments","moduleIndex":2,"type":"code","title":"See relevance vs exclusion in the data","skillIds":["iv2sls.exclusion-restriction"],"estimatedMinutes":10,"difficulty":"applied","points":10},{"id":"iv2sls-instruments-04","index":9,"moduleId":"iv2sls-instruments","moduleIndex":3,"type":"interactive","title":"Relevance slider","skillIds":["iv2sls.first-stage"],"estimatedMinutes":8,"difficulty":"applied","points":10},{"id":"iv2sls-instruments-05","index":10,"moduleId":"iv2sls-instruments","moduleIndex":4,"type":"quiz","title":"Check: which property is testable?","skillIds":["iv2sls.exclusion-restriction"],"estimatedMinutes":5,"difficulty":"applied","points":15},{"id":"iv2sls-instruments-06","index":11,"moduleId":"iv2sls-instruments","moduleIndex":5,"type":"quiz","title":"Check: a broken instrument","skillIds":["iv2sls.first-stage"],"estimatedMinutes":5,"difficulty":"applied","points":15},{"id":"iv2sls-instruments-07","index":12,"moduleId":"iv2sls-instruments","moduleIndex":6,"type":"truefalse","title":"Significant first stage ⇒ good instrument?","skillIds":["iv2sls.exclusion-restriction"],"estimatedMinutes":3,"difficulty":"applied","points":10},{"id":"iv2sls-instruments-08","index":13,"moduleId":"iv2sls-instruments","moduleIndex":7,"type":"multi","title":"What makes an instrument valid?","skillIds":["iv2sls.first-stage"],"estimatedMinutes":5,"difficulty":"applied","points":20}]},{"id":"iv2sls-2sls","title":"3 · Two-Stage Least Squares","summary":"Project x on the instruments, then regress y on the fitted x to recover a consistent β₁.","stageCount":8,"stages":[{"id":"iv2sls-2sls-01","index":14,"moduleId":"iv2sls-2sls","moduleIndex":0,"type":"read","title":"The two stages","skillIds":["iv2sls.two-stage-least-squares"],"estimatedMinutes":6,"difficulty":"applied","points":5},{"id":"iv2sls-2sls-02","index":15,"moduleId":"iv2sls-2sls","moduleIndex":1,"type":"read","title":"Do it in one call — and mind the SEs","skillIds":["iv2sls.weak-instrument-diagnostics"],"estimatedMinutes":6,"difficulty":"applied","points":5},{"id":"iv2sls-2sls-03","index":16,"moduleId":"iv2sls-2sls","moduleIndex":2,"type":"code","title":"OLS bias vs consistent 2SLS","skillIds":["iv2sls.two-stage-least-squares"],"estimatedMinutes":10,"difficulty":"applied","points":10},{"id":"iv2sls-2sls-04","index":17,"moduleId":"iv2sls-2sls","moduleIndex":3,"type":"interactive","title":"Confounding slider: OLS drifts, 2SLS holds","skillIds":["iv2sls.weak-instrument-diagnostics"],"estimatedMinutes":8,"difficulty":"applied","points":10},{"id":"iv2sls-2sls-05","index":18,"moduleId":"iv2sls-2sls","moduleIndex":4,"type":"quiz","title":"Check: what goes into the second stage?","skillIds":["iv2sls.two-stage-least-squares"],"estimatedMinutes":5,"difficulty":"applied","points":15},{"id":"iv2sls-2sls-06","index":19,"moduleId":"iv2sls-2sls","moduleIndex":5,"type":"quiz","title":"Check: why not hand-roll the SEs?","skillIds":["iv2sls.weak-instrument-diagnostics"],"estimatedMinutes":5,"difficulty":"applied","points":15},{"id":"iv2sls-2sls-07","index":20,"moduleId":"iv2sls-2sls","moduleIndex":6,"type":"fillblank","title":"The clean slice of x","skillIds":["iv2sls.two-stage-least-squares"],"estimatedMinutes":4,"difficulty":"applied","points":15},{"id":"iv2sls-2sls-08","index":21,"moduleId":"iv2sls-2sls","moduleIndex":7,"type":"truefalse","title":"Hand-rolled second-stage SEs","skillIds":["iv2sls.weak-instrument-diagnostics"],"estimatedMinutes":3,"difficulty":"applied","points":10}]},{"id":"iv2sls-diagnostics","title":"4 · Diagnostics","summary":"First-stage F flags weak instruments; over-identification tests probe exclusion.","stageCount":9,"stages":[{"id":"iv2sls-diagnostics-01","index":22,"moduleId":"iv2sls-diagnostics","moduleIndex":0,"type":"read","title":"Weak instruments and the first-stage F","skillIds":["iv2sls.overidentification"],"estimatedMinutes":6,"difficulty":"applied","points":5},{"id":"iv2sls-diagnostics-02","index":23,"moduleId":"iv2sls-diagnostics","moduleIndex":1,"type":"read","title":"Over-identification: a partial check on exclusion","skillIds":["iv2sls.overidentification"],"estimatedMinutes":6,"difficulty":"applied","points":5},{"id":"iv2sls-diagnostics-03","index":24,"moduleId":"iv2sls-diagnostics","moduleIndex":2,"type":"code","title":"Weak vs strong: F and 2SLS side by side","skillIds":["iv2sls.overidentification"],"estimatedMinutes":10,"difficulty":"applied","points":10},{"id":"iv2sls-diagnostics-04","index":25,"moduleId":"iv2sls-diagnostics","moduleIndex":3,"type":"interactive","title":"Weak-instrument slider","skillIds":["iv2sls.overidentification"],"estimatedMinutes":8,"difficulty":"applied","points":10},{"id":"iv2sls-diagnostics-05","index":26,"moduleId":"iv2sls-diagnostics","moduleIndex":4,"type":"code","title":"Over-identification (Sargan) intuition","skillIds":["iv2sls.overidentification"],"estimatedMinutes":10,"difficulty":"applied","points":10},{"id":"iv2sls-diagnostics-06","index":27,"moduleId":"iv2sls-diagnostics","moduleIndex":5,"type":"quiz","title":"Check: reading the first-stage F","skillIds":["iv2sls.overidentification"],"estimatedMinutes":5,"difficulty":"applied","points":15},{"id":"iv2sls-diagnostics-07","index":28,"moduleId":"iv2sls-diagnostics","moduleIndex":6,"type":"quiz","title":"Check: the over-ID test","skillIds":["iv2sls.overidentification"],"estimatedMinutes":5,"difficulty":"applied","points":15},{"id":"iv2sls-diagnostics-08","index":29,"moduleId":"iv2sls-diagnostics","moduleIndex":7,"type":"numeric","title":"First-stage F vs the rule of thumb","skillIds":["iv2sls.overidentification"],"estimatedMinutes":5,"difficulty":"applied","points":20},{"id":"iv2sls-diagnostics-09","index":30,"moduleId":"iv2sls-diagnostics","moduleIndex":8,"type":"quiz","title":"What a passed over-ID test proves","skillIds":["iv2sls.overidentification"],"estimatedMinutes":5,"difficulty":"applied","points":15}]}]}
