Current teaching

Bayesian Learning MPE-2024

Course: BAYESIAN LEARNING  MPE-2024
Professor: Hedibert Freitas Lopes - www.hedibert.org (hedibertfl@insper.edu.br)

Teaching assistant: Luiza Tuler Veloso (luizatv@insper.edu.br)

Syllabus

Homework assignments: 

Additional examples (to be) discussed in class: 

Course notes (+ R code & references)

Additional supporting material

Advanced Bayesian Econometrics PhD-2024

Course: ADVANCED BAYESIAN ECONOMETRICS PhD-2024
Professor: Hedibert Freitas Lopes - www.hedibert.org

Objective: The end of the course goal is to allow the student to critically decide between a Bayesian, a frequentist or Bayesian-frequentist compromise when facing real world problems in the fields of micro- and macro-econometrics and finance, as well as in quantitative marketing, strategy and business administration.  With this end in mind, we will visit well known Bayesian issues, such as prior specification and model comparison and model averaging, but also study regularization via Bayesian LASSO, Spike-and-Slab and related schemes, “small n, large p” issues, Bayesian statistical learning via additive regression trees, random forests, large-scale VAR and (dynamic) factor models.

Course description: Basic ingredients: prior, posterior, and predictive distributions, sequential Bayes, conjugate analysis, exchangeability, principles of data reduction and decision theory.  Model criticism: Bayes factor, computing marginal likelihoods, Savage-Dickey ratio, reversible jump MCMC, Bayesian model averaging and deviance information criterion.  Modern computation via (Markov chain) Monte Carlo methods: Monte Carlo integration, sampling-importance resampling, Gibbs sampler, Metropolis-Hastings algorithms.  Mixture models, Hierarchical models, Bayesian regularization, Instrumental variables modeling, Large-scale (sparse) factor modeling, Bayesian additive regression trees (BART) and related topics, Dynamic models, Sequential Monte Carlo algorithms, Bayesian methods in microeconometrics, macroeconometrics, marketing and finance.

  • Part I Bayesian ingredients: i) Inference: likelihood, prior, predictive and posterior distributions; ii) Model criticism: Marginal likelihoods, Bayes factor, model averaging and decision theory; and iii) Computation: An introduction (Markov chain and sequencial) Monte Carlo methods.
  • Part II Multivariate models: i) Large-scale vector autoregressive models; ii) Factor models and other dimension reduction models; and iii) Time-varying high-dimensional covariance models.
  • Part III Modern Bayesian statistical learning: i) Mixture models and the Dirichlet process: handling non-Gaussian models; ii) Regularization: sparsity via shrinkage and variable selection; iii) Large vector-autoregressive and factor models: combining sparsity and parsimony; iv) Classification and support vector machines; v) Regression trees and random forests; and vi) Latent Dirichlet allocation: Text as data, text mining.
 

Take-home midterm exam: To be added 

Homework assignments: To be added

Paper presentations:  To be added

Examples developed in class:  To be added

LECTURE NOTES

PART I: Bayesian ingredients

  1. Basic Bayes
  2. Exchangeability
  3. Principles of data reduction
  4. More on estimators
  5. Decision theory
  6. Bayesian model criticism (pages 1-6 & 32-34)
  7. Additional reading material:
  8. Discussion about p-values

PART II: Bayesian Computation

  1. Monte Carlo (MC) methods
  2. Markov chain: a brief review
  3. Markov chain Monte Carlo (MCMC) algorithms
  4. Hamiltonian Monte Carlo: A toy example
  5. Stan/rstan for posterior inference: Hamiltonian MC (HMC) methods
  6. MC and MCMC: Key References
  7. More on Bayesian model criticism

PART III: Bayesian Learning

  1. Fundamentos de Aprendizagem Estatística + R code + MC exercise
  2. Multiple linear regression: selection, shrinkage, sparsity
  3. Classification: logistic regression and discriminant analysis
  4. Bayesian factor analysis (BFA)
  5. Principal components analysis (PCA), PCA-based and FA-based regressions
  6. Classification and regression trees (CART)
  7. Bayesian CART
  8. Bootstrap aggregating (bagging)
  9. Bayesian additive regression trees (BART)
  10. Latent Dirichlet Allocation (LDA)
  11. Neural Networks

