PPolySim OS
For Researchers · Pairs Trading

Pairs Trading for an emergency fund

Built for researchers prototyping or validating an idea. Prototype fast, reproduce exactly, and share a citable, interactive version of your model. Simulate an emergency fund live below — adjust the inputs and watch it respond, right in your browser.

1

Linear Regression

open full solver →
Linear RegressionLive

Controls

Presets

Ordinary least squares finds the line that minimizes the sum of squared vertical residuals (the gray drop-lines). R² measures the fraction of variance the line explains — 1 is perfect, 0 is useless. Add noise or remove points to watch the fit and R² degrade.

▶ Run in Python

Data Inspector

Fitted slope0.000
Intercept0.000
0.000
Correlation r0.000

Governing equation

Reading this result: R² = 0.00: noise (2) swamps the signal, so least squares can barely tell the slope from flat — adding data points would tighten the estimate.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

Monte Carlo Price SimulationLive

Controls

Presets

Geometric Brownian motion models a price with constant drift and random volatility — the assumption behind Black-Scholes. Running hundreds of simulated paths reveals the full distribution of outcomes, not just an average. Educational tool, not investment advice.

▶ Run in Python

Data Inspector

Median outcome$0
5th percentile$0
95th percentile$0

Governing equation

Reading this result: Median outcome is about $0, just under the drift-only $107 — GBM compounds in log-space, so volatility always pulls the typical path below the average.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Pairs Trading

Frequently asked questions

Is this good for researchers?
Yes — this version of "Pairs Trading for an emergency fund" is framed for researchers prototyping or validating an idea. Prototype fast, reproduce exactly, and share a citable, interactive version of your model.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.