PPolySim OS
For Educators · Portfolio Builder

Portfolio Builder for an index fund

Built for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs. Simulate an index fund 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.

3

Value At Risk

open full solver →
Value at Risk (VaR)Live

Controls

Presets

Value at Risk estimates the loss a portfolio will not exceed over a horizon at a confidence level. Parametric VaR assumes normally distributed returns and scales volatility by √time. Expected shortfall (CVaR) is the average loss in the tail beyond VaR. Educational tool, not investment advice.

▶ Run in Python

Data Inspector

VaR (95%)$20,446
Expected shortfall$25,708
Horizon vol1.26%

Governing equation

Reading this result: At 95% confidence the loss should not exceed 2.0% of the portfolio over 1 day; the average loss in the worse tail beyond that (expected shortfall) is steeper still.

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

or unlock everything with Pro →

More with Portfolio Builder

Frequently asked questions

Is this good for educators?
Yes — this version of "Portfolio Builder for an index fund" is framed for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.