<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pranesh Muppala on Medium]]></title>
        <description><![CDATA[Stories by Pranesh Muppala on Medium]]></description>
        <link>https://medium.com/@vespanalytics?source=rss-39810ba84904------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*WFrELZrwzKeOUpCHFr1Vxg.gif</url>
            <title>Stories by Pranesh Muppala on Medium</title>
            <link>https://medium.com/@vespanalytics?source=rss-39810ba84904------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:53:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vespanalytics/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Invest with confidence with your eyes wide open]]></title>
            <link>https://medium.com/data-science/invest-with-confidence-with-your-eyes-wide-open-1b5f0d846922?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b5f0d846922</guid>
            <category><![CDATA[india]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[risk]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Fri, 12 Jul 2019 08:26:28 GMT</pubDate>
            <atom:updated>2020-09-14T21:21:10.627Z</atom:updated>
            <content:encoded><![CDATA[<h4>Know your risk. A meaningful way to look at risk before making an investment decision.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*e-_AJwkOazRKdabqpycOmw.jpeg" /></figure><p>When one is looking at mutual funds or stocks to invest in, it’s common to see ratings, risk scale, performance summary statistics like the ones below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*3RoOyq_zAVJD6h7WuIFRIA.png" /><figcaption>Taken from some popular Investment Portals</figcaption></figure><p>It’s great to get these kind of relative ratings when trying to compare different choices. Summary measures like the returns over ‘n’ number of years tell us how a fund has performed in the recent past, and what kind of returns one might expect to earn if things <strong>continue in the same manner</strong>.</p><p>But, for those who have paid attention to financial markets and investment performance over the years, it’s quite apparent that things seldom continue in the same manner! Think of major market moving events or business cycle changes — recessions, boom periods, political changes, trade wars, real wars… you get the point!</p><p>Considering all this, one might want answers to questions like:</p><ol><li>If the market experiences a prolonged slump next year, how much will i stand to lose?</li></ol><p>2. And if i stay invested through this slump, how long will it take to recoup my loses (paper) ?</p><p>3. What if an event like <a href="https://en.wikipedia.org/wiki/Subprime_mortgage_crisis">2008 subprime mortgage crisis</a> were to repeat itself again now? There is some resemblance to the on-going <a href="https://www.thehindu.com/opinion/lead/resolving-indias-banking-crisis/article27097047.ece">Banking</a> and <a href="https://auto.ndtv.com/news/car-sales-june-2019-sales-of-passenger-vehicles-down-by-17-54-2067327">NBFC crisis in India (and its likely contagion effect on Auto industry)</a> as it pertains to asset quality. Will my investment experience a 20% drop or a 50% drop?</p><p>4. If the <a href="https://www.business-standard.com/article/markets/markets-rebound-as-us-fed-signals-interest-rate-cut-sensex-rises-266-pts-119071101548_1.html">US Fed is likely to announce a rate cut</a>, will it help my investment? If so, by how much?</p><p>5. In the short-term, will a really bad week in the market result in a 2% or 10% paper loss? Will i lose my sleep over these moves?</p><p>In the rest of the article, let’s review a different but meaningful way of looking at risk and how we can answer some of these practical questions.</p><p>An intuitive analytics driven tool is made available for <a href="http://vianalytics.in/mf_research">Indian Mutual Funds</a> and <a href="http://vianalytics.in/stock_research">Indian Stocks</a>. As an example, please see below illustration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WoMyodAK8HDFVD_OpEGYeA.gif" /></figure><h3>Short-term Jitters</h3><p>To asses how a typical weekly/monthly/quarterly performance would look like, the asset’s historical returns distribution could be very helpful. They help us not only gauge what’s the expected range, but also show what a really bad week would look like and how frequent are such weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F1WMEypyKXNVhH8t_IRAOA.gif" /></figure><p>Let’s compare performance of two Equity Mutual Funds side-by-side below. If we take a closer look, the one on the left is more volatile and has experienced more pronounced quarterly gains as well as drops relative to the fund on the right. This is further validated by its higher beta (sensitivity to the overall general market).</p><p>As a result, in one of the quarters, the left-side fund experienced a drop of well over 16% in 2018. To the above raised questions, if one were to pick the left-side fund, they must be prepared to endure such volatile quarters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppkjABWcLJXae3jNDGOH0w.png" /></figure><h3>Prolonged market slump</h3><p>Recessions and market down-turns are an inevitable reality of investing in financial markets. <a href="https://www.investopedia.com/terms/m/maximum-drawdown-mdd.asp">Maximum drawdown</a> (MDD) is a good measure to analyze how much a fund has lost during such periods.</p><p>Different asset classes experience varying degrees of losses. Hence, depending on a fund composition, their MDD’s could vary significantly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*QyHaUfNm6rsQoZSRgsuFFw.png" /></figure><p>The above fund, has experienced a drawdown of about 30% between November 2014 and February 2016. That’s roughly 1.5 years to reach the bottom and it took another 1.5 years to reach the same level back again. Overall, it took about 3 years to get even.</p><p>Some other market down-turns have taken longer than this. More close to 7–8 years. The Oracle of Omaha Mr. Warren Buffet’s famous quote about long-term investing comes to mind — <em>“Only buy something that you’d be perfectly happy to hold if the market shut down for 10 years”.</em></p><p>If one’s investment time horizon doesn’t permit such long periods, a more balanced fund will be a better option. Below fund, experienced a maximum drawdown of only 10% and recovered even that in short order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*kzznilLTapas431vFg0soA.png" /></figure><h3>Pseudo Forecasting</h3><p>Now, let’s get into some hypotheticals, shall we?</p><p>Let’s say if we decide to invest X amount in a fund. Then, we forget about it and go on about our main business. Then, we hear news headlines like — Oil prices have gone up by 20% in the last 2 months or Indian market Index Sensex has fallen by 10% in the last quarter.</p><p>This might prompt us to go and check our investment’s current value and wonder how it’s been performing. What if we could analyze such scenarios ahead of time before deciding to buy?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVnr1OSNEd08So4WoXFhBw.gif" /></figure><p>Above illustration is for a scenario where the Sensex goes up by about 8.9% in the next 3 months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*xVYhkrYnOfa7MSafbYKG_Q.png" /></figure><p>Using historical data, mathematical simulation and probability, we can estimate an initial investment of Rs.10,000 to end up somewhere in the range between Rs 9,300 and Rs,12,000 with a likely value close to Rs, 10,960 after 3 months (Days in the above chart refer to trading days not calendar days).</p><h3>All hell breaks loose!</h3><p>Continuing on with hypotheticals, Financial markets have a dark side too. What if something close to 2007–2008 US subprime mortgage crisis and its subsequent global contagion were to precipitate now?</p><p>For Indian markets, the on-going NBFC’s defaults and questions over their underlying asset quality appear somewhat similar, but at a much smaller scale though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rQ6a9SpUK7Q9gJWu6kpbAA.gif" /></figure><p>For the example fund — “ICICI Prudential Bluechip Fund — Dividend”, if something close to the 2008 global market crash were to occur now, its, NAV value can drop to 9.5 (about 43% of its current value) in the next one year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*mmrB5f7wA-FIjU1ayZUsUw.png" /></figure><p>One concern might be, what if the fund never existed during such a historical crisis, then how can we asses its performance if such an incident (or similar one) were to occur now? In fact, the above example fund started only in April 2009.</p><p>The methodology used to arrive at the above analysis allows us to exactly model for such scenarios (stress events). A <a href="http://faculty.iima.ac.in/~iffm/Indian-Fama-French-Momentum/four-factors-India-90s-onwards-IIM-WP-Version.pdf">Four factor model adapted for Indian markets</a> was used to determine sensitivity of the fund’s performance to the model’s factors. A regression model generated for the fund is used to predict historical events even if the fund never really existed at that time.</p><h3>Wrap up</h3><p>Sure enough, there are multiple ways to look at financial investment risk. Different personalities and life circumstances deem one way more important than others. But, investment decisions made with our eyes wide open to risk exposure should alleviate lot of anxiety and stress.</p><p><strong><em>Note from Towards Data Science’s editors:</em></strong><em> While we allow independent authors to publish articles in accordance with our </em><a href="https://towardsdatascience.com/questions-96667b06af5"><em>rules and guidelines</em></a><em>, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our </em><a href="https://towardsdatascience.com/readers-terms-b5d780a700a4"><em>Reader Terms</em></a><em> for details.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5f0d846922" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/invest-with-confidence-with-your-eyes-wide-open-1b5f0d846922">Invest with confidence with your eyes wide open</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is your Investment Portfolio really balanced?]]></title>
            <link>https://medium.com/@vespanalytics/is-your-investment-portfolio-really-balanced-699fec5afd84?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/699fec5afd84</guid>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[mutual-funds]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Wed, 03 Jul 2019 13:16:42 GMT</pubDate>
            <atom:updated>2019-07-03T13:16:42.761Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*cKpZWaOYHwgyJJb_VOKXLA.png" /></figure><p>According to Modern Portfolio Theory(MPT) (though its been in existence for over half a century), investors can construct “efficient” portfolios by weighing assets with varying risk-return characteristics differently to meet their unique risk profile. This helps one to maximize expected returns based on their risk tolerance level.</p><p>The key statistical measure that enables this simple, yet important portfolio construction step is — correlation between the returns of the assets considered for the portfolio. In a well diversified portfolio, correlation between individual assets is an important factor, even more so than individual asset’s historical returns.</p><p>To illustrate, let’s take two domestic Mutual funds in India.</p><ol><li>IDFC Bond Fund — Medium Term Plan — growth (Lower Risk asset)</li><li>Canara Robeco Emerging Equities — growth (Higher risk asset)</li></ol><p>Let’s see how each of the two funds have performed historically using a starting investment of Rs.10,000</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F460964%2Fembed&amp;url=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F460964%2F&amp;image=https%3A%2F%2Fpublic.flourish.studio%2Fpublished_thumbnails%2Fvisualisation%2F460964%2F323db04d155fda1a.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=flourish" width="700" height="575" frameborder="0" scrolling="no"><a href="https://medium.com/media/eee43bb7cf4bec88ea0548f73522ef5e/href">https://medium.com/media/eee43bb7cf4bec88ea0548f73522ef5e/href</a></iframe><p>As we can see, the higher risk fund obviously outperformed the lower risk fund over a long investment horizon (over 11 years). But, if we just go with the top-line number, we would be ignoring lot of important risk related metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*k9vN5kIg-DbIyXZ4h-RPvA.png" /></figure><p>The low risk fund experienced just 2% volatility and a maximum drawdown of 7%. Whereas, the high risk fund performance was very volatile and it experienced a maximum drawdown of about 60%. In order to gain the overall superior returns, one should have the stomach for a 60% drop in value (and still stay invested).</p><p>Not all investment portfolios can afford to hold just these kind of high risk assets due to constraints placed on each individual’s needs and life events. Ideally, we would need portfolios with a range of expected risk/return characteristics to meet different goals.</p><p>MPT and its mean-variance optimization helps in this regard by allowing us to mix assets with different expected risk/return characteristics to construct a portfolio that is suited for a specific goal and its associated constraints.</p><p>In the above example, let’s put together two portfolios with risk/return profile somewhere in between the two extremes.</p><p>First portfolio is obtained by allocating approximately 50% to each of the fund. For the second portfolio, about 75% of the initial investment is allocated to the high risk fund and the remaining 25% to the lower risk fund.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*CK-UDYImmR7h0bQ0uSyrnw.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F460975%2Fembed&amp;url=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F460975%2F&amp;image=https%3A%2F%2Fpublic.flourish.studio%2Fpublished_thumbnails%2Fvisualisation%2F460975%2F425579ad60c4d66f.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=flourish" width="700" height="575" frameborder="0" scrolling="no"><a href="https://medium.com/media/77d265b67b3a801bb478f4c60b3fd1e9/href">https://medium.com/media/77d265b67b3a801bb478f4c60b3fd1e9/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9It4U_Etnf4zZ6imCD75qg.png" /></figure><p>Just to highlight, portfolio_2 returned just around Rs 5,000 less than the pure high risk mutual fund, but with a much lower volatility (29% compared to 41%) and also less alarming maximum drawdown of 43%.</p><p>As mentioned earlier, the key to construct diversified portfolios is the correlation between the individual asset’s returns.</p><p>How do we calculate <a href="https://www.investopedia.com/terms/c/correlation.asp">correlation</a>?</p><p>How far back in time do we go to determine correlation between the asset returns? Entire history or more recent years?</p><p>Does correlation between assets vary over time? If so, do we assign greater importance to more recent history before computing the optimal portfolio allocation?</p><p>In the above example, correlation between the two funds is 0.15 if we consider the entire 11 years daily returns. But, if we break-up the data into say six months time periods, correlation from period to period varies significantly, reaching a high of 0.35 in 2015–16 and a low of -0.20 in 2017–18.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F461108%2Fembed&amp;url=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F461108%2F&amp;image=https%3A%2F%2Fpublic.flourish.studio%2Fpublished_thumbnails%2Fvisualisation%2F461108%2Fff46f4d7a1922de8.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=flourish" width="700" height="575" frameborder="0" scrolling="no"><a href="https://medium.com/media/84e0954c3013bbbc087abd2ecc082852/href">https://medium.com/media/84e0954c3013bbbc087abd2ecc082852/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*sLzu-PtpMIIdn5dYqeJEBg.png" /></figure><p>This kind of variance in correlation of asset returns over time raises an important question. Is my portfolio really balanced? Is it constructed to meet my investment goals and objectives?</p><p>The real solution to this question is two fold:</p><ol><li>Periodic rebalancing of portfolio is important (about once or twice a year)</li><li>During re-balancing, one must assess current macro economic situation and decide if we are in the midst of a significantly different “regime” (causing asset correlations to deviate from their historical levels). If so, it’s prudent to consider more recent history that is more reflective of the current asset class performance.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=699fec5afd84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is chasing Top Performing Mutual Fund a fool’s errand?]]></title>
            <link>https://medium.com/data-science/is-chasing-top-performing-mutual-fund-a-fools-errand-b5e16f59f381?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5e16f59f381</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[mutual-funds]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[india]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Fri, 21 Jun 2019 13:48:15 GMT</pubDate>
            <atom:updated>2019-07-14T03:18:04.838Z</atom:updated>
            <content:encoded><![CDATA[<h3>Is chasing Top Performing Mutual Funds a fool’s errand?</h3><h4>Stop chasing funds and instead pick them in a systematic way</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RkYRgF4xbf8LQjWBk775Iw.jpeg" /><figcaption>Photo by Flo Maderebner on Pexels</figcaption></figure><p>As shown <a href="https://www.linkedin.com/feed/update/urn:li:activity:6538795308112023552">here</a> and <a href="https://economictimes.indiatimes.com/wealth/invest/sensexs-rise-from-20k-to-40k-5-lessons-for-equity-mutual-fund-investors/articleshow/69800301.cms">here</a>, chasing last year’s top performing Mutual Funds to invest this year is proving to be elusive, and such a strategy is more likely to result in long-term under-performance.</p><p>As an example, below illustration shows that there is no consistent top performer in Large Cap India Mutual Funds category across a sample period 2016–2018.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F434933%2Fembed&amp;url=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F434933%2F&amp;image=https%3A%2F%2Fpublic.flourish.studio%2Fpublished_thumbnails%2Fvisualisation%2F434933%2F40955bf01f32ae95.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=flourish" width="700" height="575" frameborder="0" scrolling="no"><a href="https://medium.com/media/e31386f6db61df012619c93e90106bb1/href">https://medium.com/media/e31386f6db61df012619c93e90106bb1/href</a></iframe><p><strong>So, is it better to adopt a “Buy and Hold” approach instead of hopping across last year’s top returns funds year to year?</strong></p><p>But, studies performed over longer-periods have shown that (refer to above referenced articles), there is no statistically significant chance that a best performing fund for one year would maintain or return to being one among the top performers in the immediately following years. As a result, though we may save on some transaction costs (by not regularly buying and selling funds), overall this approach is also likely to result in under-performance over the long run.</p><p><strong>Hmm… With so many fund offerings available in India, the chances of picking a top performing fund in the future appear to be very slim. Is there a better way to consistently pick one of the top performing funds to be able to improve on our long-term portfolio performance?</strong></p><p>Rest of the article covers one such approach.</p><p>It is important to not evaluate different fund categories in the same manner. For e.g., just top line annualized returns alone is not a good measure to evaluate the performance of a Debt market fund. Some risk related measures have to be considered as well.</p><p>One may want to consider an array of performance measures to evaluate fund performance, with different relative importance associated with them based on the fund category and type.</p><p>Also, it’s a prudent idea not to commingle funds across different categories and types while evaluating top performers. For e.g.: under Equity category, a Large Cap Fund must not be compared with a say Small Cap Fund. It’s similar to comparing apples with oranges.</p><p>The overall approach taken is to first identify a set of performance measures, then weigh them differently according to the category and type of funds to be evaluated. Finally, top performing funds within a category and type are identified based on a cumulative score across these different performance measures.</p><h3>The following measures are used:</h3><ol><li>Last 3 years Annualized returns</li><li>This year Annualized return so far</li><li>Last 3 years <a href="https://www.investopedia.com/terms/s/sharperatio.asp">Sharpe Ratio</a></li><li><a href="https://www.investopedia.com/terms/m/maximum-drawdown-mdd.asp">Maximum drawdown</a> (MDD) experienced in last 3 years</li><li>Maximum drawdown experienced more recently, within one year</li><li><a href="https://www.investopedia.com/terms/v/var.asp">Value at risk</a> (VaR) at 95% confidence level</li><li><a href="https://www.investopedia.com/terms/c/conditional_value_at_risk.asp">Conditional value at risk</a> (cVaR) at 95% confidence level</li><li>Value at risk at 99% confidence level</li><li>Conditional value at risk at 99% confidence level</li></ol><p>The reason for selecting these measures is to ensure that we are not only looking at top line annualized returns in the immediate past, but also take into account prior years performance as well. In addition to considering returns related measures, we need to factor in risk associated with those returns. Risk can be viewed from different perspectives, VaR and cVaR measures focus on worst case scenarios (short-term tail risk measures), whereas MDD is a good indicator of losses that are incurred over a longer period of time (think recessions!).</p><p>Different categories and types of funds warrant different levels of importance for these measures. For e.g., an aggressive Equity Large-cap fund is evaluated by attributing larger weights to returns measures, where as risk related measures gain more prominence to evaluate a conservative Debt market Liquid fund.</p><p>To test this approach, a model is developed and tested against 15 years worth of historical data available. Care is taken to avoid different kinds of biases like look-ahead bias, selection bias. Goal is to identify the likely top performers in the immediate future for each fund category and type.</p><p>To illustrate, let’s take 3 years <strong>2016–2018</strong> and try to pick the likely top performer at the beginning of each year in the following three fund categories and types</p><ol><li><strong>Equity Large Cap</strong></li><li><strong>Equity Mid Cap</strong></li><li><strong>Equity Theme/Sector — Financial</strong></li></ol><p>A beginning investment of Rs.10,000 is made beginning on January 1st 2016. To compare performance, we pick the best fund in each category based on the below three strategies</p><ol><li><strong>Buy &amp; Hold </strong>— pick the fund with best returns in year 2015 and stay invested in it for the next three years</li><li><strong>Last year’s winner</strong> — pick the fund with the best return in the prior year. If in a year, a different fund emerges with best returns, then switch the investment to that fund the following year</li><li><strong>VI Model </strong>— At the beginning of each year, the fund with the best score based on the above described model is chosen. The same process is followed at the beginning of the subsequent two years and if a different fund emerges as the leader, we switch our investment to that fund</li></ol><p>Care is taken to avoid any look-ahead bias and for simplicity, we ignore differences in transaction costs.</p><h3>Results</h3><p><strong>Large Cap Funds</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*6hULJgwdLVsT4oS_wQ-UZQ.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F437508%2Fembed&amp;url=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F437508%2F&amp;image=https%3A%2F%2Fpublic.flourish.studio%2Fpublished_thumbnails%2Fvisualisation%2F437508%2F9ffb6c19108ddd18.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=flourish" width="700" height="575" frameborder="0" scrolling="no"><a href="https://medium.com/media/2482f9aa0a29030199d1ca45449adef9/href">https://medium.com/media/2482f9aa0a29030199d1ca45449adef9/href</a></iframe><p><strong>Mid Cap Funds</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*SJw7LzRQ358iUqyWeXYilw.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F438114%2Fembed&amp;url=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F438114%2F&amp;image=https%3A%2F%2Fpublic.flourish.studio%2Fpublished_thumbnails%2Fvisualisation%2F438114%2F9a3badff013184f6.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=flourish" width="700" height="575" frameborder="0" scrolling="no"><a href="https://medium.com/media/28ceed7c3b89edd2aa19163905f7eb61/href">https://medium.com/media/28ceed7c3b89edd2aa19163905f7eb61/href</a></iframe><p><strong>Sectoral Funds — Financial</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*wgWvG5h61HrRnRNqBxQLPA.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F438125%2Fembed&amp;url=https%3A%2F%2Fpublic.flourish.studio%2Fvisualisation%2F438125%2F&amp;image=https%3A%2F%2Fpublic.flourish.studio%2Fpublished_thumbnails%2Fvisualisation%2F438125%2F7089920b8207a19e.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=flourish" width="700" height="575" frameborder="0" scrolling="no"><a href="https://medium.com/media/c67a3f1e361e43d070417ea273083c82/href">https://medium.com/media/c67a3f1e361e43d070417ea273083c82/href</a></iframe><h3>Wrap-up</h3><p>As can be seen, the above described approach is able to consistently pick better performing funds over the other two approaches. Though, we may not be able to pick the best performer every single time in every single category, on average it is likely to help us make better decisions over the long run.</p><p>You can check out current top performers at <a href="http://vianalytics.in/mf_top">http://vianalytics.in/mf_top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5e16f59f381" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/is-chasing-top-performing-mutual-fund-a-fools-errand-b5e16f59f381">Is chasing Top Performing Mutual Fund a fool’s errand?</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Risk-centered Financial Investment Management]]></title>
            <link>https://medium.com/@vespanalytics/risk-centered-financial-investment-management-e3cae0bf27c?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3cae0bf27c</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[risk]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Mon, 24 Dec 2018 01:30:50 GMT</pubDate>
            <atom:updated>2018-12-24T01:30:50.494Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CtknqOb5kzeEV6m1DEnDsA.png" /></figure><p>For most investors, our single most focal point when considering any investment opportunity is — Return. <em>What is my expected rate of return if i pick this stock or that fund or any other alternative investment vehicle?</em> For sure, rational investors do expect their returns commensurate to the amount of risk they choose to take. But, little effort is taken to clearly present and articulate underlying risk characteristics associated with a specific investment, let alone the entire portfolio. For a change, let’s flip this around (at least till the end of this article!) and explore how one can take a risk-centered approach to investing. If nothing else, a reasonable expected outcome after reading through this article is — a regular investor will start to appreciate the notion of risk as it pertains to their investments and will make better life decisions. First, <em>How do one define financial risk?</em>There are many definitions of risk, all for valid reasons. But for the purpose of this article, let’s stick to the basic definition of all — risk is a measure of how volatile an asset’s returns are (how dispersed they are from the average expected return). More importantly, let’s explore different ways one can express risk in a more natural way instead of confining ourselves to the realm of strict definitions.</p><h3>Thought Process</h3><p>To better drill down on this topic, let’s restrict ourselves to Indian financial markets, more specifically to Equity markets and Mutual Funds.</p><p>While considering adding a new stock or a mutual fund to one’s portfolio, do we spend enough time thinking about some of the following questions?</p><ol><li>In its history, what is its worst weekly/monthly performance? Do i have stomach to endure such weeks or months?</li><li>During prior major market downturns/corrections, what is its maximum drawdown (difference from its previously recorded peak to the lowest point)? If one such downturn were to occur in the immediate future, do i have enough cushion in the form of other sources of income or emergency funds and leave my investment portfolio untouched for that duration of time (allowing it to recover)?</li><li>How likely is this new investment going to be impacted by major global macro events that we hear in our daily news headlines? — like crude oil price fluctuations, US Fed interest rate announcements, global trade and currency movements etc..?</li><li>By adding this new stock/fund, am i taking incremental risk in my overall portfolio and if so, is it justified?</li></ol><p>To answer these and many other related questions, a new completely data-driven risk analytics based platform is now available — <a href="http://vianalytics.in/">Vesp Investment Analytics</a> (VI Analytics).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gbOr0QZAjPVYxuWVdyTe7Q.png" /></figure><h3>Selection and deep-dive analysis</h3><p>Normally, most of the retail investors pick new funds or stocks to invest in, based on either some kind of recommendation from their trusted broker/advisor or through their own analysis/background/research. For the later case, there are a number of useful tools and websites available that one can peruse to conduct their own analysis. We are not going to delve into those resources here. Instead, wouldn’t it be nice if there is a different way of selecting and analyzing new opportunities to invest by answering questions like the ones listed above? VI analytics allows you to conduct such exploratory analysis.</p><p>Some of the things you can do are:</p><ol><li>Filter your choices based on desired risk/return characteristics and past performance</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QobilkRvInc7ERc-L2l-qA.gif" /></figure><ol><li>Worst/best week/month/quarter/year performance and how it compares to benchmark indices like Sensex or BSE500</li><li>Maximum drawdown experienced</li><li>How closely does the asset returns move with major global macro events/news?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*6R-kLQYBvAZhyKS5Y8_DAg.png" /></figure><h3>Portfolio construction and analysis</h3><p>Picking a bunch of stocks or funds to invest in, is an important but a mere first step in the investment process. Next comes the more important question — <em>how do i combine them to ensure the target portfolio’s risk/return characteristics aligns with my risk appetite and also my larger goal’s risk profile?</em></p><p>To this end, this process is broken down into three basic steps:</p><h3>Portfolio construction</h3><p>First step is to add the set of stocks/funds one might be interested to invest in after careful analysis. Portfolios can be constructed <a href="http://vianalytics.in/portfolioManage">here</a>, new portfolios can be created, existing portfolios can be deleted, individual stocks/funds can be added or removed all at one place.</p><h3>Portfolio allocation</h3><p>This important step helps with answering the question of — <em>How do i allocate my money between the different funds/stocks? </em>Once a portfolio is initially constructed, preliminary analysis of its cross-component interactions can be done <a href="http://vianalytics.in/portfolio">here</a>. Risk/Return distribution, <a href="https://www.investopedia.com/terms/c/correlationcoefficient.asp">correlation coefficients</a> between each pair is a good way to determine how diversified a portfolio is. <a href="https://www.investopedia.com/terms/s/standarddeviation.asp">Standard deviation</a> is a measure of how dispersed an asset’s returns are. The higher the standard deviation measure is, the more risky and volatile its returns are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ISxgPyY2Bz94EeqLPSYLMQ.png" /></figure><p>The higher the correlation coefficient between a pair of components, the closer they track each other’s performance and the resulting portfolio may not be a diversified one.</p><p>Next step is to determine the desired allocation mix for this portfolio. This can be done two ways:</p><ul><li>Simpler approach — <a href="http://www.columbia.edu/~mh2078/FoundationsFE/MeanVariance-CAPM.pdf">Mean-variance Optimization</a> — This option allows one to come up with an allocation mix that matches their desired risk appetite level. Click on the point in the <em>Return/Risk</em> plot that is closer to their risk appetite level, to see the recommended allocation mix and also a detailed analysis of its historical performance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_oacjGhXG_8QomJFcslJw.png" /></figure><p>If one is satisfied with the allocation mix, it can be saved at the bottom of the page.</p><ul><li>Sophisticated approach — <a href="https://web.stanford.edu/~wfsharpe/art/q2001/q2001.htm">Risk Budgeting</a>. If your primary focal point is, risk-centered Investment Management, <em>wouldn’t it be nice if one has the ability to allocate based on risk contributions by each component towards the larger portfolio?</em> Second approach allows one to do just that. One can specify the maximum “Risk Budget” an individual asset can contribute towards their portfolio in addition to choosing the entire portfolio’s target risk level (similar to Mean-Variance Optimization).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJY7Dz3w39mzYTNnmZ932g.png" /></figure><p>Each series of points (same color), represent a Max_risk_budget level. For e.g., if Max_risk_budget=0.4, then no asset in that portfolio mix will contribute more than 40% risk to the overall portfolio. Once the desired Max_risk_budget level is selected, a target allocation can be arrived at by clicking on the point that matches close to the desired risk level. This further allows us to review the allocation mix, and a deeper analysis of its historical performance.</p><h3>Final validation</h3><p>Once you are comfortable with the portfolio components and their allocation, you can do one final <em>Test-Drive</em> by running a fully customizable Backtest process and also conduct <em>what-if</em> scenario analysis before committing your money to the target portfolio.</p><ul><li>Backtest — Now that you have gone through picking the right investments and also arrived at a desired asset allocation mix that lines up with your risk profile (<em>taking the analogy of assembling one’s own race car — where you get to pick the specifications, individual parts and also tune up the engine to your liking</em>), wouldn’t it be nice to t<em>est drive</em> this portfolio before fully committing to it (<em>like taking your assembled race car to the tracks and giving it a spin</em>). You can backtest your portfolio <a href="http://vianalytics.in/portfolioBacktest">here</a>.</li></ul><p>To make it more clear, this is like traveling in a time machine, going back to a point in history and then fast-forwarding one day at a time. Adequate care is taken to avoid “Look-ahead bias”, i.e., no cheating!. At each step as we fast forward, only the data available to that point in time is used and future data is not <em>looked ahead</em>. Though we can’t literally go back in time to test our investment allocations, this is the next best possible way to validate our approach.</p><ul><li>What-if Scenarios — While it was fun to look at each individual asset’s reaction to major market news, its a totally different ball-game to get a sense of how the entire portfolio will perform under these <em>scenarios, </em>mainly for the fact that correlations between the assets in the portfolio change dynamically to different macro situations. <a href="http://vianalytics.in/portfolioSA">Sensitivity Analysis</a> allows an investor to get an idea on the range within which the portfolio’s value is most likely to stay. As an example, if one were to imagine a scenario where they are concerned that crude oil prices could go up by 5% in the next three months, portfolio sensitivity analysis allows that investor to simulate this scenario and see where the portfolio value might end up after the three months. Though, there is always going to be market uncertainty, this tool should give a reasonable degree of confidence since it is based on past data and also simulated probability models.</li></ul><h3>Wrap-up</h3><p>At a more fundamental level, for a regular retail investor who has a day job, family and other personal life matters to deal with, trying to make sense of Investment Management Industry’s jargon, ratings systems, classifications etc… can be a bit overwhelming, thereby driving them to put off their investment plans altogether. Instead, VI analytics approach is to bring some of the more sophisticated &amp; proven risk management topics and portfolio management approaches to regular retail investors in the form of easy to understand visualizations and analytics that can better appeal to one’s natural emotions, fears and instincts. As promised in the beginning of this article, hopefully an end-to-end read has planted enough seeds about what risk-centered investing mindset is and more importantly, you now have readily available tools to explore further on your own.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3cae0bf27c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Alternative Investment Portfolio construction methods — Risk Budgeting using a Data Science based…]]></title>
            <link>https://medium.com/@vespanalytics/alternative-investment-portfolio-construction-methods-risk-budgeting-using-a-data-science-based-54ffbd195530?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/54ffbd195530</guid>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[risk-mangement]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[risk-budgeting]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Sun, 22 Jul 2018 21:34:41 GMT</pubDate>
            <atom:updated>2018-07-22T21:34:41.856Z</atom:updated>
            <content:encoded><![CDATA[<h3>Alternative Investment Portfolio construction methods — Risk Budgeting using a Data Science based Risk Analytics platform</h3><p>Portolio Management comprises of at a minimum the following steps:</p><ol><li>Put together a Policy Statement that documents the investor’s objectives, goals and constraints</li><li>Pick assets that can be considered for inclusion in the target portfolio. Below story covers this step where one can analyze risk/return characteristics, correlations with macro-economic indicators etc… for mutual funds and stocks in India on a data-driven risk analytics platform.</li></ol><p><a href="https://medium.com/@vespanalytics/a-risk-analytics-data-science-based-platform-for-retail-investors-in-indian-financial-markets-c89bba58b1c3">A Risk Analytics &amp; Data Science based platform for retail investors in Indian Financial Markets</a></p><p>3. Come up with asset allocation strategies that determine how much weight in the overall portfolio should go towards each asset class. Strategic Asset allocation (SAA) is a more static long-term target asset allocation mix that is appropriate for a specific investor based on their policy statement goals, objectives and constraints. Tactical Asset Allocation (TAA) introduces small biases to the SAA mix based on the asset manager’s insights and experience of current market and economic conditions and how best to position a portfolio to benefit from such short-term conditions. <a href="http://www.columbia.edu/~mh2078/FoundationsFE/MeanVariance-CAPM.pdf">Mean-Variance portfolio optimization</a> is a proven quantitative optimization approach that has been widely used across the industry for decades now. It helps by coming up with a target portfolio allocation mix based on the desired risk appetite of an investor. Below story covers a DIY (Do it Yourself) process that a retail investor can undertake to construct their desired target portfolios.</p><p><a href="https://medium.com/@vespanalytics/optimized-portfolio-construction-using-risk-analytics-85acee80fffa">Optimized Portfolio Construction using Risk Analytics</a></p><p>4. Periodic monitoring and rebalancing. From time to time, the investor’s portfolio performance must be reviewed and effort must be made to validate its suitability to the investor’s goals and constraints. Necessary changes must be made based on the outcome of this process.</p><p>In this story, let’s focus more on step 3 using <a href="http://vespanalytics.com/">Vesp Analytics</a>. Specifically, are there other approaches to portfolio construction that may be appropriate for certain “edge cases”?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOUfVdR3iMPzOaMdJV1QEg.jpeg" /></figure><p>As a continuation of the above two referenced stories, let’s review the example portfolio “Diversified Portfolio” more in detail.</p><p>On the “Efficient Frontier” optimized portfolios curve, if one were to select points on the top right side (with high risk and return properties), the suggested portfolio mix will be heavily tilted towards the most riskiest asset in the portfolio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vrtpt1bpqKfFIds2gbXf5w.gif" /><figcaption>Mean-Variance Portfolio optimization extreme cases</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*rL4eCATjMbZy9g6FGJak3Q.png" /><figcaption>Portfolio weights for the most riskiest portfolio</figcaption></figure><p>As we can see, the resulting portfolio is pretty much all of “Maruti Suzuki” stock and everything else drops close to zero. In the end, this is no better than buying just the stock with no diversification at all. To be fair, Mean-Variance portfolio optimization does what it is told to do, it optimizes for the combination that gets us the most return for the selected risk appetite and there are no other constraints. Since we chose the riskiest portfolio, it ended up tilting heavily towards the component that has the highest Risk/Return value (we can confirm that by clicking on the top right most dot on the “Risk Return Distribution” chart).</p><p>But, is there an alternative approach to portfolio construction that gives us a more fine grained control over how much maximum risk each portfolio component can contribute, rather than just selecting an aggregate portfolio level maximum risk. <a href="http://www.columbia.edu/~mh2078/A_generalized_risk_budgeting_approach.pdf">Risk Budgeting</a> is one such approach that allows us to specify additional optimization constraints where a maximum risk contribution weight for each of the portfolio component can be specified upfront. Thereby, it controls for excessive leverage and risk concentration in the constructed portfolios. Risk Budgeting is one of the sophisticated portfolio construction approaches used by some of the <a href="https://www.aqr.com/Insights/Research/Alternative-Thinking/Strategic-Portfolio-Construction">top hedge funds</a>. It has gained in prominence after 2007–2008 global financial crisis.</p><p>Now, let’s walk-through an example portfolio construction process using Risk Budgeting.</p><ol><li>Follow first half of <a href="https://medium.com/@vespanalytics/optimized-portfolio-construction-using-risk-analytics-85acee80fffa">this</a> story till the point where we can add stocks and/or mutual funds to a portfolio and perform its initial correlation analysis.</li><li>Select “Risk Budgeting” option as the portfolio optimization method and click on “Calculate Optimal Portfolio Allocations”.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWU0ciTZFpStOJaXtKBr9A.gif" /></figure><p>3. On the “Optimized Portfolios” chart, click on any of the points (each represents a different portfolio mix) to see its corresponding risk budgets (each component gets a contribution budget, represented in %. All of them add up to 1). In the same table, we can see the suggested allocation mix to achieve the desired risk budgets. Feel free to try selecting each of the points and review their risk budget mix and identify the point with the desired risk budget mix. Suggested portfolio allocation mix is available in the next column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*CE4FTQOgxbGaTkkbNrRYMQ.png" /><figcaption>Risk Budgets and their corresponding allocation weights</figcaption></figure><p>4. Rest of the portfolio risk analytics for the selected point can be reviewed in the other charts</p><p>Feel free to try out different asset combinations, construct portfolios using both mean-variance and risk-budgeting approaches and analyze their risk/return characteristics to get a sense of how they map to one’s financial goals, objectives and risk tolerance levels.</p><p>Vesp Analytics provides a platform not just to perform an in-depth analysis of individual stocks and mutual funds, but also gives the ability for regular retail investors to construct portfolios using modern sophisticated approaches that were not easily available until now. More importantly, its an ideal platform to build upon by adding:</p><ol><li>New ways to analyze individual funds or stocks</li><li>Add more sophisticated portfolio construction methods like sector rotation, Recurrent Neural Network based macro-economic prediction models etc…</li><li>Investor portfolio construction, on-going tracking and periodic re-balancing</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54ffbd195530" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimized Portfolio Construction using Risk Analytics]]></title>
            <link>https://medium.com/@vespanalytics/optimized-portfolio-construction-using-risk-analytics-85acee80fffa?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/85acee80fffa</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[risk-management]]></category>
            <category><![CDATA[portfolio]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Sat, 21 Jul 2018 03:12:01 GMT</pubDate>
            <atom:updated>2018-07-21T03:12:01.175Z</atom:updated>
            <content:encoded><![CDATA[<p>Picking an individual stock or even selecting a Mutual Fund is important and one needs to do careful analysis while doing so. Below article is helpful to do just that using a data-driven risk analytics platform.</p><p><a href="https://medium.com/@vespanalytics/a-risk-analytics-data-science-based-platform-for-retail-investors-in-indian-financial-markets-c89bba58b1c3">A Risk Analytics &amp; Data Science based platform for retail investors in Indian Financial Markets</a></p><p>But, <a href="https://blogs.cfainstitute.org/investor/2012/02/16/setting-the-record-straight-on-asset-allocation">credible research backed by empirical evidence</a> have shown that, this contributes to just a small percentage of overall returns experienced by an investor. Instead, asset allocation and portfolio diversification drive the bulk of returns in an investor’s portfolio over the long run. Asset allocation relies on the notion that different asset classes offer returns that are not perfectly correlated with each other and diversifying a portfolio across multiple asset classes will help deliver better risk-adjusted returns. Short articles on portfolio diversification and asset allocation can be found <a href="https://www.investopedia.com/articles/financial-theory/08/asset-class.asp">here</a>.</p><p>This article picks up from where we left off in a previous story referenced <a href="https://medium.com/@vespanalytics/a-risk-analytics-data-science-based-platform-for-retail-investors-in-indian-financial-markets-c89bba58b1c3">above</a>. To illustrate the process of portfolio construction and the benefits of diversification, let’s pick a top performing Indian mutual fund and see if we can construct portfolios that include other mutual funds and/or stocks along with it to come up with even better risk/return performance outcomes.</p><p>Let’s select “SBI Blue Chip Fund — Regular plan growth”, a large-cap scheme as a reference mutual fund, which is rated as one of the overall best performing mutual funds in India and has a history of over a decade. Its performance can be reviewed by going here — <a href="http://vespanalytics.com/mf_select">http://vespanalytics.com/mf_select</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RdubbXSu7ph0lUkhBRI0pw.gif" /><figcaption>Select and analyze Mutual Fund</figcaption></figure><p>Below Table in the analysis section gives a summary of its risk/return characteristics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*Kcj8AFdPu8OC0SeR6sNBow.png" /><figcaption>SBI Blue Chip Fund Performance summary</figcaption></figure><p>Now, let’s try to construct a portfolio comprising of a few mutual funds and stocks. Below image shows how to select and add a mutual fund or stock to a portfolio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RK5mcItmxQH3ItbYPom3mw.gif" /><figcaption>Add Mutual Fund to a Portfolio</figcaption></figure><p>For this illustration purposes, add the following mutual funds to the same portfolio “Diversified Portfolio” (<em>there is a small glitch with the UI for now, success message stays on the popup for subsequent additions if the mutual fund page is not refreshed, but nonetheless, the fund will still be added to the portfolio</em>)</p><ol><li>SBI BLUE CHIP FUND-REGULAR PLAN GROWTH</li><li>SBI Dynamic Bond Fund — REGULAR PLAN — Growth</li><li>Kotak Emerging Equity Scheme — Growth</li></ol><p>While we are at it, let’s add two stocks as well to the same portfolio (ensure you provide the same portfolio name) from <a href="http://vespanalytics.com/stock_select">http://vespanalytics.com/stock_select</a>.</p><ol><li>Sun Pharmaceutical Industries Ltd</li><li>Maruti Suzuki India Ltd</li></ol><p>After adding all the portfolio components, now go to portfolio page @ <a href="http://vespanalytics.com/portfolio">http://vespanalytics.com/portfolio</a>.</p><p>It takes a few seconds to load, once it loads, click on “show available portfolios” button and select the newly created portfolio from the dropdown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vsfbj6XXeip33w9TZyDA5A.gif" /><figcaption>Select Portfolio</figcaption></figure><p>At this point, if we like, we can delete any portfolio components by selecting them and hitting delete button. But in this case, there is nothing to delete, so let’s move forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wzNFS7ur4Eoj1yxPBux-DQ.gif" /><figcaption>Portfolio component initial analysis</figcaption></figure><p>Once, we are satisfied with the portfolio composition, click on the “Analyze portfolio component correlations” button. This will bring up an initial analysis of the portfolio components. The left chart shows the risk/return distribution of the different components. The right heat-map shows the correlations among the portfolio components. Correlation scores is the key to construct a diversified portfolio, they could range between -1 to 1 (but most of the time they tend to be within the range of 0 to 1). Feel free to click on any points on the risk/return distribution chart or on the heat-map grid to see their values over time. The more grids with lower correlation scores, the better it is for portfolio diversification.</p><p>Now, let’s move to the next step in portfolio construction. There are several strategies to it, let’s first use Mean-Variance portfolio optimization that came out of <a href="https://en.wikipedia.org/wiki/Modern_portfolio_theory">Modern Portfolio Theory</a> (though no longer considered modern, but still very much in use that has stood the test of time). Click on “Calculate optimal portfolio allocations” button to calculate portfolio allocations for different risk tolerance levels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQlBK_nAJj2eHTusblBzXw.gif" /></figure><p>In the “Mean Variance Optimized Portfolios” chart, risk is represented on X-axis and its corresponding return is on the Y-axis (this curve is also called as Efficient Frontier). Select any portfolio on this chart to view the weights for the different components in the portfolio and also its comprehensive Risk/Return characteristics below those charts.</p><p>Now, just to compare, let’s pick one of the portfolios at the bottom of curve. Below are the summary performance metrics for just the SBI Blue Chip Fund followed by that of the portfolio. Its pretty clear that the portfolio has much better risk/return properties. This holds true even for all the other portfolios along the efficient frontier curve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*IUkUC5ZODYz59qOOLjnlzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*B5RvUbh2wAafnKTJAlMSUw.png" /></figure><p>Let’s look at their performance through their returns distributions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*3OblYMzb_H5-mMdd6Fx95A.png" /><figcaption>Mutual Fund Returns Distribution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*7xYfH3fgfwF7SjFAZpbg3g.png" /><figcaption>Portfolio Returns Distribution</figcaption></figure><p>Returns distribution for the portfolio are within a much tighter range than that of the portfolio (there are some big outliers). Feel free to compare and analyze other charts.</p><p>Before we wrap this article, one might question the fairness of this comparison because we have the benefit of hindsight (this is all based on historical data and performance and there is no guarantee that it will hold in the future as well) and also the advantage of selection bias (cherry picking mutual funds and stocks just to illustrate this example). But, the following reasons should put one at ease on these areas of concerns:</p><ol><li>This is based on Modern Portfolio Theory, which has stood the test of time and has gained universal acceptance based on several decades worth of research and real world portfolio management practice</li><li>Regarding the above example, even though its all historical data, the diversified portfolio has better risk/return properties than that of the standalone mutual fund across most time periods, certainly over longer time horizons. Thereby, the odds of such superior performance holding into future are much better.</li><li>For this illustration, we picked the components of the portfolio as a quick exercise. The main factor in picking a well diversified portfolio is that the components correlation matrix scores must spread out over a wide range. Given this condition, its pretty easy to construct portfolios comprising of other mutual funds or stocks that exhibit similar or even better risk/return properties. Vesp Analytics platform gives the ability to do such an analysis without too much difficulty.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85acee80fffa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Risk Analytics & Data Science based platform for retail investors in Indian Financial Markets]]></title>
            <link>https://medium.com/@vespanalytics/a-risk-analytics-data-science-based-platform-for-retail-investors-in-indian-financial-markets-c89bba58b1c3?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/c89bba58b1c3</guid>
            <category><![CDATA[india]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[ana]]></category>
            <category><![CDATA[risk]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Tue, 17 Jul 2018 14:11:00 GMT</pubDate>
            <atom:updated>2018-07-18T23:07:46.776Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.amfiindia.com/indian-mutual">AMFI (Association of Mutual Funds in India)</a>, an industry association body comprising of all major asset management companies, observed that MF Industry’s total AUM (Assets under Management) has grown from ₹5.05 trillion as on 31st March, 2008 to ₹22.86 trillion as on 30th June, 2018, experiencing 4.5 times growth in a span of just 10 years. There are a total of 74.6 Million account holders with almost 90% of them in Equity, ELSS or Balanced schemes. Overall, this is a very good development for retail investors who had very limited meaningful investment options until recently. But, the daily dose of market news, expert opinions and technical indicators based predictions that we see everywhere on TV, newspapers and social media could be overwhelming and stressful, leading us to make irrational decisions.</p><p>Wouldn’t it be refreshing if we have a completely data-driven systematic investment analysis and management platform that is backed by decades worth of investment theory supported by real empirical evidence? <a href="http://vespanalytics.com/"><strong>Vesp analytics</strong></a> is one such platform developed to do just that with the hope that regular retail investors can tune out all the unnecessary noise and just focus on fundamentals that drive long-term Investment returns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOUfVdR3iMPzOaMdJV1QEg.jpeg" /><figcaption><a href="http://vespanalytics.com/">http://VespAnalytics.com</a></figcaption></figure><p><a href="http://vespanalytics.com/">VespAnalytics</a> is intended to be a self-service platform providing transparent and custom Investment analysis &amp; Portfolio construction solutions grounded in sound principles of long-term investing and risk management.</p><p>In the rest of this article, let’s go over this by answering a series of common investors questions.</p><p><strong>There are thousands of Stocks and Mutual Funds to pick from and it is overwhelming to pick the right ones based on my desired investment goals and objectives. Is there a different way of narrowing down my choices?</strong></p><p>Returns, Volatility and Maximum Drawdown for different time periods can be used as primary Risk/Return characteristics of an investment to help filter down the entire universe of mutual funds and stocks to arrive at a smaller subset that can be further analyzed in detail.</p><p>Try it out by going to <a href="http://vespanalytics.com/mf_select">http://vespanalytics.com/mf_select</a> for mutual funds (please allow for a few seconds for the page to initially load)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QobilkRvInc7ERc-L2l-qA.gif" /><figcaption><a href="http://vespanalytics.com/mf_select">Mutual Funds Selection</a></figcaption></figure><p>Similarly for stocks, go to <a href="http://vespanalytics.com/stock_select">http://vespanalytics.com/stock_select</a>.</p><p>If you are not sure what these terms really mean, please feel free to click the “question mark” icon next to the field for a detailed explanation and how to interpret the value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KMYUjTSwpOQeL_9NfuSmHg.gif" /><figcaption>Terminology &amp; Knowledge Base</figcaption></figure><p><strong>The last few years have been great for stock market, but i am always worried about when the next major market meltdown will happen and how will it impact my investments.</strong></p><p>None of us want to be in an unfortunate situation where we ended up investing in a stock or mutual fund at exactly the wrong time (its peak) and from then on, horrified to see its value nosedive to reach a bottom (trough). Maximum Drawdown (MDD) is a measure of how much in % the investment has fallen in value from that peak to the trough. For those who have endured the last major global financial crisis in 2007–2008, that’s exactly the type of situation when most of the funds or stocks would experience their MDD.</p><p>As part of analyzing a selected Mutual Fund or stock, one can review its MDD either in its entire lifetime (or up to whenever we have data available from) or for periods like the last one month, six months, one year or five years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKXIQY0GFcgulCpm7b4TPQ.gif" /><figcaption>Analyze Maximum Drawdown</figcaption></figure><p><strong>The overall mutual fund or individual stock’s performance characteristics are somewhat clear and easy to understand, but i am having a hard time to figure out how it would look like for my short-term investment needs and how to set my expectations accordingly.</strong></p><p>Over the long run (over decades), there is a high likelihood that returns from a well diversified fund or a large-cap stock will be higher than many other alternate investment options that share a similar risk profile. But, one of the major challenges that many investors face is — we can’t afford to wait for that long, at least for some of our investment goals. Especially the ones tied to important life events like saving for a house down payment or paying for kids college tuition. As a result, we start to worry about what’s the expected returns or worst possible losses that one could incur over the next three months, next year and such shorter time periods. That way, we can make better decisions and plan accordingly.</p><p>To answer such questions, we can select the specific mutual fund or stock and analyze its aggregate returns for different time periods across its entire history and also their distributions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4-WwOg8VNj9_8T8oZHKAg.gif" /><figcaption>Returns over Time and their distribution with VaR</figcaption></figure><p>First chart on the left shows the distribution of the stock’s or mutual fund’s aggregated returns for different time periods (daily, weekly, monthly, quarterly and yearly). For e.g., with “weekly” period selected, each bar height shows the number of weeks when the stock experienced a return within the bar’s range (x-axis). The one’s to the far left, gives a good indication of the number of weeks the stock experienced some of its worst losses. VaR (Value at Risk) is another good way of expressing worst possible losses with a certain degree of confidence. if 90% VaR is selected, it implies that there is a 90% chance that the stock or mutual fund won’t incur losses worser than the left most “blue” line. But, on the other hand, there is a 10% chance that the losses could be equal or greater than the red lines. Feel free to try-out this for different stocks and mutual funds, the charts can be zoomed in, zoomed out for more detailed analysis.</p><p>Second chart on the right, shows the same returns aggregations, but over time from left to right. If one wants to see how the broader market performed during the same time periods, enable “sensex” option to see Sensex index’s returns overlaid on the same chart.</p><p><strong>I am always intrigued by the daily market, macro-economic and global news and the most immediate question that comes to mind is — how does each of these decisions/news events impact my individual investments?</strong></p><p>Different stocks and mutual funds move differently based on the market news, global macro-economic factors like crude oil prices, GDP numbers, unemployment, currency rates fluctuations etc… For e.g.: stocks in the energy sector or their sector specific Mutual Funds tend to closely move with crude oil prices and key OPEC decisions. Similarly, stocks and mutual funds within consumer industry tend to move more closely with broad economic indicators like GDP, unemployment rates etc… that reflect financial well being of consumers.</p><p>To start with, we can analyze how closely each stock or mutual fund is related to three different indicators — crude oil prices, Sensex market index and US Dollar to Indian Rupee exchange rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zysFJH73qlKihlhiFO5lLw.gif" /><figcaption>Macro Indicators Correlation</figcaption></figure><p>As an example, for the selected mutual fund or stock, we can scroll down to the “Macro-economic factors correlations” section to view the color coded heat-map for these three factors. The closer it is to blue color, it’s more closely related to the macro-economic factor. On the other hand, if its closer to red, it indicates that they are not that closely related. Click on the color bars to see the joint movement of the fund/stock with that macro-economic indicator over time.</p><p>Wrap up</p><p>Feel free to select, explore and analyze mutual funds or stocks that is of interest to you. We will all be better off if we can tune out noise (marketing speak, opinions, predictions without much basis) and instead make data- driven informed decisions. Vesp Analytics aims to provide just such a platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c89bba58b1c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ETF Portfolio construction using CVaR]]></title>
            <link>https://medium.com/@vespanalytics/etf-portfolio-construction-using-cvar-e22ff4b074aa?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/e22ff4b074aa</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[etf]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[portfolio]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Sat, 30 Dec 2017 14:29:32 GMT</pubDate>
            <atom:updated>2017-12-31T14:24:31.079Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a continuation of an earlier post where we briefly touched on using alternative risk measures for ETF portfolio construction.</p><p><a href="https://medium.com/@vespanalytics/etf-based-portfolio-construction-and-alternative-risk-measures-f64b4ac1c493">ETF based Portfolio construction and Alternative Risk Measures</a></p><p>Let’s explore further the differences between using Mean-Variance and Mean-CVaR optimization approaches to portfolio construction, specifically for broad index based ETF’s by looking at specific examples. For starters, please checkout this <a href="https://www.investopedia.com/terms/c/conditional_value_at_risk.asp">investopedia page</a> that explains what CVaR is with a clear example.</p><p>I found this <a href="http://corporate.morningstar.com/ib/documents/methodologydocuments/ibbassociates/cvaroptimization.pdf">report</a> to be a particularly good read in explaining the differences and how it results in picking different individual asset classes due to some unique statistical properties associated with financial data — like excess skewness and kurtosis.</p><p>To help illustrate and further experiment, i developed an application and made it available for general usage — <a href="http://vespanalytics.com/cvarAnalyze">http://vespanalytics.com/cvarAnalyze</a></p><p>Now, let’s take an example and walk-through its output.</p><h3>Input</h3><ol><li>Among the available ETF’s (listed at the top of the page), let’s pick XLF (Financial Select Sector SPDR), XLE (Energy Select Sector SPDR) and XLK (Technology Select Sector SPDR)</li><li>There are multiple options for the possible return periods — daily returns, weekly, monthly and yearly. To keep things simple, let’s pick Yearly returns, but feel free to try out other intervals and play around</li><li>Start and End Dates determine the time period within which we want to study the historical data. Let’s pick the widest possible period (1/1/2001 to 11/01/2017). Please note that the earliest time we can go to retrieve data is 1/1/2001</li><li>For CVaR analysis, a confidence level must be selected, which determines the probability of extreme losses that is acceptable to the investor</li><li>Finally, to get a more realistic idea of what this all means, please enter a notional starting investment amount</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0v-z5HZvrpPXyqQMjeHCA.png" /><figcaption>Input Screen</figcaption></figure><p>Once you hit submit, it should take a few seconds to perform the calculations and show output.</p><h3>CVaR/Expected shortfall optimization curve for different average Returns</h3><p>The below cluster graph shows the distribution of CVaR values for different target average yearly returns of 1000 different portfolios that were put together by randomly assigning weights to the three ETF components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*oSFZ52TNWiIAB3R0bTy3Lw.png" /><figcaption>CVaR Vs Mean return optimization curve</figcaption></figure><p>In order to pick the portfolio with best risk-return tradeoff, one must always pick the bottom most portfolios with least CVaR values for the corresponding target average return.</p><h3>How to pick portfolios based on a target CVaR (risk) value?</h3><p>What if an investor wants to base their portfolio construction decision on a target maximum potential loss (CVaR)? Can we come up with an optimal portfolio that can get the best average yearly return for that target risk tolerance level?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*UX0imn_bToFGJGZiGrGd6w.png" /><figcaption>Optimal portfolios for desired target maximum CVaR</figcaption></figure><p>The above chart and table can help us in coming up with an answer to this question. The drop down has 30 CVaR values (lowest to highest). The way the above table (and their corresponding portfolio weights chart) is compiled need some explanation. All the randomly constructed portfolios are arranged in ascending order of their cVAR values. Then, they are split into 30 buckets here. So, across buckets cVAR values are always increasing. Within each bucket, we pick the portfolio that has the best average return. The metrics for such 30 “optimal” portfolios and their weights are in the table and chart. Pie chart will show the corresponding portfolio mix for the best average return optimized portfolio in that target CVaR level bucket. If one looks closely at these results, they can spot some very interesting observations. Especially standard deviation (squared root of variance) and cVar values aren’t always moving in the same direction. From a investor’s perspective, this leads to an intriguing question — which risk measure more accurately reflects their perception of financial risk? Based on the answer to this question, they can potentially come up with very different portfolio allocations and their eventual returns.</p><h3>How to pick portfolios based on target average return values?</h3><p>Similarly, below chart and table show portfolio allocations and risk/return values for 30 optimal portfolios. These are picked from 30 buckets of evenly spaced increasing average return values, such that they have the least CVaR value from within that bucket. That way, we make sure we are picking the least risky portfolio for a desired average return level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*AgASqdMO0s7q5SHGU6z5Uw.png" /><figcaption>Optimal portfolios for desired target minimum average return</figcaption></figure><h3>Conclusion</h3><p>Through this analysis, its amply clear that selecting the right risk measure that closely reflects the investor’s personal perception of financial risk in portfolio construction process is an important factor (if not the most important). Variance or Standard Deviation should be used if one is more worried about general volatility over time. CVaR could be used if the investor doesn’t mind riding through some volatile periods, but is more concerned about potential losses in the worst case scenarios.</p><p>One other important observation is that, as the investor’s target average return is increasing, their corresponding standard deviation (or variance) measure is also increasing (for the most part). This makes sense since it adheres to the general investment principle that if the investor is seeking higher returns, they must also be ready to take on more risk. But, CVaR doesn’t appear to follow this trend. So, if one is interested only in protecting against worst case scenario losses, they can construct a portfolio with higher returns without a corresponding increase in CVaR. Interesting food for thought!</p><p>Please feel free to play around with the application with different inputs and see how their corresponding optimal portfolios look like.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e22ff4b074aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ETF based Portfolio construction and Alternative Risk Measures]]></title>
            <link>https://medium.com/@vespanalytics/etf-based-portfolio-construction-and-alternative-risk-measures-f64b4ac1c493?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/f64b4ac1c493</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[etf]]></category>
            <category><![CDATA[portfolio]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Tue, 10 Oct 2017 08:03:45 GMT</pubDate>
            <atom:updated>2017-12-28T20:39:20.191Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>Efficient Portfolio construction based on Harry Markowitz’s Modern portfolio Theory(MPT) has been around for more than half a century and it still is very much in use both by traditional wealth managers and the new crop of robo-advisors. It is based on mean-variance optimization of historical (or sometimes expected) returns for a bunch of individual stocks or asset classes. Instead of focusing too much on picking an individual stock or asset class, if we study the relative performance of multiple stocks or asset classes over time and construct a portfolio based on an individual’s risk appetite, it is possible to get better risk adjusted returns over such a diversified portfolio. The overall notion is, investors must strive to invest in a portfolio that has the least risk for a target expected return (or the greatest expected return for a target desired risk appetite) by picking a diversified portfolio along the positive curve of the efficient frontier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vCG1s_P2BZHVCQP8q7a03Q.png" /><figcaption>Image Credit — ApiFunds</figcaption></figure><h3>Alternative Risk Measures</h3><p>While variance (or its square root — Standard Deviation) as a standard risk measure has been widely used, there are other alternative risk measures like VaR and Expected Shortfall (ES) that have gained prominence, especially to communicate firm-wide risk exposure at financial firms. These measures can also be used to express risk levels for individual portfolios. Expected Shortfall is more helpful in some contexts to better understand potential risk exposure and its also mathematically referred to as a good coherent risk measure (follows the four axioms of sub additivity, monotonicity, positive homogeneity and translation invariance. For more in-depth reading, please refer to the references section below) that can be used to construct efficient market portfolios using convex optimization.</p><p>Expected Shortfall also sometimes referred to as Conditional Value at Risk (cVaR) or Average Tail Risk at a q% confidence level over a time period p is defined as the average expected loss in the 1-q% cases over a time period of p. For e.g. — For a portfolio of $1 Million at 99% confidence level and 1 month time period, if the ES is $100K, it means that the average loss over any 1 month time period is about $100K in those remaining 1% chance cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*oNeEvU1NoXy4Xe5BI5Zw3g.png" /><figcaption>Image Credit — MSCI</figcaption></figure><p>ES is more natural to understand in some ways, especially for people who strongly believe that variance on the positive side of returns is not bad at all!. It’s only the worst case scenarios that matter (major market downturns) and not the day-to-day market volatility.</p><h3>Analysis</h3><p>let’s review how an ETF based portfolio constructed using MPT looks like under standard mean-variance optimization. Let’s also analyze how alternative risk measures like ES look like for such portfolios and touch upon the question of — can we do a better job at constructing individual portfolios by using ES as the standard risk measure instead of variance?</p><p>A simple portfolio construction application is developed that uses convex optimization on mean-variance measures for a set of ETFs @<a href="http://vespanalytics.com/PortfolioOptimizer">http://vespanalytics.com/PortfolioOptimizer</a>.</p><p>How to use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXfn6fb0VYq6KnQuxxKI3w.png" /><figcaption>Portfolio Optimizer</figcaption></figure><ol><li>ETF’s — From the list of ETF symbols, enter at least 2 or more separated by commas</li><li>Interval — Select the interval period over which risk, return measures are calculated. For e.g.: ES is expressed as the average loss sustained over a time period</li><li>End Date — Pick a date up to which we want to get market returns data for the selected ETFs. Start date is selected as either 1/1/2000 or the earliest common start date for the selected ETFs, whichever is later</li><li>Confidence Level — Expressed in percentage. Commonly used values are either 95 or 99</li><li>Invested Dollar Amount</li></ol><p>Note: Average Return values are decimal representation of percentages. e.g: 0.095 should be interpreted as 9.5%</p><p>Let’s go over an example portfolio construction case:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ym-ARY_FcgqMSwo5F69E8A.png" /><figcaption>Example Portfolio</figcaption></figure><p>Average monthly returns for this portfolio range from roughly 0.4% to 0.6% and the mean-variance optimized portfolio mix for a target average return within this range can be obtained by selecting a value from the drop-down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*P-jzQurk03g2Zg4pMrralw.png" /><figcaption>Portfolio Mix</figcaption></figure><p>To compare how the risk measures — Standard Deviation(SD) and ES fare against each other for these mean-variance optimized portfolios, they are plotted against their corresponding target mean returns. Interestingly, in this case, while we see that SD increases with increase in target average return (which is to be expected since these portfolios are optimized for minimum variance), ES follows a somewhat opposite trend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*gzhS9PC0kJnArqRQeFa01g.png" /></figure><p>To be fair, this divergence in risk measures is not a common occurrence. For many portfolio combinations, both measures more or less follow similar trends. But nonetheless, for cases like these, we can demonstrate that it is worthwhile to explore alternative risk measures such as ES for portfolio construction.</p><h3>References</h3><p>Expected Shortfall — A natural coherent alternative at Value at Risk. <a href="https://arxiv.org/pdf/cond-mat/0105191.pdf">https://arxiv.org/pdf/cond-mat/0105191.pdf</a></p><p>Modern Portfolio Theory — <a href="http://www.investopedia.com/terms/m/modernportfoliotheory.asp">http://www.investopedia.com/terms/m/modernportfoliotheory.asp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f64b4ac1c493" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ETF Performance and its sensitivity to Macro Economic data]]></title>
            <link>https://medium.com/@vespanalytics/etf-performance-and-its-sensitivity-to-macro-economic-data-962382b83eda?source=rss-39810ba84904------2</link>
            <guid isPermaLink="false">https://medium.com/p/962382b83eda</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[etf]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[macroeconomics]]></category>
            <dc:creator><![CDATA[Pranesh Muppala]]></dc:creator>
            <pubDate>Mon, 09 Oct 2017 07:06:08 GMT</pubDate>
            <atom:updated>2017-10-09T07:06:08.129Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Is there a relationship between broad sector based ETF return characteristics and the underlying general macro-economic or sector specific indicators? How closely are they related and how does it vary across different economic and business cycles? Which economic or sector indicators are more closely related to an ETF’s performance than others? Can we compare sensitiveness of an ETF’s performance to different macro indicators? Also, do the movements in macro or sector indicator time series perfectly match that of the ETF’s? If not, is there a lag between the two Series and is it fixed through the different parts of series?</em></p><p>These are all curious and relevant questions in order to understand the relationship between broad sector-wide ETF performance characteristics and the underlying economic or business environment signals. We will try to explore a practical approach to answering some of these questions in this article.</p><p>To start with, let’s take XLY (Consumer Discretionary SPDR ETF) and GDP from FRED. The two series are plotted below. As we can see, there are some basic differences that make it hard to just simply put them side by side and see how they track against each other (apart from the obvious dip during 2007–2008 great recession). Some of these issues are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iQV-uv8O9srFa7_I6gob7w.png" /><figcaption>GDP Data from FRED</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpQTU8NSlW_6ABsK3TrE_A.png" /><figcaption>XLY Daily closing value</figcaption></figure><ol><li>The two series are at different frequencies. XLY is a daily series whereas GDP data is released once every quarter</li><li>Their absolute values are not in the same comparable range</li><li>Rate of changes in these values are not easy to compare as-is</li><li>There are also some practical difficulties like individual data points’ dates may not align perfectly (some macro series are monthly, weekly, quarterly etc…)and also data availability period of one series will just be a small subset of the other</li><li>If our objective is to compare sensitivity of an ETF performance with one macro indicator over another, it becomes even harder to objectively come up with a numeric or rank order measure to express such measures</li></ol><h3>Approach</h3><p>To solve this problem, we turn to the idea of Dynamic Time Warping (DTW) — a technique commonly used to analyze signals in speech recognition tasks. At a basic level, its an algorithm used to measure similarity between two temporal sequences that may vary in speed. To learn more about DTW, there are a number of resourceful papers and lecture notes available that go into varying levels of detail. Computationally, a pure DTW algorithm could be very intensive and might take a significant amount of time for each run to compare two series. But, over the years, many optimization approaches that can drastically cut down processing time without sacrificing much in accuracy have been proposed and implemented with great success. One such implementation is “Fast DTW” (referenced below) and it uses Dynamic Programming based approach to drastically cut-down the overall computation time.</p><p>Now, to compare an ETF’s performance with one or more macro or sector wide indicators, the raw data has to be pre-processed before using DTW to compute a “distance” measure between the series. Some of the pre-processing steps involve, resampling the series in order to align their frequencies, calculate rate of changes in values (because its meaningless to compare absolute values of two totally different time series data) and also z-normalize these final values.</p><h3>Solution</h3><p>We have tried to come up with an easy to use application that does these pre-processing steps and DTW computations for a set of ETFs and some commonly used macro indicators @ <a href="http://vespanalytics.com/RelatedMacroData">http://vespanalytics.com/RelatedMacroData</a> . Pick an ETF from the drop-down and click the button below it. It will return a list of macro indicators that are ordered in their degree of sensitivity to the ETF’s return characteristics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzZRv6dGD-pgXJS7I3UTjQ.png" /><figcaption>ETF-Macro Sensitivity Measures Calculator</figcaption></figure><h3>Results and Analysis</h3><p>As an example, let’s try this for two sector specific ETF’s, one for Technology and another for Financials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*wMnIyi_7CpRj8hRUXAr5uQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*5Qp_5sCIqlwZZtZD_rzTcA.png" /></figure><p>As we can see, it makes it easier to not only rank the different macro or sector indicators based on their sensitivity to an ETF’s performance, but it is also possible to compare their “degree of influence” across different ETFs.</p><p>This application is developed as an exploratory step to be able to easily analyze an ETF return series and possibly filter basic economic and sector level indicators that are closely related to its performance.</p><h3>References</h3><p>Fast DTW <a href="https://pdfs.semanticscholar.org/05a2/0cde15e172fc82f32774dd0cf4fe5827cad2.pdf">https://pdfs.semanticscholar.org/05a2/0cde15e172fc82f32774dd0cf4fe5827cad2.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=962382b83eda" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>