<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Mathematical Equation to Forcecast with SARIMA Model in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533408#M75638</link>
    <description>&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/formula-depot.shtml#" target="_blank" rel="noopener"&gt;Formula Depot&lt;/A&gt; might work if you have access to JMP Pro?&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2022 08:54:13 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-08-13T08:54:13Z</dc:date>
    <item>
      <title>Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/532293#M75532</link>
      <description>&lt;P&gt;Hi .... I am new here and need your help.&lt;/P&gt;
&lt;P&gt;I am developing a SARIMA model&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The model is predicting the following Formula:-&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ARIMA Forecast(
    :Actual MS,
    120,
    Seasonal ARIMA( 2, 1, 1, 1, 1, 3, 12 ),
    {AR Coefficients( {-0.0941622870204595, -0.0767935781741432} ),
    MA Coefficients( {0.550123670174196} ),
    Seasonal AR Coefficients( {-0.0631251223075085} ),
    Seasonal MA Coefficients(
        {0.618076346003494, 0.420495338021673, -0.269501862686839}
    ), Seasonal Lag( 12 ), Intercept( -0.0202269450580077 )},
    Row() - 120,
    Row() - 120
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I convert it into a mathematical equation to predict the future demand?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Ramesh&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:53:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/532293#M75532</guid>
      <dc:creator>StarIconMatrix2</dc:creator>
      <dc:date>2023-06-09T00:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533012#M75582</link>
      <description>&lt;P&gt;Good news, the JSL you posted is the model.&lt;/P&gt;
&lt;P&gt;Not sure how you got JMP to make it for you, but it looks a lot like a prediction formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I pasted your formula into a column formula, made a second column that repeats 1-26, and gave it the name "Actual MS".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably have a data table with 120 rows or more and this formula along with the data you're modeling.&lt;/P&gt;
&lt;P&gt;All you have to do is add more rows, insert some data and the prediction formula already in the table will calculate your forecasted results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_0-1660227308780.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44748i60289E2815C2896B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_0-1660227308780.png" alt="Byron_JMP_0-1660227308780.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 14:15:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533012#M75582</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2022-08-11T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533396#M75635</link>
      <description>&lt;P&gt;Sir, what you have suggested works only when&amp;nbsp;one has access to JMP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested in the mathematical formula which is creating the prediction. I can then use the mathematical formula to make prediction when I don't have access to JMP.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 07:00:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533396#M75635</guid>
      <dc:creator>StarIconMatrix2</dc:creator>
      <dc:date>2022-08-13T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533401#M75636</link>
      <description>&lt;P&gt;The SAS code to make the prediction is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Formula Editor Publish
New Column( "ARIMA Forecast",
	"Numeric",
	Formula(
		ARIMA Forecast(
			:Actual HSD,
			120,
			Seasonal ARIMA( 2, 1, 1, 1, 1, 1, 12 ),
			{AR Coefficients( {-0.0446867759168569, -0.00612002018236452} ),
			MA Coefficients( {0.729485379327256} ),
			Seasonal AR Coefficients( {0.150588923188078} ),
			Seasonal MA Coefficients( {0.930743182626315} ), Seasonal Lag( 12 ),
			Intercept( -3.16936375022134 )},
			Row() - 120,
			Row() - 120
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know the mathematical equation that this code converts to make the prediction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Ramesh&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 13:43:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533401#M75636</guid>
      <dc:creator>StarIconMatrix2</dc:creator>
      <dc:date>2022-08-13T13:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533408#M75638</link>
      <description>&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/formula-depot.shtml#" target="_blank" rel="noopener"&gt;Formula Depot&lt;/A&gt; might work if you have access to JMP Pro?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 08:54:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533408#M75638</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-08-13T08:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533432#M75640</link>
      <description>&lt;P&gt;The mathematical equation is very similar to the equation that describes the model; see here &lt;A href="https://www.jmp.com/support/help/en/16.2/?os=win&amp;amp;source=application#page/jmp/statistical-details-for-arima-models.shtml#ww409330" target="_self"&gt;Statistical Details for ARIMA Models&lt;/A&gt; .&lt;/P&gt;
&lt;P&gt;To make forecasts, start with one-step-ahead forecast, i.e. forecast Y[t+1], given Y[t], Y[t-1], .... and a[t], a[t-1], ..., which are the innovations obtained from the model. The value for a[t+1] is zero, because that is the "one-step-ahead" innovation, whose expectation is zero. Plug in all the known quantities, and solve the only unknown one: Y[t+1].&lt;/P&gt;
&lt;P&gt;Then move on to the next one Y[t+2], given Y[t+1], Y[t], .... and a[t+1], a[t], ...&lt;/P&gt;
&lt;P&gt;After the last step, you literally get the formula that you are looking for. It is a convoluted sum of known quantities.&lt;/P&gt;
&lt;P&gt;ARIMA and SARIMA are conceptually identical, SARIMA is only a little more complicated by involving a multiplication of polynomials. But after expanding the multiplication, the procedures are same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 14:27:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/533432#M75640</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-08-13T14:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/534163#M75684</link>
      <description>&lt;P&gt;For my Time Series data, the SARIMA model that is best able to forecast is (2,1,1)x(1,1,1),12.&lt;/P&gt;&lt;P&gt;The mathematical formula given in literature for above SARIMA configuration is&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yt = α + β1Yt-1 + β2Yt-2 + βpYt-12 + Φ1(Yt-1 – Yt-2) + Φ2*(Yt-1- Yt-12)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value of the coefficients that JMP is generating is&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Term&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AR1,1&lt;/TD&gt;&lt;TD&gt;-0.0447&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AR1,2&lt;/TD&gt;&lt;TD&gt;-0.0061&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AR2,12&lt;/TD&gt;&lt;TD&gt;0.15059&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MA1,1&lt;/TD&gt;&lt;TD&gt;0.72949&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MA2,12&lt;/TD&gt;&lt;TD&gt;0.93074&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above coefficients when plugged in the above formula is generating very erroneous forecasts.&lt;/P&gt;&lt;P&gt;And the formula given in literature is very different to formula given in JMP&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.2/?os=win&amp;amp;source=application#page/jmp/statistical-details-for-arima-models.shtml%23ww409330" target="_blank" rel="noopener noreferrer"&gt;ARIMA Models&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;which I am unable to understand.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can somebody help in deciphering the formula given in JMP with that given in literature?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ramesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 10:16:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/534163#M75684</guid>
      <dc:creator>StarIconMatrix2</dc:creator>
      <dc:date>2022-08-16T10:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/535342#M75769</link>
      <description>&lt;P&gt;The formula that you gave is not correct, by just looking at the maximum lag. If you are really into finding the truth about SARIMA formulas, I recommend that you check out the book "Time Series Analysis: Forecasting and Control", by Box, Jenkins, and Reinsel. ARIMA models are also known as Box-Jenkins models, that is why.&lt;/P&gt;
&lt;P&gt;Now talk about (2,1,1)(1,1,1)12 model. First let me get the name right to facilitate the explanation: (p=2,d=1,q=1)(P=1,D=1,Q=1)S=12.&lt;/P&gt;
&lt;P&gt;There are totally six polynomials: two for AR part (involving p and P), two for MA part (involving q and Q), two for differencing part (involving d and D).&lt;/P&gt;
&lt;P&gt;Start with the differencing part, which is the product of two polynomials: (1-B)(1-B^12). This means the series is preprocess by differencing: Z[t] = Y[t] - Y[t-1] - Y[t-12] + Y[t-13].&lt;/P&gt;
&lt;P&gt;Then the series Z[t] is modeled by an SARMA model, notice the "I" in the middle is gone.&lt;/P&gt;
&lt;P&gt;Now look at the AR part, which is the product of two polynomials: (1 - phi1* B - phi2* B^2)(1 - phi3* B^12). Expand it I get: (1 - phi1* B - phi2* B^2 - phi3* B^12 + phi1*phi3* B^13 + phi2*phi3*B^14).&lt;/P&gt;
&lt;P&gt;Now look at the MA part, which is the product of two polynomials: (1-theta1 * B)(1- theta2*B^12). Expand it I get: (1-theta1*B-theta2*B^12+theta1*theta2*B^13).&lt;/P&gt;
&lt;P&gt;Now put AR polynomial and MA polynomial in the equation:&lt;/P&gt;
&lt;P&gt;(1 - phi1* B - phi2* B^2)(1 - phi3* B^12). Expand it I get: (1 - phi1* B - phi2* B^2 - phi3* B^12 + phi1*phi3* B^13 + phi2*phi3*B^14)Z[t] = (1-theta1*B-theta2*B^12+theta1*theta2*B^13)a[t].&lt;/P&gt;
&lt;P&gt;Now put Z[t] on the left side of the equation, and all other terms on the right:&lt;/P&gt;
&lt;P&gt;Z[t] =&amp;nbsp; (phi1* B + phi2* B^2 + phi3* B^12 - phi1*phi3* B^13 - phi2*phi3*B^14)Z[t]+ (1-theta1*B-theta2*B^12+theta1*theta2*B^13)a[t]&lt;/P&gt;
&lt;P&gt;Now apply back operator rules, and get:&lt;/P&gt;
&lt;P&gt;Z[t] =&amp;nbsp; (phi1* Z[t-1] + phi2* Z[t-2] + phi3* Z[t-3] - phi1*phi3* Z[t-13] - phi2*phi3*Z[t-14]+ a[t]-theta1*a[t-1]-theta2*a[t-12]+theta1*theta2*a[t-13]&lt;/P&gt;
&lt;P&gt;Notice a[t] = 0. Z is the differenced series, which you should be able to calculate from Y series using the formula that I mentioned about. the remaining a values are innovations from the fitted model. So, you should be able to get Z[t] now.&lt;/P&gt;
&lt;P&gt;Now look at Z[t] = Y[t] - Y[t-1] - Y[t-12] + Y[t-13] again. Re-arrange it, and I get Y[t] = Z[t] + Y[t-1] + Y[t-2] - Y[t-13]. So I can get Y[t] given all previous Y's and Z[t].&lt;/P&gt;
&lt;P&gt;The explicit formula of Y[t] is far more complicated than the formula that you provided.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 23:54:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/535342#M75769</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-08-18T23:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Equation to Forcecast with SARIMA Model</title>
      <link>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/535375#M75771</link>
      <description>&lt;P&gt;Thank you sir for the detailed explanation. Much obliged.&lt;/P&gt;&lt;P&gt;Indeed, the explicit formula is far more complicated and I am not sure if it can be manually calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramehs&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 05:47:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mathematical-Equation-to-Forcecast-with-SARIMA-Model/m-p/535375#M75771</guid>
      <dc:creator>StarIconMatrix2</dc:creator>
      <dc:date>2022-08-19T05:47:59Z</dc:date>
    </item>
  </channel>
</rss>

