Home
Blog
Memos
Professional
Blog
Categories
All
(14)
Calculus
(6)
Data Management
(3)
Linear Algebra
(1)
Probability
(3)
Python
(10)
R
(3)
SQL
(1)
Statistics
(1)
The following are a collection of my informal notes and tutorials on topics in programming, math, statistics, and policy analysis. If you find errors or else find them helpful, I’d love to hear from you.
Subscribe
for Email Updates
RSS
Grouping Problems with SQL
SQL
Data Management
Using DuckDB to look at some
GROUP BY
and
PARTITION BY
statements in SQL.
Nov 20, 2024
10 min
Building Time-series Utilities for
matplotlib
Python
Writing utility functions for
matplotlib
and using them to visualize BART’s ridership data.
Jun 16, 2024
5 min
The Covariance Matrix from Scratch
Python
Linear Algebra
Notes on matrix algebra and covariance, with a mix of formal notation and python code.
May 31, 2024
22 min
Integrals in Probability
R
Calculus
Probability
Notes on the definite integral and probability modeling, with a mix of formal notation,
plotly
visuals, and
sympy
computation.
Apr 14, 2024
18 min
Benchmarking parquet and
dask
Python
Data Management
Using parquet+
dask
to efficiently read and manipulate BART’s historical ridership data.
Apr 12, 2024
7 min
Production Maximization with Lagrange Mutlipliers
R
Calculus
Solving an optimization problem in (Strang and Herman 2016) using lagrange multipliers, with some
plotly
visuals mixed in.
Mar 17, 2024
6 min
Simple Optimization in 3D
R
Calculus
Solving an optimization problem in (Strang and Herman 2016), with
plotly
visuals.
Mar 9, 2024
9 min
Linear Approximation in 3D
Python
Calculus
Using taylor series to approximate function output, with python visuals.
Mar 2, 2024
3 min
Overfitting and The Train-Test Split
Python
Statistics
Using re-sampling to better estimate model performance.
Dec 8, 2023
6 min
Iterated Expectations
Python
Probability
Notes on conditional probability and adam’s law, with a mix of formal notation and python code.
Dec 1, 2023
7 min
Newton’s Method From The Ground Up
Python
Calculus
Using newton’s method for root-finding and optimization, with python code and a .gif of the search.
Nov 3, 2023
10 min
Simple Constrained Optimization in 2D
Python
Calculus
Introductory optimization, with formal notation, python code, and
matplotlib
visuals.
Jul 4, 2023
5 min
Buy vs. Rent, A Financial Modeling Workflow in Python
Python
Probability
Using
numpy-financial
and monte-carlo simulation to evaluate investments.
Aug 6, 2022
7 min
Reliable PDF Scraping with tabula-py
Python
Data Management
Using
tabula
in python to read in tables from .pdf files
Jul 20, 2022
6 min
No matching items