Documentation

Financial Toolbox Release Notes

R2016a

New Features, Bug Fixes, Compatibility Considerations

Plots: Fan chart enhancements

fanplotaccepts name value pair arguments to control chart colors and line sizes for the historical and forecast lines.

Date and Time:datetimesupport for calendar functions

Support fordatetimefor the following calendar functions according to these guidelines:

  • Functions that take date inputs and output dates. If any of the date inputs aredatetimearrays, then the date outputs are returned as adatetime. Otherwise, the dates are returned asdatenums.

  • Functions that take date inputs, but do not output dates. In this case, the function should return the same output whether the date inputs aredatenumsordatetime.

  • Functions that do not take in date inputs, but output dates. In this case, an extra optional input argumentoutputTypeis included that allows you to specify the output as a'datenum'or a'datetime'. The default behavior is'datenum'.

Date and Time: function to return the quarter of a given date

Support forquarter. The purpose of this function is to return the quarter of a given date.

Functionality Removed

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
proddf Removed bndprice Replace all instances ofproddfwith
bndprice.
proddfl Removed bndprice Replace all instances ofproddflwith
bndprice.
proddl Removed bndprice Replace all instances ofproddlwith
bndprice.
yldoddl Removed bndyield Replace all instances ofyldoddlwith
bndyield.
yldoddf Removed bndyield Replace all instances ofyldoddfwith
bndyield.
yldoddfl Removed bndyield Replace all instances ofyldoddfl
withbndyield.
prbond Removed bndprice Replace all instances ofprbondwith
bndprice.
yldbond Removed bndyield Replace all instances ofyldbondwith
bndyield.
checksiz Removed N/A

Remove all instances from your code.

checktyp Removed N/A

Remove all instances from your code.

checkrng Removed N/A

Remove all instances from your code.

ugarch removal

ugarchis removed in this release. Use thegarchobject from the Econometrics Toolbox™ instead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
ugarch Errors estimate Replace all instances ofugarchwith
thegarchobject to create conditional variance models and use theestimatefunction to fit conditional variance models to data.

For more information on migratingugarchcode togarch, seeLikelihood Ratio Test for Conditional Variance Models.

ugarchllf removal

ugarchllfis removed in this release. Use thegarchobject from the Econometrics Toolbox instead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
ugarchllf Errors garch Replace all instances ofugarchllfwith
garch.

For more information on migratingugarchllfcode togarch, seeSpecify GARCH Models Using garch.

ugarchpred removal

ugarchpredis removed in this release. Use thegarchobject from the Econometrics Toolbox instead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
ugarchpred Errors forecast Replace all instances ofugarchpredwith
thegarchobject to create conditional variance models and use theforecastfunction to generate minimum mean square error forecasts.

For more information on migratingugarchpredcode togarch, seeForecast a Conditional Variance Model.

ugarchsim removal

ugarchsimis removed in this release. Use thegarchobject from the Econometrics Toolbox instead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
ugarchsim Errors simulate Replace all instances ofugarchsimwith
thegarchobject to create conditional variance models and use thesimulatefunction to generate Monte Carlo simulations from conditional variance models.

For more information on migratingugarchsimcode togarch, seeSimulate Conditional Variance Model.

frontcon removal

frontconhas been removed. UsePortfolioinstead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
frontcon Errors Portfolio Replace all instances offrontconwith
Portfolio.

For more information on migratingfrontconcode toPortfolio, seefrontcon Migration to Portfolio Object.

portopt partial removal

portopthas been partially removed and no longer acceptsConSetorvarargininput arguments. In this release, a modifiedportoptonly solves a portfolio problem for long-only fully invested portfolios. UsePortfolioinstead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
portopt Error ifConSetorvarargininput arguments are used. Portfolio If you want to solve a portfolio problem that is more than a long-only fully invested portfolio, replace all instances ofportoptwithPortfolio.

For more information on migratingportoptcode toPortfolio, seeportopt Migration to Portfolio Object.

R2015b

New Features, Bug Fixes, Compatibility Considerations

Portfolio Optimization: Calculate mean-variance portfolios with tracking error constraint

Support for two new functions to set up tracking error constraints for aPortfolioobject.

  • setTrackingPortsets up tracking or benchmark portfolio for a tracking error constraint.

  • setTrackingErrorsets up a maximum portfolio tracking error constraint.

