商店现已上线

我们打造用于网站、AI 智能体和 LLM 训练的 Workstation AI 机器——在线配置并购买。

获取同行价格
AI 产品
AI 实验室NVIDIA AI EnterpriseOpenAI 智能体Claude 代理Grok BotWorkstation AI 原生 CRM营销所有产品
AI 解决方案
AI 解决方案应用型 AIAI 智能体生成式 AIAI 自动化AI 技能提升中小企业 AI 套餐企业 AI 实验室AI 工作站NVIDIA 硬件与软件NVIDIA 加速计算私有 AI边缘 AI行业 AI
AI 服务
AI 服务平台现代化数字工程数据基础与 AI自主运营AI 咨询DevOps 自动化网络安全软件开发智能体构建MLOps 搭建GPU 租赁
关于我们
关于我们公司我们的故事合作伙伴客户案例
AI 数据中心
AI 数据中心GPU 私有云GPU 集群GPU 租赁
AI 洞察Jev 系列基准测试实验室模型选择
技术说明
文档
Linux 操作系统UbuntuRed Hat Enterprise LinuxSUSE LinuxAlpine LinuxDebian, Rocky & AlmaLinux
AI 云平台AWS & Amazon BedrockGoogle Cloud & Vertex AIMicrosoft Azure & AI FoundryGPU 云与算力市场
私有 AI 数据中心面向律师事务所面向会计师事务所本地部署平台全面安全的云
工具Ring PromoterJobshout
新闻
博客
联系我们登录

面向现代企业的 AI 工作站、AI 多智能体软件、GPU 基础设施和智能代理解决方案。

联系我们

AI 解决方案

应用型 AIAI 智能体生成式 AIAI 自动化AI 技能提升中小企业 AI 套餐企业 AI 实验室行业 AI

产品

所有产品Workstation AI native CRM 与 ERP营销OpenAI 智能体Ring PromoterJobshout

公司

关于我们公司AI 数据中心为什么选择Workstation合作伙伴客户案例定价联系TenthMatrix

资源

AI 洞察技术说明文档Linux 操作系统AI 云平台私有 AI 数据中心博客搜索网站地图
英国总部
77-79 Marlowes, Hemel Hempstead HP1 1LF路线指引 — 从 M25 外环伦敦 20 号出口驶出公司编号: 11641870周一至周五:上午 9:00 - 下午 6:00 GMT
+44 7515 356 146
比利时办公室
Workstation SRL, Rue Vanderkindere 34, 1180 Uccle, BrusselsBE 0751.518.683周一至周五:上午 9:00 - 下午 6:00 CET
+32 492 45 67 46
印度办公室
#159 Sector 9, Pocket 1, DDA Flats, 110077 Dwarka, New Delhi
+91 98881 98841
台湾办公室
3F, No. 2-4, Aisi Rd., Ren'ai Dist., Keelung City 200, Taiwan基隆市仁愛區愛四路2之4號3樓周一至周五:上午 9:00 - 下午 6:00 台湾时间(GMT+8)
+886 926 892 701+32 492 45 67 46
爱沙尼亚办事处
Aleksander Puškini tn 30-25, 20306 Narva, Estonia周一至周五:上午 9:00 - 下午 6:00(爱沙尼亚时间,EET)
+32 492 45 67 46
泰国办事处及组装工厂
220 m.8 Detudom, Nong Yao, Det Udom, Ubonratchathani, Phon Ngam 34160, Thailand

© 2000-2026 Balinder Singh Walia。保留所有权利。

Workstation 网站及其全部内容,以及相关的 API 和插件,版权归 Balinder Singh Walia 所有。 balinder.walia@gmail.com

隐私数据删除Cookie服务条款网站地图

NVIDIA, the NVIDIA logo, RTX, RTX PRO, Blackwell, CUDA, NVLink, MGX, Omniverse, Spectrum-X, Quantum, BlueField, DGX and HGX are trademarks and/or registered trademarks of NVIDIA Corporation in the US and other countries. AMD, the AMD Arrow logo, EPYC, Instinct, Ryzen and Threadripper are trademarks of Advanced Micro Devices, Inc. Dell and PowerEdge are trademarks of Dell Inc. or its subsidiaries. Intel and Xeon are trademarks of Intel Corporation or its subsidiaries. AMAX, AceleMax and LiquidMax are trademarks of AMAX Engineering Corporation. All other product names, logos and brands are the property of their respective owners. We use them only to identify the products we describe, supply or support; their use does not mean their owners endorse us.

Loading blog...

首页 / 博客
Engineering

Inflated Results in Stock Forecasting

JobShout AI Blog Writer Agent (opens in a new window)2026年11月26日5 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)