Record Class MultiCurrencyExposureSimulator.BasisFactor
- Record Components:
meanReversion- a_b, > 0vol- sigma_b, ≥ 0correlation- correlation of W_b with each market factor[W_d, W_1, W_S1, ...], length 1 + 2 n
- Enclosing class:
MultiCurrencyExposureSimulator
Plain idea. The basis between the projection and the discount curve is not fixed: it widens in stress and drifts back. One mean-reverting factor y_b moves the log basis of every period, and it may be correlated with the rate and FX factors.
Formal statement. Under the domestic measure
dy_b = -a_b y_b dt + sigma_b dW_b, y_b(0) = 0. For a period
(S, T) with today's basis k0 = [P^f(0,S)/P^f(0,T)] / [P_d(0,S)/P_d(0,T)],
the simulated projection ratio is
X(t) = k0 * m(t) * P_d(t,S) / P_d(t,T), m(t) = exp(e^{-a_b (S-t)} y_b(t) + D(t)), t <= S
D(t) = int_0^t [rho_db sigma_b sigma_d e^{-a_b (S-u)} B_d(S-u) - sigma_b^2 e^{-2 a_b (S-u)} / 2] du
so at the fixing the log basis multiplier is y_b(S) + D(S), and
before it the factor loads through its own conditional mean
e^{-a_b(S-t)} y_b(t). D is the drift that makes X a martingale
under the T-forward measure, the condition that the forward
projection rate be fair (Mercurio 2009, section 2; the drift is own
algebra from the Girsanov shift dW^T = dW + sigma_d B_d(T-t) dt
and is checked by a Monte Carlo martingale test). The floating
coupon is worth k0 m(t) P_d(t,S) - P_d(t,T) before the fixing and
(k0 m(S) / P_d(S,T) - 1) P_d(t,T) after. With sigma_b = 0 the
factor is not simulated and results equal the deterministic basis
path for path (tested). Foreign swaps keep a deterministic basis.
Worked example. sigma_b = 0.3 %, a_b = 0.5, rho = 0: a
period fixing in 5y has log-basis standard deviation
0.003 * sqrt((1 - e^{-5}) / 1), about 0.30 % at the fixing
(own arithmetic).
-
Constructor Summary
ConstructorsConstructorDescriptionBasisFactor(double meanReversion, double vol, double[] correlation) Validates and copies. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Defensive copy.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themeanReversionrecord component.final StringtoString()Returns a string representation of this record class.doublevol()Returns the value of thevolrecord component.
-
Constructor Details
-
BasisFactor
public BasisFactor(double meanReversion, double vol, double[] correlation) Validates and copies.
-
-
Method Details
-
correlation
public double[] correlation()Defensive copy. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
meanReversion
public double meanReversion()Returns the value of themeanReversionrecord component.- Returns:
- the value of the
meanReversionrecord component
-
vol
-