<?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 Intermittent demand - OpenForecast</title>
	<atom:link href="https://openforecast.org/category/forecasting-theory/intermittent-demand/feed/" rel="self" type="application/rss+xml" />
	<link>https://openforecast.org/category/forecasting-theory/intermittent-demand/</link>
	<description>How to look into the future</description>
	<lastBuildDate>Fri, 30 Oct 2026 12:29:24 +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 Intermittent demand - OpenForecast</title>
	<link>https://openforecast.org/category/forecasting-theory/intermittent-demand/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>smooth in Python: iETS and the Croston&#8217;s Method</title>
		<link>https://openforecast.org/2026/11/02/smooth-in-python-iets-and-the-croston-s-method/</link>
					<comments>https://openforecast.org/2026/11/02/smooth-in-python-iets-and-the-croston-s-method/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Mon, 02 Nov 2026 09:00:52 +0000</pubDate>
				<category><![CDATA[ETS]]></category>
		<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[smooth for Python]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[ADAM]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[smooth]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=4706</guid>

					<description><![CDATA[<p>Is there a statistical model underlying Croston’s method? This question has been bothering researchers for decades. Croston proposed his method back in 1972, and some even argued that there is no sensible model behind it (Shenstone &#038; Hyndman, 2005). Yet there is one! Let me explain. But first, why bother? Because a method just gives ... <a title="smooth in Python: iETS and the Croston&#8217;s Method" class="read-more" href="https://openforecast.org/2026/11/02/smooth-in-python-iets-and-the-croston-s-method/" aria-label="Read more about smooth in Python: iETS and the Croston&#8217;s Method">Read more</a></p>
<p>Message <a href="https://openforecast.org/2026/11/02/smooth-in-python-iets-and-the-croston-s-method/">smooth in Python: iETS and the Croston&#8217;s Method</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Is there a statistical model underlying Croston’s method? This question has been bothering researchers for decades. Croston proposed his method back in 1972, and some even argued that there is no sensible model behind it (<a href="https://doi.org/10.1002/for.963">Shenstone &#038; Hyndman, 2005</a>). Yet there is one! Let me explain.</p>
<p>But first, why bother? Because a method just gives you a number, while a model gives you a likelihood, and with it flexibility: you can select components and features via information criteria, get predictive distributions, and extend the model however you like. So, if you derive a model underlying a method, you bring that method to another level.</p>
<p>A quick recap. <a href="/2026/10/14/the-main-idea-behind-the-croston-s-method/">Croston split intermittent demand into two parts</a>: how often the product sells (demand intervals) and how much it sells when it does (demand sizes), and applied Simple Exponential Smoothing (SES) to each of them. <a href="/2026/10/26/smooth-in-python-fixed-probability-model-for-demand-occurrence/">In my previous post</a>, I showed the simplest model for the &#8220;how often&#8221; part, which assumes that the chance of a sale does not change over time.</p>
<p>A more complicated statistical model was proposed by John Boylan and me in <a href="/2023/09/08/iets-state-space-model-for-intermittent-demand-forecasting/">our iETS paper</a>. It assumes that the occurrence of sales follows a Bernoulli distribution with a time-varying probability. In the “inverse-odds-ratio” version of the model, we track the expected number of periods without sales: if the gap between sales is 4 periods then the probability of a sale is 1/4. Every new zero or one is converted into an error term, and this expected number is updated via ETS(M,N,N), the model underlying SES. When the probability does not change much over time, this model can be estimated with Croston’s method, which is why it can be considered as the model underlying it.</p>
<p>In Python, the basic model is done like this:</p>
<pre class="decode">from smooth import OM, ADAM

occ = OM(model="MNN", occurrence="inverse-odds-ratio")
occ.fit(y)
model = ADAM(model="MNN")
model.fit(y, occurrence=occ)
model.predict(h=10, interval="prediction")</pre>
<p>In the paper, we also showed that this model is especially suitable for new products with demand building up. This means that the gaps between sales become shorter and shorter, i.e. the demand transforms from intermittent to regular. If you expect this to continue in the holdout period, you can use the trend model, and here how to do that in Python:</p>
<pre class="decode">occ = OM(model="MMN", occurrence="inverse-odds-ratio")</pre>
<p>This way, the expected gap between sales would decline in the holdout period, and the probability of a sale would grow. The image in this post shows how this works on an artificial example.</p>
<p>And if you know what drives sales (e.g. promotions or price changes), you can include this information in the occurrence model as well.</p>
<p>So, yes, there is a model underlying Croston’s method, and it allows doing things that the method itself cannot do.</p>
<p>Try smooth for Python: <code>pip install smooth</code><br />
<a href="https://github.com/openforecast-org/smooth/wiki/OM">Occurrence model on wiki</a></p>
<p>Message <a href="https://openforecast.org/2026/11/02/smooth-in-python-iets-and-the-croston-s-method/">smooth in Python: iETS and the Croston&#8217;s Method</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2026/11/02/smooth-in-python-iets-and-the-croston-s-method/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>smooth in Python: fixed probability model for demand occurrence</title>
		<link>https://openforecast.org/2026/10/26/smooth-in-python-fixed-probability-model-for-demand-occurrence/</link>
					<comments>https://openforecast.org/2026/10/26/smooth-in-python-fixed-probability-model-for-demand-occurrence/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Mon, 26 Oct 2026 08:48:42 +0000</pubDate>
				<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[smooth for Python]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[ADAM]]></category>
		<category><![CDATA[ETS]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[smooth]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=4695</guid>

					<description><![CDATA[<p>When demand is intermittent, one of the most useful forecasts you can produce is not &#8220;how much will we sell&#8221;, but &#8220;how likely are we to sell anything at all&#8221;. And this probability can be modelled, just like demand itself. This idea goes back to Croston, who suggested splitting intermittent demand into demand occurrence and ... <a title="smooth in Python: fixed probability model for demand occurrence" class="read-more" href="https://openforecast.org/2026/10/26/smooth-in-python-fixed-probability-model-for-demand-occurrence/" aria-label="Read more about smooth in Python: fixed probability model for demand occurrence">Read more</a></p>
<p>Message <a href="https://openforecast.org/2026/10/26/smooth-in-python-fixed-probability-model-for-demand-occurrence/">smooth in Python: fixed probability model for demand occurrence</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>When demand is intermittent, one of the most useful forecasts you can produce is not &#8220;how much will we sell&#8221;, but &#8220;how likely are we to sell anything at all&#8221;. And this probability can be modelled, just like demand itself.</p>
<p>This idea goes <a href="/2026/10/14/the-main-idea-behind-the-croston-s-method/">back to Croston</a>, who suggested splitting intermittent demand into demand occurrence and demand sizes. The main image in the post shows a typical intermittent demand series, and the one below shows its occurrence part: &#8220;1&#8221; when someone bought the product, and &#8220;0&#8221; otherwise.</p>
<figure id="attachment_4697" aria-describedby="caption-attachment-4697" 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/10/2026-10-02-smooth-posts-11-occurrence-model-02.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/10/2026-10-02-smooth-posts-11-occurrence-model-02-1024x474.png&amp;nocache=1" alt="Demand occurrence part of the data" width="1024" height="474" class="size-large wp-image-4697" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-02-1024x474.png&amp;nocache=1 1024w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-02-300x139.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-02-768x356.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-02.png&amp;nocache=1 1080w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption id="caption-attachment-4697" class="wp-caption-text">Demand occurrence part of the data</figcaption></figure>
<p>We now have a series that can be modelled on its own, and there are many ways to do that, which come down to your preferences and experience: ETS, ARIMA, logistic regression, GBM, Neural Network &#8211; you name it!</p>
<p>One thing to avoid, though, is trying to predict the exact periods when sales will happen: when demand is truly intermittent, you can’t. What you can forecast is the probability. <a href="/2024/12/11/intermittent-demand-don-t-try-to-predict-when-it-will-happen/">I had a post on that topic</a>.</p>
<p>In the smooth package, there is a separate function for this, OM, which allows using ETS, ARIMA and regression elements to model demand occurrence. It supports several types of occurrence, including the odds-ratio, the inverse-odds-ratio (related to Croston&#8217;s method) and the direct one (similar to TSB). But the simplest of all is the fixed probability, which assumes that the probability of sale does not change over time. It simply takes the share of periods with sales: if the product sold in 30 out of 100 weeks, the probability is 0.3. If you read my previous post, you might notice that <a href="/2026/10/19/what-the-average-demand-interval-adi-hides/">this is essentially 1/ADI</a> turned into a forecast, with the same limitation of ignoring how demand evolves. Still, it is a good benchmark and a starting point for intermittent demand forecasting.</p>
<p>In Python, this is done like this:</p>
<pre class="decode">from smooth import OM, ADAM

model = OM(occurrence="fixed")
model.fit(y)
fc = model.predict(h=10)</pre>
<p>The resulting probability forecast is shown in the following image:</p>
<figure id="attachment_4698" aria-describedby="caption-attachment-4698" 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/10/2026-10-02-smooth-posts-11-occurrence-model-03.png&amp;nocache=1"><img decoding="async" src="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-03-1024x474.png&amp;nocache=1" alt="Forecast for the demand occurrence" width="1024" height="474" class="size-large wp-image-4698" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-03-1024x474.png&amp;nocache=1 1024w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-03-300x139.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-03-768x356.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-smooth-posts-11-occurrence-model-03.png&amp;nocache=1 1080w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption id="caption-attachment-4698" class="wp-caption-text">Forecast for the demand occurrence</figcaption></figure>
<p>We can also use this directly in ADAM, which splits the demand into two parts on its own. Here is the model with ETS(M,N,N) for demand sizes and the fixed probability of occurrence, iETS(M,N,N)_F:</p>
<pre class="decode">model = ADAM(model="MNN", occurrence="fixed")
model.fit(y)
model.predict(h=10)</pre>
<p>The last command takes the probability from the occurrence model and multiplies it by the forecast of demand sizes. The result is the mean demand per period, just like from any other forecasting method.</p>
<p>Next time, I&#8217;ll tell you about the more advanced occurrence models, where the probability changes over time. So, stay tuned!</p>
<p>Try smooth for Python: <code>pip install smooth</code><br />
<a href="https://github.com/openforecast-org/smooth/wiki/OM">Occurrence model on wiki</a>.</p>
<p>Message <a href="https://openforecast.org/2026/10/26/smooth-in-python-fixed-probability-model-for-demand-occurrence/">smooth in Python: fixed probability model for demand occurrence</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2026/10/26/smooth-in-python-fixed-probability-model-for-demand-occurrence/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What the Average Demand Interval (ADI) hides</title>
		<link>https://openforecast.org/2026/10/19/what-the-average-demand-interval-adi-hides/</link>
					<comments>https://openforecast.org/2026/10/19/what-the-average-demand-interval-adi-hides/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Mon, 19 Oct 2026 08:30:20 +0000</pubDate>
				<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[EDA]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<category><![CDATA[theory]]></category>
		<category><![CDATA[time series]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=4685</guid>

					<description><![CDATA[<p>Have you used the Average Demand Interval (ADI) for analysis or classification? Do you know that it has some issues? Let me explain. I don&#8217;t know when specifically ADI was proposed, but it was popularised by Syntetos, Boylan &#38; Croston (2005), yes, the same Croston from this post. A demand interval is the number of ... <a title="What the Average Demand Interval (ADI) hides" class="read-more" href="https://openforecast.org/2026/10/19/what-the-average-demand-interval-adi-hides/" aria-label="Read more about What the Average Demand Interval (ADI) hides">Read more</a></p>
<p>Message <a href="https://openforecast.org/2026/10/19/what-the-average-demand-interval-adi-hides/">What the Average Demand Interval (ADI) hides</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Have you used the Average Demand Interval (ADI) for analysis or classification? Do you know that it has some issues? Let me explain.</p>
<p>I don&#8217;t know when specifically ADI was proposed, but it was popularised by <a href="https://doi.org/10.1057/palgrave.jors.2601841">Syntetos, Boylan &amp; Croston (2005)</a>, yes, the same Croston from <a href="/2026/10/14/the-main-idea-behind-the-croston-s-method/">this post</a>. A demand interval is the number of periods between consecutive non-zero demands, and ADI is just their mean. It lies between one (demand in every period) and, theoretically, infinity (no demand at all). But why would anyone need it?</p>
<p>Originally, it was used together with the coefficient of variation \(CV^2 \) to classify demand into four types (<a href="/2025/06/04/sbc-is-not-for-you/">the SBC classification</a>) and to choose between Croston’s method and SBA. The authors compared the theoretical MSE of the methods and found cut-off points: Croston does better only when \(ADI &lt; 1.32\) and \(CV^2 &lt; 0.49\). Otherwise, SBA wins.</p>
<p>My interpretation of the \(ADI &lt; 1.32\) (this is not in the paper): SBA fixes the bias of Croston’s method, which matters most for very slow-moving products. But it does that at a cost. SBA multiplies Croston’s forecast by \( (1 − \alpha /2) \), which just lowers probability of occurrence. If demand becomes less sporadic, SBA underestimates it (e.g. 0.85 instead of 0.9 with \(\alpha = 0.1\)).</p>
<p>But why ADI in the first place? Because historically the main academic work on intermittent demand was carried out in spare parts and similar domains, where sales are rare even at the monthly level (the 2005 paper used 3000 series from the automotive industry). When the probability of occurrence is low, demand does not evolve much over time, so averaging the demand intervals is acceptable.</p>
<p>Nowadays, we face intermittent demand everywhere: in retail, energy, healthcare and other areas. The data is often collected at a more granular level (weekly or daily), and intermittent demand comes in more complex shapes than in spare parts. Averaging the intervals then hides important information. For example, if your product becomes obsolete halfway through the sample and the probability of occurrence drops from 0.5 to 0.1, ADI will be around 3.3. That corresponds to a probability of 0.3: neither the 0.5 you had nor the 0.1 you have now. It is like judging a hospital by the average temperature of all its patients.</p>
<p>So, ADI is a fine measure for its original purpose. But time has passed, use cases have changed, and nowadays instead of averaging the intervals, I recommend looking at how the probability of occurrence evolves over time, for example, by smoothing it (see the image in the post) or with a model that has a time-varying probability (<a href="https://doi.org/10.1016/j.ijpe.2023.109013">like iETS</a>). A plot of demand occurrence over time tells you more than ADI ever will.</p>
<p>We have a separate session on intermittent demand in our <a href="https://openforecast.org/training/demand-forecasting-principles/">Demand Forecasting Principles course</a>, where we cover this and other topics in detail.</p>
<p>Message <a href="https://openforecast.org/2026/10/19/what-the-average-demand-interval-adi-hides/">What the Average Demand Interval (ADI) hides</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2026/10/19/what-the-average-demand-interval-adi-hides/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The main idea behind the Croston’s method</title>
		<link>https://openforecast.org/2026/10/14/the-main-idea-behind-the-croston-s-method/</link>
					<comments>https://openforecast.org/2026/10/14/the-main-idea-behind-the-croston-s-method/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Wed, 14 Oct 2026 09:28:42 +0000</pubDate>
				<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[ETS]]></category>
		<category><![CDATA[extrapolation methods]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<category><![CDATA[theory]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=4680</guid>

					<description><![CDATA[<p>Have you heard of Croston’s method for intermittent demand forecasting? Some modern data scientists dislike it because it is too simple and not as accurate as some modern forecasting approaches. And they have a point. But here is why it is worth keeping Croston in mind. Back in 1972, John Croston, who worked on stock ... <a title="The main idea behind the Croston’s method" class="read-more" href="https://openforecast.org/2026/10/14/the-main-idea-behind-the-croston-s-method/" aria-label="Read more about The main idea behind the Croston’s method">Read more</a></p>
<p>Message <a href="https://openforecast.org/2026/10/14/the-main-idea-behind-the-croston-s-method/">The main idea behind the Croston’s method</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Have you heard of Croston’s method for intermittent demand forecasting? Some modern data scientists dislike it because it is too simple and not as accurate as some modern forecasting approaches. And they have a point. But here is why it is worth keeping Croston in mind.</p>
<p>Back <a href="https://doi.org/10.1057/jors.1972.50">in 1972, John Croston</a>, who worked on stock control systems relying on Simple Exponential Smoothing (SES), noticed that SES forecasts were biased exactly when ordering decisions were made: right after a demand occurred. The following image shows why.</p>
<figure id="attachment_4681" aria-describedby="caption-attachment-4681" 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/10/2026-10-02-intermittent-demand-croston-01.png&amp;nocache=1"><img decoding="async" src="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-intermittent-demand-croston-01-1024x580.png&amp;nocache=1" alt="SES on Intermittent demand" width="1024" height="580" class="size-large wp-image-4681" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-intermittent-demand-croston-01-1024x580.png&amp;nocache=1 1024w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-intermittent-demand-croston-01-300x170.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-intermittent-demand-croston-01-768x435.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2026/10/2026-10-02-intermittent-demand-croston-01.png&amp;nocache=1 1378w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption id="caption-attachment-4681" class="wp-caption-text">SES on Intermittent demand</figcaption></figure>
<p>Intermittent demand consists mostly of periods with no sales, and SES treats each of them as a sale of size zero rather than as the absence of a sale. So, its forecast goes down with every zero, as if people wanted the product less and less. Then a customer buys 5 units, and SES immediately becomes optimistic. But in intermittent demand, sales rarely happen in consecutive periods, so this optimism leads to wrong ordering decisions.</p>
<p>The problem is not SES itself, but that it does not distinguish demand occurrence from demand sizes. Croston split the series into two parts (see the main image of the post): demand intervals (the number of periods between non-zero demands) and demand sizes (the non-zero values). He applied SES to each of them separately, and defined the final forecast as the ratio of the smoothed sizes to the smoothed intervals, i.e. the expected demand per period. Both parts are updated only when a demand happens, so the method does not change its mind with every zero, giving more stable forecasts and more reasonable ordering decisions.</p>
<p>Nowadays, we have many great forecasting approaches, from simple ones like TSB to more advanced ones like LightGBM. Croston’s method itself turned out to be biased (<a href="https://doi.org/10.1016/j.ijforecast.2004.10.001">Syntetos &#038; Boylan proposed a correction for that</a>). Still, it works fine for manufacturers of large expensive items, with low volumes and long gaps between orders, where a stable forecast matters more than a quick reaction. I am not a big fan of the method, but I really like Croston’s original idea: split intermittent demand into demand occurrence and demand sizes. More than half a century later, this idea still works. <a href="https://doi.org/10.1016/j.ijpe.2023.109013">My iETS paper used it</a>, outperforming other simple forecasting methods on the M5 data. <a href="https://doi.org/10.1371/journal.pone.0259764">Türkmen et al. (2021)</a> used the same idea with deep neural networks. <a href="/2025/03/20/why-do-zeroes-happen-a-model-based-view-on-demand-classification/">The paper with Anna Sroginis</a> showed that it also works with LightGBM, leading to substantial accuracy improvements that translate into inventory savings. So, even if you dislike Croston’s method, I bet you can improve your approach by using his original idea.</p>
<p>We will cover intermittent demand and the methods built on Croston’s idea in our <a href="/training/demand-forecasting-principles/">Demand Forecasting Principles course in November</a>.</p>
<p>Message <a href="https://openforecast.org/2026/10/14/the-main-idea-behind-the-croston-s-method/">The main idea behind the Croston’s method</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2026/10/14/the-main-idea-behind-the-croston-s-method/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SBC is not for you!</title>
		<link>https://openforecast.org/2025/06/04/sbc-is-not-for-you/</link>
					<comments>https://openforecast.org/2025/06/04/sbc-is-not-for-you/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Wed, 04 Jun 2025 11:41:00 +0000</pubDate>
				<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<category><![CDATA[theory]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3853</guid>

					<description><![CDATA[<p>I&#8217;ve been acting as a reviewer lately, providing comments on papers about intermittent demand, and I’ve felt a bit frustrated by what some authors write. Let me explain. Several papers I reviewed claim that demand can be either intermittent or lumpy. They then mention the Syntetos-Boylan-Croston (SBC) classification and use the thresholds from Syntetos et ... <a title="SBC is not for you!" class="read-more" href="https://openforecast.org/2025/06/04/sbc-is-not-for-you/" aria-label="Read more about SBC is not for you!">Read more</a></p>
<p>Message <a href="https://openforecast.org/2025/06/04/sbc-is-not-for-you/">SBC is not for you!</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been acting as a reviewer lately, providing comments on papers about intermittent demand, and I’ve felt a bit frustrated by what some authors write. Let me explain.</p>
<p>Several papers I reviewed claim that demand can be either intermittent or lumpy. They then mention the Syntetos-Boylan-Croston (SBC) classification and use the thresholds from Syntetos et al. (2005: ) to do some things with ML methods. Sounds reasonable?</p>
<p>No! And here’s why.</p>
<p>Actually, I’ve already explained this in <a href="/2024/07/16/intermittent-demand-classifications-is-that-what-you-need/">a previous post</a>, but let me summarise the main points again.</p>
<p>First, intermittent demand is the demand that happens at irregular frequency. That’s the definition John Boylan and I came up with in our paper (<a href="/2023/09/08/iets-state-space-model-for-intermittent-demand-forecasting/">this one</a>). But even before that, the literature generally agreed: if you observe naturally occurring zeroes (e.g., no one wants to buy a product), then the demand is intermittent &#8211; even if there’s only one zero in the data.</p>
<p>Now, <a href="https://doi.org/10.1057/palgrave.jors.2601841">Syntetos et al. (2005)</a> specifically studied <strong>intermittent demand</strong> and proposed a classification to help choose between Croston’s method and SBA. Their classification includes four types (see image in the post):</p>
<ol>
<li>Erratic but not very intermittent</li>
<li>Smooth</li>
<li>Lumpy</li>
<li>Intermittent but not very erratic</li>
</ol>
<p>The thresholds they used (ADI=1.32 and CV²=0.49) were <strong>only</strong> intended to guide the choice between Croston and SBA. And &#8220;lumpy&#8221;, as you can see, is just a special case of intermittent demand!</p>
<p>Yes, you can classify intermittent demand into &#8220;lumpy&#8221; and &#8220;smooth&#8221;, but this separation is not well-defined. Use a different classification (e.g., <a href="https://openforecast.org/2025/04/11/svetunkov-sroginis-2025-model-based-demand-classification/">this paper</a>) and you&#8217;ll get different results. In fact, practically speaking, your ML approach likely doesn’t need this classification at all.</p>
<p>So, here are a two things you should <strong>NOT DO</strong>:</p>
<ol>
<li>Saying that demand can be &#8220;intermittent&#8221; or &#8220;lumpy&#8221; &#8211; the latter is a subset of the former.</li>
<li>Use ADI=1.32 and/or CV²=0.49 to categorise demand, unless you&#8217;re selecting between Croston and SBA. And let’s be honest, you’re probably not doing that. So forget about it!</li>
</ol>
<p>And honestly, stop overusing SBC! Lately, I&#8217;ve seen more harm than good from it. If you really want to use it, make sure you’ve read carefully and understood the original paper.</p>
<p>But if you don&#8217;t know what you are doing, SBC is not for you!</p>
<p>Message <a href="https://openforecast.org/2025/06/04/sbc-is-not-for-you/">SBC is not for you!</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2025/06/04/sbc-is-not-for-you/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Svetunkov &#038; Sroginis (2025) &#8211; Model Based Demand Classification</title>
		<link>https://openforecast.org/2025/04/11/svetunkov-sroginis-2025-model-based-demand-classification/</link>
					<comments>https://openforecast.org/2025/04/11/svetunkov-sroginis-2025-model-based-demand-classification/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Fri, 11 Apr 2025 10:39:30 +0000</pubDate>
				<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[extrapolation methods]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<category><![CDATA[papers]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3821</guid>

					<description><![CDATA[<p>For the last year, Anna Sroginis and I have been working on a paper, trying to modernise demand classification schemes and make them useful in the brave new era of machine learning. We have finally wrapped it up and submitted it to a peer-reviewed journal. But the temptation to share was too strong, so we ... <a title="Svetunkov &#038; Sroginis (2025) &#8211; Model Based Demand Classification" class="read-more" href="https://openforecast.org/2025/04/11/svetunkov-sroginis-2025-model-based-demand-classification/" aria-label="Read more about Svetunkov &#038; Sroginis (2025) &#8211; Model Based Demand Classification">Read more</a></p>
<p>Message <a href="https://openforecast.org/2025/04/11/svetunkov-sroginis-2025-model-based-demand-classification/">Svetunkov &#038; Sroginis (2025) &#8211; Model Based Demand Classification</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>For the last year, Anna Sroginis and I have been working on a paper, trying to modernise demand classification schemes and make them useful in the brave new era of machine learning. We have finally wrapped it up and submitted it to a peer-reviewed journal. But the temptation to share was too strong, so we have also uploaded it to arXiv, and it is <a href="https://doi.org/10.48550/arXiv.2504.05894">now available here</a>.</p>
<p>What is this paper about?</p>
<p>Intermittent demand is a common challenge in sectors like supply chain and retail. But the key issue is that zeroes in sales can happen for two fundamentally different reasons (<a href="/2024/11/18/why-zeroes-happen/">see one of my previous posts</a>):</p>
<ul>
<li>Nobody wanted to buy the product (naturally occurring zeroes),</li>
<li>Nobody could buy the product (artificially occurring due to stockouts, etc).</li>
</ul>
<p>However, forecasting methods are typically unaware of this distinction and treat both types equally. This can lead to inaccurate forecasts and poor decisions. On top of that, existing classification schemes for intermittent demand (<a href="/2024/07/16/intermittent-demand-classifications-is-that-what-you-need/">such as SBC</a>) use arbitrary thresholds and rely on choosing between forecasting methods like Croston and SBA. There’s a clear need for smarter, more flexible tools that can distinguish between types of demand and make classifications practical.</p>
<p>In this paper, we introduce a two-stage, model-based framework called &#8220;Automatic Identification of Demand&#8221; (AID), designed to bring more clarity and accuracy to demand classification. The first stage uses a data-driven approach to detect artificially occurring zeroes. Once those are accounted for, the second stage classifies the demand into one of six categories based on key characteristics: whether the demand is regular or intermittent, whether it consists of count or fractional values, and whether intermittent demand is smooth or lumpy in nature. AID detects stockouts by analysing demand intervals using the Geometric distribution, then flags the demand as one of those six types based on several simple statistical models.</p>
<p>We applied AID to a retailer dataset covering over 31,000 products with weekly sales across three stores. Based on that, we generated several features and tested multiple approaches (local level, pooled regression, and LightGBM) to see whether their accuracy improved. We found that:</p>
<ol>
<li>Correcting for stockouts significantly improved the accuracy of all approaches;</li>
<li>Using a mixture approach (separating demand into sizes and occurrences) yielded large gains in accuracy, regardless of the forecasting method used;</li>
<li>Further splitting the data by demand categories (e.g., regular vs. intermittent, smooth vs. lumpy) provided additional, though more modest, benefits.</li>
</ol>
<p>We argue that these three principles are universally valuable for forecasting, no matter what approach you use. If you face intermittent demand, at a minimum, consider detecting stockouts and then using the mixture approach.</p>
<p>Hope you find this paper useful. Let me know what you think in the comments.</p>
<p>Message <a href="https://openforecast.org/2025/04/11/svetunkov-sroginis-2025-model-based-demand-classification/">Svetunkov &#038; Sroginis (2025) &#8211; Model Based Demand Classification</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2025/04/11/svetunkov-sroginis-2025-model-based-demand-classification/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Don’t use MAE-based error measures for intermittent demand!</title>
		<link>https://openforecast.org/2025/01/21/don-t-use-mae-based-error-measures-for-intermittent-demand/</link>
					<comments>https://openforecast.org/2025/01/21/don-t-use-mae-based-error-measures-for-intermittent-demand/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Tue, 21 Jan 2025 12:02:06 +0000</pubDate>
				<category><![CDATA[Forecast evaluation]]></category>
		<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[error measures]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3768</guid>

					<description><![CDATA[<p>I’m currently doing a literature review for one of my papers on intermittent demand forecasting with machine learning, and I’ve noticed a recurring fundamental mistake in several recently published papers, even in respectable peer-reviewed journals. The mistake? Using error measures based on the Mean Absolute Error (MAE). This is a crime against the humanity when ... <a title="Don’t use MAE-based error measures for intermittent demand!" class="read-more" href="https://openforecast.org/2025/01/21/don-t-use-mae-based-error-measures-for-intermittent-demand/" aria-label="Read more about Don’t use MAE-based error measures for intermittent demand!">Read more</a></p>
<p>Message <a href="https://openforecast.org/2025/01/21/don-t-use-mae-based-error-measures-for-intermittent-demand/">Don’t use MAE-based error measures for intermittent demand!</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I’m currently doing a literature review for one of my papers on intermittent demand forecasting with machine learning, and I’ve noticed a recurring fundamental mistake in several recently published papers, even in respectable peer-reviewed journals.</p>
<p>The mistake? Using error measures based on the Mean Absolute Error (MAE). This is a crime against the humanity when working with intermittent demand. I’ve explained this issue multiple times before (<a href="/2019/08/25/are-you-sure-youre-precise-measuring-accuracy-of-point-forecasts/">here</a>, <a href="/2024/04/03/stop-reporting-several-error-measures-just-for-the-sake-of-them/">here</a>, and <a href="/2024/07/16/point-forecast-evaluation-state-of-the-art/">here</a>), but it appears that this idea needs to be repeated over and over again. Let me explain.</p>
<p>MAE is minimised by the median. In the case of intermittent demand, the median can often be zero. If you use MAE (or scaled measures like MASE or sMAE) to evaluate forecasts and compare, for example, Croston, TSB, ETS, and an Artificial Neural Network (ANN), you may find the ANN outperforming the others. However, this could simply mean that the ANN produces forecasts closer to zero than the alternatives. This is not what you want for intermittent demand! The goal is to capture the structure correctly and produce conditional mean forecasts (typically). Instead, by relying on MAE, you might conclude: &#8220;We won’t sell anything in the next two weeks&#8221;, implying that there’s no need to stock products. This is apparently wrong and unhelpful.</p>
<p>Attached to this post is a figure showing three forecasts for an intermittent demand series:</p>
<ul>
<li>The blue line represents the mean of the data;</li>
<li>The green line is a forecast from an Artificial Neural Network;</li>
<li>The red line is the zero forecast.</li>
</ul>
<p>In the figure’s legend, you’ll see error measures indicating that the zero forecast performs best in terms of MAE, followed by the ANN, and lastly, the mean forecast. Based on MAE, the conclusion would be: &#8220;We won’t sell anything, so don’t bother stocking the product&#8221;. But this outcome occurs solely because 12 out of 20 values in the holdout are zeros, making the median zero as well.</p>
<p>On the other hand, RMSE provides a more reasonable evaluation, showing that the mean of the data is more informative and preferable to the other methods.</p>
<p>The brief summary of this post is: *Don’t use MAE-based error measures for intermittent demand!* (Insert as many exclamation marks as you’d like!)</p>
<p>P.S. Actually, as a general rule, avoid using MAE for evaluating methods that produce mean forecasts. For more details, check out <a href="/2024/04/03/stop-reporting-several-error-measures-just-for-the-sake-of-them/">this post</a>.</p>
<p>P.P.S What frustrates me a lot is that the reviewers of those papers did nothing to fix this issue, which means that they are clueless about that as well.</p>
<p>Message <a href="https://openforecast.org/2025/01/21/don-t-use-mae-based-error-measures-for-intermittent-demand/">Don’t use MAE-based error measures for intermittent demand!</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2025/01/21/don-t-use-mae-based-error-measures-for-intermittent-demand/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Intermittent demand: don&#8217;t try to predict WHEN it will happen</title>
		<link>https://openforecast.org/2024/12/11/intermittent-demand-don-t-try-to-predict-when-it-will-happen/</link>
					<comments>https://openforecast.org/2024/12/11/intermittent-demand-don-t-try-to-predict-when-it-will-happen/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Wed, 11 Dec 2024 10:50:26 +0000</pubDate>
				<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[extrapolation methods]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<category><![CDATA[theory]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3748</guid>

					<description><![CDATA[<p>I&#8217;ve seen several times ML experts applying principles of classification for intermittent demand forecasting. For example, they try predicting, WHEN the demand will happen. This is not a very sensible thing to do. The featured image in this post shows two forecasting approaches: one that tries to predict when demand happens (the yellow line), and ... <a title="Intermittent demand: don&#8217;t try to predict WHEN it will happen" class="read-more" href="https://openforecast.org/2024/12/11/intermittent-demand-don-t-try-to-predict-when-it-will-happen/" aria-label="Read more about Intermittent demand: don&#8217;t try to predict WHEN it will happen">Read more</a></p>
<p>Message <a href="https://openforecast.org/2024/12/11/intermittent-demand-don-t-try-to-predict-when-it-will-happen/">Intermittent demand: don&#8217;t try to predict WHEN it will happen</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve seen several times ML experts applying principles of classification for intermittent demand forecasting. For example, they try predicting, WHEN the demand will happen. This is not a very sensible thing to do.</p>
<p>The featured image in this post shows two forecasting approaches: one that tries to predict when demand happens (the yellow line), and the other one that tries capturing the structure of the demand and extrapolates it (the blue line). The green line shows the values in the holdout, and the RMSE indicates the error of the two approaches. Apparently, the straight line is better in this example. Let&#8217;s discuss why.</p>
<p>Just a reminder, intermittent demand is the demand that happens at irregular frequency. By definition, we cannot know when a person will come to our store and buy the product. We operate with probabilities in this case, and can say sometimes that the probability of purchase goes up or down due to some factors (seasonality, holidays, promotion etc). When a spherical ML expert in vacuum hears about probability, the first thing that pops to their mind is the &#8220;decision boundary&#8221; for classification task. Why not set some threshold and say that if the probability is higher than that, the product will be bought and in the other case it won&#8217;t?</p>
<p>Well, while this works in classification, it typically doesn&#8217;t make sense in demand forecasting.</p>
<p>First, there&#8217;s not much structure to capture in intermittent demand besides the basic level, external factors, such as promotions and calendar effects, and occasional trend. Yes, some of them might change the probability of occurrence, and, for example, show that a product will be bought on Monday with 90% probability. This still does not mean that the product will be indeed bought. Saying that it will is just informed guessing, not forecasting.</p>
<p>Second, point forecast is supposed to capture the structure and filter out the noise (see <a href="/2024/08/13/structure-vs-noise-a-fundamental-concept-in-forecasting/">this post</a>). In case of intermittent demand, the structure consists of two parts: expected occurrence (probability) and demand sizes. If we substitute the probability with zeroes and ones based on some threshold, we&#8217;ll end up overfitting the noise, but on a different level than usually: the future is uncertain and we can never say for sure what will happen and when, yet we would be playing a guessing game, hoping to be correct. It is like tossing a coin, trying to guess how it will land next time. If you want to have an expectation in that experiment, you should have probability, not a sequence of zeroes and ones.</p>
<p>Third and most important, working with intermittent demand, we typically want to solve a specific problem. The classical example is inventory management, in which case we don&#8217;t care whether customers will come and buy our product on Monday, instead of Tuesday. We care about having enough product on shelves to satisfy customers throughout a period of time, while our product is being delivered (lead time). So, the goal in this case is to identify the appropriate safety stock level based on the current stock and thus get an estimate of the demand over lead time, not to predict when people come and how much they will buy. Focusing on the point forecast in this setting is a futile task.</p>
<p>So, when working with intermittent demand, don&#8217;t waste your time on trying to forecast when the demand will happen. Focus instead on getting the structure correctly and then understanding what is needed by decision makers and how it will be used.</p>
<p>Message <a href="https://openforecast.org/2024/12/11/intermittent-demand-don-t-try-to-predict-when-it-will-happen/">Intermittent demand: don&#8217;t try to predict WHEN it will happen</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2024/12/11/intermittent-demand-don-t-try-to-predict-when-it-will-happen/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Why Naive is not a good benchmark for intermittent demand</title>
		<link>https://openforecast.org/2024/12/02/why-naive-is-not-a-good-benchmark-for-intermittent-demand/</link>
					<comments>https://openforecast.org/2024/12/02/why-naive-is-not-a-good-benchmark-for-intermittent-demand/#comments</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Mon, 02 Dec 2024 14:05:53 +0000</pubDate>
				<category><![CDATA[Forecast evaluation]]></category>
		<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[extrapolation methods]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3739</guid>

					<description><![CDATA[<p>While Naive is considered a standard benchmark in forecasting, there is a case where it might not be a good one: intermittent demand. And here is why I think so. Naive is a forecasting method that uses the last available observation as a forecast for the next ones. It does not have any parameters to ... <a title="Why Naive is not a good benchmark for intermittent demand" class="read-more" href="https://openforecast.org/2024/12/02/why-naive-is-not-a-good-benchmark-for-intermittent-demand/" aria-label="Read more about Why Naive is not a good benchmark for intermittent demand">Read more</a></p>
<p>Message <a href="https://openforecast.org/2024/12/02/why-naive-is-not-a-good-benchmark-for-intermittent-demand/">Why Naive is not a good benchmark for intermittent demand</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>While Naive is considered a standard benchmark in forecasting, there is a case where it might not be a good one: intermittent demand. And here is why I think so.</p>
<p>Naive is a forecasting method that uses the last available observation as a forecast for the next ones. It does not have any parameters to estimate, it does not require training, it can be applied to the sample of any data (even if you only have one observation). When you deal with a regular demand, it makes perfect sense to use Naive as a benchmark, because it costs nothing in terms of computational time, you get a forecast of demand, and if you cannot beat it, you should rethink your forecasting process.</p>
<p>However, in case of intermittent demand, the demand itself does not happen on every observation. As a result, when the Naive copies the last available value, it can either reproduce either a proper non-zero demand, or just the absence of demand. The latter implies that nobody bought our product today, and nobody will do in the next week or whatever the forecasting horizon we use. In the following image, Naive will be the most accurate forecasting method, because in the training set, the final observation was zero, and in the test set we did not have any sales:</p>
<figure id="attachment_3741" aria-describedby="caption-attachment-3741" 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/12/2024-11-01-Naive-Intermittent-01.png&amp;nocache=1"><img loading="lazy" decoding="async" src="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/12/2024-11-01-Naive-Intermittent-01-300x180.png&amp;nocache=1" alt="Naive forecast on intermittent demand" width="300" height="180" class="size-medium wp-image-3741" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/12/2024-11-01-Naive-Intermittent-01-300x180.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/12/2024-11-01-Naive-Intermittent-01-768x461.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/12/2024-11-01-Naive-Intermittent-01.png&amp;nocache=1 1000w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-3741" class="wp-caption-text">Naive forecast on intermittent demand</figcaption></figure>
<p>But is this useful? To answer this question, we need to understand what specifically we are forecasting when we deal with demand with zeroes.</p>
<p>As discussed in a <a href="/2024/11/18/why-zeroes-happen/">previous post</a>, zeroes can occur for different reasons: some of them happen because nobody came to buy the product (naturally occurring zeroes), while the others appear because there was some sort of disruption (e.g. a stockout) or a product was discontinued (artificially occurring zeroes). The two situations are fundamentally different, but if we work with the sales data exclusively (no stock information), it can be hard to tell the difference between them. Naive might work perfectly in both cases, forecasting no sales for the next few observations, and it can be 100% right in some cases. But the problem is that this is not useful. If we indeed cannot beat Naive on the data with zeroes, it does not mean that we should use it, because there is a chance that we have stockouts in the holdout period. If that&#8217;s the case, we might be doing something fundamentally wrong. After all, &#8220;we will not sell anything&#8221; is in general a simple statement, but not ordering products based on that could be a mistake, because &#8220;no sales&#8221; is not the same as &#8220;no demand&#8221;. In fact, if Naive indeed performs very well on your series with zeroes, this might indicate that your evaluation is wrong and you need to clean the data, removing the discontinued and out of stock items from the evaluation.</p>
<p>There are three lessons here:</p>
<ol>
<li>we should forecast demand, not sales;</li>
<li>we should measure accuracy on the data with naturally occurring zeroes &#8211; do data cleaning before setting up your evaluation;</li>
<li>it&#8217;s better to use a benchmark that tries capturing demand, not the one that reproduces sales.</li>
</ol>
<p>Arguably, a more helpful benchmark forecast would be the one in the following image:</p>
<figure id="attachment_3742" aria-describedby="caption-attachment-3742" 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/12/2024-11-01-Naive-Intermittent-02.png&amp;nocache=1"><img loading="lazy" decoding="async" src="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/12/2024-11-01-Naive-Intermittent-02-300x180.png&amp;nocache=1" alt="Forecast for intermittent demand from the SMA" width="300" height="180" class="size-medium wp-image-3742" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/12/2024-11-01-Naive-Intermittent-02-300x180.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/12/2024-11-01-Naive-Intermittent-02-768x461.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/12/2024-11-01-Naive-Intermittent-02.png&amp;nocache=1 1000w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-3742" class="wp-caption-text">Forecast for intermittent demand from the SMA</figcaption></figure>
<p>The forecast above was generated using the <a href="/2024/10/28/why-is-it-hard-to-beat-simple-moving-average/">Simple Moving Average</a>, and it tells us that there is a demand for the product over the next 13 days. Yes, it is less accurate than Naive, but it gives an estimate of the expected demand, not the expected sales.</p>
<p>Message <a href="https://openforecast.org/2024/12/02/why-naive-is-not-a-good-benchmark-for-intermittent-demand/">Why Naive is not a good benchmark for intermittent demand</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2024/12/02/why-naive-is-not-a-good-benchmark-for-intermittent-demand/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Why zeroes happen</title>
		<link>https://openforecast.org/2024/11/18/why-zeroes-happen/</link>
					<comments>https://openforecast.org/2024/11/18/why-zeroes-happen/#respond</comments>
		
		<dc:creator><![CDATA[Ivan Svetunkov]]></dc:creator>
		<pubDate>Mon, 18 Nov 2024 11:12:15 +0000</pubDate>
				<category><![CDATA[Intermittent demand]]></category>
		<category><![CDATA[Social media]]></category>
		<category><![CDATA[Theory of forecasting]]></category>
		<category><![CDATA[intermittent demand]]></category>
		<guid isPermaLink="false">https://openforecast.org/?p=3734</guid>

					<description><![CDATA[<p>Anna Sroginis and I have been working on a new approach for intermittent demand classification over the past year. We&#8217;ve taken a fresh look at the problem, starting by asking: why do zeroes happen? Let&#8217;s discuss why indeed. First, a quick note: it&#8217;s a mistake to define intermittent demand simply as &#8220;demand with zeroes&#8221;. That ... <a title="Why zeroes happen" class="read-more" href="https://openforecast.org/2024/11/18/why-zeroes-happen/" aria-label="Read more about Why zeroes happen">Read more</a></p>
<p>Message <a href="https://openforecast.org/2024/11/18/why-zeroes-happen/">Why zeroes happen</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Anna Sroginis and I have been working on a new approach for intermittent demand classification over the past year. We&#8217;ve taken a fresh look at the problem, starting by asking: why do zeroes happen? Let&#8217;s discuss why indeed.</p>
<p>First, a quick note: it&#8217;s a mistake to define intermittent demand simply as &#8220;demand with zeroes&#8221;. That definition is incomplete and can be misleading. As some of you know, the definition I prefer is that <a href="/2024/06/18/introduction-to-intermittent-demand/">intermittent demand occurs at irregular frequencies</a>. This means the zeroes in such demand are unpredictable and happen simply because nobody wanted to buy the product on a specific day. Unless you know precisely who will buy and how much, you can’t predict if there will be demand that day. These zeroes can be considered &#8220;naturally occurring&#8221;.</p>
<p>But zeroes can also happen for other reasons. People might want to buy a product, but it may be unavailable. This typically happens due to stockouts, caused by either incorrect safety stock levels, supply chain disruptions (e.g., a container ship running aground), or a product being discontinued by the company. Sometimes, zero sales occur because a store was closed for a holiday, a gas leak, a flood, or another unexpected event. These types of zeroes are explainable and sometimes even predictable, so we can call them &#8220;artificially occurring&#8221;.</p>
<p>Furthermore, zeroes may appear at the start of a time series if a product was recently introduced and lacks a sales history. These zeroes don’t provide useful information for forecasting.</p>
<p>Some zeroes might also occur seasonally, for example, for Christmas-related products. These too can be classified as artificially occurring because, while there may be a small demand for such items, it’s usually unreasonable to sell them just to satisfy a handful of customers.</p>
<p>Finally, errors in the system can result in zeroes. For example, sales might not have been recorded correctly, leading to either zeroes or missing values (sometimes treated as zeroes). These can also be categorized as &#8220;artificially occurring&#8221;.</p>
<p>Demand with only artificially occurring zeroes isn’t intermittent; it is regular demand with issues.</p>
<p>Having said that, the reality is often more complex. You can easily have intermittent demand with stockouts, and distinguishing between naturally and artificially occurring zeroes in such cases can be challenging.</p>
<p>But why bother?</p>
<p>If your goal is to forecast demand (not just sales), you need to address artificially occurring zeroes in your data. When applying models, you should indicate which observations should either be ignored or treated differently. Similarly, when measuring the performance of your models (e.g., forecasting accuracy), you should evaluate them on data without artificially occurring zeroes. Otherwise, you’ll end up testing which model forecasts stockouts or system failures better, rather than actual demand. This ties into the well-known principle: &#8220;You should forecast demand, not sales&#8221;. In the case of intermittent demand, this is not only difficult but also extremely important.</p>
<p>Here’s an example of a time series N27364 from the M5 competition (<a href="https://doi.org/10.1016/j.ijforecast.2021.11.013", target="blank">Makridakis et al., 2022</a>):</p>
<figure id="attachment_3735" aria-describedby="caption-attachment-3735" 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/11/2021115-Zeroes-Example-N27364.png&amp;nocache=1"><img loading="lazy" decoding="async" src="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/11/2021115-Zeroes-Example-N27364-300x175.png&amp;nocache=1" alt="Series N27364 from the M5 dataset" width="300" height="175" class="size-medium wp-image-3735" srcset="https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/11/2021115-Zeroes-Example-N27364-300x175.png&amp;nocache=1 300w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/11/2021115-Zeroes-Example-N27364-1024x597.png&amp;nocache=1 1024w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/11/2021115-Zeroes-Example-N27364-768x448.png&amp;nocache=1 768w, https://openforecast.org/wp-content/webpc-passthru.php?src=https://openforecast.org/wp-content/uploads/2024/11/2021115-Zeroes-Example-N27364.png&amp;nocache=1 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-3735" class="wp-caption-text">Series N27364 from the M5 dataset</figcaption></figure>
<p>This isn’t a unique case, most time series in the M5 dataset have stockouts. In this specific example, gaps in sales are apparent and likely caused artificially. If we train a model on this data, it might those zeroes into account and produce inaccurate demand forecasts, e.g. lower point forecasts than necessary. The problem worsens if the test set also contains stockouts, as the selected model would be the one that forecasts artificially occurring zeroes better. Using such a model in decision-making could be harmful, leading to erroneous decisions like discontinuing products that actually sell well.</p>
<p>As a final note, Stephan Kolassa has given excellent presentations on the challenges of forecasting in retail. He has shared insightful examples of the complexities of tracking sales and stock. For instance, he discussed this topic in <a href="https://www.youtube.com/watch?v=sUlToPvftFw">one of the CMAF webinars</a> and in <a href="https://www.youtube.com/watch?v=1ZdUlP2isyM">this short video</a>.</p>
<p>Message <a href="https://openforecast.org/2024/11/18/why-zeroes-happen/">Why zeroes happen</a> first appeared on <a href="https://openforecast.org">OpenForecast</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://openforecast.org/2024/11/18/why-zeroes-happen/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
