Financial Toolbox    
portsim

Random simulation of correlated asset returns

Syntax

Arguments

ExpReturn
1 by number of assets (NASSETS) vector specifying the expected (mean) return of each asset.
ExpCovariance
NASSETS-by-NASSETS matrix of asset-asset covariances. The standard deviations of the returns are: ExpSigma = sqrt(diag(ExpCovariance)).
NumObs
(Optional) Number of consecutive observations in the return time series. If NumObs is entered as the empty matrix [], the length of RetIntervals is used.
RetIntervals
(Optional) Scalar or number of observations (NUMOBS) by 1 vector of interval times between observations. If RetIntervals is not specified, all intervals are assumed to have length 1.
NumSim
(Optional) Number of separate simulations of the NUMOBS observations to perform. Default = 1.

Description

portsim simulates returns of NASSETS assets over consecutive observation intervals. Returns are simulated as the increments of constant drift and volatility Brownian processes.

RetSeries is a NUMOBS-by-NASSETS-by-NUMSIM array of incremental return observations. The return over an interval of length DT is given by ExpReturn*DT + ExpSigma*sqrt(DT)*randn, where randn provides a random scalar whose value changes each time randn is referenced.

The returns realized from portfolios listed in PortWts are given by: PortReturn = PortWts * RetSeries(:,:,1)', where PortWts is a matrix in which each row contains the asset allocations of a portfolio. Each row of PortReturn corresponds to one of the portfolios identified in PortWts, and each column corresponds to one of the observations in RetSeries. See portopt and portstats for portfolio specification and optimization.

Examples

Create sample returns for three stocks over 10 periods.

See Also

ewstats, portopt, portstats, randn, ret2tick


  portrand portstats