La boutique est ouverte

Nous construisons les machines Workstation AI pour les sites web, les agents IA et l'entraînement de LLM — configurez-les et achetez-les en ligne.

Obtenir les prix pro
Produits IA
Labs IAAgents OpenAIAgents ClaudeGrok BotCRM natif Workstation AIMarketingTous les produits
Solutions IA
Solutions IAIA appliquéeAgents IAIA générativeAutomatisation par IAMontée en compétence IAOffres IA pour PMELaboratoire IA d'entrepriseStations de travail IAMatériel et logiciels NVIDIACalcul accéléré NVIDIAIA privéeIA en périphérieIA par secteur
Services IA
Services IAModernisation des plateformesIngénierie numériqueFondations data et IAOpérations autonomesConseil IAAutomatisation DevOpsCybersécuritéDéveloppement logicielCréation d'agentsMise en place MLOpsLocation de GPU
À propos
À proposEntrepriseNotre histoirePartenairesTémoignages clients
Centres de données IA
Centres de données IACloud privé GPUClusters GPULocation de GPU
Analyses IASérie JevLabo de benchmarksChoix de modèles
Notes techniques
Documentation
OS LinuxUbuntuRed Hat Enterprise LinuxSUSE LinuxAlpine LinuxDebian, Rocky & AlmaLinux
Plateformes cloud d'IAAWS & Amazon BedrockGoogle Cloud & Vertex AIMicrosoft Azure & AI FoundryClouds et places de marché GPU
Centres de données IA privésPour les cabinets d'avocatsPour les cabinets comptablesPlateformes sur siteCloud entièrement sécurisé
OutilsRing PromoterJobshout
Actualités
Blog
Nous contacterSe connecter

Stations de travail IA, logiciels multi-agents IA, infrastructure GPU et solutions d'agents intelligents pour les entreprises modernes.

Nous contacter

Solutions IA

IA appliquéeAgents IAIA générativeAutomatisation par IAMontée en compétence IAOffres IA pour PMELaboratoire IA d'entrepriseIA par secteur

Produits

Tous les produitsCRM & ERP natifs Workstation AIMarketingAgents OpenAIRing PromoterJobshout

Entreprise

À proposEntrepriseCentres de données IAPourquoi WorkstationPartenairesTémoignages clientsTarifsContactTenthMatrix

Ressources

Analyses IANotes techniquesDocumentationOS LinuxPlateformes cloud d'IACentres de données IA privésBlogRechercherPlan du site
Siège social au Royaume-Uni
77-79 Marlowes, Hemel Hempstead HP1 1LFItinéraire : prenez la sortie 20 de la M25, Outer LondonN° d'entreprise: 11641870Lun - Ven : 9h00 - 18h00 GMT
+44 7515 356 146
Bureau de Belgique
Workstation SRL, Rue Vanderkindere 34, 1180 Uccle, BrusselsBE 0751.518.683Lun - Ven : 9h00 - 18h00 CET
+32 492 45 67 46
Bureau de l'Inde
#159 Sector 9, Pocket 1, DDA Flats, 110077 Dwarka, New Delhi
+91 98881 98841
Bureau de Taïwan
3F, No. 2-4, Aisi Rd., Ren'ai Dist., Keelung City 200, Taiwan基隆市仁愛區愛四路2之4號3樓Lun - Ven : 9 h 00 - 18 h 00, heure de Taïwan (GMT+8)
+886 926 892 701+32 492 45 67 46
Bureau en Estonie
Aleksander Puškini tn 30-25, 20306 Narva, EstoniaLun - Ven : 9 h 00 - 18 h 00, heure d’Estonie (EET)
+32 492 45 67 46
Bureau et usine d’assemblage en Thaïlande
220 m.8 Detudom, Nong Yao, Det Udom, Ubonratchathani, Phon Ngam 34160, Thailand

© 2000-2026 Balinder Singh Walia. Tous droits réservés.

Le site web Workstation et l'ensemble de son contenu, ainsi que les API et extensions associées, sont protégés par le droit d'auteur de Balinder Singh Walia. balinder.walia@gmail.com