Credit Scorecards: Set predictor types to numeric or categorical and view summary information

Credit scorecard supports two new functions for reviewing and converting predictor types:

  • predictorinfoprovides a summary of credit scorecard predictors and their properties.

  • modifypredictorenables you to set properties for credit scorecard predictors to change a predictor type from numeric to categorical or vice versa.

In addition, thecreditscorecardobject has two new properties,NumericPredictorsandCategoricalPredictors具有公共GetAccessand privateSetAccess, that is, they cannot be set at the command line using the dot notation.

Transition Probability Estimates: Enter data using table input

Support for MATLAB®table input fortransprobandtransprobprep.

Simple Interest Convention: Calculate zero, forward, and discount curves using simple interest

Support for simple interest for the following functions:

Functionality Being Changed forfwd2zero,zero2fwd,pyld2zero, andzero2pyld

These functions now accept additional optional input arguments that are specified as name-value pairs:InputCompounding,OutputCompounding,InputBasis, andOutputBasis.

In addition, forpyld2zeroandzero2pyld, the settings for the default behavior for optional name-value pairs inputs have changed. For more information, see the reference pages forpyld2zeroandzero2pyld.

ugarch removal

ugarchwill be removed in a future release. Use thegarchobject from the Econometrics Toolbox instead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
ugarch Warns estimate Replace all instances ofugarchwith
thegarchobject to create conditional variance models and use theestimatefunction to fit conditional variance models to data.

For more information on migratingugarchcode togarch, seeLikelihood Ratio Test for Conditional Variance Models.

ugarchllf removal

ugarchllfwill be removed in a future release. Use thegarchobject from the Econometrics Toolbox instead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
ugarchllf Warns garch Replace all instances ofugarchllfwith
garch.

For more information on migratingugarchllfcode togarch, seeSpecify GARCH Models Using garch.

ugarchpred removal

ugarchpredwill be removed in a future release. Use thegarchobject from the Econometrics Toolbox instead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
ugarchpred Warns forecast Replace all instances ofugarchpredwith
thegarchobject to create conditional variance models and use theforecastfunction to generate minimum mean square error forecasts.

For more information on migratingugarchpredcode togarch, seeForecast a Conditional Variance Model.

ugarchsim removal

ugarchsimwill be removed in a future release. Use thegarchobject from the Econometrics Toolbox instead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
ugarchsim Warns simulate Replace all instances ofugarchsimwith
thegarchobject to create conditional variance models and use thesimulatefunction to generate Monte Carlo simulations from conditional variance models.

For more information on migratingugarchsimcode togarch, seeSimulate Conditional Variance Model.

frontcon removal

frontconhas been removed. UsePortfolioinstead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
frontcon Removed Portfolio Replace all instances offrontconwith
Portfolio.

For more information on migratingfrontconcode toPortfolio, seefrontcon Migration to Portfolio Object.

portopt partial removal

portopthas been partially removed and no longer acceptsConSetorvarargininput arguments. In this release, a modifiedportoptonly solves a portfolio problem for long-only fully invested portfolios. UsePortfolioinstead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
portopt Error ifConSetorvarargininput arguments are used Portfolio If you want to solve a portfolio problem that is more than a long-only fully invested portfolio, replace all instances ofportoptwithPortfolio.

For more information on migratingportoptcode toPortfolio, seeportopt Migration to Portfolio Object.

R2015a

New Features, Bug Fixes, Compatibility Considerations

Credit scorecard enhancements for model validation, a binning algorithm, and probability of default computation

  • Enhancements toautobinningfor theAlgorithmname-value pair argument, where a new option'Monotone'is supported.Monotoneis an optimal binning algorithm that ensures monotonicity in the weight of evidence (WOE) of the resulting bins.

  • Credit scorecards support model validation usingvalidatemodelthat provides the following three techniques:

    • Receiver Operating Characteristic (ROC)

    • Cumulative Accuracy Profile (CAP)

    • Kolmogorov-Smirnov (KS)

  • Credit scorecards support probability of default usingprobdefault.

autobinningsupport for'Monotone'has compatibility impact

