<?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 - Open Forecasting</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>Tue, 04 Jun 2024 09:07:09 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2015/08/cropped-usd-05-32x32.png&amp;nocache=1</url>
	<title>Archives estimators - Open Forecasting</title>
	<link>https://openforecast.org/tag/estimators/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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[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 [&#8230;]</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">Open Forecasting</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>
<div id="attachment_3595" style="width: 310px" 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 fetchpriority="high" decoding="async" aria-describedby="caption-attachment-3595" 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><p id="caption-attachment-3595" class="wp-caption-text">ETS(A,A,A) estimated using different loss functions applied to the data with multiplicative seasonality</p></div>
<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">Open Forecasting</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[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. [&#8230;]</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">Open Forecasting</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>
<div id="attachment_3587" style="width: 310px" 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" aria-describedby="caption-attachment-3587" 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><p id="caption-attachment-3587" class="wp-caption-text">An example of a matrix of multistep forecast errors</p></div>
<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">Open Forecasting</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[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. [&#8230;]</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">Open Forecasting</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>
<div id="attachment_3580" style="width: 310px" class="wp-caption aligncenter"><a href="/wp-content/uploads/2024/05/2024-05-25-multistep.png"><img decoding="async" aria-describedby="caption-attachment-3580" 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="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-3580" class="wp-caption-text">Recursive vs Direct forecasting strategies</p></div>
<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">Open Forecasting</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>
