• Blog
  • Teaching
    • Jacob’s Teaching Experience
    • Introduction to R
    • Introduction to Git/GitHub
    • API 222 Section Material
  • Research

API 222 Section Materials

API 222 Section Materials

Comprehensive section materials for API-222 covering statistical learning, machine learning methods, and their applications in policy analysis.

Section Materials

1
Section 1

Intro to API 222 and R

Introduction to the course and R programming fundamentals including vectors, matrices, data frames, and basic operations.

View Section 1 →

2
Section 2

KNN and Linear Regression

K-Nearest Neighbors algorithm and linear regression fundamentals for predictive modeling.

View Section 2 →

3
Section 3

Linear Regression Exercises

Hands-on exercises for practicing inference, model fitting, and interpretation in linear regression.

View Section 3 →

4
Section 4

Classification

Classification methods including logistic regression, linear discriminant analysis, and performance metrics.

View Section 4 →

5
Section 5

Cross-Validation, Ridge, Lasso, and Bootstrapping

Resampling methods for model evaluation and regularization techniques for improved prediction accuracy.

View Section 5 →

6
Section 6

Regularization and Dimension Reduction

Advanced regularization methods and dimension reduction techniques including PCA and PCR.

View Section 6 →

7
Section 7

Non-linear Models

Moving beyond linearity with polynomial regression, splines, and local regression methods.

View Section 7 →

8
Section 8

Tree-Based Methods

Decision trees, bagging, random forests, and boosting for classification and regression problems.

View Section 8 →

9
Section 9

Support Vector Machines

Support vector classifiers and support vector machines for classification with various kernel approaches.

View Section 9 →

10
Section 10

Neural Networks and Deep Learning

Introduction to neural networks, deep learning architectures, and reinforcement learning concepts.

View Section 10 →

About These Materials

This page contains all of the code and notes for API-222 section. The materials build on contributions from previous teaching fellows including Ibou Dieye, Laura Morris, Emily Mower, and Amy Wickett. If you have any questions or need help with anything, please don’t hesitate to reach out.

© 2025 Jacob Jameson