维基流量预测中周内均值为何胜过 SARIMAX

SARIMAX 与季节性基线在 Wikipedia 页面浏览量上的对比
我一直是 Buckethead 的忠实粉丝,花过无数个小时探索他的音乐,尤其是他的 Pikes 系列。他是一位极其高产的吉他手,演出时戴着白色面具、头上扣着一个桶,还特别喜欢摆弄吉他上那个红色街机风格的 kill switch。他的音乐从闪电般快速的速弹和重金属 riff,到放克律动,再到优美动人的旋律,风格跨度极大。而且不知怎么的,他的音符永远用不完!
我想,把我对他音乐的热爱与我的另一份热情——机器学习——结合起来,应该会很有意思。当 ChatGPT 这类工具正在改变我们查资料的方式时,我开始想到我们的老朋友 Wikipedia。
我还有一位老朋友依然会慢悠悠地读 Wikipedia 词条。这件事本身就有种迷人的感觉,不是吗?我通常是那个偷懒的人,什么都先问 ChatGPT!这让我好奇:像 Buckethead 这样的页面如今还能获得多少流量,这些访问是否遵循某种规律。
我能否预测 Buckethead 英文 Wikipedia 页面未来 28 天的每日浏览量?这个项目就是这样开始的。纯粹是因为热爱!
我想看看更复杂的模型能否胜过简单的季节性平均值,更重要的是,这些提升能否在后续数据上依然成立。
我先从简单的基准测试入手,然后尝试了 SARIMAX、Prophet 和 LightGBM。在开发阶段 SARIMAX 表现最好,所以我选它做最终评估。在下一年的数据上,它在 364 天中有 326 天高估了流量。而取前八周同一星期几的简单平均值,效果要好得多。
是流量高峰让模型跑偏了,还是它漏掉了典型页面浏览量中的变化?我回头梳理了那些误差,查看了流量的变化情况,并尝试了其他几种方法。
后来,我尝试了两个预训练时间序列基础模型,TimesFM 2.5 和 Chronos-2。在同一年的数据上,两者都优于按星期几的基线。我已经看过这些结果,因此需要一次全新的测试来确认这些提升。它们的预测区间也未能达到我设定的覆盖目标。
这个项目最终变成了一次探究:为什么一个看起来很有前景的模型在后续数据上会表现吃力,以及什么样的结果才更令人信服。完整的实现、调参实验和保存的结果都在文末链接的 GitHub 仓库中。
Wikipedia 流量能告诉我什么?
在深入预测模型之前,我想先更好地了解 Buckethead 的 Wikipedia 流量实际是什么样子。我特别好奇典型的一天是什么样、流量随时间变化有多大,以及当有异常事件让他受到关注时会发生什么。
我使用 Wikimedia 的数据收集了他英文 Wikipedia 条目的每日页面浏览量。数据集覆盖了 4,141 个连续日期,从 2015 年 7 月 1 日到 2026 年 10 月 31 日,没有缺失或重复的日期。其中包含桌面端、移动网页端和移动应用端记录的访问量,且这三种访问方式的计数与合计总量一致。
有一点值得说明:这些是记录下来的页面浏览量,未必对应一个个真实的人。有人可能多次访问该页面(我就是这种怪人之一!),而许多 Buckethead 的粉丝可能根本不会访问 Wikipedia。因此在整个项目中,当我谈到关注度时,我特指其英文 Wikipedia 条目的记录流量,而非他的整体人气。Wikimedia 的页面浏览定义解释了这些访问是如何统计的。
当我开始探究这些历史数据时,有两件事引起了我的注意。
第一,每日浏览量的通常水平在这些年里并不特别稳定。2016 年,该页面平均每天约 2,316 次浏览。到 2022 年,这一数字降至约 1,494,随后在 2023 年小幅回升至 1,617。
第二,其中还有一些相当剧烈的尖峰!例如 2016 年,最繁忙的一天记录了 24,744 次页面浏览,而当年的中位数仅为约 2,081。
图 1. 初步探索期内 Buckethead 的 Wikipedia 每日页面浏览量,截至 2024 年 11 月 1 日。上图显示记录计数以及用周度 STL 分解估计的平滑趋势。下图使用 log1p 尺度,以便更容易看出较小的变化。该趋势仅用于探索,不作为预测输入。图片由作者提供。
我还检查了某些工作日是否往往获得更多流量。确实存在一些差异,但远没有那些尖峰那么显著。各工作日的中位每日浏览量大约在 1,683 至 1,760 次之间。
这让我对预测问题有了初步线索。可能存在有用的周度模式可供学习,但模型还必须应对不断变化的流量水平,以及偶尔出现的与平常截然不同的日子。
我把那些异常的观测值保留在了数据集中。毕竟,它们本就是我想要预测的流量的一部分。仅仅因为它们难以处理就把它们删掉,只会让这个预测问题显得比实际情况更简单。
当然,作为 Buckethead 的忠实粉丝,我也很好奇其中一些峰值是否与他音乐生涯中发生的事情相吻合。专辑发行、公告、访谈,甚至网络讨论,能否帮助解释 Wikipedia 访问量的骤增?
后来,在做诊断分析时,我又回过头去看 2016 年最大的那次峰值,它出现在 11 月 30 日。我发现 r/Music 上有一场关于 Buckethead 惊人高产量的讨论,其中直接链接到了他的 Wikipedia 页面。这似乎至少能解释其中一部分额外流量,尽管我无法判断那场讨论究竟贡献了多少。
我事后调查的另一个例子来自 2017 年 10 月。我找到了当时对一次访谈的报道,Buckethead 在其中谈到了自己的健康状况。差不多就在那段时间,他的 Wikipedia 页面浏览量在 10 月 12 日跃升至 9,580,10 月 13 日达到 10,526,而此前 28 天的日均浏览量约为 2,001。
调查这些关联很有意思,但它们引出了另一个问题:我究竟能否用这类信息来做预测?
事后回看,要查出一张专辑何时发行、一次访谈何时出现很容易。但要做预测,我需要确认这些信息在做出预测之前是否已经可获得。我核查了事件日期和当时可得的公告,但在开发期内,我没能确定足够多符合条件的、提前已知的事件,无法将它们可靠地用作预测特征。
所以,最终我的模型都没有使用音乐活动信息。这些例子帮助我理解了一些历史背景,但我无法证明它们能有助于提前预测那些峰值。
在更好地理解数据之后,我可以开始考虑预测实验本身了。但在比较任何模型之前,我需要确定这些预测究竟该如何运作。
一次 28 天的预测需要 29 个预测值
我决定每次预测四周。这意味着每个预测窗口都会恰好包含每个工作日各四天,从而更容易比较不同时段的预测结果。而把预测日期间隔设为 28 天,我每次都会从一周中的同一天开始。我没有尝试不同的预测长度;四周只是我在这个项目中选择的长度。
但在构建模型之前,还有一件重要的事需要思考:我做出预测时,实际能获得哪些信息?
我把每次预测都视为在 UTC 午夜发布,可用的页面浏览量数据只到该日期前两天为止。例如,如果我在 11 月 3 日发布预测,我能使用的最新单日数据来自 11 月 1 日。11 月 2 日的数据仍然未知。
我的目标是预测 11 月 3 日到 11 月 30 日,正好是 28 天。但一个从 11 月 1 日最后一个可用观测值向前预测的模型,还需要预测 11 月 2 日,才能到达这个窗口的起点。
所以我实际上需要 29 个预测值,其中第一个充当桥梁。在计算误差时,我舍弃了第一个预测值,只评估随后的 28 天。后来我把同样的规则应用到了 TimesFM 和 Chronos-2 上。
另一个重要细节是,我想一次性预测整个四周期间。举例来说,我不能用第13天的实际页面浏览量来对第20天做预测,因为在我发布预测时,那些数字还无法获得。所有28个预测都必须依赖在那个最初起点上可获得的信息。
原文较长,译文为节选;译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Why a Weekday Average Beat SARIMAX on Buckethead’s Wikipedia Traffic)
SARIMAX vs. a Seasonal Baseline for Wikipedia Pageviews
I’ve been a huge Buckethead fan for a while and have spent countless hours exploring his music, especially his Pikes. He’s an incredibly prolific guitarist who plays in a white mask with a bucket on his head and has a lot of fun with his guitar’s red arcade-style kill switch. His music goes from lightning-fast shredding and heavy metal riffs to funky grooves and beautiful, emotional melodies. And somehow, he never runs out of notes!
I thought it would be fun to combine my love for his music with another passion of mine: machine learning. With tools like ChatGPT changing how we look things up, I started thinking about our dear old friend Wikipedia.
Another dear friend of mine still takes his time reading Wikipedia articles. There’s something charming about that, isn’t there? I’m usually the lazy one who ChatGPTs everything first! It made me wonder how much traffic pages like Buckethead’s still get and whether those visits follow a pattern.
Could I forecast daily views for Buckethead’s English Wikipedia page over the next 28 days? That’s how this project started. Just for the love of it!
I wanted to see whether more sophisticated models could beat simple seasonal averages and, more importantly, whether any gains would hold up on later data.
I started with simple benchmarks, then tried SARIMAX, Prophet, and LightGBM. SARIMAX did best during development, so I chose it for the final evaluation. On the following year’s data, it overestimated traffic on 326 of 364 days. A simple average of the same weekday over the previous eight weeks did much better.
Were traffic spikes throwing the model off, or was it missing changes in typical pageviews? I went back through the errors, looked at how traffic had changed, and tried a few other approaches.
Later, I tried two pretrained time series foundation models, TimesFM 2.5 and Chronos-2. Both beat the weekday baseline on the same year’s data. I’d already examined those outcomes, so I’d need a fresh test to confirm the gains. Their prediction intervals also fell short of my coverage target.
The project became an investigation into why a promising model can struggle on later data and what would make a better result convincing. The full implementation, tuning experiments, and saved results are in the GitHub repo linked at the end.
What Could Wikipedia Traffic Tell Me?
Before jumping into forecasting models, I wanted to get a better sense of what Buckethead's Wikipedia traffic actually looked like. I was particularly curious about what a typical day looked like, how much the traffic changed over time, and what happened when something unusual drew attention to him.
I collected daily pageview counts for his English Wikipedia article using Wikimedia's data. The dataset covered 4,141 consecutive days, from July 1, 2015, through October 31, 2026, with no missing or duplicate dates. It included visits recorded across desktop, mobile web, and mobile app, and the counts from those three access methods matched the combined totals.
One thing worth mentioning is that these are recorded pageviews, not necessarily individual people. Someone could visit the page several times (I'm one of those weirdos!), and plenty of Buckethead fans might never visit Wikipedia at all. So throughout this project, when I talk about attention, I'm referring specifically to the recorded traffic to his English Wikipedia article, not his overall popularity. Wikimedia's pageview definitions explain how these visits are counted.
When I started exploring the historical data, two things caught my attention.
First, the usual number of daily views wasn't particularly stable over the years. In 2016, the page averaged around 2,316 views per day. By 2022, that had fallen to about 1,494, before rising slightly to 1,617 in 2023.
Second, there were some pretty dramatic spikes! In 2016, for example, the busiest day recorded 24,744 pageviews, even though the median for that year was only about 2,081.

Figure 1. Buckethead's daily Wikipedia pageviews during the initial exploration period, ending November 1, 2024. The upper plot shows recorded counts alongside a smoothed trend estimated with weekly STL decomposition. The lower plot uses a log1p scale to make the smaller changes easier to see. The trend was used for exploration, not as a forecasting input. Image by the author.
I also checked whether certain weekdays tended to receive more traffic. There were some differences, but nothing nearly as striking as those spikes. The median daily counts across weekdays ranged from roughly 1,683 to 1,760 views.
That gave me an early clue about the forecasting problem. There might be useful weekly patterns to learn, but a model would also have to deal with changing traffic levels and occasional days that looked nothing like the usual ones.
I kept those unusual observations in the dataset. After all, they were part of the traffic I wanted to predict. Removing them just because they were difficult would have made the forecasting problem look easier than it really was.
Of course, being a Buckethead stan, I was also curious about whether some of those spikes lined up with things happening in his musical career. Could album releases, announcements, interviews, or even online discussions help explain sudden increases in Wikipedia visits?
Later, during the diagnostic work, I returned to the biggest spike in 2016, which happened on November 30. I found an r/Music discussion about Buckethead's incredibly prolific output that linked directly to his Wikipedia page. It seemed like a possible explanation for at least some of the extra traffic, although I couldn't tell how much the discussion actually contributed.
Another example I investigated retrospectively came from October 2017. I found contemporary coverage of an interview in which Buckethead discussed his health. Around that time, his Wikipedia pageviews jumped to 9,580 on October 12 and 10,526 on October 13, compared with an average of about 2,001 per day over the preceding 28 days.
These connections were interesting to investigate, but they raised another question: could I actually use such information to make forecasts?
It's easy to look back and find out when an album was released or an interview appeared. But for forecasting, I would need to establish whether that information had already been available before the prediction was made. I investigated the event dates and available announcements, but couldn't establish enough eligible advance-known events during the development period to use them reliably as forecasting features.
So, in the end, none of my models used musical-event information. These examples helped me understand some of the historical context, but I couldn't establish that they would have helped predict those spikes in advance.
With a better understanding of the data, I could start thinking about the forecasting experiment itself. But before comparing any models, I needed to decide exactly how those forecasts would work.
A 28-Day Forecast Needed 29 Predictions
I decided to forecast four weeks at a time. That meant each prediction window would contain exactly four of every weekday, making it easier to compare forecasts across different periods. And by spacing the forecast dates 28 days apart, I'd always be starting on the same day of the week. I didn't experiment with different forecast lengths; four weeks was simply what I'd chosen for this project.
But there was something important I needed to think about before building the models: what information would actually be available when I made a forecast?
I treated each forecast as if it were issued at midnight UTC, with pageview counts available only through two days before that date. For example, if I issued a forecast on November 3, the latest daily count I could use would be from November 1. November 2 would still be unknown.
My goal was to predict November 3 through November 30, which is exactly 28 days. But a model forecasting forward from the last available observation on November 1 would also need to predict November 2 to reach the start of that window.
So I actually needed 29 predictions, with the first one serving as a bridge. I discarded that first prediction when calculating the errors and evaluated only the following 28 days. I later applied the same rule to TimesFM and Chronos-2.
Another important detail was that I wanted to predict the entire four-week period in one go. I couldn't make a prediction for day 20 using the actual pageviews from day 13, for example, because those numbers wouldn't have been available when I issued the forecast. All 28 predictions had to rely on the information available at that original starting point.
I applied the same rule when preparing LightGBM's historical training examples. Its lagged features and rolling averages stopped at each simulated forecast date's cutoff, and a historical 28-day forecast window could enter a new training fit only after all its actual outcomes would have been available. This helped prevent future information from slipping into the training process.
There was one limitation to this setup. I retrieved the Wikipedia traffic data afterward rather than saving a separate API snapshot at every historical forecast date. So the two-day delay was an assumption I built into the experiment, not a guarantee that the exact same data would have been available through Wikimedia's API at each point in the past.
Although my first scored forecast began on November 5, 2023, I had several years of earlier observations available for training. Each forecasting approach used its specified history window, following the same two-day availability cutoff.
I divided the original development experiment into two stages. I used 12 forecast periods for tuning, with targets running from November 5, 2023, through October 5, 2024, followed by 12 later periods for model selection, covering November 3, 2024, through October 4, 2025.
I also left certain boundary periods unscored because their complete outcomes wouldn't have been available in time for the next stage's decisions. Those observations stayed in the dataset and could enter later training once they became available.
My initial data exploration extended through November 1, 2024, overlapping the tuning period. So the early development work wasn't completely independent of what I'd already seen in the data. The later original evaluation period, however, was kept separate from the model-selection process.
Now that I had a consistent forecasting setup, I could finally start comparing different approaches. And before trying anything complicated, I wanted to know how far I could get with a few simple benchmarks.
What Would a Model Have to Beat?
I started with a weekly naive forecast, which repeated the latest available observation for each weekday. For example, to predict a Tuesday, it would use the most recent Tuesday's pageviews.
Then I tried something slightly different: instead of relying on just one previous observation, why not average several matching weekdays? For a Tuesday forecast, I could look at the previous four or eight Tuesdays and use their average.
I compared those two averaging windows during the early tuning stage, and eight weeks worked better. That became my main seasonal benchmark. It was a simple approach, but I'd chosen the eight-week window based on the tuning results rather than deciding on it in advance.
With those references in place, I moved on to a few more sophisticated models.
I tried SARIMAX, which could represent seasonal patterns and relationships between observations over time; Prophet, which modeled trends and seasonality; and LightGBM, which could learn nonlinear relationships from historical pageviews, calendar information, and the forecast horizon.
I also experimented with how much training history to give these models. Would they benefit from everything available, or would restricting them to the most recent three years help them adapt to changes in traffic? I compared both approaches using small tuning grids, although the exact configurations and tuning budgets differed across models.
To compare the forecasts, I mainly used mean absolute error (MAE), which tells me how far the predictions were from the actual daily pageviews, on average. I also tracked RMSE, which puts more weight on larger mistakes, and MASE, which scales the errors against a historical weekly-difference reference.
After tuning, I evaluated the selected configurations on the 12 later model-selection periods.
And the results were quite close at the top.
SARIMAX came first, with an MAE of 303.985 pageviews per day. LightGBM, using an expanding training history, followed at 310.332, while the eight-week weekday average reached 326.659.
When I compared SARIMAX and LightGBM on the same 12 forecast periods, each performed better on six of them. So although SARIMAX had the lower average error, it wasn't consistently ahead on every occasion.
The winning SARIMAX configuration used the most recent three calendar years of data, with weekly seasonality and annual Fourier terms. More specifically, its selected specification was SARIMAX (1,0,1)(0,1,1)[7]. The full tuning configurations and implementation are available in the companion notebook.
Based on the selection results, I decided to carry SARIMAX forward to the final evaluation. It had performed better than the other candidates under my chosen metric, and that was the rule I had established for selecting a model.
But I still needed to find out whether that advantage would hold up on later data.
The Following Year Reversed the Result
The next step was the original later-year evaluation: 13 nonoverlapping 28-day forecast paths, covering November 2, 2025, through October 31, 2026, for a total of 364 target days.
I carried forward the selected SARIMAX configuration along with the two simple baselines. SARIMAX was refitted at each issue using only the observations that would have been available at that time. As the year progressed, earlier actuals from the evaluation period could enter later fits once they became available, but the selected settings themselves stayed fixed.
Table 1. MAE in views per daily prediction. The selection period uses 12 paths; the original later-year evaluation uses 13. The two columns are based on different forecast targets and should not be interpreted as scores on the same outcomes.
The eight-week weekday average became more accurate on the later year, while SARIMAX became much worse. SARIMAX beat that baseline on only 2 of the 13 forecast paths.
That was the first major turning point in the project. I hadn’t expected the selected model to lose so clearly to a simple seasonal average after winning the earlier comparison.
Figure 2. All 13 original later-year forecast paths, showing SARIMAX, the eight-week weekday average, and the recorded pageviews. The shaded band is the unchanged nominal 80% residual interval carried forward from development. The lower bars show SARIMAX’s mean prediction-minus-actual error by path. November shading marks the separate scoring sensitivity. Image by the author.
What stood out most in Figure 2 was that SARIMAX usually stayed above the observed traffic. This wasn’t a case where the model had quietly failed to fit and then fallen back to something else. All 13 SARIMAX fits converged and produced forecasts without a fallback. The problem was the forecasts themselves.
Its uncertainty estimates transferred badly too. The original nominal 80% interval covered only 44.78% of the later daily outcomes. And the misses were heavily one-sided: 190 observations fell below the lower bound, compared with just 11 above the upper bound. In other words, the intervals were not just too narrow in some general sense; they were mostly sitting too high, just like the point forecasts.
I had fixed the interval half-width before the later-year evaluation, using the selected procedure's development errors. Those same development results had also contributed to selecting the procedure, so the interval calibration wasn't independent of the full selection process. I didn't update the width using errors from the later year.
At that point, the main question was no longer which model had won the original selection stage. The more important question was why SARIMAX had stayed so high while the recorded traffic had moved lower.
Was It Missing Spikes, or Missing the Usual Level?
At first, I wondered whether those occasional traffic spikes I'd noticed during data exploration were responsible for SARIMAX's poor performance. After all, some days attracted far more pageviews than usual, and predicting those sudden jumps was never going to be easy.
But when I looked more closely at the errors, that didn't seem to be the main problem.
The ten largest absolute errors accounted for only 6.11% of the total absolute error. Instead, the model was consistently predicting too many pageviews. Its mean signed error (prediction minus actual) was +361.91 views per day. On average, SARIMAX predicted 1,629.3 daily views, while the actual number was only 1,267.4.
That made me curious about something else: was SARIMAX simply failing to keep up with the changing level of traffic?
To investigate, I compared each 28-day forecast's average prediction with the actual average over that period. I also looked at the average pageviews from the most recent 56 days available when the forecast was issued.
Those 56 days were particularly useful because they were exactly what my eight-week weekday baseline relied on. And since each 28-day forecast contained four of every weekday, the baseline's average prediction over the whole period was equal to the average of those 56 historical observations.
The difference was revealing. On 12 of the 13 forecast periods, that recent average was closer to the actual traffic level than SARIMAX's predicted average.
Figure 3. Comparing SARIMAX's average predictions, the most recent 56-day average, and the actual average across the 13 forecast periods. The dashed line shows the available three-year historical average for context. The actual future averages were used only for this retrospective investigation, not to generate the forecasts. Image by the author.
I still couldn't say exactly why SARIMAX had kept predicting too high. But the pattern was clear: it was struggling to match the usual level of traffic, not just missing a handful of unusually busy days.
Could I Improve the Baseline Instead?
After seeing how well the eight-week weekday average held up against SARIMAX, I decided to keep it at the center of my next experiment and see whether a more adaptive approach could improve on it.
There was one important distinction, though. I'd already examined the final evaluation year, so any new experiments on that same period would be retrospective. I kept the original results unchanged and limited this follow-up to six alternative candidates and the two existing baselines, rather than continuing to search until something happened to perform better.
I tried a few different approaches. Two ETS models represented the local traffic level and weekly seasonality, with one also allowing for a damped trend. I also included two SARIMAX variants to investigate the role of weekly differencing. And for LightGBM, I tested two ideas: predicting the daily pageviews directly or predicting a correction to the eight-week weekday average.
The SARIMAX experiment came from something I'd noticed in the original model: its seasonal moving-average coefficient was very close to −1, which made me curious about the role of weekly differencing.
So I ran a separate comparison, keeping the other settings consistent while changing whether the model used weekly differencing. Removing it didn't help. The version without weekly differencing had a retrospective MAE of 451.948, compared with 365.562 for the version that retained it.
These were separate experiments with different preparation and optimization settings from my original SARIMAX model, so their results weren't directly interchangeable with its earlier MAE of 437.776.
For LightGBM, I was particularly interested in the correction approach.
Instead of asking LightGBM to predict the entire number of pageviews, I asked it to learn how much the actual traffic differed from what the weekday baseline had predicted. Then, when making a new forecast, I could add LightGBM's predicted correction to the baseline and make sure the result wasn't negative.
I was careful to calculate those historical corrections using the baseline forecasts that would actually have been available at each historical forecast date. Otherwise, I could have accidentally given the model information from the future.
For this follow-up, I used seven earlier forecast periods to select the point-forecasting approach and four later periods to calibrate prediction intervals. I'd initially considered eight periods for selection, but a timing check showed that the last one's outcomes wouldn't have been fully available before the calibration stage. So I left it out.
And the winner of that selection stage?
The eight-week weekday average, once again!
It achieved an MAE of 318.005, compared with 324.530 for LightGBM predicting counts directly and 330.144 for LightGBM predicting corrections.
But when I evaluated the same approaches retrospectively on the final year I'd already examined, I found something a little different.
This time, the correction model came out slightly ahead, with an MAE of 236.533, compared with 238.733 for the weekday baseline. That was an improvement of just 2.20 pageviews per day, or 0.92%.
And looking more closely, the advantage wasn't particularly convincing. The correction model actually had a worse RMSE (312.224 versus 308.367), and it beat the weekday baseline on only seven of the 13 forecast periods, losing on the other six.
Figure 4. Difference in MAE between the LightGBM correction model and the eight-week weekday baseline across the 13 forecast periods. Negative values favor LightGBM, while positive values favor the baseline. All comparisons use the previously examined evaluation year. Image by the author.
Wikimedia documented a traffic-classification incident affecting user-pageview counts in November 2025. The affected data hadn't been repaired, although I couldn't establish how much Buckethead's particular page was affected.
Because of this, the original evaluation protocol included a separate scoring check that excluded November 2025. I applied the same check here, using the existing predictions rather than retraining anything or changing the historical observations.
That left 335 days to evaluate.
And the correction model's advantage almost disappeared.
Its MAE was now 230.926, compared with 231.057 for the weekday baseline. That's a difference of only 0.13 views per day, or about 0.06%. Even with November excluded from scoring, the original SARIMAX model remained much worse, with an MAE of 450.883.
The other approaches, including ETS, hadn't managed to outperform the weekday average in the earlier selection stage either.
So although LightGBM's correction had produced a slightly better retrospective MAE, I wasn't convinced it had meaningfully improved the forecast. Its advantage was small, depended heavily on the scoring period, and hadn't been supported by the earlier model-selection results.
The simple weekday average was still the approach selected by my follow-up experiment.
But there was still one more approach I wanted to try.
What Changed When I Added Pretrained Models?
I decided to try two pretrained time series foundation models: TimesFM 2.5 (200M) and Chronos-2. Unlike the models I'd fitted specifically to Buckethead's pageviews, these had already learned forecasting patterns from other time series. I wanted to see what they could do with my data without any task-specific fine-tuning.
For each forecast issue, I gave both models 1,024 observed daily counts, ending at the same issue-minus-two-day cutoff I had used throughout the project. There was no task-specific fine-tuning, no search over different context lengths, and no extra information such as article titles, musical events, or related Wikipedia pages. Both models also followed the same 29-step setup as the earlier procedures, with the first bridge day excluded from scoring.
For point forecasts, I used each model’s native median prediction. Their lower and upper quantiles provided the corresponding interval bands.
On the same 364 later-year target days, the results were:
Table 2. Fixed pretrained-model recipes evaluated retrospectively on the same 13 later-year forecast paths. This year had already been examined before the foundation-model extension. The pretrained models use median point forecasts; the weekday baseline retains its original predictions.
These improvements were much larger than the small advantage I had seen from the LightGBM correction model.
Figure 5. Retrospective point-forecast comparisons across all 364 later-year targets. The original and follow-up reference forecasts are unchanged. “Zero-shot” here means that I did not fit the model weights specifically to this task. Image by the author.
The advantage also remained when I applied the November scoring sensitivity. TimesFM’s MAE was 189.940, which was 17.80% lower than the masked weekday baseline. Chronos-2 reached 203.109, a 12.10% reduction.
That said, neither model dominated every forecast period. TimesFM beat the weekday baseline on 9 of the 13 full paths, and Chronos-2 did so on 8.
Figure 6. Foundation-model minus weekday-baseline path MAE (left) and MAE by forecast step (right). Negative paired differences favor the foundation model. Each scored step has 13 outcomes. Because the forecast issues were aligned to Sundays, forecast step and weekday are linked in this design. Image by the author.
I was also curious about how these pretrained models would look on the earlier model-selection periods. When I evaluated them there, the results were less decisive. TimesFM and Chronos-2 had MAE around 316.72 and 316.75, respectively, compared with 303.98 for the original selected SARIMAX. I didn’t tune the pretrained models on those earlier scores, so I treated this as descriptive context rather than a new selection exercise.
The signed errors added another useful detail. TimesFM’s average prediction-minus-actual was just −5.57 views per day, much closer to zero than SARIMAX’s +361.91. But that didn’t mean it was “right” in a broader sense. TimesFM still overpredicted on 226 of the 364 days. A small average signed error can simply reflect positive and negative misses canceling out, which is one reason I kept focusing mainly on MAE.
Figure 7. The first three later-year forecast paths in chronological order, showing the weekday baseline, the two foundation-model medians, and their native nominal 80% pointwise intervals. These were not cherry-picked examples. They are the first three backtest paths, including November’s measurement-sensitive dates. Image by the author.
The pretrained models had given me the strongest point forecasts I'd seen on the later year. But I still had two questions: what could I actually conclude from models that hadn't been fine-tuned on my data, and how well could I trust their uncertainty estimates?
What Did “No Fine-Tuning” Leave Unresolved?
I hadn't fine-tuned either model on my dataset, but that doesn't necessarily mean the series was completely new to them.
The official TimesFM 2.5 model card lists Wikimedia Pageviews through November 2023 among its training sources. Interestingly, my first original tuning period also began in November 2023. The Chronos-2 technical report mentions Wiki data as well. However, I couldn't verify whether Buckethead's particular page was included in either model's training data, or the exact date coverage of every training source.
There's an important difference between a model having seen older observations from a series and having seen the outcomes I'm using to evaluate it. I couldn't establish the absence of either for this particular page.
There was also the timing of my experiments. I ran the foundation-model comparison on November 18, 2026, after I'd already examined the original evaluation year. Some of the simulated forecast dates even came before these model checkpoints were available. So while the results showed how the fixed models performed retrospectively, they weren't forecasts I could have issued with those checkpoints at every historical date.
None of this made the improvements uninteresting to me. But it did mean that testing the models on genuinely new outcomes would be the next step before drawing stronger conclusions about their future performance.
Better Point Predictions Still Left an Interval Problem
So far, I'd mostly been looking at how close each model's predictions were to the actual pageviews. But a point prediction tells me only part of the story.
I also wanted to know how well the models represented their uncertainty.
For TimesFM and Chronos-2, I used their native 10th and 90th percentile predictions to create nominal 80% prediction intervals. Ideally, these would contain the actual daily pageviews about 80% of the time.
On the later evaluation year, TimesFM's intervals covered 75.55% of the observed counts, while Chronos-2's covered 70.33%.
Both were closer to the intended coverage than SARIMAX's original intervals, which had covered only 44.78%. But neither foundation model quite reached the 80% target.
Interestingly, the weekday baseline had the opposite problem. In the follow-up experiment, I constructed its intervals using 112 signed forecast errors from four separate calibration periods. Those intervals covered 95.88% of the later observations, considerably more than the intended 80%.
That might sound like a good thing at first. But there was a trade-off: the baseline's intervals were also much wider.
Here's how the complete forecasting procedures compared:
Table 3. Prediction-interval results across the same 364 later-year target days. All procedures aim for 80% pointwise coverage, and the interval widths are measured in pageviews after nonnegative clipping. Lower interval scores are better. Correction LightGBM did not have evaluated prediction intervals.
To understand the trade-off between coverage and width, I also calculated an interval score. It rewards narrower intervals but adds a penalty when the actual value falls outside them. For these nominal 80% intervals, the penalty is ten times the distance beyond the missed boundary.
That way, a model can't get a great score simply by producing intervals so wide that almost every observation falls inside them.
TimesFM had the lowest observed interval score, at 1,041.03. Its intervals were relatively narrow, and it also had the best point-forecast MAE of the models I tested on that year. Still, its 75.55% coverage showed that the intervals weren't perfectly calibrated to the intended 80%.
Figure 8. Prediction-interval coverage and average width across the same retrospective evaluation dates (left), along with coverage at each of the 28 forecast steps (right). The dashed line marks the nominal 80% target. The foundation models use their native quantiles, while SARIMAX and the weekday baseline use different residual-based interval methods. Image by the author.
One thing I kept in mind when interpreting these results was that I wasn't comparing four different interval methods applied to identical predictions. The original SARIMAX intervals came from development errors that had also contributed to model selection. The weekday baseline used a separate calibration stage, while TimesFM and Chronos-2 provided their own quantiles without additional calibration on this task.
So the table compares complete forecasting procedures, not just the quality of their interval formulas.
There was also a distinction between covering individual days and covering an entire 28-day forecast. An 80% pointwise interval aims to contain roughly 80% of individual outcomes; it doesn't promise that all 28 days of a forecast will fall inside their intervals.
In fact, only one of the 13 forecast periods had all 28 observations inside the intervals for each foundation model. The wider weekday-baseline intervals managed that on three of the 13 periods. And because these forecasts came from the same time series, I couldn't treat all 364 daily outcomes as independent observations.
Conclusion: What Would I Trust Next?
Looking back, what surprised me most was how much the results changed between development and the following year. The eight-week weekday average didn't just outperform SARIMAX; it helped me understand the model's persistent overprediction.
Trying to improve on that baseline led me through a few more experiments. LightGBM's correction offered only a tiny retrospective improvement, while TimesFM 2.5 and Chronos-2 produced much larger gains. I found those results encouraging, especially after seeing how difficult the simple baseline had been to beat.
But better point predictions weren't the whole story. The foundation models' prediction intervals still fell short of their intended coverage, and I'd already examined the evaluation year before running those experiments. So while I now had some promising alternatives, I still needed stronger evidence before deciding which one I'd trust for future forecasts.
If I were to take this project further, that's exactly what I'd focus on. I'd choose a small set of models in advance, save each forecast along with the exact data available when it was made, and evaluate the complete 28-day predictions as new observations arrived. I'd keep the weekday average as a benchmark and set up a separate calibration process for prediction intervals.
I'd also need to update my original confirmation plan to account for the foundation-model experiments, since those came after I'd already examined the earlier results.
And this is where I think AI agents could be particularly useful. They could help automate the repetitive parts of that process, from running the selected models to collecting data and checking the forecasts. But I'd still need to decide whether the comparisons were fair and whether the results actually supported the conclusions I was drawing.
What started as a fun experiment inspired by my interest in Buckethead ended up teaching me something much broader about forecasting: getting a good score is one thing, but knowing how much confidence to place in that score is another.
Sources and Companion Material
The results and figures in this article come from my Buckethead Wikipedia forecasting project. I've included the complete analysis, forecasting experiments, evaluation procedures, and saved results in the companion notebook and project repository. The repository also contains the scripts and configurations needed to reproduce the experiments.
Project code and notebook
Wikimedia's Analytics API access policy. The API data are provided under CC0; this does not automatically apply to third-party material, software, or writing.
The notebook includes the event research and historical source references used to investigate possible connections between musical events and Wikipedia traffic.
Time series foundation models
Gneiting and Raftery, Strictly Proper Scoring Rules, Prediction, and Estimation, particularly Section 6.2 on interval scoring.
And for you curious beans who made it all the way to the end, here's a little treat! Seriously, just give this a listen. You can thank me later! :D
Thanks for reading! If you have any questions about the choices I made or ideas for a useful follow-up experiment, I'd love to hear them!
A gentle introduction. What problem it solves and why the layered structure
January 11, 20214 min read
Transfer learning is an important topic and it can help us to solve tasks faster.
November 26, 202010 min read
Talking with LLMs about images, without training LLMs on images.
October 9, 202320 min read
Learn how to deploy a Python SQL Engine to your k8s cluster and run complex Python functions from SQL
December 8, 20206 min read
Understand how Causal AI frameworks and algorithms support decision making tasks like modeling impact of interventions, counterfactual...
Learn to use AI to boost the efficiency of your business
March 2, 20247 min read
A framework for building RAG pipelines that introduces complexity in response to observed failure modes, from lexical and hybrid search to reranking and agentic information seeking
August 31, 202619 min read
One of the most popular evaluation metrics for recommender or ranking problems step by step explained
January 18, 20237 min read
Implementing Amazon's DataWig in Python to impute missing values in tabular data
August 24, 20222 min read
原文为英文,正文由自动抓取并保留原文。
原文发布于 Towards Data Science(Why a Weekday Average Beat SARIMAX on Buckethead’s Wikipedia Traffic),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。