ML for Social Science, Fall 2026

Resources
Outline:Book office hours:

Class files
i1 Session 1: Workflow and ML regression Interactive slides Print slides (pdf)
    R code: Quarto HTML Python code: Jupyter Quarto HTML
i2 Session 2: Classification Interactive slides Print slides (pdf)
    R code: Quarto HTML Python code: Jupyter Quarto HTML
i4 Session 3: Causal ML and measurement Interactive slides Print slides (pdf)
    R code: Quarto HTML Python code: Jupyter Quarto HTML
i6 Session 4: Traditional NLP and Linguistics Interactive slides Print slides (pdf)
    R code: Quarto HTML Python code: Jupyter Quarto HTML
i7 Session 5: Embeddings Interactive slides Print slides (pdf)
    R code: Quarto HTML Python code: Jupyter Quarto HTML
    Implementing word2vec in Colab  
i8 Session 6: Topic modeling Interactive slides Print slides (pdf)
    Python code for LDA: Jupyter Quarto HTML R code for STM and ETM: Quarto HTML
i9 Session 7: Encoder Transformers (BERT) Interactive slides Print slides (pdf)
    Python code, BERTopic: Jupyter Quarto HTML BERTopic visualizations: base topics, base heatmap, base time, base class, custom topics, custom heatmap
    Python code for FinBERT usage (Colab) Pytorch code for FinBERT fine-tuning (Colab)
    Python code, FinBERT fine-tuning on new data: Jupyter Quarto HTML Python code, FinBERT inference on new data: Jupyter Quarto HTML