skip to main | skip to sidebar

The Federal Reverse

Stocks



Forex

Treasury bonds

Twitter feed

Blog Archive

  • ►  2014 (1)
    • ►  January (1)
  • ►  2013 (13)
    • ►  December (2)
    • ►  March (2)
    • ►  February (4)
    • ►  January (5)
  • ▼  2012 (71)
    • ►  December (2)
    • ►  October (3)
    • ►  September (10)
    • ►  August (7)
    • ►  July (6)
    • ►  June (9)
    • ►  May (11)
    • ►  April (13)
    • ▼  March (10)
      • Two videos aus Deutschland
      • Not everybody drives a BMW in Germany
      • Prices gone berserk in Germany
      • Smoothing splines and interest rate curves
      • Get yourself some gold
      • Beautiful spectacle in the sky
      • Mike Maloney's Debt Collapse
      • Fed Tricks
      • Cotton will be the place to be, just not yet
      • With Greece in default, what will happen with the ...

Categories

  • altcoins (1)
  • Android (1)
  • Astronomy (1)
  • banks (8)
  • Bernanke (2)
  • BFA-Bankia (3)
  • biology (2)
  • Bitcoin (1)
  • Bonds (8)
  • bubble (6)
  • CDS (2)
  • Central banks (14)
  • Chavez (1)
  • chinese phones (1)
  • college (1)
  • commodities (9)
  • compound interest (1)
  • corn (2)
  • corralito (2)
  • cotton (1)
  • Credit (12)
  • credit rating (2)
  • crisis (18)
  • Crisis Trivia (1)
  • currency (5)
  • debt (16)
  • deflation (9)
  • degree (1)
  • ECB (14)
  • Economics (13)
  • Economy (20)
  • Energy (10)
  • ESM (1)
  • Euro (9)
  • Europe (24)
  • EURUSD (7)
  • farming (5)
  • Fed (8)
  • finance (12)
  • Forex (3)
  • France (2)
  • futures (4)
  • Germany (14)
  • Gold (19)
  • Greece (11)
  • hed (1)
  • hedge funds (2)
  • hum (1)
  • humor (12)
  • Huxley (1)
  • Iberia (1)
  • IMF (1)
  • India (1)
  • inflation (22)
  • interest rates (6)
  • Internet (1)
  • investing (3)
  • Iran (1)
  • Jack Andraka (1)
  • Jim Rogers (3)
  • lies (1)
  • LTRO (1)
  • Marc Faber (5)
  • mone (1)
  • Money (17)
  • normalcy bias (4)
  • oil (2)
  • Orwell (2)
  • OWS (1)
  • Portugal (2)
  • real estate (5)
  • regularization (1)
  • Silver (9)
  • society (19)
  • sociopaths (19)
  • Spain (22)
  • speculation (5)
  • splines (1)
  • stocks (1)
  • trading (15)
  • UK (2)
  • university (1)
  • USA (8)
  • Venezuela (1)
  • wages (3)
  • Wealth (8)
  • welfare state (2)
  • wheat (2)

Daily read

  • Bloomberg
  • FT's Seeking Alpha
  • Silver Gold Silver
  • The Fundamental View
  • Zero Hedge

The Federal Reverse

Loading...
Powered By Blogger
Powered by Blogger.
  • Main page

World Statistics

SlideME CrisisTrivia

Get the Crisis Trivia Android app from SlideME.

Followers

Search This Blog

Sunday, March 18, 2012

Smoothing splines and interest rate curves

Yield curves are important in Economics and used by finance professionals to analyze bonds and look for trading opportunities and by economists, to try to understand economic conditions.

The yield is the amount in cash that returns to the owners of a security, for example, if a sovereign bond with maturity at time $T$ is bought at time $t$ for a price $P(t,T)$, the yield would be high if $P(t,T)$ is much less than the maturity price $P(T,T)$ (which would obviously be the risk-free amount received by the lender). A higher yield allows the owner to make more profit from the investment, but it may also mean that the security is being sold at a discount as a result of some risk related to the security. For a recent example of this, Greek bonds, which were sold at such discounts because the market anticipated a default, this made yields soar, with risk-averting investors unloading bonds at the lower prices that risk-taking investors were comfortable buying in. Ultimately everybody took a haircut.

For fixed income mathematics, a set of axioms must be assumed, namely:
  1. The market trades continuously over its trading horizon: it extends from the current time to some distant future time such that the maturities of all the instruments to be valued fall between now and the trading horizon..
  2. The market is efficient: information is available to all traders simultaneously, and every trader makes use of all the available information, also related to the axiom that
  3. There are no arbitrage opportunities: the price of a portfolio is the sum of its constituent parts.
  4. The market is complete: any desired cash flow can be obtained from a suitable self-financing strategy based on a portfolio of discount bonds.