Complementary material to PART III

  1. Boosting (weak/stronger learners)
  2. Random forests
  3. Bayesian instrumental variables
  4. General linear and hierarchical models
  5. Limited dependent variable models
  6. Finite mixture of distributions
  7. Spatial models
  8. P.Richard Hahn's top 25 books on Statistics, Causal Inference, Statistical Computing, Machine Learning and Data Science

Bibliography: Bayesian econometrics

  1. Zellner (1971) An Introduction to Bayesian Inference in Econometrics
  2. Goel and Iyngar (1992) Bayesian Analysis in Statistics and Econometrics
  3. West and Harrison (1997) Bayesian Forecasting and Dynamic Models (2nd edition)
  4. Bauwens, Lubrano and Richard (2000) Bayesian Inference in Dynamic Econometric Models
  5. Koop (2003) Bayesian Econometrics
  6. Geweke (2005) Contemporary Bayesian Econometrics and Statistics
  7. Lancaster (2004) Introduction to Modern Bayesian Econometrics
  8. Rossi, Allenby and McCulloch (2005) Bayesian Statistics and Marketing
  9. Prado and West (2010) Time Series: Modeling, Computation and Inference
  10. Geweke, Koop and Van Dijk (2011) The Oxford Handbook of Bayesian Econometrics
  11. Greenberg (2013) Introduction to Bayesian Econometrics
  12. Herbst and Schorfheide (2015) Bayesian Estimation of DSGE Models
  13. Chan, Koop, Poirier and Tobias (2019) Bayesian Econometric Methods (2nd edition)
  14. Broemeling (2019) Bayesian Analysis of Time Series
  15. Bernardi, Grassi and Ravazzolo (2020) Bayesian Econometrics

Bibliography: Bayesian statistics

  1. Berger (1985) Statistical Decision Theory and Bayesian Analysis
  2. Bernardo and Smith (2000) Bayesian Theory
  3. Gelman and Hill (2006) Data Analysis Using Regression and Multilevel/Hierarchical Models
  4. Robert (2007) The Bayesian Choice: From Decision-Theoretic Foundations to Computational Implementation
  5. Hoff (2009) A First Course in Bayesian Statistical Methods
  6. Carlin and Louis (2009)  Bayesian Methods for Data Analysis (3rd edition)
  7. Gelman, Carlin, Stern, Dunson, Vehtari and Rubin (2016) Bayesian Data Analysis
  8. Migon, Gamerman and Louzada (2015) Statistical Inference: An Integrated Approach (2nd edition)
  9. Reich and Ghosh (2019) Bayesian Statistical Methods
  10. Held and Sabanes-Bove (2020) Likelihood and Bayesian Inference: With Applications in Biology and Medicine

Bibliography: Bayesian computation

  1. Gilks, Richardson and Spiegelhalter (1995) Markov Chain Monte Carlo in Practice
  2. Doucet, de Freitas and Gordon (2001) Sequential Monte Carlo Methods in Practice
  3. Robert and Casella (2004) Monte Carlo Statistical Methods (2nd edition)
  4. Gamerman and Lopes (2006) MCMC: Stochastic Simulation for Bayesian Inference, Second Edition
  5. Marin and Robert (2007) Bayesian Core: A Practical Approach to Computational Bayesian Statistics
  6. Albert (2009) Bayesian Computation with R
  7. Brooks, Gelman, Jones and Meng (2011) Handbook of Markov Chain Monte Carlo
  8. Givens and Hoeting (2012) Computational Statistics (2nd edition)
  9. Marin and Robert (2014) Bayesian Essentials with R (complete solution manual)
  10. Turkman, Paulino and Mueller (2019) Computational Bayesian Statistics: An Introduction
  11. McElreath (2020) Statistical Rethinking: A Bayesian course with Examples in R and STAN
  12. Chopin and Papaspiliopoulos (2020) An Introduction to Sequential Monte Carlo

Bibliography: (Bayesian) statistical learning

  1. Bishop (2006) Pattern Recognition and Machine Learning
  2. Hastie, Tibshirani and Friedman (2008) The Elements of Statistical Learning, 2nd edition
  3. Murphy (2012) Machine Learning: A Probabilistic Perspective
  4. Barber (2012) Bayesian Reasoning and Machine Learning
  5. James, Witten, Hastie and Tibshirani (2013) An Introduction to Statistical Learning
  6. Hastie, Tibshirani and Wainwright (2015) Statistical Learning with Sparsity
  7. Efron and Hastie (2016) Computer Age Statistical Inference: Algorithms, Evidence and Data Science
  8. Fernandez and Marques (2018) Data Science, Marketing and Business
  9. Izbicki & Santos (2020) Aprendizado de máquina: uma abordagem estatística

