Learn to bootstrap a yield curve from market data using QuantLib in Python and verify each node against known bond valuations.
You observe a system’s position every second with a noisy GPS sensor, but you need to know both position and velocity for control. You have a physics model (constant velocity) but the measurements are unreliable. How do you recover the true state?
The Kalman Filter answers this question: it estimates a system’s hidden state from noisy measurements, combining a prediction from a dynamic model with a correction from new measurements, weighted by their respective uncertainties.
In this post, we build a complete Kalman Filter from scratch in NumPy, verify it against a known ground-truth trajectory, and show exactly how much uncertainty it reduces compared to raw measurements.
1. S&P 500, Nasdaq, and Dow Jones Performance # Friday, November 15, 2026 Closing Levels:
S&P 500: 7,561.67 (down -0.40%, -30.73 points) Nasdaq Composite: 25,136.27 (down -0.91%, -229.83 points) Dow Jones Industrial Average: 52,347.55 (up +0.10%, +50.45 points) Weekly Performance (Nov 9-13):
I really like the Apple Home app: dark tiles, a badge that lights up, no thinking about protocols. What I don’t like is being limited to what Apple decides to surface, with the only escape hatch being HomeKit bridges.
Here’s the deal I actually want: the same experience, self-hosted, running on the Mac (or a Raspberry Pi) that already sits on my home network, talking to Home Assistant — which is already the brain of the house.
That turned out to be one Python file, standard library only. This post is a complete, verified walkthrough: every output below is from a real run.
Black-Scholes gives you a closed-form price for a vanilla European option in one line — so why bother simulating? Because the moment an option’s payoff depends on the path (Asian, lookback, barrier) or you add non-linearity (American exercise, Vol surfaces, XVA), the formulas stop existing and Monte Carlo keeps working.
In this post we build a complete Monte Carlo pricer from scratch in NumPy, verify it against Black-Scholes, then extend it to path-dependent payoffs and Greeks. Every number shown comes from a single run with a fixed seed (numpy.random.default_rng(42)) — you should be able to reproduce all of them.
Learn how to build a robust model for predicting credit card sales with a focus on handling seasonality, holidays, and day-of-week effects to achieve accurate quarterly sales forecasts.