frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

The unreasonable difficulty of time series forecasting

https://suzyahyah.github.io/machine%20learning/2026/06/27/trouble-with-time-series.html
59•suzyahyah•3d ago

Comments

xnx•2h ago
"It is difficult to make predictions, especially about the future."
klodolph•2h ago
I see that a lot of these are markets.

Yes, it’s hard to predict markets. Because anybody who can successfully predict markets, does so, makes money, and changes the market so their predictions lose their edge.

Time series forecasts are a lot easier if you are forecasting, say, disk use in your servers or whatnot. (By “easy” I mean you can do a simple prediction and get useful insights.)

jldugger•39m ago
It's true that markets are more _adversarial_. But there's still a lot of trouble with distribution shifts even in server metrics. As an example, our SRE team got paged a few times in the past month for traffic drops due to the World Cup. This stresses the nowcasting alert in several dimensions:

- there's no seasonal pattern to the matches, they happen sorta randomly.

- they drive increased query traffic in the hour or so before the game

- then during the game usage drops, sometimes to below "normal" depending on time of day and who's playing

So... now the accuracy of your forecasting tool depends on correctly predicting when world cup matches happen, and also who wins them!

edit: and this is just one recent example. others involve severe weather, national gameshows, earthquakes, and when you celebrate christmas.

gregw2•39m ago
Between the difficulty and value propositions for forecasting timeseries "disk usage" versus "financial markets" there are some rather relevant time series such as "company sales" or "demand for company product" that come up again, and again, and again but are neither "easy" nor "predicting-the-stock-market-hard".
delichon•2m ago
Predicting sales for a stock or a product is mostly the same problem in adjacent domains.
BrokenCogs•1h ago
Not at all unreasonable, why should predicting the future be easy for those of us living in the simulation?
joe_the_user•1h ago
The question "what probability distribution generated this" is very hard to answer if you're only getting short window before the distribution changes. A lot of distributions could generate relatively "short" set dispersed data points and deciding which distribution is "really" creating the points might not even be meaningful. A distribution is a mathematical device, not something with a physical existence.
mjburgess•1h ago
Probability distributions don't generate data, they describe our uncertainty about its generation retrospectively. So there is no answer to that question. The lack of such an answer is at the heart of why such inference is hard: in most cases, there isnt a stable underlying reality of anything doing the distributing.
brcmthrowaway•1h ago
Well, Jane Street cracked it
nyeah•1h ago
Not by just feeding in a lot of old time series.
smokel•1h ago
This article focuses mostly on point forecasting. There are many other things that are interesting to forecast.

Consider for example the use case of forecasting the average speed on a road segment with a maximum speed of 70mph. Forecasting whether that will be 69.8 or 70.3 is not very relevant. What is relevant is forecasting when the speed drops below a traffic jam threshold. But the exact timing of that might be impossible to forecast due to the inherently chaotic behavior of traffic. Forecasting the probability of a traffic jam occurring may be more interesting to practitioners.

hintymad•1h ago
The examples in the posts suggest that the past does not contain all the patterns, or information in general, about the future. If so, isn't it natural that point forecast will fail in some cases?
a-dub•59m ago
> Given the lack of forecasting signal, the obvious next step then is to seek out external (exogenous) features in the real world that can help prediction models.

this seems right to me. maybe another interesting approach would be a fusion llm+ts model that does multiple-input-single-output with input metadata and causality narrative. so it "thinks" about what data it has and how predictive it may be of the target variable and when something "interesting" occurs it uses the big priors to synthesize a good guess at what it would look like.

so you'd have something like the time series data plus textual narratives of the causality stories as the training data.

EdwardAF-IT•57m ago
A very interesting article, suzyahyah. I especially appreciated your definition of stationarity, a concept with which I struggled in my own time series class. If I understand correctly, it sounds like the basic premise is that a fundamentally statistical methodology (LLMs) can't realistically predict a non-stationary data generation, which makes sense.

