Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Portfolio Optimization with MATLAB

Overview

This project optimizes a portfolio of 25 equities by calculating the Maximum Sharpe Ratio Portfolio and the Maximum Return Portfolio. The analysis is based on monthly returns, using data from an Excel file (25eq2022.xlsx).

Files

  • 25eq2022.xlsx – Contains historical adjusted prices and monthly returns.
    • Sheet: 'adj pr' – Adjusted prices of stocks.
    • Sheet: 'rtn' – Precomputed monthly returns.

Methodology

  1. Load data from Excel – Extract stock symbols and monthly return data.
  2. Set up Portfolio Optimization – Define constraints and risk-free rate.
  3. Optimize Portfolios:
    • Maximum Sharpe Ratio Portfolio – Balances return and risk.
    • Maximum Return Portfolio – Seeks highest expected return.

Here is a graph of our portfolio returns against SPY. It should be noted that this may not be exactly representative of the portfolio, as a portfolio trained on past data is bound to outperform when backtested on the same data. image

About

A simple stock optimizer I created for a Computational Finance homework. I used some finance tools within MATLAB which made this much easier. The risk-free rate can be changed and there can be multiple ways of doing, such as maximizing return for an amount or risk, or having the highest Sharpe Ratio possible.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages