Description Usage Arguments Details Value Author(s)
Simulate self-independent returns using Choleski Decomposition where correlation depends on the order of assets from multvariate normal distribution
1 2 3 4 5 |
Tn |
Number of periods, excluding time 0. |
N |
Number of assets |
M |
Number of realization |
par |
The parameter in the default correlation function. See Details. |
rho_do |
The function of correlation between assets. See below for the default function. |
dependent |
If the following simulated series are added on the basis of existing ones. |
mu |
Either a scalar or a vector with length N contains mean of the assets returns |
vol |
Either a scalar or a vector with length N contains volatilities of the assets returns |
varcor |
The variance covariance matrix of the assets. Diagonal elements must equal to vol squared.
If supplied, arguments |
The correlation function determines the correlation between asset by the difference between the index of the assets.
The default function is rho = exp(-par * |distance|)
.
User defined correlation function need to have two arguments i
and j
to indicate the position of assets
List of returns
Yangzhuoran Yang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.