Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz committed Sep 18, 2024
1 parent d62ea63 commit 12b8be2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion croston_numpyro/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ <h2>Idea of Croston’s Method</h2>
<p>As mentioned earlier, Croston’s method is based on the idea of separating the original series <span class="math inline">\(y_{t}\)</span> into the demand size and the demand interval.</p>
<ul>
<li><p>To generate the demand size time series <span class="math inline">\(z_{t}\)</span> we simply keep the non-zero values of the original series.</p></li>
<li><p>To generate the demand interval time series <span class="math inline">\(y_{t}\)</span> we keep the time between non-zero values of the original series.</p></li>
<li><p>To generate the demand interval time series <span class="math inline">\(p_{t}\)</span> we keep the time between non-zero values of the original series.</p></li>
</ul>
<p>Lets see how we can do this:</p>
<pre class="python"><code># Demand time series
Expand Down
11 changes: 7 additions & 4 deletions html/timeseries_numpyro.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="timeseries_numpyro_files/libs/quarto-html/light-border.css" rel="stylesheet">
<link href="timeseries_numpyro_files/libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
<link href="timeseries_numpyro_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
<meta name="generator" content="quarto-1.5.56">
<meta name="generator" content="quarto-1.5.54">

<meta name="author" content="Dr.&nbsp;Juan Orduz">
<title>Time Series Forecasting with NumPyro</title>
Expand Down Expand Up @@ -669,14 +669,17 @@ <h2>Croston’s Method</h2>
<i class="callout-icon"></i>
</div>
<div class="callout-content">
<p><span style="font-size: 1.4em;"> The method is based on the idea of <strong>separating the demand size and the demand interval</strong>, and then <strong>forecasting them separately</strong> using simple exponential smoothing. </span></p>
<p><span style="font-size: 1.4em;"> The method is based on the idea of <strong>separating the demand size <span class="math inline">\(z_t\)</span> and the demand interval <span class="math inline">\(p_t\)</span></strong>, and then <strong>forecasting them separately</strong> using simple exponential smoothing. </span></p>
</div>
</div>
</div>
<ul>
<li>To generate the demand size time series <span class="math inline">\(z_t\)</span> we simply keep the non-zero values of the original series.</li>
<li>To generate the demand interval time series <span class="math inline">\(y_t\)</span> we keep the time between non-zero values of the original series.</li>
<li><span class="math inline">\(z_t\)</span>: keep the non-zero values of <span class="math inline">\(y_t\)</span>.</li>
<li><span class="math inline">\(p_t\)</span>: keep the time between non-zero values of <span class="math inline">\(y_t\)</span>.</li>
</ul>
<p><span class="math display">\[
\hat{y}_{t+h} = \frac{\hat{z}_{t+h}}{\hat{p}_{t+h}}
\]</span></p>
<div class="footer">
<p><a href="https://juanitorduz.github.io/croston_numpyro/">Croston’s Method for Intermittent Time Series Forecasting in NumPyro</a></p>
</div>
Expand Down

0 comments on commit 12b8be2

Please sign in to comment.