Separately, I've wondered for some time if there might be some reliable way to predict non-stationary data. While I don't have the answer, it occurs to me that it will possibly be a non-statistical method due to the fundamental incompatibilities. However, it also occurs to me that, given enough information, every data-generating process actually could be predicted. For instance, in the stock example, if you could model every single input into the system of a single company's stock, including every variable affecting every human that might conduct a transaction of it (daunting and unrealistic as that might be, but this is a thought experiment), then I believe the problem of prediction stops being non-stationary and in fact becomes completely deterministic, if complex. In such a scenario, wouldn't you be able to accurately make your prediction? I believe that perhaps chaos theory could present us with some solutions here where pure statistics (or, rather, simple statistics) cannot.

Just my 2 cents..

giyanani•43m ago
> Given the lack of forecasting signal, the obvious next step then is to seek out external (exogenous) features in the real world that can help prediction models. After all many real world time series are event-driven (FX, bitcoin) and hence they are exposed to shocks and drifts which can also be measured or accounted for in the data generating process.

This is the approach I'm using at my job, which is incident detection with customer metrics. We're tagging our time series data with common features -- such as country, customer type, etc -- with the idea that we can do a graph-like search to find exogenous variables. We can also use this to identify time series that have a similar "data generating process" and are simply different "realizations" of each other.

We don't need great time series forecasts, just something that detects large deviations quickly. We can then add in an existing dataset of _known_ incidents, indexed by the same common features, as a training/validation set.

mr_toad•23m ago
> We can then add in an existing dataset of _known_ incidents, indexed by the same common features, as a training/validation set.

Beware of the Anna Karenina principle. Well behaved data might be explicable by the same common features, but often the anomalies all have unique characteristics.

https://en.wikipedia.org/wiki/Anna_Karenina_principle

gregw2•36m ago
I was a little surprised to find someone experienced in time series modeling not mentioning bayesian modeling nor the use of ensemble models... but I do think its more fundamental points were worth making.
vjk800•12m ago
Again and again nerds coming from maths/CS/etc to finance are surprised to find that financial time series are actually impossible to predict. After spending almost a decade in finance now with a similar background, the arrogance of the "let's just throw in some neural network/whatever and be done with it" attitude now amuses me. After all, if it was easy - or even possible with any kind of effort - to predict (even within some error margins or probability) what the stock prices are tomorrow, anyone doing it would quickly become a billionaire or trillionaire. If the person could keep doing it, at some point they would own enough of the stock market so that their actions would affect the prices and whatever pattern they found would vanish.

Financial markets are not a natural phenomenon that exist unchanged regardless of whoever is observing them. Their dynamics continuously change in response to collective actions of all of the humanity.

Oil price changed quite a bit when the US attacked Iran. If you are trying to predict the price of oil, your model would have to be able to predict Trump ordering an attack on Iran. Does your model include a full simulation of the mind of the president of the United States (and every other person who have any kind of impact on the world events)? If not, then your time series forecasts are not going to be that great.

c7b•5m ago
Well. Lots of math that boils down to 'predicting the future is hard'. Especially when the future is one of social construction, that's what gets lost a bit here. Predicting the future is easier for planetary motions than for Bitcoin.

Advertise in ChatGPT

https://ads.openai.com/
43•montecarl•12m ago•27 comments

Long presumed dead, a thriving coral reef is discovered in West Africa

https://e360.yale.edu/digest/benin-coral-reef
192•speckx•3h ago•28 comments

Cheap Self-Hosted Kubernetes on Hetzner Cloud

https://blog.qstars.nl/posts/cheap-self-hosted-kubernetes-on-hetzner-cloud/
25•victorbrink•46m ago•7 comments

Gemini 3.6 Flash, 3.5 Flash-Lite, and 3.5 Flash Cyber

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-6-flash-3-5-flas...
421•logickkk1•3h ago•340 comments

AI Didn't Make Programming Easier. It Just Made It Differently Difficult

https://cacm.acm.org/opinion/ai-didnt-make-programming-easier-it-just-made-it-differently-difficult/
26•tchalla•41m ago•5 comments

Meta's AI Models Are Powering the First Wave of Genesis Mission Projects

