↓ Skip to main content

Quick Insights

Welcome to Quick Insights! Practical articles on quant analysis methods, equity alternative data, and applied AI - each with working code you can use today.

Recent

Build an Apple Home-Style Dashboard on a Mac or Raspberry Pi (Powered by Home Assistant)

Build an Apple Home-Style Dashboard on a Mac or Raspberry Pi (Powered by Home Assistant)

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.
Pricing Options with Monte Carlo in NumPy — Verified Against Black-Scholes

Pricing Options with Monte Carlo in NumPy — Verified Against Black-Scholes

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.
Automatically Load Code in Jupyter Notebooks Using the IPython Startup Folder

Automatically Load Code in Jupyter Notebooks Using the IPython Startup Folder

Automatically Load Code in Jupyter Notebooks Using the IPython Startup Folder # If you frequently work with Jupyter notebooks, you’ve probably found yourself writing the same import statements, utility functions, or configuration settings at the beginning of each notebook. This repetitive task can be eliminated by taking advantage of IPython’s startup folder functionality, which allows you to automatically load code every time you start a new notebook. In this guide, we’ll explore how to set up and use the IPython startup folder in both Windows and Unix-based systems (macOS/Linux).