ConfidentialitéSuppression des donnéesCookiesConditions d'utilisationPlan du site web

NVIDIA, le logo NVIDIA, RTX, RTX PRO, Blackwell, CUDA, NVLink, MGX, Omniverse, Spectrum-X, Quantum, BlueField, DGX et HGX sont des marques commerciales et/ou des marques déposées de NVIDIA Corporation aux États-Unis et dans d'autres pays. AMD, le logo AMD Arrow, EPYC, Instinct, Ryzen et Threadripper sont des marques commerciales d'Advanced Micro Devices, Inc. Dell et PowerEdge sont des marques commerciales de Dell Inc. ou de ses filiales. Intel et Xeon sont des marques commerciales d'Intel Corporation ou de ses filiales. AMAX, AceleMax et LiquidMax sont des marques commerciales d'AMAX Engineering Corporation. Tous les autres noms de produits, logos et marques appartiennent à leurs propriétaires respectifs. Nous les utilisons uniquement pour identifier les produits que nous décrivons, fournissons ou prenons en charge ; leur utilisation ne signifie pas que leurs propriétaires nous cautionnent.

Loading blog...

Accueil / Blogs
Engineering

Inflated Results in Stock Forecasting

JobShout AI Blog Writer Agent (opens in a new window)26 novembre 20265 min read
83f97ce1 a9a6 4768 94ef be78315e3dc6

Developers across Manufacturing, Supermarkets, Banking, Education, HealthTech, FinTech and Tax Returns are increasingly asked to build models that touch financial data, even if finance is not their core domain. Whether it is hedging input costs for a manufacturer, pricing inventory for a supermarket chain, or building risk dashboards for a bank, the temptation is to reach for deep learning and report a single impressive number. In one-day-ahead S&P 500 forecasting that habit produces a specific set of inflated results that then get copied into other domains.

This article shows how to audit evaluation pipelines for stock forecasting and avoid three documented inflation patterns.

The Problem with Inflated Results

Study setup

The study examines one-day-ahead forecasting of the S&P 500 closing level using a 2006-2025 dataset that includes fundamental price data, macroeconomic indicators, and engineered technical features [1]. Within that unified preprocessing and chronological evaluation pipeline it benchmarks three model families: linear regression, vanilla recurrent neural networks (RNN), and long short-term memory networks (LSTM) [1].

Why metrics inflate

The authors find that published performance on deep-learning-for-stock-prediction is routinely inflated by methodological choices rather than genuine predictive skill. They identify three sources of result inflation that frequently appear in published methodologies: wavelet-denoised evaluation targets, the absence of a naive persistence baseline, and best-of-N replicate reporting [1].

For teams in regulated sectors like Banking, HealthTech and Tax Returns, inflated metrics translate directly into operational risk. A model that looks good on a paper curve can mislead capacity planning, treasury decisions, or compliance reporting. For Manufacturing and Supermarkets, the consequence is overconfidence in price or demand forecasts that drive procurement and inventory.

Key pitfalls to watch for

Pitfall What it looks like in practice Why it inflates results
Wavelet-denoised evaluation targets Smoothed target series used for scoring Removes noise the model will never see at inference
Missing naive persistence baseline No comparison to “tomorrow = today” Makes weak models appear useful
Best-of-N replicate reporting Reporting the best of 30 runs Hides variance and overfits to random seed

Wavelet-Denoised Evaluation Targets

Wavelet denoising of the evaluation target is one of the identified sources of inflation [1]. In stock forecasting the target is the next day’s closing level. Smoothing it before scoring makes errors look smaller because the model is effectively evaluated against a less volatile series than it will have to predict in production.

For FinTech and Banking developers, this is analogous to testing a fraud detector on cleaned labels. For Education and HealthTech teams who borrow time-series methods for enrollment or utilization forecasting, the same mismatch applies: the evaluation metric must be computed on the raw operational target, not a pre-smoothed version.

Keep the scoring target identical to what the business will consume. If you denoise for visualization, never use the denoised series for metric computation.

Naive Persistence Baseline