https://ai.meta.com/blog/genesis-mission-lawrence-berkeley-national-laboratory-segment-anything-d...
54•surprisetalk•2h ago•32 comments

Freeink: Open Ecosystem for E-Readers

https://freeink.org/
22•FriedPickles•32m ago•6 comments

Apple has decided to compete for creativity app users

https://alex4d.com/notes/item/apple-competing-for-creativity-app-users
17•speckx•40m ago•0 comments

France's Anssi Will Block PQC-Free Products from Certification Starting 2027

https://postquantum.com/security-pqc/anssi-pqc-certification-2027/
57•Sami_Lehtinen•3h ago•10 comments

Bloomy (YC S26) is hiring a founding engineer

1•alexsouthmayd•2h ago

Show HN: A self-running space economy SIM in Rust and Bevy

https://github.com/Kalcode/spaceprojectsim
16•kalcode•41m ago•2 comments

PCjs Machines

https://www.pcjs.org/
140•naves•5h ago•13 comments

Qwen-Image-3.0: Rich Content, Authentic Details, Deep Knowledge

https://qwen.ai/blog?id=qwen-image-3.0
490•ilreb•10h ago•200 comments

Apple Private Cloud Compute SoC 3 audit reports

https://support.apple.com/guide/certifications/apple-private-cloud-compute-soc-3-audit-apc95a31b9...
16•throwfaraway4•1h ago•0 comments

Show HN: Imagin Raw – A 9MB Open-Source Alternative to Adobe Bridge for Mac

https://github.com/cristibaluta/Imagin-Raw
30•cristi_baluta•1h ago•7 comments

My USB Drive Has a Hidden Encrypted Vault

https://rootkitlabs.com/2026/06/22/I%27m-Building-a-Secure-USB-Drive/
71•machinehum•1d ago•46 comments

Jack Dorsey launches Buzz to combine team chat, AI agents and Git hosting

https://runtimewire.com/article/jack-dorsey-block-buzz-team-chat-ai-agents-git
68•ryanmerket•1h ago•58 comments

The unreasonable difficulty of time series forecasting

https://suzyahyah.github.io/machine%20learning/2026/06/27/trouble-with-time-series.html
60•suzyahyah•3d ago•19 comments

Slater – Low-memory graphdb designed for read-heavy graphs

https://github.com/Hikari-Systems/slater
6•rickkjp•31m ago•2 comments

Greedy is optimal for single-pass semi-streaming matching

https://arxiv.org/abs/2607.14656
6•MarcoDewey•1h ago•0 comments

AI Agent – TRMNL

https://help.trmnl.com/en/articles/14130438-ai-agent
6•joeyespo•39m ago•6 comments

The World's 2,400 Castles

https://thecastlemap.com/
114•marklit•3h ago•88 comments

Show HN: CodeAlmanac – Karpathy-style codebase wiki from your conversations

https://github.com/AlmanacCode/codealmanac/
15•divitsheth•1h ago•6 comments

Uhubctl – control USB power per-port on smart USB hubs

https://github.com/mvp/uhubctl
16•gregsadetsky•2h ago•3 comments

YouTube System Design for Robotics Data Infrastructure

https://hebbianrobotics.com/blog/youtube-system-design-for-robotics-data-infrastructure
5•kstonekuan•1h ago•0 comments

Python 3.15's Ultra-Low Overhead Interpreter Profiling Mode – Ken Jin's Blog

https://fidget-spinner.github.io/posts/ultra-fast-tracing.html
130•rbanffy•6d ago•11 comments

Apple Defeats Liability for Not Scanning iCloud for CSAM

https://blog.ericgoldman.org/archives/2026/07/apple-defeats-liability-for-not-scanning-icloud-for...
216•speckx•4h ago•186 comments

Firefox Containers Preview

https://blog.mozilla.org/en/firefox/firefox-containers-preview/
57•twapi•1h ago•29 comments

Laguna S 2.1

https://poolside.ai/blog/introducing-laguna-s-2-1
32•rexledesma•1h ago•3 comments

Incremental – A library for incremental computations

https://github.com/janestreet/incremental
320•handfuloflight•15h ago•61 comments