Project Case StudyPortfolio Optimization

Portfolio Optimization Lab

Phase II of my graduate research dives into risk-adjusted portfolio construction. Using R (tidyquant, PortfolioAnalytics, PerformanceAnalytics), I simulated 5,000 Monte Carlo portfolios, analyzed factor exposure, and benchmarked custom strategies against the S&P 500. This dashboard distills the findings into an interactive investor-ready deliverable.

Skills: R · Monte Carlo Simulation · Factor Analytics · Data VisualizationYear: 2025
← Back to all projects

Research focus

Modern portfolio theory brought to life

Recruiters often ask how I approach portfolio construction. This project answers with data: efficient frontier simulations, Sharpe improvements, S&P outperformance months, and factor regression insights that isolate true alpha.

Portfolio AnalyticsNew Highlight

Portfolio Optimization Lab

This project distills the insights from my “Financial Modeling” coursework and @Phase2_Group1 research. Using R (tidyquant, PortfolioAnalytics, PerformanceAnalytics), I simulated 5,000 allocations across 24 stocks, mapped the efficient frontier, and benchmarked optimized, naive, and thematic portfolios versus the S&P 500.

Efficient Frontier & Scenario Comparison

Each point = simulated portfolio

Efficient Frontier (Risk vs Return)

Optimal PortfolioMax Sharpe

Monte Carlo simulation surfaced this weight mix as the efficient frontier tangent portfolio, delivering the best risk-adjusted return.

Return
8.2%
Risk
10.2%
Sharpe
0.34
Beta
0.92
Jensen’s α
1.4%
Naive PortfolioEqual Weight

Benchmark portfolio distributing capital evenly across the 24 names to contrast disciplined optimization with naive allocation.

Return
7.3%
Risk
11.8%
Sharpe
0.27
Beta
0.99
Jensen’s α
0.4%
Custom PortfolioThematic Tilt

Hand-crafted weights reflect sector tilts and conviction bets; backtests show consistent alpha after controlling for factor exposures.

Return
8.7%
Risk
12.5%
Sharpe
0.31
Beta
1.08
Jensen’s α
1.1%
S&P 500Benchmark

Used as the market proxy to measure excess performance, beta, and Jensen’s alpha across optimized and heuristic allocations.

Return
6.9%
Risk
10.9%
Sharpe
0.25
Beta
1.00
Jensen’s α
0.0%

Factor Exposures (Fama-French 5)

Regression coefficients vs. S&P 500
FactorOptimalNaiveCustom
Market (MKT)0.921.011.08
Size (SMB)-0.080.040.11
Value (HML)-0.050.070.02
Profitability (RMW)0.060.010.12
Investment (CMA)-0.03-0.020.05

Notebook Highlights

  • 24-security universe spanning tech, consumer staples, industrials, and financials.
  • 5,000 Monte Carlo portfolios evaluated monthly using Yahoo Finance data from 2010–2025.
  • Factor regressions (CAPM + Fama-French 5) reveal how tilts drive alpha beyond market beta.
  • Interactive dashboards compare optimized, naive, and thematic strategies against the S&P 500.

Implementation Notes

  • Translated R outputs (`Phase2_Group1.R`) into a reusable TypeScript model (`lib/portfolioLab.ts`) capturing the efficient frontier, highlighted portfolios, and factor loadings.
  • Designed the `PortfolioLab` component with Recharts to visualise frontier trade-offs, KPI cards, and factor tables in a finance-friendly aesthetic.
  • Focused on narrative clarity: recruiters can instantly see how optimized, naive, and custom allocations differ in risk, return, and alpha.