Skip to content

costantinontario/Optimal-Rebalancing-Strategy-using-Dynamic-Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimal Rebalancing Strategy using Dynamic Programming

This project is a Python implementation of the MIT Working Paper: 'Optimal Rebalancing Strategy Using Dynamic Programming for Institutional Portfolios'

Authors: Walter Sun, Ayres Fan, Li-Wei Chen, Tom Schouwenaars, Marius A. Albota

Motivation & Model Description

Financial institutions generally employ fixed methods to re-balance portfolios, such as calendar basis or tolerance band triggers. In the proposed setup, the investor has a risk profile derived from a log wealth utility function. This utility function identifies the investor as a risk-averse individual; therefore the optimal portfolio, minimizing Variance can be calculated using Mean Variance Optimization.

Assuming a portfolio employs this optimal weight in period 0, the subsequent-in-time weights will drift due to the different returns in the assets. Standard strategies only take into account specific bounds for weight movements; once this threshold is reached, the portfolio is rebalanced to the optimal portfolio (the weight that minimizes Variance). The shortfall of these decisions is they do not account for costs related to the rebalancing. The strategy used in the literature, and replicated in the current application, makes rebalancing decisions dynamically, that is on the basis of transaction costs, sub-optimality costs and future costs in each period, for the whole sample.

Transaction costs of rebalancing are modeled linearly in basis points. Furthermore, not rebalancing leads to the portfolio deviating from the optimal portfolio, resulting in a lower utility for the investor. This leads to an increase in sub-optimality costs (i.e. the utility shortfall in comparison to having a perfectly balanced optimal portfolio – measured in basis points); these are modeled using Certainty Equivalent Costs.

Finally, the rebalancing decision takes into account the future costs of rebalancing J_(t+1) (w_(t+1) ); this results in a dynamic model, characterized by the discrete-time Bellman Equation:

J_t^* (w_t )= 〖min〗(u_t ) E[〖TC〗(u_t )+ϵ_(u_t )+J_(t+1) (w_(t+1) )]

Information

  • Removre '#' to plot the required plots if needed
  • The Code generates a Optimal.csv file containing the Dynamic Programming Information:
    1. 'Date' & 'Close_A' & 'Close_B': Initial inputs
    2. 'Returns_A' & 'Returns_B': Returns of Assets A and B using the 'Close_A' and 'Close_B'
    3. 'WeightA': Weight of asset A in each period assuming NO REBALANCING
    4. 'Investment_A' and 'Investment_B': Investments (in $) in Asset A and B using 'WeightA' (i.e with NO REBALANCING)
    5. 'Total_Returns': Total Return per period calculated from change in 'Investment_A' and 'Investment_B' period over period
    6. 'Expected_Utility_Current': Expected Utility using 'WeightA' (i.e. with NO REBALANCING)
    7. 'Variance_Optimal' & 'Expected_Utility_Optimal': Variance and Expected Utility with Optimal Weight (i.e. weight that minimises Variance - Mean Variance Optimization)
    8. 'TC' & 'CEC': Transaction Costs and Certainty Equivalent Costs to move to weight that minimises costs (i.e. 'Min_Cost_Weight')
    9. 'Min_Cost_Weight': Weight that minimises TC + CEC in every period
    10. 'Low_Bound' & 'High_Bound': Thresholds to use for Rebalancing Decision (intersection between TC and CEC)
    11. 'Rebalance': Decision to Rebalance (1 = Rebalance, 0 = Do Not Rebalance)
    12. 'New_WeightA': Weight after Dynamic Programming Decision (subsequently also updates 'Investment_A' and 'Investment_B')

About

Optimal Rebalancing Strategy Using Dynamic Programming for Institutional Portfolios

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages