Excel function reference¶
Every formula lives in the MERTON namespace. After sideloading the
add-in (merton excel install) and starting the server
(merton excel server start), Excel autocomplete will suggest each
formula when you type =MERTON..
Single-firm¶
Formula |
Returns |
|---|---|
|
Distance to default |
|
Probability of default at horizon |
|
Implied credit spread (basis points) |
|
Inverted firm asset value |
|
Inverted asset volatility |
|
1×6 array: Δ, Γ, Vega, Θ, ρ, ∂PD/∂L |
|
PD term structure (2-column dynamic array) |
|
Black-Cox first-passage PD |
Portfolio¶
Formula |
Returns |
|---|---|
|
Basel-IRB Vasicek VaR (Loss / Exposure) |
When ρ is omitted (or blank), the formula uses the Basel-prescribed
asset correlation derived from the PD.
Backtest¶
Formula |
Returns |
|---|---|
|
AUC of the model |
|
Brier score |
|
Kolmogorov-Smirnov statistic |
|
Accuracy ratio (Gini coefficient) |
Argument conventions¶
equity,debt— currency units (whatever’s consistent across your sheet).σE,σ_A,LGD,α,ρ— decimals (use0.30, not30%).rf— annualised continuously-compounded decimal.T— years (e.g.0.5for six months,5for five years).Array arguments — Excel ranges (e.g.
A2:A11) or inline arrays (e.g.{0.25, 0.5, 1, 3, 5}).
Hover any function name in Excel’s formula wizard for inline parameter descriptions.