Theautobinningfunction for credit scorecards has an incompatibility with the previous release. The latest version ofautobinningsupports, by default, new binning behavior where the default for the'Algorithm'argument is now a new name-value pair argument for'Monotone'. In addition, the algorithms'EqualFrequency'and'EqualWidth'now support'SortCategories'option for categorical data. By default, categorical data is sorted by'odds'before binning.

Compatibility Considerations

To recover the previous behavior, useautobinningwith the following name-value pairs:

  • For the syntaxsc = autobinning(sc)in R2014b, starting in R2015a, the syntax is equivalent to using:

    sc = autobinning(sc,'Algorithm','EqualFrequency','AlgorithmOptions',{'SortCategories','None'})

  • For the syntaxsc = autobinning(sc,'Algorithm','EqualWidth')in R2014b, starting in R2015a, the syntax is equivalent to using:

    sc = autobinning(sc,'Algorithm','EqualWidth','AlgorithmOptions',{'SortCategories','None'})

  • For the syntaxsc = autobinning(sc,'Algorithm','EqualFrequency')in R2014b, starting in R2015a, the syntax is equivalent to using:

    sc = autobinning(sc,'Algorithm','EqualFrequency','AlgorithmOptions',{'SortCategories','None'})

Life table calibration and simulation for insurance

Life tables compute the probabilities, hazards, and survivor counts associated with people who are alive at a specified age and have the likelihood of death within a given period in the future. Four main parametric mortality models are supported for life studies: Gompertz, Gompertz-Makeham, Siler, and Heligman-Pollard.

  • lifetableconv— Convert life table data from either raw form or generated form into different formats and series.

  • lifetablefit— Calibrate parametric life table models based on life table data.

  • lifetablegen— Generate life table data from parametric models.

SDE suite parallel computing example

New example showing how to use Parallel Computing Toolbox™ with SDE functions to improve performance. For details, seeImproving Performance of Monte Carlo Simulation with Parallel Computing.

frontcon removal

frontconwill be removed in a future release. UsePortfolioinstead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
frontcon Warns Portfolio Replace all instances offrontconwith
Portfolio.

To turn off thefrontconwarning, seeTurning off the Warning Messages for frontcon.

For more information on migratingfrontconcode toPortfolio, seefrontcon Migration to Portfolio Object.

portopt partial removal

portoptwill be partially removed in a future release and will no longer acceptConSetorvararginarguments. In a future release,portoptwill solve the portfolio problem for long-only fully invested portfolios. UsePortfolioinstead.

Compatibility Considerations

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
portopt Warns Portfolio If you want to solve a portfolio problem that is more than a long-only fully invested portfolio, replace all instances ofportoptwithPortfolio.

To turn off theportoptwarning, seeTurning off the Warning Messages for portopt.

For more information on migratingportoptcode toPortfolio, seeportopt Migration to Portfolio Object.

R2014b

New Features, Bug Fixes

Credit scorecard functionality

Modeling support for credit scorecard development that includes the following new functions:

  • creditscorecardcreates thecreditscorecardobject.

  • autobinningapplies automatic binning for single or multiple predictors.

  • bininforeturns bin information for a given predictor.

  • modifybinslets you modify bins for a given predictor.

  • bindatabins a dataset using the existing binning rules and performs Weight of Evidence (WOE) transformation.

  • plotbinsplots histogram counts for predictor variables.

  • fitmodelfits a logistic regression model using Weight of Evidence (WOE) data.

  • setmodelsets the predictors and coefficients of a linear logistic regression model fitted outside thecreditscorecard对象,并返回一个更新creditscorecardobject.

  • displaypointsreturns scorecard points information, such as points per bin or points per predictor.

  • formatpointslets you modify point information, such as scaling or rounding.

  • scoredetermines the score for each row of a dataset.

For more information, seeUsing creditscorecard Objects,Credit Scorecard Modeling Workflow, andCase Study for a Credit Scorecard Analysis.

Performance improvements to CVaR portfolio optimization when using thefminconfunction

Support forfmincongradients when usingsetSolverfor CVaR portfolio optimization provides increased performance for CVaR optimizations.

Performance improvements to SDE Monte Carlo simulation for models with constant parameter or deterministic function of time

Certain SDE models that use a constant parameter or a deterministic function of time have a performance improvement.

Fan chart visualization function

