<?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 Calculating rolling correlation and covariance for a large number of stocks in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-rolling-correlation-and-covariance-for-a-large/m-p/426316#M22397</link>
    <description>&lt;P&gt;I have a large dataset that contains daily returns for a many stocks. The dataset has 3 columns: date, stocks, and returns.&lt;BR /&gt;I would like to calculate the rolling correlation and covariance between stocks for the last 1 week, 4 weeks (month), and 50 weeks (year).&lt;/P&gt;&lt;P&gt;FYI,&amp;nbsp;I am implementing a Corsi HAR model as I try to predict correlation next period using the correlation between stocks during the last 1 week, 4 weeks and 50 weeks. What would be the best approach?&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 05:54:15 GMT</pubDate>
    <dc:creator>somebody</dc:creator>
    <dc:date>2018-01-10T05:54:15Z</dc:date>
    <item>
      <title>Calculating rolling correlation and covariance for a large number of stocks</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-rolling-correlation-and-covariance-for-a-large/m-p/426316#M22397</link>
      <description>&lt;P&gt;I have a large dataset that contains daily returns for a many stocks. The dataset has 3 columns: date, stocks, and returns.&lt;BR /&gt;I would like to calculate the rolling correlation and covariance between stocks for the last 1 week, 4 weeks (month), and 50 weeks (year).&lt;/P&gt;&lt;P&gt;FYI,&amp;nbsp;I am implementing a Corsi HAR model as I try to predict correlation next period using the correlation between stocks during the last 1 week, 4 weeks and 50 weeks. What would be the best approach?&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 05:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-rolling-correlation-and-covariance-for-a-large/m-p/426316#M22397</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2018-01-10T05:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating rolling correlation and covariance for a large number of stocks</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-rolling-correlation-and-covariance-for-a-large/m-p/426324#M22398</link>
      <description>&lt;P&gt;You can use PROC TIMESERIES with the OUTCROSSCORR= option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide sample data for code answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 07:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-rolling-correlation-and-covariance-for-a-large/m-p/426324#M22398</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-10T07:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating rolling correlation and covariance for a large number of stocks</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-rolling-correlation-and-covariance-for-a-large/m-p/426709#M22413</link>
      <description>&lt;P&gt;please see this link for the data it is too large to upload. (76mb) since it contains daily observations for some stocks.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/wfngi8ayjj0drh2/stocks.csv?dl=0" target="_blank"&gt;https://www.dropbox.com/s/wfngi8ayjj0drh2/stocks.csv?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 22:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-rolling-correlation-and-covariance-for-a-large/m-p/426709#M22413</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2018-01-10T22:23:23Z</dc:date>
    </item>
  </channel>
</rss>

