<?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: Constructing the optimal portfolio in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196729#M10526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The stats part only comes in when looking for the biggest increase, as far as I can see. The rest looks to be a calculation question, and perhaps a finance question. Personally, I want to say a standard ANOVA works but the portfolios could be considered as having dependent components and thus the assumptions are violated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would research the literature relevant to my field and see how current papers are comparing portfolios. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Mar 2015 21:43:07 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-03-07T21:43:07Z</dc:date>
    <item>
      <title>Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196722#M10519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have historical data with companies, their weekly prices and several informational variables. These variables are proportions and as such range from 0 to 1, and the sum of all the conditions for a given company/date combination adds to one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a small structure of my data (for simplicity date has only the year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="174" style="border: 1px solid rgb(0, 0, 0); width: 605px; height: 166px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;company&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;price&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;cond1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;cond2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2006&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.35&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2006&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is to create portfolios based on the conditions and find if there are conditions which create better portfolios. &lt;/P&gt;&lt;P&gt;Initially I wanted to manually create portfolios with specific conditions: say 0=&amp;lt; cond1 &amp;lt;0.1,&amp;nbsp; 0.1 =&amp;lt; cond1 &amp;lt;0.2 etc... and see if there is a certain "range" which creates better performing portfolios. But this way can get too long if I have several conditions and I m not sure if it is correct from a statistical point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 01:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196722#M10519</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2015-03-07T01:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196723#M10520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to optimize? What is the definition of a "good portfolio"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 02:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196723#M10520</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-03-07T02:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196724#M10521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PGStats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by optimization I mean the greatest return of the portfolio (as measured by its average stock price) over a certain period of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 06:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196724#M10521</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2015-03-07T06:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196725#M10522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;average price over the period or % increase from start of period to end of period? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 18:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196725#M10522</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-07T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196726#M10523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;% increase from start period to end period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 19:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196726#M10523</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2015-03-07T19:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196727#M10524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What are your&lt;STRONG&gt; decision variables&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;You cannot freely choose weights for assets, but you have to choose one of the "conditions" in each line?&lt;/P&gt;&lt;P&gt;Or you have to choose 1 among the many cond1, cond2, condN columns? Or you can choose a weighted combination from the columns?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is it allowed to re-weight the portfolio at the beginning of each week?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any &lt;STRONG&gt;constraints&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you show us one (not necessary optimal) solution, this would help us to understand the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I suggest you redirect this question to the Operations Research community.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 20:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196727#M10524</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-03-07T20:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196728#M10525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Suppose I want to form 10 portfolios: ( 0=&amp;lt; cond1 &amp;lt;0.1) ------- (0.9=&amp;lt;cond1 &amp;lt;1).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I calculate each of these portfolio's % price increase from start period to end period and see which portfolios have the biggest increase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is a procedure which will be statistically correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 21:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196728#M10525</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2015-03-07T21:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196729#M10526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The stats part only comes in when looking for the biggest increase, as far as I can see. The rest looks to be a calculation question, and perhaps a finance question. Personally, I want to say a standard ANOVA works but the portfolios could be considered as having dependent components and thus the assumptions are violated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would research the literature relevant to my field and see how current papers are comparing portfolios. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 21:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196729#M10526</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-07T21:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196730#M10527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you define portfolios ?&amp;nbsp; Each company can be chosen only once or more times ? &lt;/P&gt;&lt;P&gt;How do you define &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;start period and end period&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 07:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196730#M10527</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-09T07:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196731#M10528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me further guess: You write for example you can form 10 portfolios. One of them is when &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px; background-color: #ffffff;"&gt; 0=&amp;lt; cond1 &amp;lt;0.1. A second one is when &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;0.1=&amp;lt; cond1 &amp;lt;0.2. Etc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;According what you write, you simply want to evaluate your portfolios: calculate their return. In this case you want to calculate the return of 10 theoretical portfolios.&lt;/P&gt;&lt;P&gt;The choice of those 10 portfolios seems to me ad-doc, unless those condition variables mean something to you. (What is the meaning of cond1, cond2...? What kind of &lt;EM&gt;proportions&lt;/EM&gt; they are? If they are proportions in a portfolio, then each of them should sum to 1 across a year!)&lt;/P&gt;&lt;P&gt;If I use your sample data with your constructed portfolios, portfolio1 is &lt;STRONG&gt;empty&lt;/STRONG&gt;, so it's return is 0. Portfolio2 has only one asset in year 2005 in all other years it's empty. It's return is (1-12/11)=0.0909=9.09%&amp;nbsp; (in year 2005).&lt;/P&gt;&lt;P&gt;Usually, when we talk about portfolios, we also assign weights to assets, (companies) not only just choosing some of the assets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be calculated in SAS, but I think first you should further clarify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 08:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196731#M10528</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-03-09T08:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196732#M10529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, the "market portfolio" is the average price of all the companies prices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each "conditional" portfolio is the average price of all the companies with specific conditions. Over time companies can switch between the conditional portfolios because the proportions of their conditions can vary over time, so every year each portfolio is re-adjusted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The beginning and end period are simply my beginning and ending years, but I still need all the years in between in order to make graphs and study volatility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196732#M10529</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2015-03-09T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Constructing the optimal portfolio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196733#M10530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like not very difficult . Did you follow what &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="7180" data-username="gergely.batho" href="https://communities.sas.com/people/gergely.batho" id="jive-718041353085438962186" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #0e66ba;"&gt;Gergely Bathó&lt;/A&gt;&lt;/STRONG&gt; said . and I think you can write some macro to achieve these goals .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 07:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Constructing-the-optimal-portfolio/m-p/196733#M10530</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-10T07:56:33Z</dc:date>
    </item>
  </channel>
</rss>

