Skip to content

senpaden/Portfolio_Optimization_SP25

Repository files navigation

Portfolio Optimization (latest update: Jul 2025)

Keywords: Risk Modeling, Linear Programming, Mathematical Optimization, AMPL, Python, Colab, Excel, Matplotlib
Summary: This project develops a simplified, accessible model for portfolio optimization using linear programming to minimize risk while meeting a target return.


Project Status

Phase 1 (April–May 2025)
Initial model development completed by Ramisa Tahsin Rahman, Mariam Fatima, and Sen Paden.
Special thanks to Dylan Shepardson for early feedback and planning guidance.

Phase 2 (Ongoing)
Enhancements proposed by Sen Paden include:

  • Backtesting using historical data (e.g., 2015–2020 for training, 2020–2025 for evaluation)
  • Evaluation of model assumptions under different market scenarios
  • Benchmarking against real-world data to assess robustness and credibility

Motivation and Objective

Investors seek to maximize returns while minimizing risk. A high-risk stock is more volatile and susceptible to losses, whereas low-risk investments often yield lower returns. However, eliminating all risk is not ideal, as it usually limits potential gains. Therefore, investors aim to construct an optimal portfolio that meets or exceeds a target return while keeping risk as low as possible. Preferences may vary depending on individual financial goals, as some investors may accept higher risk in pursuit of higher returns.

=> We focus on applying optimization to build a stock portfolio minimizing risk, subject to constraints, while meeting a minimum target return

Methodology and Key Results

Formulation

  • Modeled as a Linear Programming (LP) minimization problem
  • Objective: Minimize total portfolio risk
  • Decision variables: investment weights per stock

Data and Models

  • Data collected from Yahoo Finance and Nasdaq
  • Metrics calculated: return on investment, expected return, variance (risk)
  • Two LP models developed: baseline (budget constraint only) and sector-constrained

Results

  • Baseline model concentrated investments in 1–2 stocks
  • Sector-constrained model improved diversification with slightly increased risk
  • Trade-off between strict optimality and practical diversification

Documentation

For more details on Methods,Results, Visualization and Interpretation, Discussion, see the PDF:
Snippet_of_Project_Documentation.pdf


Tools Used

  • Python
  • AMPL
  • Google Colab
  • NumPy
  • Matplotlib
  • Excel

About

Risk modeling, mathematical optimization, AMPL, Python, Colab, Excel, Matplotlib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors