<?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 Why does prewhitening not change model statistics? in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Why-does-prewhitening-not-change-model-statistics/m-p/355633#M2315</link>
    <description>&lt;P&gt;I would require some help on an Arima-Output. If I prewhiten the independet variable ("x") I get the same output as if I do not, this is 2 different inputs, create the same output. Is this the way it's supposed to be and why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x is supposed to be the independet variable, y is the dependent var. Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data D (Keep=x y t);
  Retain e1 0 x1 0 x2 0 x3 0
		 ye 0 y1 0 y2 0; 
  Do t=-200 To 300;

	* y-part: create Armax p=2, xlag=3;
	ye=Rannor(9999); 
    y=150-x3*15+0.2*y1+0.5*y2+ye;
    y2=y1;
    y1=y;

    * x-part: create Arma p=3, q=1;
    e=Rannor(1);
	x=100+0.5*x1+0.2*x2+0.1*x3-9*e1+e;
	e1=e;
	x3=x2;
	x2=x1;
	x1=x;

	If t&amp;gt;=1 Then Output;
  End;
Run;

Proc Arima Data=D;
  * cross correlations with spurious correlations;
  Identify Var=y CrossCorr=x;

  * prewhiten;
  Identify Var=x;
  Estimate p=3 q=1;

  * estimate y with prewhitening;
  Identify Var=y CrossCorr=x;
  Estimate p=2 Input=(3$ x); *-&amp;gt; AIC=3344;

  * estimate y without prewhitening;
  Identify Var=y CrossCorr=x Clear; 
  * prewhitening removed -&amp;gt; shouldn't x be different?;
  Estimate p=2 Input=(3$ x); *-&amp;gt; AIC=3344 again (!?);
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;amp;kind regards&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2017 14:53:46 GMT</pubDate>
    <dc:creator>user24feb</dc:creator>
    <dc:date>2017-05-03T14:53:46Z</dc:date>
    <item>
      <title>Why does prewhitening not change model statistics?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Why-does-prewhitening-not-change-model-statistics/m-p/355633#M2315</link>
      <description>&lt;P&gt;I would require some help on an Arima-Output. If I prewhiten the independet variable ("x") I get the same output as if I do not, this is 2 different inputs, create the same output. Is this the way it's supposed to be and why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x is supposed to be the independet variable, y is the dependent var. Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data D (Keep=x y t);
  Retain e1 0 x1 0 x2 0 x3 0
		 ye 0 y1 0 y2 0; 
  Do t=-200 To 300;

	* y-part: create Armax p=2, xlag=3;
	ye=Rannor(9999); 
    y=150-x3*15+0.2*y1+0.5*y2+ye;
    y2=y1;
    y1=y;

    * x-part: create Arma p=3, q=1;
    e=Rannor(1);
	x=100+0.5*x1+0.2*x2+0.1*x3-9*e1+e;
	e1=e;
	x3=x2;
	x2=x1;
	x1=x;

	If t&amp;gt;=1 Then Output;
  End;
Run;

Proc Arima Data=D;
  * cross correlations with spurious correlations;
  Identify Var=y CrossCorr=x;

  * prewhiten;
  Identify Var=x;
  Estimate p=3 q=1;

  * estimate y with prewhitening;
  Identify Var=y CrossCorr=x;
  Estimate p=2 Input=(3$ x); *-&amp;gt; AIC=3344;

  * estimate y without prewhitening;
  Identify Var=y CrossCorr=x Clear; 
  * prewhitening removed -&amp;gt; shouldn't x be different?;
  Estimate p=2 Input=(3$ x); *-&amp;gt; AIC=3344 again (!?);
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;amp;kind regards&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 14:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Why-does-prewhitening-not-change-model-statistics/m-p/355633#M2315</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2017-05-03T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why does prewhitening not change model statistics?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Why-does-prewhitening-not-change-model-statistics/m-p/355704#M2316</link>
      <description>&lt;P&gt;This can indeed be somewhat confusing.&amp;nbsp; Please refer to the "Prewhitening"&amp;nbsp;subsection of the "Details" section&amp;nbsp;in the ARIMA doc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When y is a response that is being modeled with x as a predictor, pre-whitening of x is done to&amp;nbsp;help identify&amp;nbsp;the form of the transfer function.&amp;nbsp; This form is identified by looking at the cross-correlation of pre-whitened y and pre-whitened x.&amp;nbsp; Once the transfer function form is identified, the pre-whitened series are "essentially" discarded.&amp;nbsp; The model with y and x is fitted with original y and x&amp;nbsp; series (and not their prewhitened versions).&amp;nbsp; There is one issue: when&amp;nbsp;prewhitening is done, the initial parameter estimates&amp;nbsp; could be based on the prewhitened series but these&amp;nbsp;often lead to the same final parameter estimates.&amp;nbsp; This explains the behavior you see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In summary, the output of&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Identify&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=y &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CrossCorr&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=x;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;does depend on whether x and y are prewhitened but the output of &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Estimate&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;p&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;$ x);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;is essentially independent of prewhitening.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Hope this helps.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 18:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Why-does-prewhitening-not-change-model-statistics/m-p/355704#M2316</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2017-05-03T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why does prewhitening not change model statistics?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Why-does-prewhitening-not-change-model-statistics/m-p/355855#M2317</link>
      <description>Helps. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2017 06:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Why-does-prewhitening-not-change-model-statistics/m-p/355855#M2317</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2017-05-04T06:19:48Z</dc:date>
    </item>
  </channel>
</rss>

