Simulators
The simulators embedded in our articles, grouped by field. Move the inputs to see how prices and risk figures change.
Each simulator sits inside an article. The links take you to the simulator in the article, where the surrounding text explains the calculation and how to read the results.
Foundations
Compounding and discounting
Change the rate, the term, the compounding frequency, and the day count convention to see discount factors, interest, and how zero rates relate to forward rates.
Used in
- Present Value and Discount FactorsIntroductoryHow the discount factor changes with the rate and the years to maturity
- Zero Rates and Forward RatesPractitionerHow spot rates and forward rates are related
- Day Count ConventionsIntroductoryHow the day count convention changes the interest
Checking Itô's lemma
Change the volatility, the drift, and the term to check, on simulated paths, the gap between the expected price and the mean log return, and how the quadratic variation converges.
Used in
- Introduction to Stochastic Calculus (Ito's Lemma)AdvancedMove the expected price, the mean log return and the quadratic variation to check them
Interest rates
Generating a payment schedule
Change the effective date, the maturity date, the frequency, the stub type, the business day convention, the payment lag, and the fixing rule to see how the calculation periods and payment dates of an interest rate swap are set.
Used in
- Generating Swap Payment SchedulesPractitionerGenerating a schedule from contract terms
Curve building and swap valuation
Build an OIS curve from market rates and see the cash flows, values, and DV01 of FRAs and interest rate swaps.
Used in
- Bootstrapping a Yield CurvePractitionerCurve built from market rates, and interpolation between pillars
- Forward Rate Agreements (FRA)IntroductoryMarket rates and the value of an FRA
- Valuing an Interest Rate SwapPractitionerBuilding the curve and valuing swaps and FRAs
Comparing curve interpolation
Switch between five interpolation methods to compare the shape of forward rates, present values, and how far a move in one point spreads.
Used in
- Curve InterpolationAdvancedHow the interpolation method changes the forward rate and present value
Caps, floors, and swaptions
Change the strike, the volatility, and the maturity to compare cap, floor, and swaption prices under the Black and Bachelier models.
Used in
- Caps and FloorsPractitionerPrices of caps, floors, and swaptions
- SwaptionsPractitionerSwaption prices and the difference between models
- The Black and Bachelier ModelsPractitionerPrice differences between the Black and Bachelier models
Bermudan swaptions
Change the rate, the strike, the maturity, and the non-call period to set the European price for each exercise date beside the Bermudan price.
Used in
- Bermudan SwaptionsAdvancedPrices of swaptions with several exercise dates (European and Bermudan)
Compounding in arrears
Change the period, the lookback, the lockout, and the payment delay to follow, day by day, how daily rates compound into the period rate.
Used in
- Compounding in ArrearsPractitionerDay-by-day calculation of compounding in arrears
- Lookback, Lockout and Payment DelayPractitionerHow lookback and lockout change the rate
Hull-White model
Change the mean reversion speed and the volatility to see the spread of the short rate, future bond prices, and the prices of bond options and caplets.
Used in
- The Hull-White ModelAdvancedHow mean reversion and volatility change the spread of the short rate and the prices of bond options and caplets
LIBOR market model
Change the measure, the volatility, and the correlation to compare the drift of forward rates and caplet prices from the Black formula and from Monte Carlo.
Used in
- The LIBOR Market Model (LMM)AdvancedDrift by measure, and the caplet price by the Black formula and by Monte Carlo
Foreign exchange
FX forwards and interest parity
Change the spot rate, the two currencies' interest rates, and the term to see how the forward rate and forward points are set.
Used in
- Covered Interest Parity and FX Forward PointsPractitionerHow the interest rate differential changes the forward exchange rate
Options
Payoff diagrams
Choose a forward, a long or short call or put, or a combined strategy, and change the strikes to see the profit or loss at expiry and the breakeven points.
Used in
- Forwards and FuturesIntroductoryProfit or loss at maturity for buying and selling a forward
- Option Payoffs and Profit/LossIntroductoryProfit or loss at expiry of a single option
- Put-Call ParityPractitionerStrike price and premiums of a synthetic forward
- Option StrategiesPractitionerProfit and loss at expiry by strategy
Black-Scholes and the Greeks
Change the underlying price, the volatility, the time to expiry, and other inputs to see option prices and the Greeks. It also solves for the implied volatility from a market price.
Used in
- FX OptionsIntroductoryHow the USD call premium changes
- The Black-Scholes ModelPractitionerHow the price and the Greeks change with the inputs
- The GreeksIntroductoryHow delta and gamma change with the underlying price
- Implied VolatilityPractitionerImplied volatility from the market price
Binomial trees
Change the number of steps and the exercise style to see the value at each node and how the price converges to Black-Scholes as the steps increase.
Used in
- Binomial TreesIntroductoryA binomial tree and how the price converges as the steps increase
- Risk-Neutral ValuationPractitionerRisk-neutral probabilities and discounting expected values in a tree
SABR smile
Change α, β, ρ, and ν to see how the shape of the implied volatility smile across strikes changes.
Used in
- The SABR ModelAdvancedSABR parameters and the shape of the smile
Smile dynamics and local volatility
Draw the smile after a move in the underlying under three views and compare the call price and delta under each.
Used in
- Local Volatility ModelsAdvancedHow the view of the smile after a move changes the call price and delta
Heston smile
Change the volatility of volatility, the correlation, the mean reversion speed, and other inputs to see the shape of the smile and the Feller ratio.
Used in
- The Heston ModelAdvancedHeston parameters and the shape of the smile
Delta hedging P&L
Change the number of rehedges and the realized and implied volatilities to see how the profit or loss of a delta-hedged position spreads.
Used in
- Delta HedgingPractitionerProfit or loss by number of hedges and volatility
- Managing Gamma and VegaPractitionerProfit or loss of long and short gamma
Numerical methods
Monte Carlo method
Change the number of paths and of monitoring dates to see Monte Carlo prices approach the analytic price, with the standard error, for barrier and digital options.
Used in
- Barrier OptionsPractitionerBarrier monitoring dates and the knock-out price
- Digital OptionsPractitionerDigital option prices and the convergence of the Monte Carlo method
- Monte Carlo SimulationPractitionerConvergence of the Monte Carlo estimate and the standard error
Calibration
Change three market volatilities and their weights to see the least squares fit of a flat volatility or a straight line, and the errors left over.
Used in
- Model CalibrationAdvancedFitting market volatilities by least squares (flat volatility and a straight line)
Least squares Monte Carlo (LSM)
Change the number of paths, the exercise dates, and the regression degree to see the fitted continuation value, the exercise boundary, and the American put price.
Used in
- Least-Squares Monte Carlo for Early-Exercise OptionsAdvancedLSM price and a scatter plot of the fitted continuation value
Finite difference method
Change the scheme, the number of grid intervals, and the time steps to see the error against the Black-Scholes price and when the explicit scheme becomes unstable.
Used in
- Finite Difference MethodsAdvancedHow the price differs by method, grid, and time step in the finite difference method
AAD versus bumping
Change the number of sensitivities and the time for one valuation to compare run times for bumping and AAD. A three-input example walks through reverse mode.
Used in
- Adjoint Algorithmic Differentiation (AAD)AdvancedNumber of sensitivities and run times of bumping and AAD
Credit
CDS valuation
Change the hazard rate, the recovery rate, the term, and the coupon to see how the spread, hazard rate, and recovery rate relate, and the upfront amount.
Used in
- Pricing a CDSPractitionerSpread, hazard rate, recovery rate, and upfront payment
Gaussian copula
Change the correlation, the hazard rate, and the number of names to see the distribution of defaults and the expected losses of the equity, mezzanine, and senior tranches.
Used in
- Copulas for CreditAdvancedHow correlation changes the distribution of defaults and the tranche expected losses
Risk management
VaR and expected shortfall
Change the method, the confidence level, and the return distribution to see how VaR and expected shortfall differ.
Used in
- Value at Risk (VaR)IntroductoryVaR by the three methods
- Expected ShortfallPractitionerVaR and expected shortfall at a 97.5% confidence level
Exposure profiles
Change the trades, the netting, and the collateral terms to see how EE and PFE evolve over time and how netting and collateral reduce them.
Used in
- Exposure Measures: CE, PFE, EE/EPE and EADPractitionerExposure profile of a five-year pay-fixed swap
- Exposure Profiles by ProductPractitionerExposure profiles of a swap and an FX forward
- Risk Reduction through Netting and CollateralPractitionerHow close-out netting and variation margin change exposure