five

Simulated portfolio returns using dynamic risk allocation

收藏
Mendeley Data2024-04-29 更新2024-06-26 收录
下载链接:
https://data.mendeley.com/datasets/6p9vpv3pjf
下载链接
链接失效反馈
官方服务:
资源简介:
This code simulates data for analyzing the performance of a dynamic risk allocation strategy over multiple time periods. Here's a breakdown of the data generation and analysis process: Simulated Data: Random returns are generated for a specified number of assets (3 in this case) over a certain number of time periods (100 in this case). These returns follow a normal distribution with a mean of 0.05 and a standard deviation of 0.1. Simulated transaction costs, model complexity, data requirements, and scalability factors are generated to represent different aspects of the dynamic risk allocation strategy. Dynamic Risk Allocation Strategy: A function dynamic_risk_allocation is defined to implement the dynamic risk allocation strategy. Within this function, portfolio weights are calculated based on the inverse of the standard deviation of returns and adjusted for model complexity. Transaction costs are subtracted from the weights, and negative weights are set to zero to ensure non-negativity. Finally, portfolio returns are calculated as the weighted sum of asset returns. Portfolio Returns Visualization: The calculated portfolio returns using the dynamic risk allocation strategy are plotted over time. The plot provides insights into the performance of the portfolio strategy, showing how returns vary across different time periods.
创建时间:
2024-04-25
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作