The document presents a brief question about how wider swap spreads relate to the cost of funding. It states that a wider spread makes paying fixed on a swap more expensive and receiving fixed more beneficial. It then considers a borrower with fixed-rate…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
5,701 documents
The note compares two ways to calculate a forward interest rate between maturities. One derives the rate from the ratio of discount factors over the interval; the other uses the change in maturity-weighted term yields divided by the time difference. It…
The discussion considers how to stress a portfolio whose VaR is estimated with a variance-covariance method. It distinguishes sensitivity analysis, which applies specified shocks to risk factors, from historical scenario analysis, which applies movements…
This QuantLib example clarifies that the instrument in the question is a forward rate agreement (FRA), not an FX forward. The accepted answer explains why its net present value is zero when valued on the settlement or value date: an FRA settles at the start…
This document shows how to price a hypothetical fixed-rate bond after constructing a yield curve in QuantLib. The example creates a semiannual coupon bond with specified start and end dates, face value, coupon rate, calendar, and day-count convention. It…
The document derives the relationship between the present value and future value of an ordinary annuity with equal payments. It writes present value as the sum of each payment discounted from its receipt date, and future value as the same payments…
The document describes unusually high one-year government bond yields relative to nearby maturities in Switzerland and Denmark, based on rates observed in 2012. The curve points are presented as traded yields rather than rates synthetically compounded from…
The document raises a practical valuation question: how to estimate an FX forward for an exotic currency pair when a pricing system supplies spot rates but no forward quotes. It asks whether spot can be adjusted by the ratio of the two currencies’ discount…
The document describes a QLNet workflow for converting a fixed-rate bond’s observed price into a yield, then using that yield to calculate clean and dirty prices. It constructs a coupon schedule and bond, sets an evaluation date relative to settlement, and…
The document explains why a floating-rate leg’s coupons alone can appear sensitive to changes in the indexed rate, even when discounted using that same rate. It uses a two-period example with compounded SOFR coupons and discount factors, then points out that…
The discussion examines what it means for short rate models to begin with economic variables. One interpretation is that these are state variables such as inflation or GDP, modeled jointly as a vector process, with the short rate specified as a function of…
The document shows how an instantaneous forward rate can be obtained from a discount factor by differentiating its logarithm with respect to maturity. It begins with a representation of the price at time t of a zero-coupon payment at T as the exponential of…
The document distinguishes the pricing formula for a swaption from the volatility model used to represent market prices. It says Black-style pricing is widely used, while arguing that the choice and behavior of the volatility model deserve more attention…
The document explains why yield to maturity cannot be computed for a loan portfolio without a price or present value. YTM is a way to express the relationship between a bond’s price and its promised cash flows as a yield, which can help compare instruments…
The document explains how settlement after expiry can affect option valuation, distinguishing cash-deferred from physically deferred delivery under deterministic interest rates. In the cash-settled case, the exercise payoff is determined at expiry and then…
The document asks how to apply the law of one price to two bonds with the same maturity and maturity payoff when one bond also pays coupons before maturity. The question highlights that matching only the final payoff does not make the two investment…
The document examines how to choose notionals for a three-bond, proceeds-weighted butterfly using bonds identified as the wings and belly. It lays out a duration-neutrality condition and a proceeds or notional neutrality condition, then tries to solve both…
The document describes a C++ access-control problem when a custom OIS curve derives from QuantLib’s piecewise yield curve and uses a custom bootstrapper. The bootstrapper needs access to private or protected members across the derived curve and its base…
The document explains why the implied repo rate for a bond in a futures contract is below that bond’s term repo rate. The key comparison is between the futures price and the bond’s forward price for delivery, adjusted by the conversion factor. To rule out…
The document describes a proposed cross-sectional regression for estimating credit default swap spreads, or their implied hazard rates, when a counterparty has no liquid CDS. The setup uses liquid CDS observations at a given tenor, with the logarithm of…
The document explains how changes in the federal funds rate can influence US government bond yields and prices. Monetary policy tends to affect short maturities most directly: higher overnight borrowing costs can lift rates across nearby maturities, which…
The question concerns historical rate data needed to estimate volatility in a model using instantaneous forward rates at different observation dates and relative maturities. The response says the referenced chart already reports instantaneous forward rates…
The discussion considers how to value a two-year bond with semiannual coupons, an early exit right after one year, and principal tied to the S&P index. One answer separates the fixed coupon payments from the index-linked payoff and applies risk-neutral…
The document compares stock warrants with options, focusing on who issues them, how exercise affects shares, and how they trade. A company issues a warrant on its own stock; exercising a call warrant generally leads the company to issue new shares, which can…