Bibliography: Classical Monte Carlo papers

Advanced Econometrics MPE-2024

Course: Advanced Econometrics MPE-2024
Professor: Hedibert Freitas Lopes - www.hedibert.org

Objective: The main objective of this course is to introduce basic aspects of microeconometrics, macroeconometrics, statistical learning, and Bayesian learning that are necessary for the master's degree program.

Course description:Regression with endogeneity, regression with measurement error, instrumental variables, potential outcomes, Neyman-Rubin model, selection bias, reverse causality, and omitted variables, panel data, hierarchical models, fixed effect, and random effect, difference-in-differences methods, ARIMA models; long memory; unit root, GARCH models, and stochastic volatility. Vector autoregressive models, factorial models with stochastic volatility, and multivariate models with time-varying parameters, logistic regression; performance metrics for classification, training and testing data; cross-validation, bias-variance trade-off, prior, posterior, and predictive distributions; sequential Bayes and conjugate analysis, Monte Carlo methods.

  • Regression with endogeneity; instrumental variables; potential outcomes.
  • Neyman-Rubin model; selection bias; reverse causality, and omitted variables.
  • Panel data and hierarchical models; difference-in-differences methods.
  • ARIMA; long memory; integration/co-integration.
  • State space models; modeling variance; multivariate time series.
  • Logistic regression; training and testing samples; validation; bias-variance trade-off.
  • Prior, posterior, and predictive distributions; sequential Bayes; conjugate analysis.
  • Monte Carlo methods; Markov Chain Monte Carlo; sequential Monte Carlo.

Teaching assistant: To be announced 

Take-home midterm exam: To be announced

Homework assignments: To be added

  1. HW1
  2. HW2
  3. HW3 
  4. HW4 
  5. HW5 

Basic bibliography

  • Mostly Harmless Econometrics: An Empiricist's Companion (Angrist and Pischke, 2009)
  • Analysis of Financial Time Series, 3rd Edition (Tsay, 2010)
  • An Introduction to Statistical Learning (James, Witten, Hastie and Tibshirani, 2023) – https://www.statlearning.com
  • Introduction to Bayesian Econometrics (Greenberg, 2013)

Additional bibliography

  • Introduction to Econometrics, 3rd edition (Stock and Watson, 2010)
  • Introductory Econometrics: A Modern Approach (Wooldridge, 2012)
  • Time Series Analysis (Hamilton, 1994)
  • Aprendizado de Máquina: Uma Abordagem Estatística (Izbicki and Mendonça, 2020) - http://www.rizbicki.ufscar.br/ame/
  • Estatística e Ciência de Dados (Morettin and Singer, 2021) -https://www.ime.usp.br/~pam/cdadosf3.pdf
  • Introduction to Modern Bayesian Econometrics (Lancaster, 2004)
  • Bayesian Econometric Methods, 2a edição (Chan, Koop, Poirier and Tobias)
  • Bayesian Statistics and Marketing (Rossi, Allenby and McCulloch, 2005)
  • Time Series: Modeling, Computation, and Inference (Prado and West, 2010)

Paper presentations: To be announced 

TEACHING MATERIAL: To be added

PART I: Microeconometrics 

  • Regression with endogeneity; instrumental variables; potential outcomes.
  • Neyman-Rubin model; selection bias; reverse causality, and omitted variables.
  • Panel data and hierarchical models; difference-in-differences methods.

PART II: Macroeconometrics 

  • ARMA and long memory.
  • Integration and cointegration.
  • State space models.
  • Time-varying variance.
  • Multivariate time series.

PART III: Statistical learning 

  • Logistic regression.
  • Training and testing samples.
  • Validation.
  • Bias-variance trade-off.

PART IV: Bayesian learning

  • Prior, posterior, and predictive distributions.
  • Sequential Bayes and conjugate analysis.
  • Bayesian decision.
  • Monte Carlo & Markov Chain Monte Carlo.