Support for financial fan charts usingfanplot. Usefanplotto plot the combination of historical and forecast data to visualize possible outcomes.

SDE functions accept parameters that can be specified as a single input argument

The following SDE functions accept parameters you can specify as a single input argument that is identified as a deterministic function of time if the function accepts a scalar timetas its only input argument.

In addition,ts2funcaccepts a new parameter value argument forDeterministicto support deterministic functions of time.

Default option for thecuttingplanesolver for PortfolioCVaR optimization changed

The default option for thecuttingplanesolver for aPortfolioCVaRobject has changed. Thecuttingplanedefault option forMasterSolverOptionshas changed from

optimoptions('linprog','Algorithm','Simplex','Display','off')
to
optimoptions('linprog','Algorithm','Dual-Simplex','Display','off')
For more information, seeDual-simplex algorithm in linprog linear programming solverin the Release Notes for Optimization Toolbox™.

R2014a

New Features, Bug Fixes

SDE functions moved to Financial Toolbox from Econometrics Toolbox

下面的随机微分方程(SDE) functions have moved from Econometrics Toolbox to Financial Toolbox™:

The following sample data sets and examples from thematlab/toolbox/econ/econdemosdirectory have moved tomatlab/toolbox/finance/findemos:

  • Demo_AmericanBasket

  • Example_BarrierOption

  • Example_BlackScholes

  • Example_CEVModel

  • Example_CIRModel

  • Example_CopulaRNG

  • Example_LongstaffSchwartz

  • Example_StratifiedRNG

  • Data_GlobalIdx2.mat

Performance enhancements to SDE Monte Carlo simulation functions

Monte Carlo simulation performance enhancements to the approximate solution function (simBySolution) of GBM and HWV models with constant parameters.

R2013b

New Features, Compatibility Considerations

Mean-absolute deviation (MAD) portfolio optimization

New portfolio objectPortfolioMADfor mean-absolute deviation (MAD) portfolio optimization.

optimoptions万博1manbetx

optimoptionssupport when using solver options forPortfolio,PortfolioCVaR, andPortfolioMADobjects for portfolio optimization.

Compatibility Considerations

There are two possible incompatibility impacts:

optimoptionsis the default and recommended method to set solver options, however,optimsetis also supported.

Functions moved from Financial Instruments Toolbox to Financial Toolbox

The following functions are moved from Financial Instruments Toolbox™ to Financial Toolbox:

R2013a

New Features, Compatibility Considerations

Cash flow plot function

Graphical representation for cash flows usingcfplot.

Financial Time Series Tool (ftstool) import of Excel XLSX files on Linux and Mac OS X

Support forftstoolimport of Excel®XLSX files on Linux®and Mac OS X.

Cutting-plane solver added toPortfolioCVaRobject

New solver option ('cuttingplane') forPortfolioCVaRobject for conditional value-at-risk (CVaR) portfolio optimization. For more information, seesetSolver.

transprobbytotalserrors when using the algorithm input argument

The'totals'input argument totransprobbytotalsis typically generated bytransprob. Becausetransprobincludes an'algorithm'field in this structure since R2011b, you no longer need to specify the'algorithm'argument using a name-value pair when callingtransprobbytotals. If you specify an'algorithm'argument as a name-value pair when callingtransprobbytotals, you now receive an error.

Compatibility Considerations

Specifying the'algorithm'as a name-value pair argument totransprobbytotalsnow causes an error. If you started using this functionality in R2011b or later, most likely you don't have to take any action. If you have used this functionality before R2011b, make sure you remove the'algorithm'name-value pair from calls totransprobbytotals, and that the'totals'input argument totransprobbytotalscontains an'algorithm'field indicating the desired algorithm. In most cases, the latter can be achieved by recreating the'totals'structure with a call totransprobwhich automatically adds the'algorithm'field since R2011b.

Usingdatenum,datestr,datevecwith dates in Financial products might produce inconsistent results

Any time you enter a cell array of date strings that are in different date formats using the MATLAB functionsdatenum,datestr, anddatevec, these functions previously returned an error. In R2013a, this behavior has changed. In Financial products this change can cause an unexpected date format to generate an incorrect value. For example, the following use ofdatevecreturned an error before R2013a because of the inconsistent date formats, but in R2013a this code does not return an error.

