4 ms·
The unreasonable difficulty of time series forecasting
- deleted 4mo ago[deleted]
- xnx 4mo ago"It is difficult to make predictions, especially about the future."
- klodolph 4mo agoI 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 4mo agoIt'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.
- pishpash 4mo agoUnless disconnected from the world, or very thinly coupled, most processes become hard to predict in a generalizable way for this reason.
- kjellsbells 4mo agoThe UK power grid operators famously plan for massive demand surges at eg the end of major football matches. I cant imagine what their forecasters thought of the England-Mexico nail biter. Half the nation heading to put the kettle on, half glued to their seats. Would love to see the charts of demand now that the World Cup is done...
- IneffablePigeon 4mo agoThey used to plan not just for major live events but for the end of popular soaps like Eastenders. With live TV becoming less important culturally and renewables eating the world most of their forecasting these days goes into weather predictions I think. Interestingly even other forms of power generation are affected by the heatwaves we have seen recently - it can reduce gas turbine efficiency by 10% or so and can even reduce the safe output of nuclear if their cooling water comes from a source that gets too warm. But I’m sure the World Cup is still pretty relevant for operations.
- gregw2 4mo agoBetween 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".
- deleted 4mo ago[deleted]
- deleted 4mo ago[deleted]
- deleted 4mo ago[deleted]
- BrokenCogs 4mo agoNot at all unreasonable, why should predicting the future be easy for those of us living in the simulation?
- joe_the_user 4mo agoThe 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 4mo agoProbability 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.
- joe_the_user 4mo agoI think we're saying roughly the same thing. It's natural starting with a statistical model to say it generates data (as the article sometimes does) but in reality, you often/generated have data generated by a possibly deterministic and completely different process but satisfying (if you're lucky) the statistical conditions. Even in testing random/stochastic models, you would usually use pseudo-random generators - which are deterministic.
- brcmthrowaway 4mo agoWell, Jane Street cracked it
- deleted 4mo ago[deleted]
- nyeah 4mo agoNot by just feeding in a lot of old time series.
- jbritton 4mo agoI recently had a conversation with Claude Fable about Renaissance Technologies. Claude says their closed fund has found a very tiny edge and their profit comes from millions of trades on that edge. Their public fund with more money doesn’t find enough edge to beat the S&P500 index.
- deleted 4mo ago[deleted]
- smokel 4mo agoThis 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.
- t0mpr1c3 4mo agoIndeed. For example, volatility is of interest in financial data, because it relates to the pricing of risk. So are the correlations between asset classes. Interestingly market volatility often goes hand-in-hand with increased correlation between asset prices: https://en.wikipedia.org/wiki/Anna_Karenina_principle#Order_in_chaos_of_maladaptation https://en.wikipedia.org/wiki/Anna_Karenina_principle#Order_... This corresponds to a restatement of Murphy's Law, namely "life is a bitch and then you die". When you most need a diversified portfolio, diversification is hardest to achieve.
- hintymad 4mo agoThe 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?
- pishpash 4mo agoThe past cannot contain all information about the future, or there is some superdeterminism going on, by definition.
- a-dub 4mo 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.
- jamilton 4mo agoThere's a couple "AI forecaster" companies now, Preseen and FutureSearch. My understanding is you give them a query and they research every possible relevant factor and give an estimate of the likelihood of your query, and supposedly they're comparable to if you asked a human to do the same thing, but they're new enough that they're not really proven yet.
- a-dub 4mo agosomething like that would be interesting. i just get the sense that doing it metadata blind would result in something that learns a somewhat brittle short-time covariance-like structure that doesn't use all available information to achieve best possible generalization and that in the end the benchmark numbers start to reflect some luck with that for predicting non-stationary behavior combined with a lot coming from a pretty good synthesizer that matches previous patterns. that being the case, it seems the next jump in performance would come from incorporating both metadata and metadata enriched causality and maybe that next jump in performance would be the most interesting jump from a practical system that is useful perspective. (it's more valuable for a system to predict outlier events than it is for it to do an excellent job at synthesizing ordinary behavior)
- thomasikzelf 4mo agoI did some energy price forecasting and my neural network learned the morning evening patterns just from historical data, it worked great. Then I tried adding more information to this like wind and solar (and many more). None of these external factors made any difference while being very important for energy prices. It seems like the market already incorporated all the factors in the price (as they should). The takeaway might be that historic data of market data might often be enough to make a reasonable prediction. Only external data that nobody else has (used) can make your prediction better then the market. Making a prediction with same accuracy as the market: easy Making a prediction with more accuracy then the market: very hard
- EdwardAF-IT 4mo agoA 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..
- prerok 4mo agoThe weather is an example of a non-linear dynamic system. Try as we might, we still cannot predict it really even a few days in advance. The stock market is much worse, even, so, no, it cannot be predicted.
- evo 4mo agoI think there's a close linkage between "predictable" and "stationary". Ultimately, if you strip everything away, either there's a core where the future looks like the past (which is equivalent to being stationary), or there isn't. That core could be "the laws of physics and base conditions are stationary", and everything else is deterministic functions applied on top, but the fundamental process is trying to find that stationary core. In the finance space, the stationary core is often some 'stylized fact' that you're hypothesizing will hold true. This could be e.g., the momentum factor, that if you strip away the noise, there's an underlying trend that will hold over an extended duration.
- giyanani 4mo 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 4mo 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 https://en.wikipedia.org/wiki/Anna_Karenina_principle
- gregw2 4mo agoI 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 4mo agoAgain 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.
- pishpash 4mo agoWhich naturally begs the question whether the excess returns in finance (outside of services provided for liquidity matching, risk transformation, etc.) is not just exploiting inside information of one kind or another. If you have inside information, your time series forecasts are going to be excellent and no simulation is needed.
- c7b 4mo agoWell. 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.
- gofreddygo 4mo agoThe unreasonable difficulty of predicting (actual) future effects based on past effects with no regards to their cause.
- kenjackson 4mo agoYes. Or even to go a step further -- once we exclude all the things that aren't hard to predict, we're left with the things that are.
- joe_the_user 4mo agoWell, predictions that I'll go to work and things will be as usual aren't as uncertain as Bitcoin pricing or as certain as planetary motion. However, the aim of math in these situations is often to give explanations for intuitive impressions like "predicting the future is hard". The concept of NP-completeness gives one (very partial) explanation why certain computing problems are "hard", for example. So that theory doesn't "boil down to saying programming is hard". Unfortunately, I don't think the text really gives strong explanation in this case.
- crystal_revenge 4mo ago> predicting the future is hard As I mentioned in another comment, this can also be rephrased as "predicting data with values outside the range you trained on typically doesn't go well". If you tried to predict some health metric based on weight and height but you only had people under 4' 10" and less than 120lbs you wouldn't be shocked at all if it worked terribly when applied to American football players. Time-series forecasting is hard because you are always going to be predicting based on data outside of your observed range ("forecasting" does go much better when you're trying to fill-in-the-blanks of things that happened in the past).
- deleted 4mo ago[deleted]
- verteu 4mo agoAs touched on in the article: The data's not IID, and there hasn't been very much "time" to generalize across.
- joe_the_user 4mo agoI remember in 2017, it was said that "regular" machine learning techniques were better for time series than neural networks. It seems like this blog post is indirectly references that belief and gives. It seems like the idea is simpler ML can be tuned to a given time series whereas neural network require lots of training. Also, one method works better than another is more meaningful than "predicting the future is hard".
- warshinder 4mo agoKnowing this forever. Simple is better, overtraining is overtraining. Maybe I’m biased by American pragmatism or something.
- ninju 4mo agohttps://xkcd.com/1658/ https://xkcd.com/1658/
- jas- 4mo agoMaybe trying to predict entropy would be easier
- dcl 4mo agoI have to explain this to managers, execs and stakeholders all the time. ML models work great for systems where the rules/dynamics do not change over time. With Forecasting, in a lot of domains where you want a forecast, everything is subject to change - laws, policies, regs, customers appetites, competitors behaviours, etc.
- ekorkuda 4mo agoI highly relate to this. But I always had a hard time to explain this knowledge that is in an engaging and non-jargon way. How do you do it usually? do you have a script/slides/conversation transcript (can be just your vague memory of it) you can share to help me on this
- crystal_revenge 4mo ago> I’ve been thinking recently about what makes time series forecasting problems so difficult compared to other sequence learning tasks Whenever I teach people time series forecasting, I always point out that one of the biggest challenges is that you will always have values at prediction time that are out side the range of values observed during training (specifically the value of t). In plenty of other machine learning and statistical modeling tasks this is not the case. You can train on every token you'll ever see and every pixel value you'll ever see, you can do regression analysis on every categorical value you include and an least an observation from within a range of every continuous and discrete value you'll observe. But with forecasting you will always have values you predict that are outside the range of anything you trained on. You would run into similar problems if you tried to create a statistical model of the density of water given a temperature but your training data only included values between 0-100 C and you went out and started predicting values covering all the temperatures found on Earth. For whatever reason, when time is a variable we somehow think it is immune from the obvious limitation of predicting on values outside of the range of values you trained on.
- newsicanuse 4mo agoTo ensure that your forecaat don't fall outside the range of training dataset you can use some tree based model like Random Forest for time series forecasting which averages out the values.
- 10000truths 4mo agoShouldn't the training data be preprocessed to transform time values to a relative coordinate system? I would expect a time-series training pipeline to contain something like: 1. Define {N = context duration, M = forecast duration} upfront 2. Select some time value T 3. Extract historical data whose timestamps lie in time interval (T, T+N+M) 4. Transform timestamp values to (-N, M) interval by subtracting T+N from each timestamp 5. Append timestamp-transformed data to training data 6. Goto 2 Or are you saying that people don't want to define N and M upfront?
- bawis 4mo ago> Whenever I teach people time series forecasting, I always point out that one of the biggest challenges is that you will always have values at prediction time that are out side the range of values observed during training (specifically the value of t). I don't get this, time is usually not a covariate in ts models, so why is it a challenge?
- starkparker 4mo agoCan't help but see hurricane-prediction spaghetti plots in those charts.
- deleted 4mo ago[deleted]
- aabbccsubmarine 4mo ago[dead]
- ForceBru 4mo agoAre there any real-world time-series that are known to be easy to forecast? Something I could use as an example of "this is what forecasts look like when it's actually possible to predict your time-series and your model is actually doing it"?
- jftuga 4mo agoIs there a github repo for her time series forecasting experiments? I'd like to see her code and be able to run it against my own data sets.