Data · dataset · 2025
Replication data for: study of economic variables for stock market trend prediction via machine learning
Listed in REDU - Unicamp Institutional Research Data Repository
This package contains the input datasets, experimental results, and source codes developed during the scientific initiation research project entitled Study of Economic Variables for Stock Market Trend Prediction via Machine Learning, funded by FAPESP and conducted at the Universidade Estadual de Campinas (UNICAMP).
Description
The following files are included: File Data_ExperimentalInputs.zip: contains all the input datasets used throughout the research.
This includes historical stock price data (obtained via the Yahoo Finance API), macroeconomic indicators (e.g., SELIC, IPCA, PIB), and microeconomic indicators (e.g., ROE, P/L, VPA) used as features in the machine learning models. This data is already preprocessed and ready for use. File Data_ExperimentalResults.zip: includes the complete experimental results, such as model evaluation metrics (MAE, MSE, RMSE, R²), prediction graphs, comparison tables of different strategies (including the proposed method and the buy-and-hold approach), and return simulations.
Read the rest (3 more)
File SourceCodes.zip: contains all the Python source codes used in the study, structured into the following subfolders: CodigosExperimentoFeatures: scripts and notebooks implementing the main experiments using different combinations of input features (price only, macro, micro, and combined). ExperimentoKfold: same experiments as above, but with K-Fold cross-validation to assess the generalization capacity of the models.
ExperimentosPadrao: baseline models trained only with previous stock prices, used as a reference point for performance comparisons. CodigosTrade: scripts used to simulate the investment strategy based on the model forecasts and to calculate portfolio performance. Resultados: output files generated by the code, including result tables, CSVs, and graphical analyses.
This organization ensures full transparency and reproducibility of all the steps of the research, from data preparation to each strategy evaluation.
Links
Where it is published
- Dataverse dataset page redu.unicamp.br/dataset.xhtml?persistentId=doi%3A10.25824%2Fredu%2FLISCF2 ↗
landing page · from redu unicamp br
- DOI doi.org/10.25824/redu/liscf2 ↗
DOI / persistent id · from redu unicamp br
Catalogue records · 1
- Dataverse API redu.unicamp.br/api/datasets/:persistentId/?persistentId=doi%3A10.25824%2Fredu… ↗
metadata API · from redu unicamp br
Topics
- Stated by source
- Computer and Information Science
- From keywords
- Computer Science & AI · Economics & Finance · Machine learning
Provenance · 1 source records, 10 field assertions
| Source | Key | Last seen | Raw |
|---|---|---|---|
| REDU - Unicamp Institutional Research Data Repository | doi:10.25824/redu/LISCF2 | 12 d ago | JSON v1 |
| Field | Assertion | Extractor | Evidence |
|---|---|---|---|
| concepts[field].anzsrc:group:4611 | mapping · redu unicamp br | vocabulary-mapper@1.0.0 | keywords['Machine learning'] |
| concepts[field].dataverse_subject:computer-and-information-science | source · redu unicamp br | connector:redu_unicamp_br@1.0.0 | /subjects |
| concepts[field].local:field:computer-science-ai | mapping · redu unicamp br | connector:redu_unicamp_br@1.0.0 | /subjects |
| concepts[field].local:field:economics-finance | mapping · redu unicamp br | connector:redu_unicamp_br@1.0.0 | /subjects |
| created_date | source · redu unicamp br | connector:redu_unicamp_br@1.0.0 | |
| description | source · redu unicamp br | connector:redu_unicamp_br@1.0.0 | /description |
| publication_date | source · redu unicamp br | connector:redu_unicamp_br@1.0.0 | |
| title | source · redu unicamp br | connector:redu_unicamp_br@1.0.0 | /name |
| updated_date | source · redu unicamp br | connector:redu_unicamp_br@1.0.0 | |
| version_label | source · redu unicamp br | connector:redu_unicamp_br@1.0.0 |