It is assumed further that there are no legal barriers to trading and that the market is rational (traders try to maximize their profits).

Now, define the zero yield in terms of the bond price above. The zero yield, as seen at time $t$, of a bond that matures at time $T$, is denoted by $y(t,T)$ and is defined by
$$
P(t,T)=e^{-(T-t) y(t,T) }
$$
for every $t<T$, which means that the current price of the bond is equal to discounted price at maturity (using compound interest).

Suppose that at time $t$ we enter into a forward contract to deliver at time $T_1$ a bond that will mature at time $T_2$ (obviously $T_2>T_1$). Let the forward price of the bond be denoted by $P(t,T_1,T_2)$. At the same time, a bond that matures at time $T_1$ is purchased at a price of $P(t,T_1)$. Again at time $t$, a bond that matures at time $T_2$ is bought with a price of $P(t,T_2)$. Notice that the axiom specifying that there are no arbitrage opportunities implies that the price of the bond maturing at time $T_2$ must be equal to the product of the price of the bond maturing at time $T_1$ and the forward price $P(t,T_1) P(t,T_1,T_2)$. Let the implied forward rate $f(t,T_1,T_2)$, valued at time $t$, for the period $(T_1,T_2)$ as
$$
P(t,T_1,T_2)=e^{-(T_2-T_1) f(t,T_1,T_2) }
$$
Notice that $P(t,T_2) =P(t,T_1) P(t,T_1,T_2)=e^{-(T_1-t) y(t,T_1) } e^{-(T_2-T_1) f(t,T_1,T_2) }$ and, summing the exponents, we get
$$
f(t,T_1,T_2)= \frac{(T_2-t) y(t,T_2) - (T_1 - t) y(t,T_1)}{T_2 - T_1}
$$
which is the period forward rate. However, the instantaneous forward rate is of much greater importance in the theory of the term structure. The instantaneous forward rate for time $T$, as seen at time $t$, is denoted by $f(t,T)$ and is the continuously compounded rate defined by
$$
f(t,T)= \lim_{h \rightarrow 0} {f(t,T,T+h) } = y(t,T) + (T-t) y_T (t,T)
$$
where $y_T = \frac{\partial}{\partial T} y(t,T)$. We can interpret the previous equation as the current  yield value plus the instantaneous change of the yield with the maturity time.

To interpolate curves, and thus have values for all the points within the interval and not only the data points that are made available to us by the problem, we can use a number of different methods. One needs some complexity to be able to capture what the nature is saying, but at the same time this complexity might be cause by some "noise", or perturbations that we want to avoid (market panics, manipulations or poorly registered data). We can choose a parametric family, such as polynomials, fix the order and fit the coefficients. However, this appears as somehow arbitrary. One can choose to interpolate with a non-parametric method such as splines. When using some functional space, one must restrict himself to functions that meet some criteria, not only that approximate well (or maybe the best approximation in that space). This is to avoid overfitting the said noise.

Now we can choose to fit an approximating yield or the forward curve that approximates the true yield or forward curves, with the information given by actual bond prices as of time $t$, by minimizing the following functional (assuming we fit the yield curve $\varphi$):
$$
R(\varphi,t) =  \sum_{i=1}^n (P(t,T_i) - P(t,T_i,\varphi))^2 + \lambda \int \left( \frac{\partial^2}{\partial s^2} \varphi(s) \right)^2 ds.
$$
Where $\lambda$ is a regularization parameter, and $P(t,T_i,\varphi)$ is a functional that prices a bond of maturity $T_i$ at time $t$ with the yield curve $\varphi$. We change formulation, for practical derivation purposes (we now compute the observed yield $y(t,T_i)$ from the observed bond price)
$$
R(\varphi,t) = \sum_{i=1}^n (y(t,T_i) - \varphi(T_i))^2 + \lambda \int \left( \frac{\partial^2}{\partial s^2} \varphi(s) \right)^2 ds.
$$
And then we apply the standard smoothing splines theory to compute the solution, which is:
$$
\mathbf{w} = (I+\lambda K)^{-1} \mathbf{y}
$$
Where $\mathbf{y}$ is a vector with elements $y(t,T_i)$, $K$ is a matrix whose elements are of the form $\int \frac{\partial^2}{\partial s^2} \phi_i (s)  \frac{\partial^2}{\partial s^2} \phi_j (s) ds$, with $\phi$ is a choosen spline basis (notice the dot-product structure) and $\mathbf{w}$ is a vector with the coefficients on that basis, so that the estimated function is
$$
\varphi = \sum_i w_i \phi_i
$$



Posted by Analytic Bastard at 1:55 PM
Labels: Bonds, Fed, Greece, interest rates, regularization, splines

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Energy


Precious metals

gold coin prices junk silver coins

Popular Posts

  • Debunking Jim Rogers on farming
    Jim Rogers has been speaking a lot about farming being the profession of the future. Now, I love his insights and I regard him as one of the...
  • Spanish housing bubble and economic annihilation
    I came across this wonderfully made video that would be a total LMFAO if there were no people suffering from the topic it talks ...
  • Beware Chinese phones!
    I recently bought a "Quad core 1 GB" "Huawei" "Mate Mini" phone from Ali Express. I use quotes because none of...
  • The truth about Jack Andraka
    The truth about Jack Andraka is... that I don't know it, obviously, I am a normal citizent with my mundane whereabouts and I am geograph...
  • Towards a thermodynamical theory of Economics
    Even though Economics is a topic studied at every college and university, I believe their core fundamentals are not only misunderstood but a...
  • British go home... XD
    This was at Barajas airport Contextual update later today... Update: Last year Iberia was merged/sold to British Airways. Workers w...
  • That raid of mine proved to be wise after all
    For those of us who live in Euroland, it is very important to observe Gold/EUR correlations, since an extreme deviation from linear correlat...
  • A tale of exponential interest
    Imagine you have a savings account and you deposit an amount. The bank transfers the interest to your account and the next time you get inte...
  • I got myself some gold yesterday (with an outlook)
    I often follow the stock in Geiger Edelmetalle , since they show the coins they have and the number of each when you place your order. Here...
  • Inflationary concerns
    Zerohedge has regularly been reporting the ECB's deposit facility that the banks use as storage, much in the same way a cust...

Worthy analyses

  • SeekingAlpha.com: Home Page
    The Greenbrier Companies, Inc. 2025 Q3 - Results - Earnings Call Presentation
    37 minutes ago
  • Humble Student of the Markets
    The Animal Spirits are Back in Charge!
    2 days ago
  • mathbabe
    We should not describe LRM’s as “thinking”
    2 weeks ago
  • FOFOA
    Happy New Year!
    6 months ago
  • The Fundamental View
    Desain Bentuk Rumah Adat China dan Penjelasannya
    11 months ago
  • Shadow Government Statistics
    Flash Commentary No, 1460b
    4 years ago
  • www.zerohedge.com/fullrss2.xml
    The Oil Refinery Crisis Will Worsen This Winter
    4 years ago
  • Jim Rogers Blog
    Financial Markets Will Move To Asia
    5 years ago
  • Kyle Bass Blog
    Kyle Bass On China
    9 years ago
  • Big Picture Agriculture
  • SilverGoldSilver
  • Harvey Organ's - The Daily Gold and Silver Report
  • Marc Faber Blog

Label cloud

Europe (24) Spain (22) inflation (22) Economy (20) Gold (19) society (19) sociopaths (19) crisis (18) Money (17) debt (16) trading (15) Central banks (14) ECB (14) Germany (14) Economics (13) Credit (12) finance (12) humor (12) Greece (11) Energy (10) Euro (9) Silver (9) commodities (9) deflation (9) Bonds (8) Fed (8) USA (8) Wealth (8) banks (8) EURUSD (7) bubble (6) interest rates (6) Marc Faber (5) currency (5) farming (5) real estate (5) speculation (5) futures (4) normalcy bias (4) BFA-Bankia (3) Forex (3) Jim Rogers (3) investing (3) wages (3) Bernanke (2) CDS (2) France (2) Orwell (2) Portugal (2) UK (2) biology (2) corn (2) corralito (2) credit rating (2) hedge funds (2) oil (2) welfare state (2) wheat (2) Android (1) Astronomy (1) Bitcoin (1) Chavez (1) Crisis Trivia (1) ESM (1) Huxley (1) IMF (1) Iberia (1) India (1) Internet (1) Iran (1) Jack Andraka (1) LTRO (1) OWS (1) Venezuela (1) altcoins (1) chinese phones (1) college (1) compound interest (1) cotton (1) degree (1) hed (1) hum (1) lies (1) mone (1) regularization (1) splines (1) stocks (1) university (1)

Machinomics

Machinomics
Visit my blog about data analysis, financial applications and science