A naive persistence baseline — predicting the last observed value — is a minimal sanity check for any one-step forecast. The study’s identification of the absence of a naive persistence baseline as a source of inflation highlights how often deep models are reported without this comparison [1].

In Manufacturing, persistence is a strong baseline for commodity price inputs. In Supermarkets, yesterday’s sales often persist for stable SKUs. In Banking and FinTech, same-day carryover is a realistic null hypothesis for short horizons.

Report the delta to persistence, not just absolute error. If an LSTM cannot beat “tomorrow = today”, additional complexity adds cost without value.

Chronological evaluation pipeline with a naive persistence baseline. Raw market data goes through a chronological split into a train set, a validation set and a test set. The train set feeds model training; the validation set drives the hyperparameter choice, which also feeds model training. Training produces a forecast. The test set feeds a naive persistence baseline (tomorrow equals today). The forecast and the persistence baseline both go into metric computation, so the model is always scored against the baseline.
A chronological train, validation and test split in which every forecast is scored against a naive persistence baseline.

Best-of-N Replicate Reporting

Performance is reported using root mean squared error, mean absolute percentage error, and the Pearson correlation coefficient, averaged across N = 30 independent replicates per configuration [1]. Best-of-N reporting selects the single best replicate instead of averaging.

Reporting the best run hides instability and rewards random seed luck. For Tax Returns and Banking where auditability matters, you need a distribution, not a lottery winner.

A simple reporting guardrail:

import numpy as np

def report_metrics(runs):
  # runs: list of dicts with rmse, mape, corr
  rmse = np.mean([r['rmse'] for r in runs])
  mape = np.mean([r['mape'] for r in runs])
  corr = np.mean([r['corr'] for r in runs])
  rmse_std = np.std([r['rmse'] for r in runs])
  # never report max; report mean ± std
  return rmse, rmse_std, mape, corr

Evaluating Model Performance

Robust evaluation is chronological, not random. The pipeline used in the study is a unified preprocessing and chronological evaluation pipeline [1].

Metrics

Metrics are chosen to capture magnitude and direction. Performance is reported using root mean squared error, mean absolute percentage error, and the Pearson correlation coefficient, averaged across N = 30 independent replicates per configuration [1].

Discipline for production

For developers in the listed industries, the same discipline applies: lock the test window, avoid leakage from future features, and keep the evaluation target un-denoised. If you are forecasting demand for a supermarket or patient utilization for HealthTech, the operational target is what the business will actually pay for.

Optimizing Data Layout for Faster Training

Even when evaluation is honest, training efficiency matters for iteration speed. The runtime bottleneck of LSTM RNN is fully-connected (FC) layers [2]. Data layout optimization can speed up FC layers [2].

The study of layout optimization shows that applying data layout optimization, with other techniques that are shown in Appleyard et al.'s work, can give a maximum performance boost of 3 × over MXNet default and 1.5× over cuDNN implementations [2]. The authors observe that EcoRNN is always significantly better than Default and in most cases better than cuDNN in terms of training throughput [2].

For teams training recurrent models on time-series, this is about developer velocity and cost, not accuracy. In Manufacturing and Education where training budgets are constrained, a 1.5× throughput gain can enable more rigorous hyperparameter search without sacrificing the chronological evaluation discipline.

Practical checklist:

  • Keep data in a layout that matches the compute kernel for FC layers.
  • Benchmark against a naive baseline before any architecture change.
  • Report mean and variance across replicates, not the best run.
  • Evaluate on the raw operational target, not a smoothed proxy.

Honest evaluation, a simple baseline, and careful reporting protect you regardless of sector. The consequences differ — a bank faces regulatory exposure, a supermarket faces spoilage, a manufacturer faces supply disruption — but the mechanism for avoiding inflated results is identical.

References

  1. A Methodologically Rigorous Benchmark of Linear Regression,RNN, and LSTM for S&P 500 Forecasting:Identifying Sources of Performance Inflation in Financial DeepLearning — arxiv.org
  2. 20_zheng.pdf — microarch.org (7 December 2022)