<?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: MA(2) in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255615#M1652</link>
    <description>&lt;P&gt;Unfortunately, PROC ARIMA will not be able to impose this restriction on thetas.&amp;nbsp; I think your theta_0 can be absorbed in the variance parameter of eta.&amp;nbsp; In ARIMA, theta1 and theta2 (scaled by theta0) satisfy the invertibility condition.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 18:47:40 GMT</pubDate>
    <dc:creator>rselukar</dc:creator>
    <dc:date>2016-03-09T18:47:40Z</dc:date>
    <item>
      <title>MA(2)</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255197#M1646</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-left lia-quilt-column-main-left"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-subject"&gt;Re: MA(2)&lt;SPAN class="lia-message-subject-status"&gt;[&amp;nbsp;Edited&amp;nbsp;] &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-right"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-message-options"&gt;&lt;DIV class="lia-menu-navigation-wrapper lia-menu-action message-menu"&gt;&lt;DIV class="lia-menu-navigation"&gt;&lt;DIV class="dropdown-default-item"&gt;&lt;A title="Show option menu" href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/MA-2/m-p/255226" target="_blank"&gt;Options&lt;/A&gt;&lt;DIV class="dropdown-positioning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&lt;SPAN class="DateTime lia-message-posted-on lia-component-common-widget-date"&gt;&lt;SPAN class="local-friendly-date"&gt;37m ago &lt;/SPAN&gt;&lt;/SPAN&gt;- last edited &lt;SPAN class="DateTime lia-message-edited-on lia-component-common-widget-date"&gt;&lt;SPAN class="local-friendly-date"&gt;22m ago &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am applying a second order moving average process (MA(2)) to uncover the&lt;BR /&gt;unobserved returns.&lt;/P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2237iC153622C7C0A13CB/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Untitled.png" title="Untitled.png" border="0" /&gt;&lt;BR /&gt;&lt;P&gt;I am trying to estimate the parameters of the model for each hedge fund strategy by maximum likeli-&lt;BR /&gt;hood. Then the estimated parameters will be used to desmooth returns.&lt;/P&gt;&lt;P&gt;How do i go about this last part. You help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My codes so far just gives me the moving average factor&lt;/P&gt;&lt;P&gt;proc arima data = sample ;&lt;BR /&gt;by mainstrategy;&lt;/P&gt;&lt;P&gt;identify var=returns nlag=6 outcov=acf noprint ;&lt;/P&gt;&lt;P&gt;estimate q=2;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a problem with using the by statement in arima procedure. Is there another way to achieve the same results without using the by statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My orginal data is too huge to upload so here is a sample&lt;/P&gt;&lt;P&gt;Date &amp;nbsp; &amp;nbsp; &amp;nbsp; Return &amp;nbsp; &amp;nbsp; AUM &amp;nbsp; &amp;nbsp;mainstrategy&lt;/P&gt;&lt;P&gt;199512 &amp;nbsp; -0.0055 &amp;nbsp; 26.9 &amp;nbsp; &amp;nbsp; Relative value&lt;/P&gt;&lt;P&gt;199601 &amp;nbsp; &amp;nbsp;0.0048 &amp;nbsp; 27.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;Relative value&lt;/P&gt;&lt;P&gt;199602 &amp;nbsp; &amp;nbsp;0.0089 &amp;nbsp; 30.7 &amp;nbsp; &amp;nbsp; &amp;nbsp;CTA&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12358iC3B2EA3C39B9347E/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Untitled.png" title="Untitled.png" /&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255197#M1646</guid>
      <dc:creator>bukky09</dc:creator>
      <dc:date>2016-03-08T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: MA(2)</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255524#M1650</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;There is no problem with using BY groups in PROC ARIMA.&amp;nbsp; In order to obtain ML estimates of the MA parameters you must use method=ml option in the estimate statement.&amp;nbsp; However, I do not understand your question very well.&amp;nbsp; It is unclear what you mean by "desmoothing" using the estimated MA parameters.&amp;nbsp; Assuming "returns"&amp;nbsp;are your observed returns, you are fitting a returns = constant + MA(2) model.&amp;nbsp; If you want, (returns - estimated constant)&amp;nbsp;can surve as an&amp;nbsp;estimate of the MA part.&amp;nbsp; Is this what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, your mathematical equation does not conform to your ARIMA model specification.&amp;nbsp; Do you mean the unobserved R_t acts like the&amp;nbsp;white noise part of the ARIMA model?&amp;nbsp; ARIMA assumes theta_0 to be 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is another procedure, PROC UCM,&amp;nbsp;in SAS/ETS that might be more appropriate for decomposing your returns into a slow moving smooth part and a rougher noise part.&amp;nbsp; See an example of trend removal using HP filter: &lt;A href="https://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ucm_examples05.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ucm_examples05.htm&lt;/A&gt;&amp;nbsp; You can also get a decomposition based on an MA(2) component (see the syntax for IRREGULAR component: &lt;A href="https://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ucm_syntax11.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ucm_syntax11.htm&lt;/A&gt;).&amp;nbsp; UCM is a very general purpose procedure to obtain such decompositions.&amp;nbsp; It supports BY processing also.&amp;nbsp; If you want even more customization, you can use the SSM procedure (&lt;A href="https://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ssm_gettingstarted.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ssm_gettingstarted.htm&lt;/A&gt;).&amp;nbsp; However, SSM procedure usually requires more coding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Rajesh&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 14:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255524#M1650</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2016-03-09T14:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: MA(2)</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255570#M1651</link>
      <description>&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;I think there can be a bit of confusion in the equation because of the R's. But lets take a clearer one where&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2267i9CF2E79BE67A8281/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Untitled1.png" title="Untitled1.png" /&gt;&lt;/P&gt;&lt;P&gt;where X_t is the unobserved returns and &amp;nbsp;nt is the white noise. then I want to&amp;nbsp;estimate the parameters using the&lt;BR /&gt;maximum likelihood estimation method with the normalization constraint 1 = theta&amp;#18;0 + &amp;#18;theta1 + theta&amp;#18;2.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255570#M1651</guid>
      <dc:creator>bukky09</dc:creator>
      <dc:date>2016-03-09T16:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: MA(2)</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255615#M1652</link>
      <description>&lt;P&gt;Unfortunately, PROC ARIMA will not be able to impose this restriction on thetas.&amp;nbsp; I think your theta_0 can be absorbed in the variance parameter of eta.&amp;nbsp; In ARIMA, theta1 and theta2 (scaled by theta0) satisfy the invertibility condition.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/MA-2/m-p/255615#M1652</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2016-03-09T18:47:40Z</dc:date>
    </item>
  </channel>
</rss>

