Rendu Final
Rendu Final
1 Regulatory context 7
1.1 Solvency II . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2 Economic Scenario Generators . . . . . . . . . . . . . . . . . . . 7
1.2.1 Risk Neutral Approach . . . . . . . . . . . . . . . . . . . 8
1.2.2 Real World Approach . . . . . . . . . . . . . . . . . . . 8
1.3 Solvency II Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3.1 Best Estimate (BE) . . . . . . . . . . . . . . . . . . . . . 9
1.3.2 Solvency Capital Requirement (SCR) . . . . . . . . . . . 9
1.3.3 Minimum Capital Requirement (MCR) . . . . . . . . . . 10
1.3.4 Own Risk and Solvency Assessment (ORSA) . . . . . . . 10
1
3.2.11 Intensity of Default and the Probability of Survival . . . . 16
3.2.12 Spread Reformulation . . . . . . . . . . . . . . . . . . . . 17
3.2.13 Stochastic Intensity . . . . . . . . . . . . . . . . . . . . . 17
6 Vasicek 24
6.1 Specics of the Vasicek Model . . . . . . . . . . . . . . . . . . . . 24
6.2 Analytical Solution . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.3 Exploring the Maximum Likelihood Estimation Method for Ca-
libration Purposes . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8 Results 27
9 Martingale Test 30
10 Observations from the Graphs 32
11 Code R pour optimisation CIR 33
12 Code R pour test de martingalite 36
2
Introduction
3
pertains to the structure of the vanilla market within interest rate derivatives.
This market predominantly consists of caps, oors, and swaps, with pricing
commonly conducted using the Black framework. Under this framework, the
respective forward Libor 5 and swap rate underlying's are assumed to follow a
lognormal distribution, while the discount factors remain non-stochastic. Conse-
quently, in the context of hedging, it is essential for the market standard to view
these vanilla instruments as independent entities. This means that the volatility
matrix used for pricing swaptions generally has no impact on the volatility curve
associated with the cap and oor market.However, they can be indirectly rela-
ted through the underlying interest rates and market dynamics. Furthermore,
the simultaneous assumption of lognormal behavior in both the Libor and swap
rates poses a mathematical challenge because the observable rates are asymme-
tric towards the right and the tails of the distribution are thicker than in the
lognormal framework.
Despite these complexities, the overarching objective of interest rate mode-
ling remains consistent : to establish a framework that enables the pricing of a
wide range of interest rate-sensitive class assets in a coherent and methodical
manner.
In an insurance context, and more particularly in life insurance, credit risk is
one of the main risks that insurers have to take into account as part of their risk
management strategies . It mainly aects corporate bonds, which are generally
the products most commonly held by insurers. In addition to the complexity of
the underlying mathematical theory behind modeling and calibrating interest-
rate curves taking into account all the risk factors involved, an insurer has to
deal with issues related to regulations (Solvency II Regulations) and the na-
ture of restrictions and expectations held in the insurer portfolio (life insurance
contracts often have maturities of the order of years unlike most of other pure
interest-rate derivatives( life insurance contracts can even have maturities of the
order of a decades). Therefore, in the insurance asset management department,
the assessment of the company's level of commitment ¬to its clients, whether
they're insured customers or creditors, and the determination of its solvency in-
dicators, notably within the regulatory framework of Solvency II, are intimately
linked to the modeling of the risk-free yield curve used in its economic scenario
generator.
Given the specic context of life insurance and the prolonged lengths of
contracts maturity compared to other nancial contracts, it appears that the
interest-rate models developed¬ by traders of short-term contracts, for which the
maturity of transactions is relatively shorter, particularly in the context of high-
frequency trading, are not suitable directly for use with the long-term component
5. London Interbank Oered Rate. It is one of the most widely used benchmark interest
rates globally and serves as a reference rate for various nancial products and contracts, inclu-
ding loans, derivatives, mortgages, and bonds.other popular benchmarks include EURIBOR,
the Eurozone benchmark rate, TIBOR, the Japanese yen benchmark rate, HIBOR, the Hong
Kong dollar benchmark rate, SIBOR, the Singapore dollar benchmark rate, SONIA, the Bri-
tish pound sterling overnight rate, SOFR, the U.S. dollar secured overnight rate, and BBSW,
the Australian dollar benchmark rate.
4
of the commitments of insurance companies. In this academic project, we seek to
price a zero-coupon corporate bond using the Cox-Ingersoll-Ross (CIR) 6 model,
then we move to the calibration of diusion parameters 7 based on dierent yield
curves of market existing bonds varying in rating (from AAA to BBB). This
model allows us to calibrate diusion parameters based on European corporate
bonds in relation to the benchmark used for European government bonds, which
is usually the yield on the 10-year German government bond.
To this end, project is divided into three main parts :
1. The rst part is a mathematical review of the concepts encountered
throughout the project. It is mainly an outlook at the basics of credit
risk modeling theory and the selection of rate models currently in use on
the market.
2. The second part is the central part of the project. We present the theory
underlying our proposed model, and the calibration work carried out on
the model diusion parameters.
3. The third section validates the work presented in the second section by
using¬ Martingale test to assess the eciency of our nancial model and
to provide a conclusive out view on the modeling and calibration work.
5
Table des matières
6
1 Regulatory context
1.1 Solvency II
Solvency II is a set of regulatory requirements implemented by the European
Union (EU) to standardize and strengthen the prudential regulation of insurance
companies and ensure their nancial stability. It became eective on January
1, 2016, replacing the previous Solvency I regime. Solvency II aims to create a
harmonized regulatory framework across EU member states, enhance consumer
protection, and improve the overall resilience of the insurance industry.
The main pillars of Solvency II are :
1. Quantitative Requirements : This pillar sets out the quantitative
capital requirements that insurance companies must hold to cover their
risks adequately. It introduces a risk-based approach to capital adequacy,
where capital requirements are determined based on the underlying risks
of insurance and reinsurance activities. These requirements are calculated
using sophisticated risk models that take into account various factors such
as market risk, credit risk, underwriting risk, and operational risk.
2. Qualitative Requirements : This pillar focuses on governance, risk
management, and transparency. It requires insurance companies to es-
tablish robust risk management systems and governance structures to
identify, assess, and manage their risks eectively. It also emphasizes the
importance of disclosure and transparency to stakeholders, including po-
licyholders, regulators, and investors.
3. Supervisory Review Process : This pillar involves ongoing supervi-
sion by national regulatory authorities to ensure compliance with Sol-
vency II requirements. It includes regular assessments of insurance com-
panies' risk management practices, internal models, and capital adequacy.
Supervisors have the authority to intervene if they identify weaknesses
or deciencies in an insurer's risk management or nancial position.
Solvency II represents a signicant shift in regulatory approach compared to its
predecessor, Solvency I, by introducing a more risk-sensitive and forward-looking
framework. It aims to promote nancial stability, enhance market condence,
and protect policyholders by ensuring that insurance companies maintain ade-
quate capital buers to withstand adverse events and meet their obligations
over the long term.
7
and historical data. It uses stochastic processes to generate a range of possible
interest rate paths over time, reecting uncertainty and randomness in the eco-
nomic environment.
ESGs are typically used by nancial institutions, insurance companies, asset
managers, and regulators for a variety of purposes, including :
Asset Liability Management (ALM) : To help nancial and insurance
institutions assess the impact of interest rate changes on their balance sheets
and evaluate the eectiveness of their asset and liability strategies in dierent
economic scenarios.
Risk Management : To quantify and manage interest rate risk in invest-
ment portfolios, hedging strategies, and derivative positions. They enable ins-
titutions to stress-test their portfolios against adverse market conditions and
assess the potential impact on their nancial health.
Valuation and Pricing : To value and price xed income securities, inter-
est rate derivatives, mortgage-backed securities, and other interest rate-sensitive
instruments. They provide inputs for option pricing models, yield curve construc-
tion, and scenario analysis. Capital Planning and Stress Testing : Economic
Scenario Generators are used in regulatory stress testing exercises to assess
the resilience of nancial institutions to adverse economic scenarios, including
changes in interest rates. They help regulators evaluate the adequacy of capital
buers and risk management practices.
Overall, Economic Scenario Generators play a crucial role in nancial decision-
making by providing insights into the dynamics of interest rates and their impact
on nancial markets and institutions. They enable stakeholders to make infor-
med decisions, manage risks eectively, and navigate the complexities of the
global economy. Therefore, There are two possible approaches to GSEs : the
risk-neutral approach and the real-world approach. The following sections will
detail their respective characteristics.
8
based on the real world becomes essential. The real-world ESG typically relies on
historical data. Unlike its risk-neutral counterpart, it is subjective as it is heavily
inuenced by the chosen historical data for its calibration (depth, time interval,
nancial index, etc.). Furthermore, to better match market conditions, the real-
world ESG usually allows for the inclusion of expertise and macroeconomic
analysis. Thus, in this universe, each generated scenario reects a plausible
state of the nancial market, taking into account historical characteristics and
expert opinions. This approach provides a more realistic perspective and enables
nancial market professionals to explore a wider range of potential outcomes,
thereby enhancing their decision-making and risk management
9
1.3.3 Minimum Capital Requirement (MCR)
The Minimum Capital Requirement is the minimum amount of capital that
an insurer is required to hold at all times to ensure its ongoing solvency. It is
set at a level sucient to cover the basic risks faced by the insurer and prevent
insolvency in normal operating conditions.
The credit risk, or otherwise known as counterparty risk, is the risk associa-
ted with the debtor's inability to repay, resulting in nancial loss. A portion of
the loss can be recovered by the lending party through various legal procedures.
The amount recovered from the total loss is referred to as the recovery amount.
Thus, credit risk consists of the main following risks :
Default Risk : The risk that a borrower will fail to repay their debt
obligations in full or on time.
Downgrade Risk : The risk that the credit rating of a borrower or
issuer will be downgraded, indicating a higher likelihood of default.
Counterparty Risk : The risk that the counterparty in a nancial
transaction will default or fail to fulll their obligations, resulting in
nancial loss.
10
2.2 Loss Given Default (LGD)
The Loss Given Default (LGD) is a measure used in credit risk analysis, to
quantify the extent of nancial loss incurred when a borrower or counterparty
defaults on their obligations. LGD represents the proportion of the exposure
that is not recovered after default.
The formula for Loss Given Default (LGD) is :
LGD = (1 − α) × 100%
Where :
LGD = Loss Given Default (expressed as a percentage)
α = Recovery rate (expressed as a decimal, typically between 0 and 1 )
This formula indicates that LGD is equal to 100% minus the recovery rate
multiplied by 100%. It represents the percentage of the exposure that is not
recovered after default. A higher LGD implies greater nancial loss for the
lender or the investor in the event of default.
Furthermore, a higher recovery rate implies a lower LGD, as more of the
exposure is recovered after default, reducing the overall loss for the lender or
investor. Conversely, a lower recovery rate results in a higher LGD and greater
losses for the lender or investor. Therefore, accurately estimating the recovery
rate is essential for assessing credit risk, determining capital requirements, and
making informed lending and investment decisions.
2.3 Spread
The interest rate spread, also known as the credit spread or yield spread, is
the dierence between the yield of two dierent types of xed-income securities,
usually of similar maturities but with dierent credit ratings or risk levels. It
represents the compensation investors demand for holding securities with higher
credit risk compared to risk-free securities.
The formula for calculating the interest rate spread between two securities
is :
Spread = Yield of Higher-Risk Security - Yield of Risk-Free Security
Where :
Yield of Higher-Risk Security : The yield or interest rate earned on the
bond or security with higher credit risk, such as corporate bonds.
Yield of Risk-Free Security : The yield or interest rate earned on a risk-
free security, typically government bonds or Treasury securities.
11
The interest rate spread reects the additional compensation investors require
for taking on credit risk. A wider spread indicates higher perceived credit risk,
while a narrower spread suggests lower perceived risk. It is an important in-
dicator used by investors, analysts, and policymakers to assess credit market
conditions and investor sentiment.
3.1 Framework
3.1.1 Arbirtrage Free Market
According to wikipedia, arbitrage is the practice of taking advantage of a
dierence in prices in two or more markets striking a combination of matching
deals to capitalise on the dierence, the prot being the dierence between
the market prices at which the unit is traded. When used by academics, an
arbitrage is a transaction that involves no negative cash ow at any probabilistic
or temporal state and a positive cash ow in at least one state ; in simple terms,
it is the possibility of a risk-free prot.
We will suppose in the rest of the project that the markets in which we
operate are arbitrage-free for pricing our zero coupon corporate bond by dis-
counting the future cash ow by discount rates. In doing so, a more accurate
price can be obtained than if the price is calculated with a present-value pricing
approach.
12
is that it is impossible to "beat the market" consistently on a risk-adjusted basis
since market prices should only react to new information.
3.2 Pricing
We assume tha the risk-free asset B(t) is dened as :
dB(t) = rt B(t)dt
P (t, T ) = EQ [D(t, T ) | Ft ] .
Xt = EQ [D(t, T ) · XT | Ft ]
3.2.2 Denition :
Let Q (A | Ft ) , P -Almost surely is dened for A ∈ F (not dened on : NA ∈
F , Q(A) = 0 ). There exists a regular conditional probability Qt (A)(ω), A ∈
F, ω ∈ Ω such that : - Qt ().(ω) is a probability on (Ω, F), ∀ω ∈ Ω ; - ∀A ∈ F :
ω → Qt (A)(ω) est F -mesurable. - Q (A | Ft ) (ω) = Qt (A)(ω), P -Almost surely,
∀A ∈ F
As a consequence, we have :
13
3.2.3 Zero Coupon Pricing
Suppose that, following the default of the counterparty, the holder of a bond
(with 1 euro as a nominal value) recovers a fraction α (Recovery) at the instant
of default τ . The loss in case od payment default, noted LGD for Loss Given
Default, is therefore 1−α. The value of the payo actualized to take into account
the default at the instant τ is written as :
14
F, ω ∈ Ω such that : - Qt ().(ω) is a probability on (Ω, F), ∀ω ∈ Ω ; - ∀A ∈ F :
ω → Qt (A)(ω) is F -mesurable. - Q (A | Ft ) (ω) = Qt (A)(ω), P -Almost surely,
∀A ∈ F
As a consequence, we have :
3.2.7 Proposition
The process (Nt ) dened above verify the following properties :
1. N0 = 0 ;
2. For all ω ∈ Ω, the function t 7→ Nt (ω) is continuous on the right ;
3. (Nt ) has independant increments : For all n ∈ N∗ and for all 0 ≤ t0 <
. . . < tn , The random variables Nt1 − Nt0 , . . . , Ntn − Ntn−1 are indepen-
dant ;
4. Stationary : ∀s ≥ 0 and t > 0, the random variable Ns+t − Ns follows a
poisson law of parameter λt.
We have then the following denition :
3.2.8 Denition :
The process (Nt ) is a Poisson point process with parameter λ > 0.
3.2.9 Denition :
We call the hasard function of the poisson process the function Λ dened
as :
Z t
Λ(t) = λ(s)ds
0
15
3.2.10 Modeling the Intensity Of Default
The default instant is dened as the rst jump in an inhomogeneous sh
process (cf. Brigo & Marcurio : short interest rate models). We then dene the
fault intensity λ(t) as the risk-neutral intensity of this process.
The instant of default τ can then be written as :
Z t
τ = inf t ≥ 0 | λ(s)ds ≥ ξ
0
16
Nt = TΛ(t)
Thus,since : Nt = TΛ(t) , it follows that the instant of the rst jump τ of N
occurs when T jumps to Λ(τ ).
Recall that for a homogeneous Poisson process, τ ∼ Exp(λ) and Λ(τ ) = λτ ∼
Exp(1), this implies that for a time-inhomogeneous poisson processs, Λ(τ ) :=
ξ ∼ Exp(1). It also results that :
τ = Λ−1 (ξ)
S(t, T ) = 1 − Qt (τ ≤ T | τ > t)
Qt (Λ(τ ) > Λ(t)) − Qt (Λ(τ ) > Λ(T ))
=1−
Qt (Λ(τ ) > Λ(t))
Qt (Λ(τ ) > Λ(T ))
=1−1+
Qt (Λ(τ ) > Λ(t))
e−Λ(T )
=
e−Λ(t)
RT
e− 0 λ(s)ds
= Rt
− 0 λ(s)ds
RT
= e− t
λ(s)ds
17
Z t
Λ(t) = λs ds
0
2.Denition :
The default intensity λt is a stochastic process that veries :
1. λt is adapted to Ft
2. λt is right-continuous
3. λt is strictly positive for all t.
3.Proposition :
The cox process, conditionally on Ft preserves the structure of the Poisson
process and all the results that we saw in the previous section for λ(t) remain
valid for λt .
In particular, we have : Λ(τ ) = ξ ∼ Exp(1), with ξ independent o of Ft . In
a similar way, we have for the probability of survival :
h Rt i
Q(τ > t) = Q(Λ(τ ) > Λ(t)) = Q(ξ > Λ(t)) = E Q ξ > Λ(t) | Ftλ = E e− 0 λs ds
18
so that r(t) conditional on Fs is normally distributed with mean and variance
given respectively by
E {r(t) | Fs } = r(s)e−k(t−s) + θ 1 − e−k(t−s)
σ2 h i
Var {r(t) | Fs } = 1 − e−2k(t−s) .
2k
This implies that, for each time t, the rate r(t) can be negative with positive
probability. The possibility of negative rates is indeed a major drawback of the
Vasicek model. However, achieving analytical tractability when assuming other
distributions for the process r is hardly feasible.
As a consequence of the conditional interest-rate expectancy above, the short
rate r exhibits mean reversion, since the expected rate tends, for t going to
innity, to the value θ. The fact that θ can be regarded as a long-term average
rate could also be inferred from the dynamics of the Ornstein-Uhlenbeck process
itself. Additionally, we notice that the drift of the process r is positive whenever
the short rate is below θ and negative otherwise, so that r is consistently nudged
towards the level θ, on average, over time.
The price of a pure-discount bond can be derived by computing the price
formula of a zero coupon bond (with 1 euro nominal value) multiplied by the
discount factor . We obtain
where
σ2 σ2
A(t, T ) = exp θ− 2 [B(t, T ) − T + t] − B(t, T )2
2k 4k
1h i
B(t, T ) = 1 − e−k(T −t) .
k
with :
k Speed of mean reversion parameter. It measures the rate at which the
interest rate returns to its long-term level r
θ Long-term level. This is the value that the interest rate tends to reach
over the long term.
19
σ Volatility. It represents the amplitude of the variation of the interest
rate.
dWt is the dierencial of the brownian motion.
The condition
2kθ > σ 2
has to be imposed to ensure that the origin is inaccessible to the process, so
that we can grant that r remains positive.
20
practice, thereby enabling more informed decision-making in investment and
risk hedging. Historically, the calibration of interest rate models is particularly
important because these models are at the core of credit risk assessment. Indeed,
the interest rate embedded in bond prices and other debt instruments reects
not only monetary policy expectations and economic conditions but also the
credit risk associated with the debt issuer.
Accurate calibration allows for the dierentiation of interest rate compo-
nents related to general market movements from those specic to the issuer's
risk. This provides a more rened assessment of risk premiums and helps nan-
cial institutions better manage their credit portfolios. Moreover, calibration can
reveal deviations from normal market conditions, which may signal changes in
credit risk perception.
The Vasicek and CIR models also allow for stress scenario simulation and
testing the resilience of portfolios to extreme events. By adjusting parameters to
match historical data, risk managers can assess the likelihood of default and po-
tential exposure to losses, which is crucial for strategic planning and compliance
with regulatory capital requirements.
5.1 Data
(a) Yield Curve for AAA Bonds (b) Yield Curve for AA Bonds
21
(a) Yield Curve for A Bonds (b) Yield Curve for BBB Bonds
(a) Yield Curve for BB Bonds (b) Yield Curve for B Bonds
22
than AAA. A : Bonds with this rating have a good repayment capacity but
are somewhat more sensitive to adverse economic conditions. BBB : This is
the lowest rating considered as "investment grade". It indicates that the issuer
has an adequate repayment capacity, but future economic factors or changes
in circumstances could aect this capacity. BB, B : These ratings indicate a
speculative grade ; they carry a higher credit risk and, consequently, oer higher
interest rates. An issuer with a BB or B rating is more likely to face nancial
diculties.
Cubic Splines
A cubic spline is a sequence of piecewise third-degree polynomials dened
over adjacent intervals. For a set of data points (x0 , y0 ), (x1 , y1 ), . . . , (xn , yn ),
with x0 < x1 < . . . < xn , the cubic spline S(x) is constructed as follows :
1. On each interval [xi , xi+1 ], S(x) is a cubic polynomial, yielding n poly-
nomials for n − 1 intervals.
2. Each cubic polynomial can be expressed by the following equation :
(continue with the specic equations and conditions of your cubic spline
interpolation)
Si (x) = ai + bi (x − xi ) + ci (x − xi )2 + di (x − xi )3
where ai , bi , ci , di are the coecients to be determined for interval i.
3. Continuity conditions and continuous derivatives at the points xi are
ensured by :
Continuity : Si−1 (xi ) = Si (xi ) = yi .
Continuity of the rst derivative : Si−1 ′
(xi ) = Si′ (xi ).
Continuity of the second derivative : Si−1 (xi ) = Si′′ (xi ).
′′
23
6 Vasicek
The Vasicek model is a single-factor model for the term structure of interest
rates, which describes the evolution of short-term interest rates. It was introdu-
ced by Old°ich Va²í£ek in 1977 and is widely used for its analytical simplicity
and its ability to adapt to dierent shapes of yield curves.
where :
k > 0 is the speed of mean reversion parameter.
θ is the long-term average interest rate, towards which rt gravitates.
σ is the volatility of the interest rate.
Wt is a standard Brownian motion, representing the uncertainty and the
random component of the interest rate.
One of the important features of the Vasicek model is that it allows for
negative interest rates, a direct consequence of the normality of interest rates.
It is also known for its 'mean reversion,' a property that drives interest rates
towards their long-term average.
where A(t, T ) and B(t, T ) are deterministic functions of time and model para-
meters.
24
The likelihood function L is :
T
Y
L(a, b, σ) = f (rt+1 | rt , a, b, σ)
t=1
n−1
X
ln L(a, b, σ) = ln f (rt+1 | rt , a, b, σ)
t=1
n−1 2
!!
X 1 (rt+1 − rt e−a − b(1 − e−a ))
= ln √ exp −
t=1 2πσ 2 2σ 2
n−1
n−1 n−1 1 X 2
=− ln(2π) − ln(σ 2 ) − 2 rt+1 − rt e−a − b(1 − e−a )
2 2 2σ t=1
∂L(a, b, σ)
=0
∂a
n−1
1 X
(ri+1 − ri e−a − b(1 − e−a ))2
=− 2
2σ i=1
n−1
−2 X
= (ri e−a − be−a )(ri+1 − ri e−a − b(1 − e−a )) = 0
2σ 2 i=1
After developing and simplifying, here is what we obtain : :
Pn−1 !
2
i=1 (ri + ri+1 − b · ri − b · ri+1 + b )
a = − ln Pn−1 2 (3)
2
i=1 (ri + b )
∂L(a, b, σ)
=0 (4)
∂b
n−1
1 X
1 − e−a ri+1 − ri e−a − b 1 − e−a = 0
−
σ 2 i=1
Pn−1
(ri+1 − ri e−a )
b = i=1
1 − e−a
∂L(a, b, σ)
=0
∂σ
25
n−1
1 X
σ2 = (ri+1 − ri · exp(−a) − b · (1 − exp(−a))2 )
n − 1 i=1
26
Calibration of this model allows for the adjustment of theoretical rates
to market-observed rates.
Objective of Calibration
Objective : minimize the gap between modeled spreads and market spreads.
2
min ∥Spreadmodel (λ0 , κ, θ, σ) − Spreadmarket ∥
λ0 ,κ,θ,σ
7.3.1 Methodology
The calibration process proceeded as follows (The code will be provided in
the bibliography) :
1. We began by dening the set of maturities for which we have market-
observed rates.
2. For each credit rating category, we used cubic splines to smooth the
observed rate curves and interpolate rates for a wider range of maturities.
3. With these interpolated data, we calculated the spreads relative to a
benchmark rate curve.
4. We then dened a survival probability function based on the parameters
of the CIR model to be calibrated : λ, k , θ, and σ .
5. An objective function was dened to measure the discrepancy between
the observed spreads and those generated by the model.
6. The Nelder-Mead optimization algorithm was used to nd the parameters
that minimize this objective function.
7. About 200 iterations were performed for each credit rating category to
nd the optimal set of parameters.
8. The results were analyzed and compared to ensure the coherence and
accuracy of the model.
8 Results
The optimal parameters found by the calibration algorithm for each credit
rating category are presented in the table :
The calibration of the CIR model proved to be more robust than Vasicek,
accurately reecting the observed term structure of interest rates in the market.
27
(a) AAA bonds (b) AA bonds
28
(a) BB Bonds (b) B bonds
(a) B bonds
29
9 Martingale Test
The Martingale test ensures that, under the assumption of risk-neutral pro-
bability, the updated simulated processes are indeed martingales. In this way,
we can determine whether or not there is any arbitrage opportunity.
Our test will allow us to verify the proximity of the average spread trajec-
tories of our model to those of our benchmark, Germany for the same maturity
and according to the dierent bond ratings.
We recall the formula for the stochastic discount factor :
Z T !
D(t, T ) = exp − rs ds .
t
30
(a) Test martingalite AAA bonds (b) Test Martingalite AA
Figure 7
31
10 Observations from the Graphs
The graph presents the results of a martingale test applied to compare mar-
ket's zero-coupon bond prices with those generated by a nancial model, presu-
mably the Cox-Ingersoll-Ross (CIR) model. The martingale test is employed to
verify if the price sequence forecasted by a model aligns with the characteristics
of a martingale, implying that the best predictor of tomorrow's price is today's
price, absent any predictable trend.
The x-axis (Maturity) represents the time until the zero-coupon instru-
ments' maturity.
The y-axis (Prix ZC) indicates the zero-coupon instruments' current
prices across varying maturities.
The plotted blue line (Market) illustrates the current market prices of
zero-coupon instruments as a function of their maturity.
The plotted green line (Model) depicts the prices predicted by the cali-
brated CIR model.
Both lines are in close proximity, suggesting the calibrated CIR model's pro-
ciency in accurately mirroring the market prices of the instruments. It indicates
a reasonably successful calibration of the CIR model, as the generated prices
conform well to those observed in the market.
We observe that the survival probability of our model is superimposable on
that of the market data by a condence interval of 95% except to the last B
bond which may be due to the high interest rate or the low rating of the bond (
we could not tell for sure ) By comparing the model's survival probability curve
with the market data, we can validate that the model adequately captures the
behavior of bond prices presented in our yield curves data and that the discount
price of the bond indeed follows a Martingale process.
32
11 Code R pour optimisation CIR
Spline=data.frame(spline_resultAAA$x,SplineAAA,SplineAA,SplineA,SplineBBB,SplineBB,SplineB
Spline=Spline[,-1]
33
#spread
spread=Spline-SplineDEUBENCH
colnames(spread)=c('AAA','AA','A','BBB','BB','B')
install.packages("optimx")
library(optimx)
optim=function(col){
parametres=function(col){
x0 <- runif(4, 0, 0.05)
while (TRUE) {
fct_obj=function(x){
lambda=x[1]
k=x[2]
theta=x[3]
sigma=x[4]
34
sigma=result$p4
feller=2*k*theta-sigma^2
ecart=result$value
35
B=optim('B')
tableau_optim=rbind(AAA,AA,A,BBB,BB,B)
rownames(tableau_optim)=c("AAA","AA","A","BBB","BB","B")
print(tableau_optim)
36
Spline=data.frame(spline_resultAAA$x,SplineAAA,SplineAA,SplineA,SplineBBB,SplineBB,SplineB
Spline=Spline[,-1]
spread=Spline-SplineDEUBENCH
colnames(spread)=c('AAA','AA','A','BBB','BB','B')
simul_cir=function(params, m){
lambda0 = params[1]
k = params[2]
theta = params[3]
sigma = params[4]
cir = lambda0
for(i in 2:(m+1)){
lambda = k*(theta-cir[i-1])+sigma*sqrt(cir[i-1])*rnorm(1) + cir[i-1]
cir = c(cir, max(lambda,0))}
return(cir)}
lambda0 = params[1]
k = params[2]
theta = params[3]
sigma = params[4]
h = sqrt(k^2+2*sigma^2)
f_cir=function(m){
f=(2*k*theta*(exp(m*h)-1))/(2*h+(k+h)*(exp(m*h)-1)) + lambda0*(4*h^(2)*exp(m*h))/(2*h+(k+
return(f)}
for(i in 1:mat){
gap[i+1] =aaa[i+1]-f_cir(i)}
matrice_proba_survie = NULL
for(i in 1:1000){
s = simul_cir(params, mat)
s = s+gap
proba_survie = cumprod(1/(1+s))
matrice_proba_survie = cbind(matrice_proba_survie, proba_survie)}
library(ggplot2)
37
proba_survie = apply(matrice_proba_survie, 1, mean)
Bibliographie
Références
38
[5] Calculs justications estimateurs maximum de vraisemblance :
https://www.dropbox.com/scl/fo/a3qk8bee5guvvf8x0wrq5/
AH6SvZmhhIEcC1UAkGtKDw4?rlkey=xcwkqkvw4xr2bi47f4e79v535&st=
cqcpafim&dl=0.
39