Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Portfolio Optimization with Machine Learning: Predicting Market Returns and Portfolio Weights
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology, Division of Systems and Control.
2025 (English)Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Portfolio optimization is a central problem in finance, with traditional approaches often relying on forecasts of expected returns and covariances. With the growing adoption of machine learning in finance, return forecasting using ML techniques has become increasingly common. More recently, an alternative approach has been proposed where the portfolio weights are learned directly, bypassing the need to predict returns explicitly. Despite growing interest, there exists limited empirical work comparing these two methods, using different models and hyperparameter settings.

This thesis investigates and compares two machine learning-based approaches to portfolio optimization for futures contracts: a benchmark method that predicts future market returns, and a direct method that estimates portfolio weights without explicit return forecasts. Both methods are implemented using linear regression, multilayer perceptrons (MLPs), and extreme gradient boosting (XGBoost), with systematic hyperparameter tuning. The models are evaluated on both in-sample and out-of-sample periods, using risk-adjusted performance metrics such as Sharpe ratio, NCVaR, and maximum drawdown.

The results show that short return windows and moderate regularization improve generalization, and that simpler model architectures often yield better out-of-sample performance. Neither the benchmark nor the direct method was a clear winner in terms of cumulative risk-adjusted returns; the performances heavily depend on the machine learning model used, as well as the hyperparameters. One of the best results in terms of Sharpe, was achieved by combining predictions from both the benchmark and direct method with several machine learning models.This illustrates the value of ensemble approaches in financial modeling and suggests that rather than competing, return-based and direct methods can complement each other to improve portfolio performance. 

Place, publisher, year, edition, pages
2025. , p. 61
Series
UPTEC F, ISSN 1401-5757 ; 25063
Keywords [en]
machine learning, optimization, quantitative finance, hedge fund, futures, trading
National Category
Probability Theory and Statistics Artificial Intelligence Other Computer and Information Science
Identifiers
URN: urn:nbn:se:uu:diva-562774OAI: oai:DiVA.org:uu-562774DiVA, id: diva2:1979736
External cooperation
Lynx Asset Management AB
Educational program
Master Programme in Engineering Physics
Supervisors
Examiners
Available from: 2025-07-01 Created: 2025-06-30 Last updated: 2025-07-01Bibliographically approved

Open Access in DiVA

fulltext(5081 kB)324 downloads
File information
File name FULLTEXT01.pdfFile size 5081 kBChecksum SHA-512
6e1dc565b1abcbce794bfa40ecef9c9b3c9526f1d182dcbffe753ca71297eaa76c3d2d1116e2d9bd885c96a2278179f1d97f91d090c3b9fda77792c13badefd1
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Graf Brolund, Åke
By organisation
Division of Systems and Control
Probability Theory and StatisticsArtificial IntelligenceOther Computer and Information Science

Search outside of DiVA

GoogleGoogle Scholar
Total: 325 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 667 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf