Forecasting Upward and Downward Daily Movements in Petrobras Stock Using Machine Learning Techniques: 14 Years of Out-of-Sample Results

Read full text Summarise with VIRAT
Authors: Priantti Bruno
Cited by: 0

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

This study investigates the application of Data Science and Machine Learning techniques to predictthe directional behavior of Petrobras (PETR4) stock returns, classifying them as positive (upward)or negative (downward). A structured machine learning pipeline is developed to efficiently organizeand process historical market data, starting from data acquisition and proceeding through rollingwindow segmentation with distinct development and production phases.Within each rolling window, input features and the target variable are computed, followed by adevelopment stage that includes model training and testing. Several classification models are eval-uated, including Decision Trees, Logistic Regression, Gradient Boosting, and K-Nearest Neighbors.The models are compared based on classification performance metrics, and the best-performing modelin each window is selected for deployment in the production phase, where it generates out-of-samplepredictions.This rolling window framework is applied over the period from 2010 to 2023, allowing for a realis-tic simulation of model deployment under evolving market conditions. The results are systematicallyrecorded and analyzed, demonstrating the effectiveness and robustness of the proposed methodology.Despite the inherent challenges of financial return prediction, the majority of the models achievedclassification accuracy above 50%, with an average accuracy of approximately 53%, indicating statis-tically meaningful predictive power in a highly stochastic environment.

Fields of Study & Subjects

Stock Market Forecasting Methods Financial Markets and Investment Strategies Forecasting Techniques and Applications

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
12 January 2026
Language
EN