tfutyieldbyrepo
Calculates Treasury bond futures yield given the implied repo rates
Syntax
Description
computes the theoretical futures bond yield given the settlement yield, the
repo/funding rate, and the reinvestment rate.FwdYield = tfutyieldbyrepo(RepoData,ReinvestData,Yield,Settle,MatFut,ConvFactor,CouponRate,Maturity)
Examples
This example shows how to compute the quoted futures bond yield, given the following data.
RepoData = [0.020 2]; ReinvestData = [0.018 3]; Yield = [0.0215; 0.0257]; Settle = datetime(2002,11,15); MatFut = [datetime(2002,12,15) ; datetime(2003,3,15)]; ConvFactor = [1; 0.9854]; CouponRate = [0.06; 0.0575]; Maturity = [datetime(2009,8,15) ; datetime(2010,8,15)]; FwdYield = tfutyieldbyrepo(RepoData, ReinvestData, Yield,... Settle, MatFut, ConvFactor, CouponRate, Maturity)
FwdYield = 2×1
0.0221
0.0282
Input Arguments
Simple term repo/funding rates, specified as a number of futures
NFUT-by-2 matrix of rates in
decimal and their bases in the form of [RepoRate
RepoBasis].
Specify RepoBasis as
2 = actual/360 or
3 = actual/365.
Data Types: double
Reinvestment of intervening coupons, specified as a number of futures
NFUT-by-2 matrix of rates and
bases in the form of [ReinvestRate ReinvestBasis].
ReinvestRate is the simple reinvestment rate, in
decimal. Specify ReinvestBasis as
0 = not reinvested,
2 = actual/360, or
3 = actual/365.
Data Types: double
Yield to maturity of Treasury bonds per $100 notional at
Settle, specified as a scalar numeric or an
NINST-by-1 vector.
Data Types: double
Settlement/valuation date of futures contract, specified as a scalar or an
NINST-by-1 vector using a datetime
array, string array, or date character vectors.
To support existing code, tfutyieldbyrepo also
accepts serial date numbers as inputs, but they are not recommended.
Maturity dates (or anticipated delivery dates) of futures contract,
specified as a scalar or an NINST-by-1
vector using a datetime array, string array, or date character
vectors.
To support existing code, tfutyieldbyrepo also
accepts serial date numbers as inputs, but they are not recommended.
Conversion factor, specified using convfactor.
Data Types: double | char | cell
Underlying bond annual coupon, specified as a scalar numeric decimal or an
NINST-by-1 vector of
decimals.
Data Types: double
Underlying bond maturity date, specified as a scalar or an
NINST-by-1 vector using a datetime
array, string array, or date character vectors.
To support existing code, tfutyieldbyrepo also
accepts serial date numbers as inputs, but they are not recommended.
Output Arguments
Forward yield to maturity, in decimals, compounded semiannually, returned
as a NINST-by-1 vector.
More About
The implied repo rate indicates the cost of financing a security through a repo transaction, where one party sells a security to another with an agreement to repurchase it later at a higher price.
Version History
Introduced before R2006aAlthough tfutyieldbyrepo supports serial date numbers,
datetime values are recommended instead. The
datetime data type provides flexible date and time
formats, storage out to nanosecond precision, and properties to account for time
zones and daylight saving time.
To convert serial date numbers or text to datetime values, use the datetime function. For example:
t = datetime(738427.656845093,"ConvertFrom","datenum"); y = year(t)
y =
2021
There are no plans to remove support for serial date number inputs.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)