Random Realizations
  • Writing
  • Books
  • About
  • Subscribe
Categories
All (23)
bayesian (1)
blogging (3)
causal inference (1)
from scratch (6)
gradient boosting (12)
pandas (1)
personal finance (1)
PySpark (1)
python (14)
pytorch (1)
statistics (1)
tutorial (7)
xgboost (5)

Writing

Causality and the Prediction-Decision Gap

causal inference

On the causal pitfalls of using predictive models for decision making

Nov 11, 2026

The t-test is a Special Case of OLS (aka my attempt to write a quick post)

statistics

Matt tries to write a quick post, and also the t-test is OLS in disguise.

Jan 19, 2026

Logistic Regression with PyTorch

python
tutorial
pytorch

We build a logistic regression model in PyTorch and modify the model to create a deep neural network.

Jul 4, 2025

Bayesian Modeling Primer

bayesian
python

An intuitive introduction to the Bayesian statistical workflow including modeling, inference, and interpretation of results.

Jun 4, 2025

Analyzing After Tax Retirement Income: Roth vs. Traditional 401(k)

personal finance

Quantitative analysis of Roth vs. traditional 401(k)—which is better for you?

Dec 14, 2024

SHAP from Scratch

python
from scratch

How to compute SHAP values from scratch in python

Aug 4, 2024

The Ultimate Guide to XGBoost Parameter Tuning

python
tutorial
gradient boosting
xgboost

My approach for efficiently tuning XGBoost parameters with optuna in python

Dec 26, 2023

XGBoost for Binary and Multi-Class Classification in Python

python
tutorial
gradient boosting
xgboost

A step-bystep tutorial on binary and multi-class classification with XGBoost in python using sklearn and the xgboost library

Nov 28, 2023

Gradient Boosting Multi-Class Classification from Scratch

python
gradient boosting
from scratch

How to implement multi-class classification for gradient boosting from scratch in python

Oct 15, 2023

XGBoost for Regression in Python

python
tutorial
gradient boosting
xgboost

A step-bystep tutorial on regression with XGBoost in python using sklearn and the xgboost library

Sep 18, 2023

Blogging with Quarto and Jupyter: The Complete Guide

python
tutorial
blogging

Step-by-step tutorial and best practices for creating a python blog with quarto and jupyter

Sep 6, 2023

Random Realizations Resurrected

blogging

The world’s favorite data science blog is back.

Aug 2, 2023

XGBoost from Scratch

python
gradient boosting
xgboost
from scratch

A walkthrough of my from-scratch python implementation of XGBoost.

May 7, 2022

XGBoost Explained

gradient boosting
xgboost

In-depth explanation and mathematical derivation of the XGBoost algorithm

Mar 13, 2022

Decision Tree from Scratch

python
gradient boosting
from scratch

A detailed walkthrough of my from-scratch decision tree implementation in python.

Dec 13, 2021

Consider the Decision Tree

gradient boosting

Understand the core strengths and weaknesses of the decision tree, and see how ensembling makes trees shine.

Dec 12, 2021

How to Implement a Gradient Boosting Machine that Works with Any Loss Function

python
gradient boosting
from scratch

Summarize Friedman’s seminal GBM paper and implement the generic gradient boosting algorithm to train models with any differentiable loss function.

Oct 23, 2021

Hello PySpark!

python
PySpark
tutorial

Get up and running fast with a local pyspark installation, and learn the essentials of working with dataframes at scale.

Jun 22, 2021

How Gradient Boosting Does Gradient Descent

gradient boosting

Understand how gradient boosting does gradient descent in function space to minimize any differentiable loss function in the service of creating a good model.

Apr 27, 2021

Get Down with Gradient Descent

gradient boosting

Get down with the intuition for gradient descent via a fresh analogy, develop the mathematical formulation of the algorithm, and implement it from scratch to train a linear regression model.

Jan 22, 2021

How to Build a Gradient Boosting Machine from Scratch

python
gradient boosting
from scratch

Understand the intuition behind the gradient boosting machine (GBM) and learn how to implement it from scratch.

Dec 8, 2020

The 80/20 Pandas Tutorial

python
pandas
tutorial

An opinionated pandas tutorial on my preferred methods to accomplish the most essential data transformation tasks in a way that will make veteran R and tidyverse users smile.

Nov 25, 2020

Hello World! And Why I’m Inspired to Start a Blog

blogging

A reflection on what inspired me to start a blog and three reasons I think it could be a good idea.

Nov 22, 2020
No matching items