datevec({'10-Oct-2012','10-1-2012'}),

Compatibility Considerations

As a best practice, you should convert date strings to date numbers before using any functions in Financial Toolbox that use dates as inputs. For more information, seeNo strict-match requirements for month formats when converting date stringsin the MATLAB release notes.

R2012b

New Features

Conditional value at risk (CVaR) portfolio optimization

New portfolio objectPortfolioCVaRfor conditional value at risk (CVaR) portfolio optimization.

Margin and spread calculations for floating-rate bonds

Support for calculating spread measures for floating-rate bonds usingfloatdiscmarginandfloatmargin.

Total (horizon) return calculation for fixed-coupon bonds

Support for calculating bond horizon return usingbndtotalreturn.

Performance improvements forcfamounts

Performance improvement for calculating cash flows usingcfamounts.

R2012a

New Features

XIRR Update

Support is added toxirrfor a global search heuristic to enhance the robustness ofxirr.

Additional Support for Cash Flow Functions

Function

Purpose

cfspread

Calculate the spread over a zero curve for a given cash flow.

cfprice

Calculate the price for a given cash flow given yield to maturity.

cfyield

Calculate the yield to maturity for a given cash flow and price.

New Demo for Portfolio Optimization Tools

A new demo shows how to set up mean-variance optimization problems using the portfolio object. Run the demo at the MATLAB command line by entering:

showdemo portfolioexamples

R2011b

New Features, Compatibility Considerations

One-Way Turnover Constraints Added to the Portfolio Object

The portfolio object supports one-way turnover constraints using the new methodssetOneWayTurnoverandgetOneWayTurnover.

与夏普比率Maximizat投资组合优化ion Using a Portfolio Object

The portfolio object supports estimating an efficient portfolio that maximizes the Sharpe ratio using the new methodestimateMaxSharpeRatio.

Cash Flow and Time Mapping for Bond Portfolios with Variable Coupon Rates and Variable Face Values

Updatedcfamountsnow supports time-varyingCouponRateandFacescheduling, including support for sinking fund bonds.

Transition Probability Functions for Credit Quality Thresholds, Nonsquare Matrices, and User-Defined Ratings

Support is added for credit quality thresholds withtransprobtothresholdsandtransprobfromthresholds. Support is added for data preprocessing fortransprobusingtransprobprep. Support is added for user-defined ratings and nonsquare transition matrices withtransprobgrouptotalsandtransprobbytotals. For more information, seeCredit Risk Analysis.

New Demo for Forecasting Corporate Default Rates

A new demo shows how to forecast corporate default rates. This includes backtesting and stress testing examples. Run the demo at the MATLAB command line by entering:

showdemo Demo_DefaultRatesForecasts

Functionality Being Removed

Function Name What Happens When You Use This Function Use This Function Instead Compatibility Considerations
proddf Warns bndprice Replace all instances ofproddfwith
bndprice.
proddfl Warns bndprice Replace all instances ofproddflwith
bndprice.
proddl Warns bndprice Replace all instances ofproddlwith
bndprice.
yldoddl Warns bndyield Replace all instances ofyldoddlwith
bndyield.
yldoddf Warns bndyield Replace all instances ofyldoddfwith
bndyield.
yldoddfl Warns bndyield Replace all instances ofyldoddfl
withbndyield.
prbond Warns bndprice Replace all instances ofprbondwith
bndprice.
yldbond Warns bndyield Replace all instances ofyldbondwith
bndyield.
checksiz Warns N/A

Remove all instances from your code.

checktyp Warns N/A

Remove all instances from your code.

checkrng Warns N/A

Remove all instances from your code.

Warning and Error ID Changes

Many warning and error IDs have changed from their previous versions. These warnings or errors typically appear during a function call.

Compatibility Considerations

If you use warning or error IDs, you might need to change the strings you use. For example, if you turned off a warning for a certain ID, the warning might now appear under a different ID. If you use atry/catchstatement in your code, replace the old identifier with the new identifier. There is no definitive list of the differences, or of the IDs that changed.

transprobbytotals Warns When Using the algorithm Input Argument

Thetotalsinput totransprobbytotalsis typically generated bytransprob. Becausetransprobnow includes analgorithmfield in this structure, you no longer need to specify thealgorithmargument when callingtransprobbytotals.

