The document works through pricing a zero-coupon bond under a Vasicek-style short-rate model with zero mean reversion level. It starts from the rate’s stochastic-integral solution, inserts that solution into the discounted payoff, and changes the order of…
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 document derives the duration of a single fixed cash flow under annual effective compounding. Starting from the negative sensitivity of present value to the interest rate, differentiation gives a duration equal to the payment time divided by one plus the…
The document explains why QuantLib-Swig exposes separate names such as PiecewiseLogCubicDiscount, PiecewiseLinearZero, and PiecewiseCubicZero while QuantLib 1.17 C++ does not. In C++, these curve variants are generated from the PiecewiseYieldCurve class…
The document explores how to shock selected points on an on-the-run Treasury yield curve, propagate those shocks to other maturities, and reprice an off-the-run bond. The proposed method applies principal component analysis to historical yield changes, then…
The document explains how to construct a forward swap rate from discount factors or forward Libor rates, then connect it to swaption valuation. It derives the swap rate as the ratio of the swap’s floating-leg value to its fixed-leg annuity. Given Libor…
The document examines a claim from the Longstaff–Schwartz interest-rate model that the short rate, expressed as a weighted sum of two factors, is positively correlated with the variance factor. The answer reduces the problem to the sign of the covariance,…
The document interprets carry on a short long-dated Treasury position by connecting the current yield with the yield implied for a shorter-maturity bond at a future date. It explains negative carry as a drag that must be offset by a favorable market move for…
The document outlines practical challenges for a firm moving from vendor-provided end-of-day data to live feeds from exchanges. Direct access means handling exchange-specific formats and APIs, building and maintaining parsers, and arranging network…
The document examines how to determine the annual day-count denominator for the Norwegian overnight index NOWA. Its quoted definition bases the nominal annual rate on the actual number of days in the year ahead from the fixing date, using 365 or 366 days,…
The document explains why an inverted yield curve is often viewed as a warning about economic weakness. Under expectations-based accounts, long-term rates reflect expected future short rates; an inversion can therefore indicate that markets anticipate rate…
The explanation separates coupon-date schedule construction from day-count calculation in QuantLib. A schedule defines dates according to the effective date, maturity, interval, calendar, business-day convention, and date-generation rule. A day-count…
The discussion considers a bond where the holder’s put and the issuer’s call are available on the same date at the same price. The response says such structures are relatively common, including in convertible bonds, and that the shared exercise date can…
The document asks for the transition distributions of two continuous-time processes: Brownian motion with constant drift and an Ornstein–Uhlenbeck process that reverts toward a long-run mean. Its answer derives the Ornstein–Uhlenbeck solution from an initial…
The document introduces the Campbell–Shiller regression as a way to test the expectations hypothesis of interest rates. It describes comparing a yield spread with a subsequent change in yields, while noting that empirical estimates may differ from the…
The document raises a risk-measurement question about calculating DV01 for a USD–KRW cross-currency swap. It describes building a USD discount curve so observable USD interest-rate swaps have zero present value, and a KRW curve so observable cross-currency…
The document responds to a broad request for a practical starting point for forecasting European government or other bond prices from historical data. Its central modeling recommendation is to forecast bond returns rather than prices directly. It then…
The document explains the par-yield curve as a plot of bond yields to maturity against their terms to maturity. A par yield is the coupon rate that would make a bond’s price equal to par; for a bond priced at par, its coupon rate and yield to maturity…
The document introduces a state price vector through a two-state example: inflation is either above or below a threshold, and a security pays in one state but not the other. It describes the collection of state-contingent prices as a vector, and says…
The document compares absolute changes in interest rates with percentage changes when constructing historical return series for value-at-risk analysis. Its example shows how an identical change in yield can produce very different percentage returns depending…
The document explains a buy-sell-back as a collateralized loan structured through a security sale followed by a forward agreement to sell the security back. The borrower receives cash against a bond or other security, while the lender holds the collateral…
The document examines a small mismatch between a GBP overnight index swap market quote and a displayed zero rate. It calculates a one-week discount factor from the quoted rate using a simple day-count fraction, then converts that factor to a continuously…
The document asks how to derive a three-month forward rate from short-rate paths simulated under the one-factor Hull–White model, with monthly time steps. It proposes using the model’s zero-coupon bond formula to obtain discount factors over monthly…
The document examines why a counterparty’s CVA charge might decrease after both parties are downgraded. It presents a first-to-default approximation in which expected exposure is multiplied by the difference between the counterparty’s credit spread and the…
The document describes building a JPY three-month forward curve from three-month deposits and FRAs, six-month market quotes, and six-month-versus-three-month basis swap spreads in QuantLib. The questioner constructs separate discounting, six-month, and…