Reinforcement Learning for Stock Transactions

Ziyi Zhou, Nicholas Stern, Julien Laasri
5/22/2025
cs.LG
rl

No confident code implementation found for this paper.

Abstract

Much research has been done to analyze the stock market. After all, if one can determine a pattern in the chaotic frenzy of transactions, then they could make a hefty profit from capitalizing on these insights.

Show full abstract

As such, the goal of our project was to apply reinforcement learning (RL) to determine the best time to buy a stock within a given time frame. With only a few adjustments, our model can be extended to identify the best time to sell a stock as well. In order to use the format of free, real-world data to train the model, we define our own Markov Decision Process (MDP) problem. These two papers [5] [6] helped us in formulating the state space and the reward system of our MDP problem. We train a series of agents using Q-Learning, Q-Learning with linear function approximation, and deep Q-Learning. In addition, we try to predict the stock prices using machine learning regression and classification models. We then compare our agents to see if they converge on a policy, and if so, which one learned the best policy to maximize profit on the stock market.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhou2025reinforcement,
  title  = {Reinforcement Learning for Stock Transactions},
  author = {Ziyi Zhou and Nicholas Stern and Julien Laasri},
  year   = {2025},
  eprint = {2505.16099},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.16099v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.16099.svg)](https://codeofpaper.com/paper/2505.16099)

Discussion