yrnd-functions2 days ago
yrnd | stir_future_price provides with the risk neutral density at options' maturity of the STIR futures price, using options on the STIR futures | ctd_bond_yield provides with the risk neutral density at options' maturity of the yield to maturity of the Cheapest-to-Deliver Bond in a futures contract, using options on the government bond futures. The current CtD is assumed to be the CtD at futures' maturity. This is achieved by considering a "term cash and carry relationship" between the Cheapest-to-Deliver Bond and the futures contract, holding constant the CtD repo rate at options' maturity. | bond_fut_irr_ytm extracts in one go from options prices on a bond futures, for any bond in the delivery basket, the RND of its implied repo rate and the RND of its yield to maturity. To do so, the bond price at options' maturity and the bond repo price at options' maturity are both modeled with a mixture of two lognormal laws, with a dependency. Then, the "expected cash and carry relationship" at options' maturity between the bond and the futures contract is introduced. The RND of the STIR futures contract of the same currency and approximate same maturity is used to set the initial values of the volatility of the log returns of the repo asset price in the optimization phase. | proba_ctd_opt calculates, for each bond in the delivery basket of a government bond futures contact, its probability to be the cheapest to deliver bond at options' maturity, relying successively on a ranking of the net basis and on a ranking of the implied repo rate of each bond in the delivery basket at options' maturity. It also quantifies the value of the quality option of the futures contract.