PPolySim OS
Use case · powered by Credit Risk

Credit Risk for a margin trade

Simulate a margin trade live in your browser. This runs the real Credit Risk solver — adjust the inputs, watch it respond instantly, and export the result. No install, no account.

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.

2

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 →

About this simulation

The full Credit Risk tool models a margin trade with the same numerics engineers and scientists use — running entirely client-side. Change any parameter and the result updates in real time, so you can build intuition, check a design, or teach the concept without spreadsheets or installs.

More you can do with Credit Risk

Other ways to simulate a margin trade

Frequently asked questions

How do I simulate a margin trade?
Open this page and use the live Credit Risk tool below — set your inputs and the simulation runs instantly in your browser using real numerics. No install, no account needed.
Is it free?
Yes. The simulation runs free in your browser. A one-time unlock or a Pro plan adds advanced parameters, saved presets, data import, and clean exports.
Can I use my own numbers?
Absolutely — every input is adjustable, and with data import you can drive a margin trade from your own measurements.