<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Archives estimators - OpenForecast</title>
	<atom:link href="https://openforecast.org/tag/estimators/feed/" rel="self" type="application/rss+xml" />
	<link>https://openforecast.org/tag/estimators/</link>
	<description>How to look into the future</description>
	<lastBuildDate>Fri, 20 Nov 2026 10:50:41 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/07/cropped-of-logo-short-1-32x32.png&amp;nocache=1</url>
	<title>Archives estimators - OpenForecast</title>
	<link>https://openforecast.org/tag/estimators/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What does it mean that MSE &#8220;prefers&#8221; the mean?</title>
		<link>https://openforecast.org/2026/11/23/what-does-it-mean-that-mse-prefers-the-mean/</link>
					<comments>https://openforecast.org/2026/11/23/what-does-it-mean-that-mse-prefers-the-mean/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 09:00:40 +0000</pubDate>
				<category><![CDATA[Forecast evaluation]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[error measures]]></category>
		<category><![CDATA[estimators]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[theory]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=4721</guid>

					<description><![CDATA[<p>If you have read some of my posts, you have seen me mentioning that MSE &#8220;prefers&#8221; the mean, MAE the median, and pinball loss a specific quantile. But what does that actually mean? Let me show you. Take some data and a model that you want to fit. In the example I use here, it’s ... <a title="What does it mean that MSE &#8220;prefers&#8221; the mean?" class="read-more" href="https://openforecast.org/2026/11/23/what-does-it-mean-that-mse-prefers-the-mean/" aria-label="Read more about What does it mean that MSE &#8220;prefers&#8221; the mean?">Read more</a></p>
<p>Message <a href="https://openforecast.org/2026/11/23/what-does-it-mean-that-mse-prefers-the-mean/">What does it mean that MSE &#8220;prefers&#8221; the mean?</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you have read some of my posts, you have seen me mentioning that MSE &#8220;prefers&#8221; the mean, MAE the median, and pinball loss a specific quantile. But what does that actually mean? Let me show you.</p>
<p>Take some data and a model that you want to fit. In the example I use here, it’s weekly sales of a product, explained by two promotional campaigns via a linear regression. The model omits some important variables, but this is not important for the demonstration. We can estimate the same model using three different losses: MSE, MAE, and pinball loss for the 0.75 quantile. This gives three different fitted lines and different residuals (actuals minus fitted values).</p>
<p>The main image in the post shows the histograms of the residuals for each of the three cases. The vertical lines show the mean (red), the median (blue) and the 0.75 quantile (orange) of the residuals, while the dashed line shows zero. And here is the thing: in each case, a different line ends up at zero.</p>
<ul>
<li>With MSE, the mean of the residuals is zero. The model is drawn so that over- and under-forecasts cancel out on average.</li>
<li>With MAE, the median of the residuals is zero. The model is drawn so that half of the actual values are above the line and half below it.</li>
<li>With pinball loss for the 0.75 quantile, the 0.75 quantile of the residuals is zero. The model is drawn so that the actual values are below the line roughly 75% of the time.</li>
</ul>
<p>So, this is what &#8220;prefers&#8221; means: each loss places the fitted line so that its own statistic of the residuals is at zero.</p>
<p>Why should you care? Because these lines are not the same. In my example, the residuals are skewed: there are a few weeks with much higher sales than the model expects, and many weeks with slightly lower ones. As a result, their median is lower than their mean, and their 0.75 quantile is much higher than both. So, the MAE model produces lower forecasts than the MSE one, and the pinball model produces the highest forecasts of the three.</p>
<p>Here is also the table with different losses and statistics that minimise them:</p>
<figure id="attachment_4722" aria-describedby="caption-attachment-4722" style="width: 1014px" class="wp-caption aligncenter"><a href="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/11/2026-11-20-functional-and-error-2.png&amp;nocache=1"><img fetchpriority="high" decoding="async" src="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/11/2026-11-20-functional-and-error-2-1024x384.png&amp;nocache=1" alt="Three losses and three statistics that minimise them" width="1024" height="384" class="size-large wp-image-4722" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/11/2026-11-20-functional-and-error-2-1024x384.png&amp;nocache=1 1024w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/11/2026-11-20-functional-and-error-2-300x113.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/11/2026-11-20-functional-and-error-2-768x288.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/11/2026-11-20-functional-and-error-2.png&amp;nocache=1 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption id="caption-attachment-4722" class="wp-caption-text">Three losses and three statistics that minimise them</figcaption></figure>
<p>This image shows the same information but from a different angle. If we take the fitted line and move it up and down, we get different values of MSE, MAE, and pinball. And MSE is the lowest when the line passes through the mean of the residuals, MAE when it passes through their median, and pinball loss when it passes through their 0.75 quantile.</p>
<p>And exactly the same principle applies to forecast evaluation! As <a href="https://doi.org/10.1198/jasa.2011.r10138">Gneiting (2011)</a> showed, the error measure should match what your forecast aims for. So, if your model produces (conditional) mean but is evaluated with MAE, which favours the median, you will end up selecting the wrong forecast (<a href="/2024/04/03/stop-reporting-several-error-measures-just-for-the-sake-of-them/">more on this here</a>).</p>
<p>So, next time you need to decide how to estimate a model or evaluate forecasts, ask yourself: what do we aim for?</p>
<p>Also, here is the Python code for the example I used:</p>
<div class="su-accordion su-u-trim"><div class="su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-spoiler-title" tabindex="0" role="button"><span class="su-spoiler-icon"></span>Python code</div><div class="su-spoiler-content su-u-clearfix su-u-trim">
<pre class="decode">"""Same linear regression, three losses: which statistic of the residuals ends up at zero?

Requires: pip install greybox fcompdata matplotlib
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from greybox import ALM
from fcompdata import PromoData

# Weekly sales regressed on an intercept and two promotion dummies
y = np.asarray(PromoData.y, dtype=float)
X = np.column_stack([np.ones(len(y)), pd.DataFrame(PromoData.xreg).astype(float).values])

# The same model, estimated with three different losses.
# Likelihood of the Asymmetric Laplace with alpha=0.75 is equivalent to the pinball loss.
specs = [
    ("MSE", dict(loss="MSE"), "Mean"),
    ("MAE", dict(loss="MAE"), "Median"),
    ("Pinball (0.75)", dict(loss="likelihood", distribution="dalaplace", alpha=0.75), "0.75 quantile"),
]
colours = {"Mean": "#AE1921", "Median": "#1F4E79", "0.75 quantile": "#C98A0B"}

fitted, residuals = [], []
for name, kwargs, _ in specs:
    model = ALM(**kwargs).fit(X, y)
    f = np.asarray(model.fitted_values_).ravel()
    fitted.append(f)
    residuals.append(y - f)
    r = residuals[-1]
    print(f"{name:15s} mean {r.mean():8.1f}  median {np.median(r):8.1f}  "
          f"q0.75 {np.quantile(r, 0.75):8.1f}")

# Figure 1: histograms of residuals with the mean, median and 0.75 quantile
bins = np.linspace(min(r.min() for r in residuals), max(r.max() for r in residuals), 26)
fig, axs = plt.subplots(1, 3, figsize=(12.8, 4.8), sharey=True)
for ax, (name, _, target), r in zip(axs, specs, residuals):
    ax.hist(r, bins=bins, color="#D9D9D9", edgecolor="white")
    stats = {"Mean": r.mean(), "Median": np.median(r), "0.75 quantile": np.quantile(r, 0.75)}
    for label, value in stats.items():
        ax.axvline(value, color=colours[label], lw=3.2 if label == target else 1.8)
    ax.axvline(0, color="black", lw=1.2, ls="--")
    ax.set_title(f"Loss: {name}", fontsize=14, weight="bold")
    ax.set_xlabel("Residuals")
    for side in ["top", "right"]:
        ax.spines[side].set_visible(False)
axs[0].set_ylabel("Frequency")
handles = [Line2D([0], [0], color=c, lw=2.5) for c in colours.values()]
handles.append(Line2D([0], [0], color="black", lw=1.2, ls="--"))
fig.legend(handles, list(colours) + ["Zero"], loc="lower center", ncol=4, frameon=False)
fig.tight_layout(rect=[0, 0.08, 1, 1])
fig.savefig("losses_residuals.png", dpi=200, facecolor="white")

# Figure 2: actual sales vs fitted values from the three models
t = np.arange(1, len(y) + 1)
fig, ax = plt.subplots(figsize=(12.8, 4.8))
ax.plot(t, y, color="#9A9A9A", lw=1.4, label="Actual sales")
for (name, _, target), f in zip(specs, fitted):
    ax.plot(t, f, color=colours[target], lw=2, label=f"Fitted, loss: {name}")
ax.set_xlabel("Week")
ax.set_ylabel("Sales")
ax.set_title("Same regression, three losses", fontsize=14, weight="bold", loc="left")
for side in ["top", "right"]:
    ax.spines[side].set_visible(False)
ax.legend(loc="upper center", bbox_to_anchor=(0.5, -0.14), ncol=4, frameon=False)
fig.tight_layout()
fig.savefig("losses_fitted.png", dpi=200, facecolor="white")</pre>
</div></div></div>
<p>#forecasting #datascience #demandplanning #supplychain #machinelearning</p>
<p>Message <a href="https://openforecast.org/2026/11/23/what-does-it-mean-that-mse-prefers-the-mean/">What does it mean that MSE &#8220;prefers&#8221; the mean?</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2026/11/23/what-does-it-mean-that-mse-prefers-the-mean/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Multistep loss functions: Geometric Trace MSE</title>
		<link>https://openforecast.org/2024/06/04/multistep-loss-functions-geometric-trace-mse/</link>
					<comments>https://openforecast.org/2024/06/04/multistep-loss-functions-geometric-trace-mse/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Tue, 04 Jun 2024 09:05:56 +0000</pubDate>
				<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[Univariate models]]></category>
		<category><![CDATA[ARIMA]]></category>
		<category><![CDATA[estimators]]></category>
		<category><![CDATA[ETS]]></category>
		<category><![CDATA[extrapolation methods]]></category>
		<category><![CDATA[Loss functions]]></category>
		<category><![CDATA[statistics]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3594</guid>

					<description><![CDATA[<p>While there is a lot to say about multistep losses, I&#8217;ve decided to write the final post on one of them and leave the topic alone for a while. Here it goes. Last time, we discussed MSEh and TMSE, and I mentioned that both of them impose shrinkage and have some advantages and disadvantages. One ... <a title="Multistep loss functions: Geometric Trace MSE" class="read-more" href="https://openforecast.org/2024/06/04/multistep-loss-functions-geometric-trace-mse/" aria-label="Read more about Multistep loss functions: Geometric Trace MSE">Read more</a></p>
<p>Message <a href="https://openforecast.org/2024/06/04/multistep-loss-functions-geometric-trace-mse/">Multistep loss functions: Geometric Trace MSE</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>While there is a lot to say about multistep losses, I&#8217;ve decided to write the final post on one of them and leave the topic alone for a while. Here it goes.</p>
<p>Last time, we discussed <a href="/2024/05/25/recursive-vs-direct-forecasting-strategy/">MSEh</a> and <a href="/2024/06/01/multistep-loss-functions-trace-mse/">TMSE</a>, and I mentioned that both of them impose shrinkage and have some advantages and disadvantages. One of the main advantages of TMSE was in reducing computational time in comparison with MSEh: you just fit one model with it instead of doing it h times. However, the downside of TMSE is that it averages things out, and we end up with model parameters that minimize the h-steps-ahead forecast error to a much larger extent than those that are close to the one-step-ahead. For example, if the one-step-ahead MSE was 500, while the six-steps-ahead MSE was 3000, the impact of the latter in TMSE would be six times higher than that of the former, and the estimator would prioritize the minimization of the longer horizon one.</p>
<p>A more balanced version of this was introduced in <a href="/2023/08/09/multi-step-estimators-and-shrinkage-effect-in-time-series-models/">our paper</a> and was called &#8220;Geometric Trace MSE&#8221; (GTMSE). The main idea of GTMSE is to take the geometric mean or, equivalently, the sum of logarithms of MSEh instead of taking the arithmetic mean. Because of that, the impact of MSEh on the loss becomes comparable with the effect of MSE1, and the model performs well throughout the whole horizon from 1 to h. For the same example of MSEs as above, the logarithm of 500 is approximately 2.7, while the logarithm of 3000 is 3.5. The difference between the two is much smaller, reducing the impact of the long-term forecast uncertainty. As a result, GTMSE has the following features:</p>
<ul>
<li>It imposes shrinkage on models parameters.</li>
<li>The strength of shrinkage is proportional to the forecast horizon.</li>
<li>But it is much milder than in case of MSEh or TMSE.</li>
<li>It leads to more balanced forecasts, performing well on average across the whole horizon.</li>
</ul>
<p>In that paper, we did extensive simulations to see how different estimators behave, and we found that:</p>
<ol>
<li>If an analyst is interested in parameters of models, they should stick with the conventional loss functions (based on one-step-ahead forecast error) because the multistep ones tend to produce biased estimates of parameters.</li>
<li>On the other hand, multistep losses kick off the redundant parameters faster than the conventional one, so there might be a benefit in the case of overparameterized models.</li>
<li>At the same time, if forecasting is of the main interest, then multistep losses might bring benefits, especially on larger samples.</li>
</ol>
<figure id="attachment_3595" aria-describedby="caption-attachment-3595" style="width: 290px" class="wp-caption aligncenter"><a href="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-04-Multistep-Example.png&amp;nocache=1"><img decoding="async" src="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-04-Multistep-Example-300x200.png&amp;nocache=1" alt="ETS(A,A,A) estimated using different loss functions applied to the data with multiplicative seasonality" width="300" height="200" class="size-medium wp-image-3595" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-04-Multistep-Example-300x200.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-04-Multistep-Example-1024x681.png&amp;nocache=1 1024w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-04-Multistep-Example-768x511.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-04-Multistep-Example.png&amp;nocache=1 1049w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-3595" class="wp-caption-text">ETS(A,A,A) estimated using different loss functions applied to the data with multiplicative seasonality</figcaption></figure>
<p>The image above shows an example from our paper, where we applied the additive model to the data, which exhibits apparent multiplicative seasonality. Despite that, we can see that multistep losses did a much better job than the conventional MSE, compensating for the misspecification.</p>
<p>Message <a href="https://openforecast.org/2024/06/04/multistep-loss-functions-geometric-trace-mse/">Multistep loss functions: Geometric Trace MSE</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2024/06/04/multistep-loss-functions-geometric-trace-mse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Multistep loss functions: Trace MSE</title>
		<link>https://openforecast.org/2024/06/01/multistep-loss-functions-trace-mse/</link>
					<comments>https://openforecast.org/2024/06/01/multistep-loss-functions-trace-mse/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Sat, 01 Jun 2024 11:29:12 +0000</pubDate>
				<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[Univariate models]]></category>
		<category><![CDATA[estimators]]></category>
		<category><![CDATA[extrapolation methods]]></category>
		<category><![CDATA[Loss functions]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[theory]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3586</guid>

					<description><![CDATA[<p>As we discussed last time, there are two possible strategies in forecasting: recursive and direct. The latter aligns with the estimation of a model using a so-called multistep loss function, such as Mean Squared Error for h-steps-ahead forecast (MSEh). But this is not the only loss function that can be efficiently used for model estimation. ... <a title="Multistep loss functions: Trace MSE" class="read-more" href="https://openforecast.org/2024/06/01/multistep-loss-functions-trace-mse/" aria-label="Read more about Multistep loss functions: Trace MSE">Read more</a></p>
<p>Message <a href="https://openforecast.org/2024/06/01/multistep-loss-functions-trace-mse/">Multistep loss functions: Trace MSE</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>As we discussed <a href="/2024/05/25/recursive-vs-direct-forecasting-strategy/">last time</a>, there are two possible strategies in forecasting: recursive and direct. The latter aligns with the estimation of a model using a so-called multistep loss function, such as Mean Squared Error for h-steps-ahead forecast (MSEh). But this is not the only loss function that can be efficiently used for model estimation. Let&#8217;s discuss another popular option.</p>
<p>But before that, let&#8217;s take a step back to recap what we are talking about. All the multistep losses imply that we fit the model to the data in the conventional way and then produce recursively 1 to h-steps-ahead point forecasts from each in-sample observation, from the very first to the very last one. We can then calculate the forecast errors and collect them in a matrix with observations in rows and horizon in columns, as shown in the image below, generated using the <code>rmultistep()</code> function from the <code>smooth</code> package in R:</p>
<figure id="attachment_3587" aria-describedby="caption-attachment-3587" style="width: 290px" class="wp-caption aligncenter"><a href="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-01-multistep-matrix.png&amp;nocache=1"><img decoding="async" src="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-01-multistep-matrix-300x185.png&amp;nocache=1" alt="An example of a matrix of multistep forecast errors" width="300" height="185" class="size-medium wp-image-3587" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-01-multistep-matrix-300x185.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-01-multistep-matrix-768x475.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/06/2024-06-01-multistep-matrix.png&amp;nocache=1 791w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-3587" class="wp-caption-text">An example of a matrix of multistep forecast errors</figcaption></figure>
<p>After that, we can calculate any of the multistep loss functions. MSEh, for example, would simply be the mean of squared errors in the last column of that matrix.</p>
<p>One of the most straightforward modifications of MSEh is a loss function that can be called &#8220;Trace MSE&#8221;, which is the sum of MSEs of each of the columns in that matrix. It has some advantages and disadvantages in comparison with MSEh. Here are some:</p>
<ul>
<li>Because we sum up MSEs for different horizons, those closer to h will tend to be higher than those close to 1, simply because typically, with an increase of the horizon, uncertainty increases as well.</li>
<li>The previous point means that the model estimated via TMSE will care less about short-term forecasts and will focus more on longer ones.</li>
<li>But at least it will not be as myopic as a model estimated with a specific MSEh.</li>
<li>You do not need to estimate h models; you can estimate just one, and it will be optimized for the entire horizon from 1 to h.</li>
<li>This means that you save on computations, making the estimation and forecasting roughly h times faster than in the case of MSEh.</li>
<li><a href="https://doi.org/10.1016/j.ijpe.2019.107597">Kourentzes et al. (2019)</a> showed that TMSE slightly outperformed MSE1 and MSEh. In fact, in one of the early versions of that paper, <a href="https://kourentzes.com/forecasting/2015/08/10/true-models-trace-optimisation-and-parameter-shrinkage-2/">Kourentzes &#038; Trapero</a> showed how well TMSE performs in the example of solar irradiation forecasting with ETS.</li>
<li>TMSE imposes shrinkage on parameters of dynamic models, which makes them less reactive and avoids overfitting.</li>
<li>But the shrinkage is not as strong as in the case of MSEh.</li>
</ul>
<p>This is discussed in <a href="/2023/08/09/multi-step-estimators-and-shrinkage-effect-in-time-series-models/">the paper</a> I wrote together with Nikolaos Kourentzes and Rebecca Killick</p>
<p>Some examples of application of TMSE are provided in <a href="/adam/multistepLosses.html">Section 11.3 of ADAM</a>.</p>
<p>Also, Peter Laurinec did an independent exploration of multistep losses and wrote <a href="https://petolau.github.io/Multistep-loss-optimized-forecasting-with-ADAM/">this nice post</a>.</p>
<p>Message <a href="https://openforecast.org/2024/06/01/multistep-loss-functions-trace-mse/">Multistep loss functions: Trace MSE</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2024/06/01/multistep-loss-functions-trace-mse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Recursive vs Direct Forecasting Strategy</title>
		<link>https://openforecast.org/2024/05/25/recursive-vs-direct-forecasting-strategy/</link>
					<comments>https://openforecast.org/2024/05/25/recursive-vs-direct-forecasting-strategy/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Sat, 25 May 2024 15:03:36 +0000</pubDate>
				<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[Univariate models]]></category>
		<category><![CDATA[estimators]]></category>
		<category><![CDATA[extrapolation methods]]></category>
		<category><![CDATA[Loss functions]]></category>
		<category><![CDATA[statistics]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3579</guid>

					<description><![CDATA[<p>Have you heard about the recursive vs direct forecasts? There&#8217;s literature about them in the areas of both ML and statistics. What&#8217;s so special about them? Here is a short post. The term &#8220;recursive&#8221; forecasting refers to the approach, when we produce one-step-ahead forecast first, then use it to produce two-steps-ahead, three-steps-ahead, and so on. ... <a title="Recursive vs Direct Forecasting Strategy" class="read-more" href="https://openforecast.org/2024/05/25/recursive-vs-direct-forecasting-strategy/" aria-label="Read more about Recursive vs Direct Forecasting Strategy">Read more</a></p>
<p>Message <a href="https://openforecast.org/2024/05/25/recursive-vs-direct-forecasting-strategy/">Recursive vs Direct Forecasting Strategy</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Have you heard about the recursive vs direct forecasts? There&#8217;s literature about them in the areas of both ML and statistics. What&#8217;s so special about them? Here is a short post.</p>
<p>The term &#8220;recursive&#8221; forecasting refers to the approach, when we produce one-step-ahead forecast first, then use it to produce two-steps-ahead, three-steps-ahead, and so on. This process is iterative, fitting the model to the data based on one-step-ahead forecasts, starting from the first observation to the last in the sample. This is the default approach for all the standard dynamic models for forecasting, such as ARIMA or ETS.</p>
<p>The &#8220;direct&#8221; forecasting means producing a specific h-steps-ahead forecast (e.g., 12 months ahead), skipping intermediate steps. To do this, when fitting the model, we calculate the error between the one-step-ahead forecast and the actual value h steps ahead. This changes how we estimate the model, as our loss function is now based on the h-steps-ahead forecast error, and our one-step-ahead forecast starts acting as the h-steps-ahead one. Because of that, our one-step-ahead forecast now acts as the h-steps-ahead one. This way we don&#8217;t need to produce forecasts recursively, but, if we need all forecasts between 1 and h steps ahead, we must fit h models.</p>
<p>Both strategies are shown in the following image:</p>
<figure id="attachment_3580" aria-describedby="caption-attachment-3580" style="width: 290px" class="wp-caption aligncenter"><a href="/wp-content/uploads/2024/05/2024-05-25-multistep.png"><img loading="lazy" decoding="async" src="/wp-content/uploads/2024/05/2024-05-25-multistep-300x201.png" alt="Recursive vs Direct forecasting strategies" width="300" height="201" class="size-medium wp-image-3580" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/05/2024-05-25-multistep-300x201.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/05/2024-05-25-multistep-1024x687.png&amp;nocache=1 1024w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/05/2024-05-25-multistep-768x515.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/05/2024-05-25-multistep.png&amp;nocache=1 1401w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-3580" class="wp-caption-text">Recursive vs Direct forecasting strategies</figcaption></figure>
<p>The literature tells us that the direct forecasting strategy is equivalent to the so called multistep ahead loss function in model estimation (e.g. <a href="https://doi.org/10.1111/j.1467-6419.2007.00518.x">Chevillon, 2007</a>). The standard &#8220;direct&#8221; forecasting strategy will give the same results as if we apply ARIMA/ETS to the data, produce h steps ahead recursive forecasts in-sample, starting from the first observation till the very last, and then minimise the Mean Squared h-steps-ahead forecast error (MSEh). This strategy has some advantages and disadvantages in comparison with the conventional one-step-ahead (see <a href="https://doi.org/10.1007/s00180-023-01377-x">the introduction of our paper</a>):</p>
<p>1. The specific h-steps-ahead forecast tends to be more accurate than in case of the standard estimation methods;<br />
2. Although some papers show this isn&#8217;t universally true;<br />
3. Parameter estimates tend to be less efficient than with one-step-ahead losses;<br />
4. It&#8217;s more computationally expensive than standard estimators, especially for multiple-step forecasts.</p>
<p>So, there are accuracy benefits, but they come with a computational cost. Moreover, <a href="https://doi.org/10.1016/j.ijpe.2019.107597">Kourentzes et al. (2020)</a> found that the forecasting accuracy of MSEh was higher than the one of conventional loss functions, but this didn&#8217;t translate to better inventory performance.</p>
<p>Still, it wasn&#8217;t clear why this strategy is better, and <a href="/2023/08/09/multi-step-estimators-and-shrinkage-effect-in-time-series-models/">we showed</a> that applying MSEh to a dynamic model regularises its parameters. In ETS, this leads to parameters shrinkage toward zero proportionally to the forecast horizon used in the loss, making models more conservative and &#8220;slow.&#8221;</p>
<p>This is also discussed in <a href="/adam/multistepLosses.html">Section 11.3 of ADAM</a>.</p>
<p>Message <a href="https://openforecast.org/2024/05/25/recursive-vs-direct-forecasting-strategy/">Recursive vs Direct Forecasting Strategy</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2024/05/25/recursive-vs-direct-forecasting-strategy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
