PPolySim OS
For Students · Rebalancing Strategy

Rebalancing Strategy for a margin trade

Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a margin trade live below — adjust the inputs and watch it respond, right in your browser.

1

Efficient Frontier

open full solver →
Efficient FrontierLive

Controls

Presets

Combining two assets traces a curved frontier of risk versus return. Because they are not perfectly correlated, some mixes have lower risk than either asset alone — the power of diversification. The pink point is the minimum-variance portfolio. Educational tool, not investment advice.

▶ Run in Python

Data Inspector

Min-var weight A0%
Min-var return0.0%
Min-var volatility0.0%

Governing equation

Reading this result: The assets differ sharply in volatility, so the minimum-variance blend leans heavily toward the calmer one to hold total risk down.

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 Rebalancing Strategy

Frequently asked questions

Is this good for students?
Yes — this version of "Rebalancing Strategy for a margin trade" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.