Resume/CV LinkedIn GitHub Medium
Noah Swan Headshot

Noah Swan

Welcome to my portfolio! I'm Noah, currently pursuing an MS in Statistics at the University of Chicago, where I also work as a research assistant applying NLP and embedding-based methods at the Data Science Institute. My background spans statistical modeling, machine learning, and large-scale data work, most recently as a Data Science Intern at BCG X and previously as an Associate Analyst at NERA Economic Consulting. Below you'll find write-ups and code from projects spanning Bayesian inference, ML methodology, and sports analytics, an area where I am particularly passionate. My contact information is on my resume; feel free to reach out with questions.

Experience

A quick look at my professional and research background. More detail, including earlier roles, is available on my resume.

Recent Projects

Below you will find some recent projects I have worked on through classwork, data competitions, or my own personal interest.

Variational Inference for LDA and Poisson Matrix Factorization

For a Monte Carlo Simulations course, I derived Coordinate Ascent Variational Inference (CAVI) updates for Latent Dirichlet Allocation (LDA) and Poisson Matrix Factorization, two Bayesian hierarchical models. I implemented CAVI for LDA in PyTorch and fit 20 topics on 5,000 posts from the 20 Newsgroups dataset. Without labels, the model recovered interpretable topics: ~70% of hockey posts and a 46% plurality of space posts had their matching topic as the largest mixture component. The writeup also shows how auxiliary variables make the Poisson model's updates tractable and how the two models connect.

Simulating Tennis Matches

This GitHub repository updates a project I had completed previously, modeling tennis-player stats as rates of Binomial random variables with Beta priors and posteriors conditioning on surface and opponent rank. These models are used to simulate match statistics which are fed into a post-match win-probability model to predict tennis match results. The method achieves an 11% improvement in prediction accuracy over a naive rank-based approach overall, with a larger ~10 percentage-point edge for matchups where more match history is available to inform the posteriors.

MLE for Truncated Normal Distribution with Gradient Descent

This project implements maximum likelihood estimation of a truncated normal distribution parameters using gradient descent, written in C++. It features an object-oriented design with input validation, JSON-based configuration, and integration with Boost.Math and nlohmann/json. The build system is managed with CMake for portability. I was inspired to complete this project from my previous project involving tennis match simulations, where I ran into difficulties when using MLE to parameterize truncated normal distributions.

Marginal Effect of XGBoost Hyperparameter Tuning

In this article, I explored the trade-offs between wide and narrow hyperparameter search spaces when tuning XGBoost models. Alongside running systematic experiments, I provided an accessible breakdown of Tree-Structured Parzen Estimators (TPE), reviewing both the underlying research and the source code implementation in hyperopt. To support the analysis, I built a modular Python codebase, using polars to structure data through a custom data class and designing reusable components for experimentation so that the methodology could be extended to different prediction tasks.

Modeling Expected Points in Python

I have mainly worked in R up until recently, so this is my first project doing data work in Python outside of some spot work in a Deep Learning class. As an R programmer, you will notice most of the code here takes advantage of method chaining in pandas at least for the data cleaning. For the project, I built an XGBoost model to predict the points scored on a drive given the circumstances in a play. This methodology underlies the EPA statistic oft-cited in NFL analytics circles. I compare my results to those included in the play-by-play data in the nfl_data_py python package.

"The Most Confusing Players in Tennis"

I was inspired to write this article after listening to a podcast episode trying to identify the hardest players to analyze on the ATP tour. My approach to this question was to try and identify the least consistent players on tour as a proxy for being difficult to analyze. My initial strategy was to look at match-to-match variance in player statistics. I also built a couple of models predicting match statistics using lagged player statistics to see which players were consistently the hardest to predict. All results and further discussion can be found in the article here and the code for the article can be found here.

Predicting Pass Play Results for Professional Football

For a Deep Learning class, I worked with two classmates to build a model to predict EPA and yards gained for NFL plays from the 2018 season. We wanted to see if we could build a model to predict the result of a pass play from conditions up to the throw. This model would allow us to attribute credit to quarterbacks or wide receivers who consistently achieve higher EPA after the throw when compared to the model's predictions. We compared results for a random forest, XGBoost, and a neural network architecture, with the last performing the best. The full report can be found here.

Predicting Balls Hit into Play

As part of a Data Mining class, I worked with two classmates on a semester-long project to find a dataset and build a model. Our group attempted to build a model classifying whether a ball hit into a play resulted in a hit or an out using data from the 2021 MLB season. We compared several types of models in the analysis and also implemented the SMOTE method for dealing with a class imbalance. The full details can be found in our final report here.

Designing a Gameplan for the Golden State Warriors

As part of the executive board of the Sports Analytics Club at Villanova University, I helped lead a team in designing this presentation that ultimately won the 2023 Syracuse Basketball Analytics competition. We were tasked with building a gameplan to defend the Golden State Warriors using play-by-play and possession data. We analyzed team and player tendencies, using points per possession as a measure of efficiency. We also modeled points over expectation using an XGBoost model to identify areas of the court where the Warriors outperformed the average. I was in charge of the model building along with the visualizations, and the team gave the presentation to a panel of judges who deemed ours the best ahead of finalists from Tulane, Penn, and Duke.

Senior Economics Thesis

During my senior year, I completed a year-long thesis on uncertainty within macroeconomics (final product here). Inspired by different papers applying the work of Thomas Kuhn to the field of economics, I attempted to contextualize the development of uncertainty within a Kuhnian, paradigmatic framework. I am grateful to have had the opportunity to pursue independent research on a topic of interest.

Shiny Apps

During my role as lead data analyst at Oklahoma City Energy, I built out several shiny apps for the coaching staff which I wanted to share here. Apologies for any delays in accessing the apps; my code has improved since writing these apps. Despite some inefficiencies, I think the following apps have some interesting visuals.