<?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: Type of analysis? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742469#M36132</link>
    <description>Is it possible to predict stocks with time series involving the financial&lt;BR /&gt;ratios?&lt;BR /&gt;</description>
    <pubDate>Wed, 19 May 2021 16:42:06 GMT</pubDate>
    <dc:creator>u58502878</dc:creator>
    <dc:date>2021-05-19T16:42:06Z</dc:date>
    <item>
      <title>Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742427#M36125</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset that contains stocks and financial ratios of communication services companies from different quarters. I would like to analyze the relationship between the stock price and the financial ratios. What kind of analysis should I conduct? Here is the spreadsheet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 14:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742427#M36125</guid>
      <dc:creator>u58502878</dc:creator>
      <dc:date>2021-05-19T14:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742462#M36130</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't looked at your Excel data, but I suspect you have input time series (interval=Quarter) to predict a target series (stock price) and this for (across) several companies.&lt;/P&gt;
&lt;P&gt;This is called Time Series Cross Sectional data or panel data, so you need PROC PANEL (SAS/ETS) or PROC TSCSREG (SAS/ETS) or PROC GLIMMIX (SAS/STAT).&lt;/P&gt;
&lt;P&gt;There are several video's on Panel Data Modelling on the SAS video portal (&lt;A href="https://video.sas.com/" target="_blank"&gt;https://video.sas.com/).&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also look for PROC PANEL papers here:&amp;nbsp;&lt;A href="https://support.sas.com/rnd/app/ets/papers/index.html" target="_blank"&gt;https://support.sas.com/rnd/app/ets/papers/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 16:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742462#M36130</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-19T16:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742469#M36132</link>
      <description>Is it possible to predict stocks with time series involving the financial&lt;BR /&gt;ratios?&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2021 16:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742469#M36132</guid>
      <dc:creator>u58502878</dc:creator>
      <dc:date>2021-05-19T16:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742471#M36133</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't looked at your data (reluctant to download).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The stock-price for company X is a time series (on a quarterly basis if I remember well from your first post), isn't it?&lt;/P&gt;
&lt;P&gt;Are the financial ratio's&amp;nbsp;for company X also time series (with the same frequency)?&lt;/P&gt;
&lt;P&gt;The easiest thing is to do frequency conversion if inputs and target don't have the same interval.&lt;/P&gt;
&lt;P&gt;Once that's done you can of course use (multiple) input time series to predict a target series. There are a dozen of possibilities to do that (like transfer function models).&lt;/P&gt;
&lt;P&gt;But if you want to do it for all companies simultaneously you need models suitable for panel data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 17:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742471#M36133</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-19T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742473#M36134</link>
      <description>Companies are not X. The ratios are.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2021 17:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742473#M36134</guid>
      <dc:creator>u58502878</dc:creator>
      <dc:date>2021-05-19T17:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742474#M36135</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for every company you have:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;one stock price (end-of-2020 price for example) and&lt;/LI&gt;
&lt;LI&gt;several financial ratio's (the financial ratio's being time series on a quarterly interval basis)&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot predict the absolute height of a stock price from financial ratio's. You can probably predict&amp;nbsp;stock price fluctuations from financial ratio's to a certain extent (!!) but not the absolute height of the stock price.&amp;nbsp;A large company can only raise a small amount of capital on the stock exchange, for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 17:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742474#M36135</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-19T17:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742477#M36136</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have read your initial post again. And now I think I understand ...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You would just like to study the relationship between the stock price and the financial ratio's, right?&lt;/P&gt;
&lt;P&gt;In that case, build one observation per company and then do a regression-based model with PROC REG or PROC GENMOD (dependent on the stock price distribution) or any of the other SAS/Stat regression procedures.&lt;/P&gt;
&lt;P&gt;To get one observation for a company you need to transpose and compress the input time series with time series dimension reduction techniques. You can use PROC TSMODEL for that.&lt;/P&gt;
&lt;P&gt;Time Series Dimension Reduction (TSDR) is extremely popular in Time Series Data Mining (TSDM). It allows you to use time series as predictors in cross-sectional data.&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 17:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742477#M36136</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-19T17:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742479#M36137</link>
      <description>Is it possible to have one financial ratio instead of several?&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2021 17:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742479#M36137</guid>
      <dc:creator>u58502878</dc:creator>
      <dc:date>2021-05-19T17:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742481#M36138</link>
      <description>&lt;P&gt;I don't understand that last question very well.&lt;/P&gt;
&lt;P&gt;Suppose you have 5 financial ratio's (X1-X2-X3-X4-X5) and 1000 companies (CompID1-CompID1000).&amp;nbsp;That's 5000 time series in total.&lt;/P&gt;
&lt;P&gt;You could take the mean of all time series and then you have one summary value (for every ratio per company = 5000 values). But that one value is only characterizing your ratio-x time series for CompID-y in a very limited way (far too limited!!). You need for sure several statistics to characterize your ratio-x time series (or you need all the coefficients of a generic Time Series model).&lt;/P&gt;
&lt;P&gt;Depending on the complexity and the length of the time series you probably need between 3 and 10 variable values to properly characterize your time series (that is 3 to 10 values for every time series / financial ratio per company = [3 to 10] * 5 values per company) and get rid of the noise in the full time series.&lt;/P&gt;
&lt;P&gt;I often use a Singular Value Decomposition with 5 or 6 dimensions to compress my input time series.&lt;/P&gt;
&lt;P&gt;See for example here:&lt;/P&gt;
&lt;P&gt;SAS® Visual Forecasting: Time Series Packages | 2020.1.5&lt;BR /&gt;Time Series Dimension Reduction Package&lt;BR /&gt;Example 11.5 Dimension Reduction by Singular Value Decomposition&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/castsp/v_004/castsp_tdr_sect033.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/castsp/v_004/castsp_tdr_sect033.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Example 11.6 Dimension Reduction by Random Projection&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/castsp/v_004/castsp_tdr_sect034.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/castsp/v_004/castsp_tdr_sect034.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 18:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742481#M36138</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-19T18:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Type of analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742484#M36140</link>
      <description>Actually, there was a previous response that you put that I missed: "Hello,&lt;BR /&gt;&lt;BR /&gt;I have read your initial post again. And now I think I understand ... &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;You would just like to study the relationship between the stock price and&lt;BR /&gt;the financial ratio's, right?&lt;BR /&gt;&lt;BR /&gt;In that case, build one observation per company and then do a&lt;BR /&gt;regression-based model with PROC REG or PROC GENMOD (dependent on the stock&lt;BR /&gt;price distribution) or any of the other SAS/Stat regression procedures.&lt;BR /&gt;&lt;BR /&gt;To get one observation for a company you need to transpose and compress the&lt;BR /&gt;input time series with time series dimension reduction techniques. You can&lt;BR /&gt;use PROC TSMODEL for that.&lt;BR /&gt;Time Series Dimension Reduction (TSDR) is extremely popular in Time Series&lt;BR /&gt;Data Mining (TSDM). It allows you to use time series as predictors in&lt;BR /&gt;cross-sectional data".&lt;BR /&gt;&lt;BR /&gt;I will apply that. Thank you for your help!&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2021 18:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Type-of-analysis/m-p/742484#M36140</guid>
      <dc:creator>u58502878</dc:creator>
      <dc:date>2021-05-19T18:28:06Z</dc:date>
    </item>
  </channel>
</rss>

