EconStatsCraft rigorous, plain-spoken econometrics
Econometrics that explains itself.
Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.
Load a dataset to see it here.
EconStatsCraft › Black–Scholes option pricing
Prices a European option from spot, strike, time, rate and volatility, and reports every Greek scaled to the move people actually quote. Give it a market price and it backs out the implied volatility instead.
An option is a right, not an obligation, so its payoff is bent: you take the upside and walk away from the downside. Black and Scholes showed that if you can trade the underlying continuously, you can build a portfolio of stock and cash that exactly reproduces that bent payoff. If two things pay the same in every state, they cost the same today - and that argument, not any forecast of where the stock is going, is what prices the option.
Pricing or hedging European calls and puts on a liquid underlying; converting a quoted option price into an implied volatility; teaching how the Greeks behave. For American options, dividends paid discretely, or path-dependent payoffs you need a lattice, a PDE solver or Monte Carlo instead.
Assume dS=\mu S\,dt+\sigma S\,dW. Form \Pi=V-\Delta S and choose \Delta=\partial V/\partial S. Ito\'s lemma gives d\Pi=(\partial_t V+\tfrac12\sigma^2S^2\partial_{SS}V)dt, with the dW term cancelled by construction. A portfolio with no randomness must earn the risk-free rate or there is an arbitrage, so d\Pi=r\Pi\,dt, which rearranges to the Black-Scholes PDE \partial_t V+\tfrac12\sigma^2S^2\partial_{SS}V+rS\partial_S V-rV=0. Note what vanished: \mu, the expected return on the stock. Solving with the call payoff gives C=S\Phi(d_1)-Ke^{-rT}\Phi(d_2), where d_1=[\ln(S/K)+(r+\sigma^2/2)T]/(\sigma\sqrt{T}) and d_2=d_1-\sigma\sqrt{T}.
C = S e^{-qT}N(d_1) - K e^{-rT}N(d_2),\qquad d_1 = \frac{\ln(S/K) + (r - q + \tfrac12\sigma^2)T}{\sigma\sqrt{T}},\qquad d_2 = d_1 - \sigma\sqrt{T}
S = 100, K = 105, six months to expiry, r = 4%, σ = 25%. The call is worth 5.7799, all of it time value: the intrinsic value is zero because the option is out of the money, so every penny of the price is paying for the chance that it will not stay that way. Delta is 0.4703, meaning a short position in one call is hedged by holding 47 shares per 100 options - and gamma of 0.022505 says that hedge ratio moves by roughly two shares per hundred for each one-point move in the spot, which is why the hedge has to be rebalanced rather than set once. Vega is 0.2813 per volatility point and theta is -0.0238 a day, so roughly one day of decay is paid for by a tenth of a volatility point. Note d₂ = -0.2513: Φ(d₂) is the RISK-NEUTRAL probability of finishing in the money, which is a pricing device and deliberately not a forecast, because it is computed in the measure where the stock drifts at the risk-free rate rather than at whatever it actually earns.
| If you see this | It means | Do this |
|---|---|---|
| Implied volatility differs across strikes | The volatility smile | Expected. The lognormal assumption is the thing failing |
| Price below intrinsic value | An arbitrage, or an input error | Check units on rate and maturity: both must be annual |
| Deep in-the-money call worth less than S - K exp(-rT) | Parity violated | An input is wrong; parity needs no model |
| Vega near zero | Deep in or out of the money | Implied volatility cannot be recovered from such an option |
| Very short maturity, tiny price | Correct behaviour | Time value goes to zero; only intrinsic value remains |
| Volatility entered as 25 rather than 0.25 | Percent versus decimal | The commonest input error by a wide margin |
Merton distance to default, which applies the same option logic to a firm's equity. GARCH, for volatility that changes over time.
Bond price, duration & convexity · Merton distance to default · EMI / home loan planner · CAPM / beta estimation · Multi-factor model · Portfolio optimization · Value at Risk & Expected Shortfall · Performance & drawdown · Time value of money & NPV/IRR · Equity valuation (DDM, FCF, residual income) · Cost of capital (WACC) · Binomial option pricing · Option strategies (payoff & profit) · Forwards, futures & swaps · Credit risk & Basel capital · Extreme value theory (tail risk)
Line chart · Area chart · Bar chart · Stacked bar · Scatter plot · Bubble chart · Histogram · Box plot · Pie chart · Heat map · Rebased to 100 · Lorenz curve and Gini
World map · Bivariate map · Flow map · India - state map · India - district map
Descriptive statistics · Summary by group · Two-way table · Classical statistical tests
Multiple regression (OLS) · Logit / Probit · Tobit (censored) · Truncated regression · Multinomial logit · Ordered logit / probit · Quantile regression · Poisson / Negative binomial
Time-varying coefficients (Kalman) · Unit root tests · Correlogram (ACF / PACF) · ARIMA / SARIMA · Rolling-origin cross-validation · Theta method · Unobserved components · STL forecasting · Forecast combination · Markov regime switching · Change frequency (resample) · ARCH / GARCH volatility · Decompose & filter · Spectral analysis · Exponential smoothing · Forecast accuracy
Yield curve (Nelson–Siegel / Svensson) · Dynamic factor model · Dynamic regression (ARIMAX) · Structural VAR · VAR · Granger causality · Cointegration · VECM · ARDL & bounds test
Panel regression · Panel cointegration tests · Heterogeneous panel: Mean Group & PMG · Gravity model of trade · Dynamic panel GMM · Panel diagnostics · Panel unit-root tests
Principal components (PCA) · Factor analysis · Cluster analysis
Conjoint analysis · MaxDiff (best–worst scaling) · TURF - reach of a product line · Price sensitivity (Van Westendorp) · Market basket analysis · Perceptual map · Scale reliability (Cronbach’s alpha) · Key driver analysis
Spatial autocorrelation · Spatial regression · Heckman selection · Instrumental variables (2SLS) · Difference-in-differences · Staggered difference-in-differences · Regression discontinuity · Matching & weighting · Oaxaca–Blinder decomposition
Black–Scholes option pricing · Bond price, duration & convexity · Merton distance to default · EMI / home loan planner · CAPM / beta estimation · Multi-factor model · Portfolio optimization · Value at Risk & Expected Shortfall · Performance & drawdown · Time value of money & NPV/IRR · Equity valuation (DDM, FCF, residual income) · Cost of capital (WACC) · Binomial option pricing · Option strategies (payoff & profit) · Forwards, futures & swaps · Credit risk & Basel capital · Extreme value theory (tail risk)
Life table · Life annuity · Life insurance pricing · Chain ladder reserving · Buhlmann credibility · Survival analysis · Mortality graduation · Aggregate loss model · Ruin probability · Multi-state Markov model · Loss severity fitting
Monte Carlo experiment · F-test, Wald & Chow · Structural breaks & stability
Regression vs machine learning · Ridge / Lasso / Elastic Net · Random forest · Gradient boosting
EconStatsCraft rigorous, plain-spoken econometrics
Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.
Load a dataset to see it here.
Pick the example closest to your question. You get a spreadsheet with the right columns and a few rows showing the expected format - replace the numbers with your own, then paste or upload it back.
Copy the header row from the table above (or from the downloaded template), put your own rows underneath, and paste the whole thing here. It is checked against the layout before anything is imported.
Or click a row in the preview below.
For a units or notes row.
Search every source at once. World Bank indicators need countries and years; everything else loads in one click.
Loading the catalogue…
The engine stays loaded, so this is quick - and it leaves your open tab and panel layout alone.
⌘/Ctrl+Enter runs the current analysis. ⌘/Ctrl+P exports the session as a PDF. Esc closes this.
In the Notebook: Enter starts a new block and
Shift+Enter a new line inside one; Backspace at the start
joins back into the paragraph above; / on an empty line inserts anything.
⌘/Ctrl+B, I, E, H and
M apply bold, italic, code, highlight and maths.
#, ##, -, 1., > and
``` at the start of a line convert it.
Sign in to run unlimited analyses.
Scroll to pan · Esc to close