战略资产配置matlab,风险和资产配置

Risk and Asset Allocation

These routines support the book "Risk and Asset Allocation" Springer Finance, by A. Meucci, see http://www.symmys.com

The routines include many new features:

- more uni-, multi- and matrix-variate distributions

- more copulas

- more graphical representations

- more analyses in terms of the location-dispersion ellipsoid.

- best replication / best factor selection

- FFT-based projection of a distribution to the investment horizon

- caveats about delta/gamma pricing

- step-by-step evaluation of a generic estimator

- non-parametric estimators

- multivariate elliptical maximum-likelihood estimators

- shrinkage estimators: Stein and Ledoit-Wolf, Bayesian classical equivalent

- robust estimators: Hubert M, high-breakdown minimum volume ellipsoid

- missing-data techniques: EM algorithm, uneven-series conditional estimation

- stochastic dominance

- extreme value theory for VaR

- Cornish-Fisher approximation for VaR

- kernel-based contribution to VaR and expected shortfall from different risk-factors

- mean-variance analysis and pitfalls (different horizons, compounded vs. linear returns, etc...)

- Bayesian estimation (multivariate analytical, Monte Carlo Markov Chains, priors for correlation matrices)

- estimation risk evaluation: opportunity cost of estimation-based allocations

- Black Litterman allocation

- robust optimization (calls SeDuMi to perform cone programming)

- robust Bayesian allocation

- more...

In addition to these MATLAB routines, at www.symmys.com the reader can find other freely downloadable complementary materials:

- the "Technical Appendices", a booklet with the proofs of the results presented in the books and used in the routines

- the "Slides", a set of presentations that walk the reader through the whole book

- the "Errata", a few typos in the first two reprints of the book

- the "Sample", an excerpt of the book.

Any feedback on the above materials is highly appreciated: please refer to www.symmys.com to contact the author.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
马科维茨模型是一种用于资产配置的数学模型,该模型能够帮助投资者在风险和收益之间进行平衡。在MATLAB中,可以使用优化工具箱来实现马科维茨模型。 以下是一个简单的MATLAB代码示例,演示如何使用马科维茨模型进行资产配置: ```matlab % 定义投资组合 stocks = {'Stock1', 'Stock2', 'Stock3', 'Stock4', 'Stock5'}; expReturns = [0.05, 0.1, 0.12, 0.07, 0.08]; % 预期收益率 expCovariance = [0.0064, 0.0008, 0.0012, -0.0016, 0.0020; % 预期协方差 0.0008, 0.0025, 0.0002, 0.0010, -0.0010; 0.0012, 0.0002, 0.0049, 0.0016, 0.0020; -0.0016, 0.0010, 0.0016, 0.0100, -0.0030; 0.0020, -0.0010, 0.0020, -0.0030, 0.0049]; % 定义目标函数 fun = @(w) -sum(w.*expReturns)/sqrt(w'*expCovariance*w); % 定义约束条件 Aeq = ones(1,5); beq = 1; lb = zeros(5,1); ub = ones(5,1); % 使用优化工具箱解决问题 w0 = ones(5,1)/5; options = optimoptions('fmincon','Algorithm','interior-point'); w = fmincon(fun,w0,[],[],Aeq,beq,lb,ub,[],options); % 输出结果 disp('投资组合的权重:') disp(w') ``` 在上面的代码中,`expReturns`和`expCovariance`分别是预期收益率和协方差矩阵。然后,我们定义了一个目标函数,即最小化投资组合的风险,同时最大化预期收益率。最后,我们使用`fmincon`函数来解决问题,它是MATLAB优化工具箱中的一个函数,可以用于求解非线性约束的最小化问题。函数的输出是投资组合的权重,即每个股票在总投资中的占比。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值