Evidence-based investing research
Value Investing Strategy (Strategy Overview)
Allocations for November 2026 (Final)
Cash TLT LQD SPY
Momentum Investing Strategy (Strategy Overview)
Allocations for November 2026 (Final)
1st ETF 2nd ETF 3rd ETF

Making AI Do Numbers to Predict Stock Returns

| | Posted in: Investing Expertise

Key Insight

StockGPT, trained on 1926–2000 daily U.S. stock returns, produced gross equal-weighted decile hedge portfolios with 119% average annualized return versus 27% value-weighted (tests 2001–2023); a one-day formation delay cut the equal-weighted figure to 26%, with costs and liquidity cautions.

Can large language models like ChatGPT work with numbers to support technical analysis of stock returns rather than just words to support sentiment analysis? In his April 2024 paper entitled "StockGPT: A GenAI Model for Stock Prediction and Trading", Dat Mai introduces StockGPT, an autoregressive model trained and tested on stock returns rather than firm news. He segments 1926 through 2000 daily U.S. stock returns into intervals (tokens) and then trains StockGPT to identify predictive return patterns. He then tests the model, using daily returns over the past 256 trading days to predict next-day returns during 2001 through 2023. He assesses accuracy of return predictions by:

  1. Running cross sectional regressions of actual versus predicted daily returns.
  2. Each day at the market close: (1) removing stocks in the lowest tenth of market values; and, (2) reforming an equal-weighted or value-weighted hedge portfolio that is long (short) stocks within the highest (lowest) tenth, or decile, of predicted returns.

He performs sensitivity tests that account for portfolio costs, portfolio construction delay and elimination of low-priced stocks. Using daily returns for all common stocks traded on NYSE, AMEX or NASDAQ during 1926 through 2023, he finds that:

Read this study free

The rest of this study: 340 words and 1 chart.

Enter your email and we’ll send you a link to this article. 3 premium articles a month, no password or card.

Guru Grades

1,206 predictions by 42 market gurus since 2022: 41% right. Always saying stocks will go higher: 62%.

As of the Nov 25, 2026 close

  1. 1 Ed Yardeni A 71%
  2. Always bullish B 62%
  3. 2 Jim Paulsen B 61%
  4. 3 Sam Stovall B 58%
  5. 4 Adam Turnquist B 58%
  6. 5 Ryan Detrick B 56%

Full leaderboard ›