Performance of mixture of experts models in predicting stock data : case forecasting the development of selected S&P500 large-cap stocks
Entola, Atte (2026)
Pro gradu -tutkielma
Entola, Atte
2026
School of Business and Management, Kauppatieteet
Kaikki oikeudet pidätetään.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi-fe20261007132500
https://urn.fi/URN:NBN:fi-fe20261007132500
Tiivistelmä
The objective of this master’s thesis is to examine the performance of a Mixture of Experts model in predicting stock market data and compare it to a Random Forest benchmark. The main motivator for this is the heterogeneous and non-stationary nature of financial data, where the return behaviour varies according to different macro and stock-specific factors.
A literature review was conducted in this study. It shows that Mixture of Experts models have been increasingly utilized in financial prediction tasks due to their ability to model heterogeneous data. The empirical part of the thesis was conducted as a quantitative empirical study by using historical data of 15 large-cap US companies belonging to the S&P 500 index as well as macroeconomic data from 2009 to 2024. The dependent variable was a 10-trading-day logarithmic return. For testing the models, an expanding walk-forward setting was used for years 2019-2024. The predictive performance was measured with RMSE, MAE, R², and directional accuracy metrics. Also, computational efficiency as well as interpretability were considered.
According to the results of this study, MoE was able to achieve marginally better RMSE, MAE, and R² values than the Random Forest. However, both models’ R² values were close to zero. Previous studies have reported stronger results for MoE-based models, however, their architectures were often more complex or had richer data. Overall, the MoE was competitive but did not demonstrate clear superiority with this data and time horizon. Tämän maisteritutkielman tavoitteena on tutkia Mixture of Experts mallien suorituskykyä osakedatan ennustamisessa sekä verrata sitä Random Forest vertailumalliin. Tutkimuksen taustalla on osakemarkkinoiden heterogeeninen sekä epästationaarinen luonne, jossa tuottojen käyttäytymiseen vaikuttaa makrotaloudelliset sekä osakekohtaiset tekijät.
Kirjallisuuskatsaus toteutettiin osana tutkielmaa. Se osoiti, että Mixture of Experts malleja on alettu hyödyntämään taloudellisen datan ennustamisessa yhä enemmän, koska niiden rakenne mahdollistaa heterogeenisyyden huomioimisen. Tutkimuksen empiirinen osuus toteutettiin kvantitatiivisena tutkimuksena käyttäen historiallista osakedataa 15 suuryrityksestä, jotka kuuluvat S&P 500 -indeksiin, sekä makrodataa vuosilta 2009–2024. Ennustettava muuttuja tutkimuksessa oli 10 kaupankäyntipäivän logaritminen tuotto. Mallin testaamista varten käytettiin laajennettua walk-forward-menetelmää vuosina 2019–2024. Ennustamiskykyä mitattiin RMSE, MAE, R² ja suuntatarkkuusmittareilla. Lisäksi, laskennallinen tehokkuus sekä tulkittavuus otettiin huomioon.
Tutkimustuloksista voidaan todeta, että MoE-malli oli hieman parempi RMSE-, MAE- ja R²-mittareilla mitattuna Random Forest -malliin vertailtuna. Huomioitavaa on kuitenkin se, että molempien mallien R²-arvo oli lähellä nollaa. Aikaisemmissa tutkimuksissa on raportoitu parempia tuloksia MoE-mallien osalta, vaikka usein niiden arkkitehtuurit olivat kompleksisempia tai aineiston rakenne rikkaampi. Kokonaisuutena MoE-malli ei osoittanut selkeää paremmuutta tällä aineistolla ja aikahorisontilla.
A literature review was conducted in this study. It shows that Mixture of Experts models have been increasingly utilized in financial prediction tasks due to their ability to model heterogeneous data. The empirical part of the thesis was conducted as a quantitative empirical study by using historical data of 15 large-cap US companies belonging to the S&P 500 index as well as macroeconomic data from 2009 to 2024. The dependent variable was a 10-trading-day logarithmic return. For testing the models, an expanding walk-forward setting was used for years 2019-2024. The predictive performance was measured with RMSE, MAE, R², and directional accuracy metrics. Also, computational efficiency as well as interpretability were considered.
According to the results of this study, MoE was able to achieve marginally better RMSE, MAE, and R² values than the Random Forest. However, both models’ R² values were close to zero. Previous studies have reported stronger results for MoE-based models, however, their architectures were often more complex or had richer data. Overall, the MoE was competitive but did not demonstrate clear superiority with this data and time horizon.
Kirjallisuuskatsaus toteutettiin osana tutkielmaa. Se osoiti, että Mixture of Experts malleja on alettu hyödyntämään taloudellisen datan ennustamisessa yhä enemmän, koska niiden rakenne mahdollistaa heterogeenisyyden huomioimisen. Tutkimuksen empiirinen osuus toteutettiin kvantitatiivisena tutkimuksena käyttäen historiallista osakedataa 15 suuryrityksestä, jotka kuuluvat S&P 500 -indeksiin, sekä makrodataa vuosilta 2009–2024. Ennustettava muuttuja tutkimuksessa oli 10 kaupankäyntipäivän logaritminen tuotto. Mallin testaamista varten käytettiin laajennettua walk-forward-menetelmää vuosina 2019–2024. Ennustamiskykyä mitattiin RMSE, MAE, R² ja suuntatarkkuusmittareilla. Lisäksi, laskennallinen tehokkuus sekä tulkittavuus otettiin huomioon.
Tutkimustuloksista voidaan todeta, että MoE-malli oli hieman parempi RMSE-, MAE- ja R²-mittareilla mitattuna Random Forest -malliin vertailtuna. Huomioitavaa on kuitenkin se, että molempien mallien R²-arvo oli lähellä nollaa. Aikaisemmissa tutkimuksissa on raportoitu parempia tuloksia MoE-mallien osalta, vaikka usein niiden arkkitehtuurit olivat kompleksisempia tai aineiston rakenne rikkaampi. Kokonaisuutena MoE-malli ei osoittanut selkeää paremmuutta tällä aineistolla ja aikahorisontilla.