Compatibility Considerations

In a future release, specifying thealgorithmargument totransprobbytotalswill error. Currently, it is still permissible to specify thealgorithmargument, although it usually has no effect.

R2011a

New Features

Portfolio Turnover and Transaction Costs

New portfolio object and methods support mean-variance portfolio optimization with general linear constraints, transaction costs, and turnover constraints. For more information, seePortfolio Optimization ToolsandPortfolio Optimization Objects.

Updated showdemo Command for Credit Rating Demo

The command to run the demo showing how to use Statistics Toolbox™ functions to support credit ratings is updated. Run the demo at the MATLAB command line by entering:

showdemo creditratingdemo

R2010b

New Features

Estimation of Transition Probabilities for Credit Risk

Support for estimation of transition matrices based on credit-migration history using both cohort and duration methods. For more information, seetransprob,transprobbytotals, andEstimation of Transition Probabilities.

Improved Performance in Portfolio Optimization Functions

portoptis enhanced for improved speed. Specifically, a broader class of problems now uses the faster linear complementarity programming (LCP) algorithm to obtain portfolios on the efficient frontier.

New Demo for Credit Rating

一个新的演示展示了如何使用统计工具箱的乐趣ctions to support credit ratings. Run the demo at the MATLAB command line by entering:

echodemo demo_creditrating

New Input and Output Options for Swap Functionality

cfamountsis enhanced to support new parameter/value pairs for swap functionality.

R2010a

No New Features or Changes

R2009b

New Features

Support for the BUS/252 Day-Count Convention

Support for theBasisday-count convention for BUS/252. BUS/252 is the number of business days between the previous coupon payment and the settlement data divided by 252. BUS/252 business days are non-weekend, non-holiday days. Theholidays.m文件定义的节日s.

Extended Support for New York Stock Exchange Closures

The currentholidaysfunction covers holidays and non-trading days from 1950 to 2050. Usingnyseclosures, you can determine all known and anticipated closures from January 1, 1885 to December 31, 2050.

Enhancements for Bond Pricing

Support for the following enhancements to bond pricing functions:

  • Provide the ability to specify the compounding frequency separately from the coupon frequency.

  • Enable specification of a discounting basis. A discounting basis has two purposes in Price/YTM calculations:

    • Computing the accrued interest

    • Computing the discount factors

  • Support the specification of a formula for computing the interest in the last coupon period.

The enhanced bond pricing functions are:

Function

Purpose

accrfrac

Calculate fraction of coupon period before settlement.

bndprice

Price fixed-income security from yield to maturity.

bndyield

Calculate yield to maturity for fixed-income security.

bndspread

Calculate static spread over spot curve.

bnddurp

计算债券期限给予价格.

bnddury

Calculate bond duration given yield to maturity.

bndconvp

Calculate bond convexity given price.

bndconvy

Calculate bond convexity given yield.

cfamounts

Calculate cash flow and time mapping for a bond portfolio.

cftimes

Calculate time factors corresponding to bond cash flow dates.

R2009a

New Features

Support for Key Rate Duration

Added support forbndkrdurto calculate key rate duration for bonds to determine the sensitivities of a bond to nonparallel changes in the yield curve. For more information, seeCalculating Key Rate Durations for Bonds.

R2008b

No New Features or Changes

R2008a

New Features

Enhanced Mean-Variance Portfolio Optimization Based on Linear Complementarity Programming for Portfolio Optimization

Added support forvararginargument forportoptandfrontcon.

Support for Actual/365 (ISDA)

Support for ret2tick and tick2ret Functions for Time Series Objects

ret2tickandtick2retsupport financial time series objects.

Support for Additional Descriptive Statistics Functions Financial Times Series Objects

The following covariance methods now support a financial time series object:

Added New Chart Types

Added support for the following chart types for financial reporting:

R2007b

New Features

互联网统计万博1manbetx支持30/360 30/3变体的基础60E with Annual Compounding

The following functions now support day count conventions for thebasisargument to support 30/360 International Securities Market Association (ISMA) convention as a variant of 30/360E with annual compounding:

createholidays Function Added for Different Trading Calendars

Thecreateholidaysfunction now supportshttp://www.FinancialCalendar.comtrading calendars. This function can be used from the command line or from the Trading Calendars graphical user interface. Usingcreateholidays, you can createholiday.mfiles, in conjunction withFinancialCalendar.comdata, that can be used instead of the standardholidays.mthat ships with Financial Toolbox software.

Diagonal Covariance Matrix Support Added for Multivariate Normal Regression

The new diagonal covariance matrix estimation feature makes it possible to estimate large-scale factor models by treating the residual errors as being jointly independent. The following functions supportCovarFormat, a new input argument:

arith2geom and geom2arith Functions Added for Portfolio Analysis

Two new functions,arith2geomandgeom2arith, support portfolio analysis.

R2006b

New Features

Investment Performance Metrics

The following new functions are added to compute common investment performance and risk-adjusted metrics:

  • sharpe, computes the sharpe ratio.

  • inforatio, computes information ratio and tracking error.

  • portalpha, computes risk-adjusted alpha and return.

  • lpm, computes sample lower partial moments.

  • elpm, computes expected lower partial moments.

  • maxdrawdown, computes the drop from maximum to minimum return over a period of time.

  • emaxdrawdown, computes the returns that are transformed into a linear Brownian motion with drift.

Financial Time Series Tool

Financial Time Series Tool (ftstool) is a new graphical user interface to support working with financial time seriesFINTSobjects.ftstoolinteroperates with the Financial Time Series Graphical User Interface (ftsgui) and Interactive Charts (chartfts).

R2006a

New Features

Financial Time Series Toolbox Incorporated

As of this release the functionality previously available in Financial Time Series Toolbox has been incorporated into Financial Toolbox software. Financial Toolbox documentation has been modified to include the documentation previously available in the Financial Time Series User's Guide.

Because use of Financial Time Series Toolbox required the purchase and installation of Financial Toolbox software, all customers previously licensed for Financial Time Series Toolbox will continue to have access to it.

Financial Time Series Frequency Conversion Functions Modified

The suite of time series frequency conversion functions (todaily,toweekly,tomonthly,tosemi, andtoannual) has been extensively modified. Consult the function references in the Financial Toolbox User's Guide for specifics.

Continuous Compounding Option Removed from plyd2zero

Continuous compounding is no longer available forpyld2zero. Compounding for this function is now consistent with compounding for the functionzero2pyld. An error message is generated if you attempt to use continuous compounding with these functions.

New Statistical Functions

The new functions in Version 3.0 of Financial Toolbox software fall into these four categories:

Multivariate Normal Regression Without Missing Data

mvnrfish 费舍尔信息矩阵for multivariate normal or least-squares regression
mvnrmle Multivariate normal regression (ignore missing data)
mvnrobj Log-likelihood function for multivariate normal regression without missing data
mvnrstd Evaluate standard errors for multivariate normal regression model

Multivariate Normal Regression With Missing Data (Expectation Conditional Maximization)

ecmmvnrfish 费舍尔信息矩阵for multivariate normal regression model
ecmmvnrmle Multivariate normal regression with missing data
ecmmvnrobj Log-likelihood function for multivariate normal regression with missing data
ecmmvnrstd Evaluate standard errors for multivariate normal regression model

Least Squares Regression With Missing Data (Expectation Conditional Maximization)

ecmlsrmle Least-squares regression with missing data
ecmlsrobj Log-likelihood function for least-squares regression with missing data

Financial Model Transformation Function

convert2sur Convert a multivariate normal regression model into a seemingly unrelated regression model

R14SP3

New Features

New Statistical Functions

Version 2.5 introduces a set of financial statistical computation routines that compute values, such as mean and covariance, when there are missing data elements within a larger data set. These routines implement the Expectation Conditional Maximization (ECM) algorithm with various options that depend on the percentage of missing at random (MAR) data within the data set. The table below lists the functions that implement the ECM algorithm in Financial Toolbox software.

The following ECM functions have been added at this release.

Expectation Conditional Maximization

ecmnfish 费舍尔信息矩阵
ecmnhess Hessian of negative log-likelihood function
ecmninit Initial mean and covariance
ecmnmle Mean and covariance of incomplete multivariate normal data
ecmnobj Negative log-likelihood function
ecmnstd Standard errors for mean and covariance of incomplete data

Was this topic helpful?