Training Calendar

Machine Learning for Economists and Policy Makers: Prediction, Classification and Causal Effects

Online 4 days (11th June 2020 - 26th June 2020) Stata Advanced, Intermediate
Automation, Big Data, Econometrics, Policy analysis, Various methods

Course Overview

Download the PDF file of the course outline

This course, presented in a two part sequence, will review the application of machine learning techniques to both prediction problems and so-called causal problems where a firm or policy maker needs to understand the impact of some form of intervention on a heterogeneous population.

One example, is a firm that wishes to understand how the introduction of a change in pricing impacts both aggregate demand, and the demand on different segments of the population. In another example, a policymaker seeks to understand the impact of an intervention both in terms of some form of average effect, but also how individuals differ in the magnitude of the effect. Examples include the impact of job training programmes, the impact of education policies in developing economies, and the differential impact of drugs on survival and recovery.

In this context we make the distinction between the ex post assessment of a change and the ex ante identification of characteristics of individuals that are predictive of the likely impact of such a change.

Using Breiman’s (2001) notion of two cultures in the use of statistical modelling, the course begins with a review of the fundamental differences between machine learning and econometrics.

There are two cultures in the use of statistical modeling to reach conclusions from data. One assumes that the data are generated by a given stochastic data model. The other uses algorithmic models and treats the data mechanism as unknown.

—Breiman [2001], p199.

We contrast a modelling approach where the analyst makes certain assumption on model specification, including functional form, with an approach where the data mechanism is presumed unknown. In this context we consider the econometrician’s concern for internal validity, alongside the focus within machine learning of ensuring that a model is robust in the sense of generalising to unseen data (external validity).

The course will focus upon topics at the intersection of machine learning and econometrics, covering a mix of theory and applications. In making the distinction between models which are used to solve a prediction problem and models which are used to estimate some form of causal effect, we introduce participants to identification strategies in econometrics. Here it is important to demonstrate how empirical strategies such as unconfoundedness, instrumental variables, and difference-in-difference can be used alongside machine learning methods for prediction.

As a point of departure we make reference to the two broad types of machine learning in terms of supervised and unsupervised learning, making the link to nonparametric regression. We then consider a number of fundamental building blocks, starting with error decomposition in terms of bias and variance, the role of training, estimation and test samples, and the role of regularization as a means to avoid overfitting.

In covering the three broad areas where machine learning is used, namely prediction, classification and causal effects, for each case we link the exposition to a parametric benchmark. For prediction we consider the piecewise nonlinear regression model, for classification we review the fundamentals of parametric binary choice models, and for causal effects we consider the specification of models with instrumental variables and treatment effects.

Participants will also be introduced to the use of ensemble methods as an averaging and regularization device. In this context we will explore a number of general methods for model averaging including bootstrap sampling (so-called bagging) and random forests. For Machine Learning models in prediction, classification and causal effects we provide examples using Stata and Python.


Application - Causal Forest Estimation of Heterogeneous Household Response to Time-Of-Use Electricity Pricing Schemes

The introduction of time-of-use electricity prices is an example of a policy with heterogeneous effects. Consumers in different socioeconomic groups and with distinct historical intra-day load profiles and behavioural characteristics, may respond differently to the introduction of tariffs that charge different prices for electricity at different times of the day. Customers who can (cannot) adapt their consumption profile to TOU tariffs will accrue a benefit (cost). Those who consume electricity at more expensive peak periods, and who are unable to change their consumption patterns, could end up paying significantly more.

Analysts often describe subpopulations that are of interest a priori, and which can be defined by a known combination of covariates. However, increasingly researchers face a selection problem given a large number of possible covariates alongside uncertainty as to which covariates are important for heterogeneity, and what functional form best describes the association between these covariates and treatment effects.

In assessing whether demographic variables are informative in terms of the impact of TOU tariffs on load profiles, the Customer-Led Network Revolution project noted

.. a relatively consistent average demand profile across the different demographic groups, with much higher variability within groups than between them. This high variability is seen both in total consumption and in peak demand.

In addition, the question of which demographic variables are important when consider- ing the impact of energy policies ignores the fact that many of these variables should be considered together, in a multiplicative fashion. One reason for this finding might be that, for example, it is the (unknown) combination of income, household size, education, and daily usage patterns that describes a particularly responsive or unresponsive group.

Throughout the course we make reference to the problem of identifying the distributional effects of some intervention, without succumbing to the problems of data mining (multiplicity). Here we examine the empirical problem of identifying the characteristics of winners and losers subsequent to the introduction of TOU tariffs following the introduction of a Time-of-Use (TOU) pricing scheme where the price per kWh of electricity usage depends on the time of consumption. The pricing scheme is enabled by smart meters, which records consumption every half-hour.

Using machine learning methods we describe the association between the effect of TOU pricing schemes on household electricity demand and a range of variables that are observable before the introduction of the new pricing schemes.


Textbooks

  • L. Breiman, J. Freidman, R. Olshen, C. Stone. Classification and Regression Trees. Klein-Verlag, 1990.
  • J. Freidman, T. Hastie, R. Tibshirani. The Elements of Statistical Learning. Springer, 2009.

Course Agenda


Part 1 (2-days) - Machine Learning for Prediction Problems

Summary and Objectives

Day 1

The course is designed to provide both the tools to undertake projects using machine learning (ml), and critically ensure that participants understand and can communicate how the methods work.

Towards this objective, on Day 1, Session 1 we introduce participants to the vernacular of machine learning tools.

In Session 2 will further explore the links between machine learning, econometrics and data mining. We also examine how ml utilise data mining tools, suitably adapted to allow inference. The course is designed in such as way to ensure that participants are given the necessary context to understand the genesis of ml methods.

To this end, the first point of departure reviews the ordinary least squares estimator and provides links to ml using kernel density estimation.

We also provide the necessary links to econometrics and nonparametric statistics.

Session 1 - Introduction

  1. High-level overview of Machine Learning and ai
  2. Machine Learning: The Vernacular
  3. The Nature of Prediction Problems
  4. Prediction, Evaluation and Causal Inference

Session 2 - Machine Learning: Tools and Vernacular

  1. Econometrics
  2. Machine Learning: Tools and Vernacular
    1. Bias Variance Tradeoff
    2. Regularisation
    3. Multiplicity and P-values
    4. Ensemble Learning
  3. Point of Departure I: The Ordinary Least Squares Estimator

Day 2

Day 2, Session 1 begins with the second point of departure - high dimensional methods in statistics. These methods are used when analysts face a big data problem in terms of which of a large set of explanatory variables to include in a regression model.

We follow this with a practical where participants can explore the use of regularised regression tools with a number of empirical applications.

In session 2 we provide an introduction to a number of machine learning methods including regression trees and forests.

This is then followed by a practical where we examine the use of ml methods for prediction.

Session 1 - Point of Departure II: High Dimensional Methods

  1. High Dimensional Methods
  2. Least absolute Shrinkage and Selection (LASSO)
    1. Choosing λ
    2. Causal Inference in High-Dimensions
    3. LASSO For Treatment Models
    4. Double LASSO
  3. Practical: Regularized Regression

Session 2 Machine Learning and Decision Trees

  1. Machine Learning and Decision Trees
    1. Machine Learning: Terminology and Concepts
    2. An Overview of Regression Trees
    3. The Bias-Variance Tradeoff
    4. Training, Testing and Cross Validation
    5. Regularization: Variance reduction and Ensemble Learning
  2. Practical: Machine Learning for Prediction

Looking Ahead

In Part 2, a separate 2-day follow-up course, we explore in more detail some of the concepts introduced in Part 1. In addition, we extend the coverage to include machine learning methods for both classification problems and for causal effects.

Regarding the latter, this material covers a relatively new and rapidly expanding field, where the potential of ml is applied to policy problems. A useful point of departure here is the work of this years Nobel Laureate Esther Duflo.


Part 2 (2-days) - Machine Learning for Classification and Causal Effects

Summary and Objectives

Day 1

In Part 2, the second instalment of this two part course, we explore in more detail some of the concepts introduced in Part 2, and extend the coverage to include machine learning methods for both classification problems and for causal effects.

The material on causal effects takes as its point of departure the literature on treatment effects and examines the potential of ml to address a number of policy problems. A useful point of reference here is the work of this years Nobel Laureate, Esther Duflo.

Part II of this course is also constructed so that participants can take this module without needing to take Part I. That said, the overall learning experience is greater if participants take Part I and II as a sequence.

On Day 1, Session 1, we review some of the fundamentals of machine learning that were introduced during Part 1. This includes the use of ml for prediction, classification and causal effects, alongside the key methodological concepts such as the bias-variance tradeoff and methods to achieve regularisation.

In Session 2 we examine the use of ml tools applied to so-called classification problems. A useful frame of reference here is the decision to grant a loan or provide some form of service such as insurance. These models utilise characteristics of individuals/firms to understand the determinants of key outcomes such as loan default or an excess number of claims.

Session 1 - Introduction

  1. Review of Part 1
  2. Bias-Variance trade-off, overfitting and prediction
  3. Prediction, Evaluation and Causal Inference

Session 2

  1. Classification problems
  2. Parametric Benchmarks: binary choice models
  3. Application: Surviving the Titanic with Python integration
  4. Application: Credit Card default

Day 2

Day 2, Session 1 begins with the third point of departure - programme evaluation and treatment effects. We will review the econometric methodology which includes methods to handle both endogeneity and move away from parametric functional forms. We make reference to the work of the Nobel Laureate Esther Duflo who has made significant contributions to the use of randomised control trials, in addition to the utilisation of machine learning methods in this context.

In Session 2 we examine the use of machine learning methods for causal inference. Relative to many of econometric methods, studies which employ ml techniques have sort to exploit so-called big data to provide a coherent approach to uncover variation in treatment effects without succumbing to the pitfalls of data mining.

This is followed by a practical where we examine the use of ml methods applied to the impact of time-of-use electricity on individual-level demand response. A key question here is whether it is possible to identify characteristics of households that enable policy makers to identify so-called winners and losers once we move to a price system where prices vary throughout the day.

Session 1 - Point of Departure III: Programme Evaluation and Treatment Effects

  1. Overview
  2. Ignorability of Treatment
  3. Endogenous Selection
  4. Matching Estimators
  5. The Difference-in-Difference Estimator
  6. Application: Job Training Programs

Session 2 - Machine Learning and Causal Inference

  1. Causal Trees
  2. Honest Estimation
  3. Forests and Variance Reduction Methods
  4. Testing for Heterogeneity in Treatment Effects
  5. Application: Time of Use Tariffs and Smart Meter Data

Principal texts for pre/post course reading

See references here - Download the PDF file of the course outline (including suggested reading).

Prerequisites

  • It is required some knowledge of basic statistics and econometrics: notion of conditional expectation and related properties; point and interval estimation; regression model and related properties; probit and logit regression.
  • Basic knowledge of Stata software

Terms and Conditions

  • Student registrations: Attendees must provide proof of full time student status at the time of booking to qualify for student registration rate (valid student ID card or authorised letter of enrolment).
  • Additional discounts are available for multiple registrations.
  • Cost includes course materials, lunch and refreshments.
  • Delegates are provided with temporary licences for the software(s) used in the course and will be instructed to download and install the software prior to the start of the course.
  • Payment of course fees required prior to the course start date.
  • Registration closes 5-calendar days prior to the start of the course.
    • 100% fee returned for cancellations made over 28-calendar days prior to start of the course.
    • 50% fee returned for cancellations made 14-calendar days prior to the start of the course.
    • No fee returned for cancellations made less than 14-calendar days prior to the start of the course.

The number of delegates is restricted. Please register early to guarantee your place.

  •  CommercialAcademicStudent
    Part 1 only (2-day course) (11/06/2020 - 12/06/2020)
    Parts 1 & 2 (4-day course) (11/06/2020 - 26/06/2020)
    Part 2 only (2-day course) (25/06/2020 - 26/06/2020)

All prices exclude VAT or local taxes where applicable.

* Required Fields

£0
Post your comment

Timberlake Consultants