Simulated portfolio returns using dynamic risk allocation
收藏NIAID Data Ecosystem2026-05-01 收录
下载链接:
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-23



