<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MoneyGeek - Latest entries</title><link>http://www.moneygeek.ca/weblog/</link><description>The latest entries for the site MoneyGeek</description><atom:link rel="self" href="http://www.moneygeek.ca/weblog/feeds/"></atom:link><language>en-us</language><copyright>Zinnia</copyright><lastBuildDate>Mon, 25 Nov 2019 15:21:37 -0600</lastBuildDate><item><title>Announcement: Moving to enjine.com
</title><link>http://www.moneygeek.ca/weblog/2019/11/25/announcement-moving-enjinecom/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/moved-sign.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/bearsky23"&gt;bearsky23&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I started this blog in the year of 2013. I was a bright eyed newbie entrepreneur at the time, with the ambition to create a robo-advisor&amp;nbsp;before the term &amp;quot;robo-advisor&amp;quot; was even a thing. But instead of raising a whole bunch of money to create a robo advisor, I wanted to test out the concept first. So, I created MoneyGeek, a platform to help DIY investors.&lt;/p&gt;

&lt;p&gt;It was only after launching MoneyGeek that I started to understand how hard running a business is. I struggled in particular with how to&amp;nbsp;get MoneyGeek&amp;#39;s name out. I realized that it didn&amp;#39;t matter if I offered the best product or service in the world. If people didn&amp;#39;t know about it, I wouldn&amp;#39;t be able to build a business.&lt;/p&gt;

&lt;p&gt;It was at this point that I decided to create the blog section of MoneyGeek. I resolved to try to give free education in order to attract people to my site.&amp;nbsp;Writing the first few articles was painful and time consuming -&amp;nbsp;I had a lot to grow as a writer, but I steadily improved and so did my web traffic. At its peak, MoneyGeek drew 300 unique visitors a day, placing it as one of the more highly trafficked finance blogs in Canada.&lt;/p&gt;

&lt;p&gt;But alas, it wasn&amp;#39;t enough. I concluded that MoneyGeek&amp;#39;s business wouldn&amp;#39;t scale, so I stopped pursuing it as a business a few years ago. But I didn&amp;#39;t want to abandon the loyal readership I had built, and I enjoyed writing&amp;nbsp;anyway, so I kept at the writing.&lt;/p&gt;

&lt;p&gt;Fast forward some months, I started a new business creating custom software for quantitative investment managers, which I in my&amp;nbsp;moment of vanity named &lt;a href="https://www.enjine.com/"&gt;ENJINE&lt;/a&gt;. This business is doing much better, and we&amp;#39;re now up to 6 full timers.&lt;/p&gt;

&lt;p&gt;Unfortunately, running ENJINE, as with running most other types of business, is all consuming. I&amp;#39;ve therefore found myself wishing I didn&amp;#39;t have to write articles on MoneyGeek, not for any lack of enjoyment, but purely for lack of time. I&amp;#39;ve also come to realize that ENJINE, just like MoneyGeek, would not grow if I don&amp;#39;t tell other people about it.&lt;/p&gt;

&lt;p&gt;So after much consideration, I&amp;#39;ve decided to move this blog to &lt;a href="https://www.enjine.com/blog/"&gt;https://www.enjine.com/blog/&lt;/a&gt;. Starting today, I will stop posting new articles on this site. If you want to checkout my new articles, please go straight to enjine.com instead. This way, I get to keep my commitment to continue blogging, and I get to spread the word about ENJINE.&lt;/p&gt;

&lt;p&gt;I&amp;#39;d like to thank my regular readers for your continued support. I&amp;#39;m&amp;nbsp;amazed by the quality of readership that this blog continues to draw. This blog is read by statisticians, programmers, engineers and other highly sophisticated members of our society. I hope that I can continue to give value to you through the new blog.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 25 Nov 2019 13:20:48 -0600</pubDate><guid>http://www.moneygeek.ca/weblog/2019/11/25/announcement-moving-enjinecom/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/moved-sign.jpg" length="100000" type="image/jpeg"></enclosure><category>Announcements</category></item><item><title>My University Admissions Story And The Pitfalls Of Using Simple Algorithms
</title><link>http://www.moneygeek.ca/weblog/2019/11/11/my-university-admissions-story-and-pitfalls-using-simple-algorithms/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/university-toronto.jpg" style="height:636px; width:1024px" /&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;We recently shot a short video describing our company, and it begins with the story of how I originally came to Canada from Ireland. You can watch the video below:&lt;/p&gt;

&lt;div style="width: 100%; height: 100%;"&gt;
           &lt;video controls width="100%" height="100%" style="width: 100% ! important; height: 100% !important;"&gt;
               &lt;source src="https://storage.googleapis.com/enjine/ENJINE-About-Us.mp4" type="video/mp4"&gt;
           &lt;/video&gt;
        &lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In the video, I explained that I had applied to some Canadian universities, and that the first letter I got was a rejection from McMaster. However, I didn&amp;rsquo;t get to explain why they rejected me in the video.&lt;/p&gt;

&lt;p&gt;I had applied to three universities in Canada: the University of Waterloo, the University of Toronto, and McMaster. Of the three, I viewed McMaster as my fallback choice in case I couldn&amp;rsquo;t get into either of the first two (no offense, McMaster grads!). So it was a worrying moment for me when the first letter from Canada was a rejection letter from McMaster.&lt;/p&gt;

&lt;p&gt;As it turned out, applying from Ireland caused a couple of complications. The first is that Irish highschools are called Colleges, so they initially thought I was applying to grad school. So I had to clear that up. But even after I had done so, they still rejected me because they said my marks were not high enough.&lt;/p&gt;

&lt;p&gt;My grades in Ireland averaged in the low 80s. By Irish standards, this was very high. To give you an idea, out of the more than 100 students in my year, only around 5 people would get an A (marks of 85 or higher) in any given subject. Straight As were virtually unheard of. Some classes such as English almost never handed out As, and I was a perennial C student in English.&lt;/p&gt;

&lt;p&gt;By contrast, Canadian highschools appear to hand out As like candy. After I came to the University of Waterloo, I was surprised to learn that almost everybody I met had straight As. Now, granted this was Waterloo, which is picky about who it admits. But still, I got the sense that my marks would have been much higher if I&amp;rsquo;d completed my highschool in Canada. Perhaps then McMaster would have accepted me.&lt;/p&gt;

&lt;p&gt;Now, why do I bring up this story? I&amp;rsquo;m not doing this to figuratively yell, &amp;ldquo;In your face!&amp;rdquo; to McMaster. Rather, it&amp;rsquo;s because this story illustrates an important challenge we face when we make decisions using data.&lt;/p&gt;

&lt;p&gt;McMaster&amp;rsquo;s admissions officers probably took a data driven approach when they rejected my application. They probably had a minimum threshold that my grades had to meet, and since I fell short, the decision to reject was probably automatic, or nearly so. One would argue that they should have considered the context surrounding my application (i.e. prevailing grades in Ireland), but they didn&amp;rsquo;t.&lt;/p&gt;

&lt;p&gt;Quantitative investment algorithms can fall into the same trap.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;An obvious example arises when we perform analysis on US companies and companies from other countries. US companies report their financials on an accounting standard known as Generally Accepted Accounting Principles (GAAP). Other countries tend to report using another standard known as the International Financial Reporting Standards (IFRS).&lt;/p&gt;

&lt;p&gt;Due to the differences in these standards, the same company can report significantly different numbers depending on the standards used. For example, one of the big differences between GAAP and IFRS is that GAAP allows the use of Last-In, First-Out (LIFO) inventory accounting rules whereas IFRS does not. As &lt;a href="https://www.investopedia.com/articles/02/060502.asp"&gt;this article&lt;/a&gt; shows, the use of LIFO can result in reporting significantly lower profits, thereby making the company look more expensive (companies&amp;rsquo; valuations are often judged relative to their profits). A quantitative algorithm that doesn&amp;rsquo;t take the difference in accounting standards into account could end up biasing against companies that use LIFO.&lt;/p&gt;

&lt;p&gt;Now, one could argue that this particular problem is not significant. Accounting authorities have slowly been bridging the gap between GAAP and IFRS. Many quantitative algorithms are also only designed to work in specific regions (US only, Europe only, etc.), precisely to avoid accounting and other region-specific biases. However, many quantitative algorithms in use today pervasively suffer from the lack of contextual data in other ways.&lt;/p&gt;

&lt;p&gt;Current quantitative investment algorithms tend to utilize linear regressions involving just a few factors. For example, the famous Fama French &lt;a href="https://www.investopedia.com/terms/f/famaandfrenchthreefactormodel.asp"&gt;three factor model&lt;/a&gt; is a linear regression involving 3 factors. &lt;a href="https://www.aqr.com/Insights/Perspectives/Our-Model-Goes-to-Six-and-Saves-Value-From-Redundancy-Along-the-Way"&gt;AQR&amp;rsquo;s factor model&lt;/a&gt; extends that model to make it 6 factors.&lt;/p&gt;

&lt;p&gt;Unfortunately, such linear regression models have very limited capacity to consider a myriad of contextual information. Take the Fama and French&amp;rsquo;s &amp;lsquo;value&amp;rsquo; factor, for example. The factor is calculated such that a company is considered &amp;ldquo;cheap&amp;rdquo; if the stock&amp;rsquo;s price is low compared to its book value. It doesn&amp;rsquo;t take into account any other contextual information. If the company is considered cheap according to this rigid metric, the model assigns a higher probability that the stock will outperform.&lt;/p&gt;

&lt;p&gt;But intuitively, it would make more sense to consider more contextual data before judging whether a stock is cheap. For one, the model doesn&amp;rsquo;t consider what components make up book value. It would probably matter if book value mostly consisted of &lt;a href="https://www.investopedia.com/terms/g/goodwill.asp"&gt;goodwill&lt;/a&gt; as opposed to real estate. One would also guess that book value matters less for software companies vs. an auto manufacturer. In other words, such quantitative models are making the same mistakes that McMaster&amp;rsquo;s admission officers made with me, by treating all valuation or grades the same.&lt;/p&gt;

&lt;p&gt;The prescription for such problems, of course, is to consider additional context. But then the challenge becomes how to incorporate additional information into the model. Take the admissions process, for example. Should McMaster bell curve grades from other countries? If so, by how much? The answer is not obvious.&lt;/p&gt;

&lt;p&gt;Fortunately, in the realm of quantitative finance, there is an obvious answer, and that&amp;rsquo;s to use machine learning. Machine learning systems can digest many more pieces of information than linear regression models generally can. For example, you can feed them the breakdown of assets belonging to a company, and you can also feed in sector information. By using the additional information, machine learning systems can remove many of the biases that persist in simpler systems.&lt;/p&gt;

&lt;p&gt;Our company has been working hard in recent months at creating a machine learning investment model. Machine learning&amp;rsquo;s ability to remove bias is one reason why I&amp;rsquo;m very excited about this project.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 11 Nov 2019 14:50:41 -0600</pubDate><guid>http://www.moneygeek.ca/weblog/2019/11/11/my-university-admissions-story-and-pitfalls-using-simple-algorithms/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/university-toronto.jpg" length="100000" type="image/jpeg"></enclosure><category>Machine Learning</category></item><item><title>Why Machine Learning Hasn't Caught On In Finance - A Theory
</title><link>http://www.moneygeek.ca/weblog/2019/10/28/why-machine-learnings-hasnt-caught-finance-theory/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/computer-bug.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/eamesBot"&gt;eamesBot&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;You&amp;rsquo;d think that machine learning would thrive in finance. After all, the whole industry operates on data. Banks look at your credit history (data!) before they approve your mortgages. Credit card companies look at payment patterns (data!) to sniff out fraud. Investors use financial statements (data!) to select stocks to invest in.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Anytime there&amp;rsquo;s an abundance of data, you can often use machine learning to make better decisions, more quickly and with lower costs. You may therefore be surprised to learn not only that machine learning adoption has been slow in finance, but also that many finance professionals are skeptical of its potential.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Over the past number of years, I&amp;rsquo;ve heard the same basic refrain over and over again from the skeptics: &amp;ldquo;I knew so-and-so who started a hedge fund based on machine learning, and it collapsed,&amp;rdquo; or &amp;ldquo;We hired a machine learning PhD, but his algorithm didn&amp;rsquo;t perform any better than our existing methodology.&amp;rdquo; In other words, the slowness of adoption is not for lack of trying. Rather, machine learning just hasn&amp;rsquo;t produced good results for those who tried it.&lt;/p&gt;

&lt;p&gt;The data lends credence to this disappointment. From Sep 2014 to Sep 2019, the &lt;a href="https://www.eurekahedge.com/Indices/IndexView/Eurekahedge/683/Eurekahedge_AI_Hedge_fund_Index"&gt;Eurekahedge AI Hedge Fund Index&lt;/a&gt;, which tracks machine learning powered funds, returned 45.5%. Investing in an S&amp;amp;P 500 index fund, on the other hand, would have generated over 66% in returns.&lt;/p&gt;

&lt;p&gt;But why has machine learning failed to produce positive results? Whenever I&amp;rsquo;ve seen that question asked, I&amp;rsquo;ve heard two types of answers.&lt;/p&gt;

&lt;p&gt;The first type of answer involves blaming the machine learning practitioners for their lack of financial knowledge. A physicist, for example, may not be aware of the difference between a financial statement&amp;rsquo;s fiscal and filing dates. Such deficiencies in knowledge probably have led to flawed machine learning models.&lt;/p&gt;

&lt;p&gt;The second type of answer for why machine learning has failed to generate results comes from&amp;nbsp; mathematicians such as Lopez de Prado, who have criticized the statistical methodology employed by investment firms. For example, de Prado points out that many firms have &lt;a href="https://www.bloomberg.com/news/articles/2019-10-09/the-master-of-robots-left-aqr-now-he-s-coming-for-wall-street"&gt;abused backtesting&lt;/a&gt; by running them over and over again until firms got results that they liked. Many firms have undoubtedly fallen into the traps that de Prado describes, which accounts for their failure.&lt;/p&gt;

&lt;p&gt;In summary, those with finance backgrounds blame the architects&amp;rsquo; lack of financial knowledge for machine learning algorithms&amp;rsquo; failures, while mathematicians blame the finance folks for their lack of mathematical knowledge. But is this the whole story?&lt;/p&gt;

&lt;p&gt;For the past number of months, my firm has been working on a sophisticated machine learning model that we hope to turn into a fund. In the process of creating the model, it occurred to me that there&amp;rsquo;s one particular challenge that nobody ever talks about, a challenge that could have resulted in many machine learning models not working as expected. The lack of discussion surrounding this challenge is a shame, because I think it is the most difficult component of machine learning to manage.&lt;/p&gt;

&lt;p&gt;So what is this challenge I&amp;rsquo;m talking about? I&amp;rsquo;m referring to the mundane topic of producing code without bugs.&lt;/p&gt;

&lt;p&gt;While we humans are good at a lot of things, avoiding mistakes is not one of them. Some people estimate that there are typically between &lt;a href="https://airbrake.io/blog/devops/production-defects-are-not-inevitable"&gt;1 and 25 bugs per 1,000 lines of code&lt;/a&gt;. That&amp;rsquo;s a wide range. There are several factors that determine whether the defect rate is high or low, and I believe that the business nature of software is one of them.&lt;/p&gt;

&lt;p&gt;Unfortunately, coding financial software lends itself to high defect rates. Think about it. Let&amp;rsquo;s say a programmer is developing a content management system for a website, which lets users change the background colour of their websites. It would be very easy to see if such a system was working or not as either the background colour would change as specified or it wouldn&amp;rsquo;t. In such a case, the programmer would fix any bugs in this area very quickly.&lt;/p&gt;

&lt;p&gt;But things are not so obvious with software that deals primarily with numbers. For example, let&amp;rsquo;s say a programmer created a function that calculates the standard deviation of a list of numbers. He then observed that when the array [1, -2, 5] was fed in, the function returned the value &amp;lsquo;0.8&amp;rsquo;. Now, if you&amp;rsquo;re a good statistician, that answer might make you pause and re-evaluate the function. But a typical programmer without that background may not see that there&amp;rsquo;s a problem.&lt;/p&gt;

&lt;p&gt;Some people think the answer to this problem is to get finance and statistics people to double check the programmers&amp;rsquo; work. But in my experience, this method isn&amp;rsquo;t very effective. I have yet to meet anyone who enjoys manually double checking programmers&amp;rsquo; work, and lacking interest, they tend to do the job poorly. Also, I&amp;rsquo;ve seen finance and statistics people point out errors to programmers, only for programmers to fix the problem for that specific scenario and leave the root problem intact.&lt;/p&gt;

&lt;p&gt;This is a much more severe problem than many people realize. As an anecdote, we once took over a software project where the client had previously contracted offshore developers to create financial algorithms. We found that none, and I mean none, of the major calculations were being done correctly, despite the fact that the client double checked the developers&amp;rsquo; work. I don&amp;rsquo;t think it&amp;rsquo;s any different at major banks or financial institutions. I should know, since I used to work for a bank.&lt;/p&gt;

&lt;p&gt;Yet the consequences of even a single bug can be severe for a machine learning algorithm. As an example, imagine mistakenly including some out-of-sample data with the training data. The algorithm would probably appear to perform really well, but fall flat when used in the real world. Just one bug would be responsible for the illusion of a strong performance.&lt;/p&gt;

&lt;p&gt;Unfortunately, it&amp;rsquo;s difficult to avoid such mistakes even if you&amp;rsquo;re extremely meticulous. Machine learning projects tend to be a lot bigger than your traditional investment algorithm projects, giving them much more room for error. Our project, for example, consists of over 10,000 lines of code, not counting all the third party libraries we use. Even if we assume a very low defect rate of 1 bug out of 1,000 lines, that still means we probably have over 10 bugs in our software. For similar sizes projects written by programmers without finance/math knowledge, there may even be over 200 bugs.&lt;/p&gt;

&lt;p&gt;Of course, there are ways to mitigate this problem. We blanket our code base with tests. We also ensure that multiple people review code before it gets merged into production. We only hire people who are detail-oriented. (We&amp;rsquo;ve had to let go of people in the past for making too many mistakes.) But I&amp;rsquo;ve found that none of these methods is a panacea. We have to fight the never-ending battle of discovering and fixing bugs.&lt;/p&gt;

&lt;p&gt;Thankfully, I feel confident that we&amp;rsquo;ll develop an algorithm free of major bugs. We&amp;rsquo;re able to do this because at least some of our programmers have the finance, math and programming knowledge to be able to recognize bugs and write good tests. But whenever we find an unintuitive bug that could have derailed our results, I wonder, how many other firms currently have similar defects in their machine learning algorithms?&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 28 Oct 2019 10:09:28 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/10/28/why-machine-learnings-hasnt-caught-finance-theory/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/computer-bug.jpg" length="100000" type="image/jpeg"></enclosure><category>Machine Learning</category></item><item><title>FRDM - The Better Way To Invest In Emerging Markets
</title><link>http://www.moneygeek.ca/weblog/2019/10/14/frdm-better-way-invest-emerging-markets/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/corruption.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/Rawpixel"&gt;Rawpixel.com&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Owning emerging market stocks could benefit your investment portfolio in two ways. First and more obvious, owning emerging market stocks would make your portfolio more diversified, thereby lowering risk. Second, emerging market economies tend to grow much more quickly than developed economies, so many people assume that emerging market stocks will outperform developed market stocks.&lt;/p&gt;

&lt;p&gt;Unfortunately, that second assumption has not held up in recent years. The following chart shows the comparative performances of the Vanguard FTSE Emerging Markets ETF (VWO), and the SPDR S&amp;amp;P 500 ETF (SPY), in the 10 year period ending Oct 12, 2019.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh5.googleusercontent.com/8YLUOIbrtIvFOhXp-CQEb61t2cr7-ZSytUPXeZ5MA0ubqYx8y8pk1EuIRV1hgCtU1OM5KKrGEtPX7hX3UuUMaka7b9Z4jRBiW2yzM7wAASbFwyK6dTrinmtAVIapvsFIQGJsu67S" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://finance.yahoo.com/"&gt;Yahoo Finance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;As you can see, US stocks, as represented by SPY, have done incredibly well over the past 10 years. Emerging market stocks, on the other hand, appear to have gone almost nowhere. What gives? A look under the hood of VWO gives us a clue.&lt;/p&gt;

&lt;p&gt;VWO tracks the FTSE Emerging Index. According to the index&amp;rsquo;s &lt;a href="http://www.ftse.com/Analytics/FactSheets/Home/DownloadSingleIssue/GAE?issueName=AWALLE"&gt;fact sheet&lt;/a&gt;, Chinese stocks constitute 35% of the index, far more than any other country&amp;rsquo;s allocation. So how have Chinese stocks done over these past 10 years? Not great.&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh5.googleusercontent.com/NT77j74O5Ij_YTiY5_j5rCe7teNsvbZT5TZKeXxbbQyHpekfAJOr7boORixx92OgGJ04BBA-ErKGDnJVyUAZ4oLK1QmltUs49_0ATnR-_JrqKFXQcA73s7J5zqWMScsu8h2wUYrH" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.marketwatch.com/investing/index/shcomp/charts?countrycode=cn"&gt;MarketWatch&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The graph above shows the Shanghai Composite Index, which tracks the performance of mainland Chinese stocks. As you can see, the index has gone nowhere these past ten years, mirroring the performance of VWO.&lt;/p&gt;

&lt;p&gt;But how can this be? The Chinese economy has grown rapidly during this time, so shouldn&amp;rsquo;t its stocks have gone up as well? Unfortunately, things are not that simple. Even if a country as a whole gets wealthier (which China undoubtedly has), there&amp;rsquo;s no guarantee that the wealth accrues to shareholders of its companies.&lt;/p&gt;

&lt;p&gt;One factor that determines whether shareholders benefit is the strength of investor protection. If investor protection is weak, then controlling shareholders could make decisions that benefit themselves at the expense of minority holders (e.g. pay themselves an unreasonably big salary).&lt;/p&gt;

&lt;p&gt;Another factor is the rule of law. Without it, shareholders can become victims of fraud and other crimes that siphon value from companies. Corruption also harms companies&amp;rsquo; prospects by going against meritocracy. In other words, it prevents the best individuals from rising to the top within companies, and it prevents the best companies from rising to the top within a given country.&lt;/p&gt;

&lt;p&gt;Even without corruption, centralized economic planning can also harm shareholder value, as companies in industries that go out of political favour can end up losing a lot of money. The Chinese electric car industry, for example, has fallen on hard times recently as China has &lt;a href="https://www.businessinsider.com/global-electric-car-sales-fall-the-first-time-in-history-2019-9?utm_source=markets&amp;amp;utm_medium=ingest?utm_source=markets&amp;amp;utm_medium=ingest"&gt;cut back its subsidies&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Unfortunately for Chinese shareholders, the three factors stated above play a negative role in the Chinese markets. &lt;a href="https://tcdata360.worldbank.org/indicators/h2e15b0d6?country=CHN&amp;amp;indicator=647&amp;amp;viz=line_chart&amp;amp;years=2007,2017"&gt;The Strength Of Investor Protection Index&lt;/a&gt; scores China at 4.5, well below the world median of about 5.5 (Canada is at about 7.5). China ranks highly on the &lt;a href="https://www.transparency.org/cpi2018"&gt;Corruption Perceptions Index&lt;/a&gt; which by itself is not unusual for an emerging market economy, but China also has the dubious honor of having many of its rich &lt;a href="https://www.youtube.com/watch?v=4cwXifDaCjE"&gt;end up&lt;/a&gt; dead or &lt;a href="https://www.theatlantic.com/international/archive/2013/01/why-do-chinese-billionaires-keep-ending-up-in-prison/272633/"&gt;sent to prison&lt;/a&gt;. Lastly, no one can deny that China, while it has some hallmarks of a market economy, is still dominated by the Chinese Communist Party.&lt;/p&gt;

&lt;p&gt;Now, it would be unfair to give the impression that China is alone in this situation. Other countries suffer from substantially the same types of problems too. One such example is Russia, which has also seen its stock market stagnate this past decade.&lt;/p&gt;

&lt;p&gt;At this point, we might be tempted to disregard emerging market stocks altogether, but that might be like throwing the baby out with the bathwater. Some emerging markets suffer less from the problems just discussed. It would be great if we could invest only in those countries. This is where the Alpha Architect Freedom 100 Emerging Markets ETF (FRDM) comes in.&lt;/p&gt;

&lt;p&gt;FRDM tracks the Life + Liberty Freedom 100 Emerging Markets Index, which scores each country by their human and economic freedom metrics and chooses to allocate higher percentages into countries with higher scores. If a country&amp;rsquo;s score is too low, the index doesn&amp;rsquo;t include the country&amp;rsquo;s stocks at all. This is very different from a traditional emerging market index, which weights each country simply by the size of their stock markets. This is why China tends to get the highest allocation in traditional emerging market indices.&lt;/p&gt;

&lt;p&gt;FRDM&amp;rsquo;s unique index methodology would have allowed it to perform better than traditional emerging market ETFs such as VWO. If you look into &lt;a href="https://www.lifeandlibertyindexes.com/freedom-100-emerging-markets-index"&gt;FRDM&amp;rsquo;s index&lt;/a&gt;, you&amp;rsquo;ll notice that Taiwanese and South Korean stocks have the biggest weights in FRDM. As the chart below shows, investing in either of those stock markets would have generated decent returns - perhaps not as great as investing in US stocks, but decent nonetheless.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh4.googleusercontent.com/qCtP9-c0EugL-h1l7d3yTdPD-Iai5JRhlEepzzwpLsnUJgs0xA7joLWD-bSJbRz-MMIySXol5I323b2_q-hPQF6MpWun4YhtDQZzjqq5t1kgWvNipd5Do5edD-h1NRPGtHiy59Px" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://finance.yahoo.com/chart/EWT"&gt;Yahoo Finance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;But apart from the monetary incentive to invest in FRDM, there&amp;rsquo;s something that just feels &amp;ldquo;right&amp;rdquo; about investing in those countries that gives protection for the less wealthy and upholds the rule of law. It is for this reason that, had I still continued to publish &lt;a href="https://www.moneygeek.ca/weblog/2019/08/05/discontinuing-moneygeeks-portfolios/"&gt;MoneyGeek&amp;rsquo;s portfolios&lt;/a&gt;, I would have included FRDM in them.&lt;/p&gt;

&lt;p&gt;So if you&amp;rsquo;re looking for ways to diversify your investment portfolio further, it would probably be a good idea to give FRDM a look.&lt;/p&gt;

&lt;p&gt;Disclosure: MoneyGeek doesn&amp;rsquo;t receive any compensation from Alpha Architect nor Life + Liberty Indexes for publishing this piece. MoneyGeek also doesn&amp;rsquo;t have any business relationship with Life + Liberty Indexes, past or current. It does have a past business relationship with Alpha Architect in which MoneyGeek created software for AA.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 14 Oct 2019 16:49:59 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/10/14/frdm-better-way-invest-emerging-markets/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/corruption.jpg" length="100000" type="image/jpeg"></enclosure><category>ETFs</category></item><item><title>The Bias/Variance Trade-off And The Limits of Machine Learning Models
</title><link>http://www.moneygeek.ca/weblog/2019/09/30/biasvariance-trade-and-limits-machine-learning-models/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/marriage-compromise.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/pathdoc"&gt;pathdoc&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;A Machine Learning model is a bit like a marriage - no matter how hard you try, it&amp;#39;s &lt;a href="https://www.youtube.com/watch?v=_piS8r-zw5U"&gt;never going to be perfect&lt;/a&gt;. The same way every marriage has its issues, so does every machine learning model. Real world data is like real world people: unpredictable. Real world events don&amp;rsquo;t conform precisely to a perfectly predictable pattern, so no matter how clever your algorithm, there will always be some &lt;a href="https://medium.com/wwblog/reducible-vs-irreducible-error-e469036969fa"&gt;irreducible error&lt;/a&gt;. The trick is to focus on the things you can change - the reducible error. If you&amp;rsquo;re in a marriage where there are some communication issues, that&amp;rsquo;s a reducible error. You can work on that and improve. But if you&amp;rsquo;re in a marriage where one of you is deathly allergic to nuts, and the other person is &lt;a href="https://parade.com/471685/sphillips/happy-100th-birthday-mr-peanut-do-you-know-the-famous-brand-icons-full-name/"&gt;Mr. Peanut&lt;/a&gt;, there isn&amp;rsquo;t much you can do. That&amp;rsquo;s an irreducible error.&lt;/p&gt;

&lt;p&gt;The trick to creating an accurate machine learning model is to identify the error that you can reduce and concentrate on that. Luckily, there are only two main sources of reducible error that we need to investigate: bias and variance.&lt;/p&gt;

&lt;h4&gt;Bias&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://towardsdatascience.com/bias-in-machine-learning-algorithms-f36ddc2514c0"&gt;Bias is a measure of your model&amp;rsquo;s ability to precisely fit the training data&lt;/a&gt;. The closer you fit your model to your training set, the lower the bias for that particular data set, and the better the accuracy of your predictions for that training data. Reducing your bias is usually achieved by adding complexity to your model, allowing it to better represent the data on which it&amp;#39;s being trained.&lt;/p&gt;

&lt;h4&gt;Variance&lt;/h4&gt;

&lt;p&gt;Variance refers to your model&amp;rsquo;s sensitivity to the specific data on which it was trained.The outputs of a model are strongly linked to the data on which it has been trained. Therefore, when the input data is different, a high variance model&amp;rsquo;s outputs will be quite different. Hence, the results will be unpredictable and unreliable. To reduce your variance, you often need to simplify your model. This frees the model somewhat from the specific data points, allowing more robustness in its signal generation.&lt;/p&gt;

&lt;h4&gt;The Trade-off&lt;/h4&gt;

&lt;p&gt;From the outside looking in, some people might think you could just lower the bias and the variance in your machine learning model and then live out the rest of your days in wealth and happiness. If these people had ever been married, they&amp;rsquo;d know that nothing is that simple. The relationship between bias and variance is far more complicated. There is a real give and take between them that must be understood in order to achieve the best results possible. It takes some complex math to fully describe the interplay of bias and variance, but the concept is surprisingly intuitive. In fact, the tradeoff is analogous to something most of us are quite familiar with: throwing a ball.&lt;/p&gt;

&lt;p&gt;Think of yourself as a baseball pitcher trying to throw a fastball past a hitter at the plate. You want your pitch to be as fast as possible: the faster the pitch, the harder it is to hit. But, you also want your pitch to be accurate. If you throw it outside the strike zone, it&amp;#39;s a ball. And, if you throw a pitch down the middle of the plate, the batter is likely to hit a homerun - your entire middle school team will laugh at you, and you won&amp;#39;t get to kiss anyone for quite some time (I know from experience). Clearly, the stakes are high, so you need your pitch to be as accurate as possible, as well as fast.&lt;/p&gt;

&lt;p&gt;However, as most people are aware, the harder you try to throw something, the harder it is to be accurate with it. The inner workings of your body are such that in order to improve your accuracy you need to decrease the speed. The inverse also applies: to increase the speed, you need to accept lower accuracy.&lt;/p&gt;

&lt;p&gt;This is similar to the bias-variance trade off. We want a model with low bias and low variance, but the reality is that the only way to lower one is to increase the other. Because of the logic inside machine learning algorithms, the two are intrinsically connected.&lt;/p&gt;

&lt;p&gt;In general, the way to reduce bias is to increase the complexity of your model. This fits your model more precisely to your training data. But, the closer you fit your model to the data, the more your model works to find patterns in the data that may be caused by something other than the signal. It could be anything from random noise, to measurement error, to a physical anomaly. Anything that isn&amp;rsquo;t part of the signal will weaken your results. So, while your model may fit the training data perfectly, it will give you different results with different data. This is an increase in variance. So, if you want to throw the ball harder (reduce your bias error), you end up being less accurate (increasing the variance error).&lt;/p&gt;

&lt;p&gt;But, if you go too far the other way and reduce the complexity to reduce the variance, you capture less of the signal and reduce accuracy in your predictions. This is in increase in bias error. You, as the pitcher/data scientist, need to find a compromise between speed and accuracy that minimizes the overall error and gives you the best result. The figure below shows this concept graphically.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh3.googleusercontent.com/XsytNL6HajcZDPxASt1LfUlSirf5YrJ5Vut1MCtiv3nnrdO7McOWkpHnxN9f51ECk-sR4oI_F35n6j2OpNxKlYquXMLW5rycr9TMcTVFbjSo52gLv4fWoP3uccSul8mUz0oDLA5f" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Fig 1: &lt;a href="https://i.stack.imgur.com/GEJIM.png"&gt;https://i.stack.imgur.com/GEJIM.png&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Application&lt;/h4&gt;

&lt;p&gt;Trying to model the stock market is an insanely difficult task. If it weren&amp;rsquo;t so difficult, someone would have perfected it by now, and the rest of us would have given up. In fact, controlling the bias-variance tradeoff is especially important in finance, where data is scarce. Combine that with the low signal-to-noise ratio that is present in stock prices and it&amp;rsquo;s easy to find yourself with an unacceptably high variance.&lt;/p&gt;

&lt;p&gt;So, when creating your machine learning models, you need to be as vigilant as possible about reducing error. You want to find the point at which the bias and variance errors are at their combined minimum, thus creating the happiest marriage possible. Unfortunately, you can&amp;#39;t just buy your model chocolates tell it you love it and make things better, you have to actually put in some work.&lt;/p&gt;

&lt;p&gt;The first and most obvious step is to ensure that the &lt;a href="https://hackernoon.com/choosing-the-right-machine-learning-algorithm-68126944ce1f"&gt;algorithm you are using is right for your data&lt;/a&gt;. There&amp;#39;s no paint-by-numbers guide for this, it takes time and experience to learn how to choose correctly. Then, once you have your algorithm, you want to make sure you have the &lt;a href="https://towardsdatascience.com/the-art-of-cleaning-your-data-b713dbd49726"&gt;cleanest, most complete data possible&lt;/a&gt;. As you can imagine, a model is only as good as the data it was trained on. Most algorithms, then, contain a set of parameters that control the level of fitting to the data. Through a series of calculations, as well as trial and error, you can tune these precisely to minimize the bias-variance combined error, and maximize your predictive power.&lt;/p&gt;

&lt;p&gt;Creating a good model requires understanding of the bias and variance tradeoff, much as understanding the compromises of living together creates a good marriage. And while it might not be as snappy as &amp;ldquo;Happy spouse, happy house&amp;rdquo;, &amp;ldquo;Accurate model, Accurate predictions&amp;rdquo; is just as good a motto to live by.&lt;/p&gt;
</description><author>peter.white@enjine.ca (Peter White)</author><pubDate>Mon, 30 Sep 2019 19:08:29 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/09/30/biasvariance-trade-and-limits-machine-learning-models/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/marriage-compromise.jpg" length="100000" type="image/jpeg"></enclosure><category>Machine Learning</category></item><item><title>Is Passive Investing A Bubble?
</title><link>http://www.moneygeek.ca/weblog/2019/09/16/passive-investing-bubble/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/active-vs-passive.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/etiammos"&gt;EtiAmmos&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Within each industry, there are certain topics that divide participants and make them battle each other with religious fervour. Among programmers, the topic might be Windows vs. *nix. Among physicists, I&amp;rsquo;ve heard of &lt;a href="https://www.scientificamerican.com/article/is-string-theory-unraveli/"&gt;dissent against string theory&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There are several topics that similarly divide financial professionals. One such topic revolves around the issue of whether passive investing is harmful or beneficial to financial markets. Passive investing, in contrast to active investing, involves an attempt not to pick individual stocks. Instead, it diversifies as much as possible, owning every stock in an index.&lt;/p&gt;

&lt;p&gt;Until today, it seemed as though the vast majority of knowledgeable investors believed that passive investing was good, or at least neutral. However, there&amp;rsquo;s been growing dissent to this widely accepted opinion, and debate erupted recently when a highly respected investor went so far as to call passive investing a &amp;ldquo;bubble&amp;rdquo;.&lt;/p&gt;

&lt;p&gt;The investor in question is a man named Dr. Michael Burry, who became famous as a result of being profiled in Michael Lewis&amp;rsquo; book, &lt;a href="https://www.amazon.ca/Big-Short-Inside-Doomsday-Machine/dp/0393338827/ref=sr_1_1?crid=KGHVHT4JQIGV&amp;amp;keywords=big+short&amp;amp;qid=1568337010&amp;amp;sprefix=big+short%2Caps%2C166&amp;amp;sr=8-1"&gt;&amp;ldquo;The Big Short&amp;rdquo;&lt;/a&gt;. Burry was one of the very few investors who predicted and profited from the subprime mortgage bust. It was therefore disconcerting when during a &lt;a href="https://www.bloomberg.com/news/articles/2019-09-04/michael-burry-explains-why-index-funds-are-like-subprime-cdos"&gt;recent interview&lt;/a&gt;, he compared passive investing to Collateralized Debt Obligations (CDOs), the instrument he bet against during the subprime bubble years.&lt;/p&gt;

&lt;p&gt;The reaction to Burry&amp;rsquo;s interview was swift. Cliff Asness, who runs a $200 billion investment giant, hit back by claiming the worries are &amp;ldquo;silly&amp;rdquo;. Ben Carlson, who runs a popular investment blog called &amp;ldquo;A Wealth of Common Sense&amp;rdquo;, quickly put out a &lt;a href="https://awealthofcommonsense.com/2019/09/debunking-the-silly-passive-is-a-bubble-myth/"&gt;blog post&lt;/a&gt; arguing against the notion that passive investing is a bubble.&lt;/p&gt;

&lt;blockquote class="twitter-tweet"&gt;&lt;p lang="en" dir="ltr"&gt;I’ve already addressed the “price discovery” worries (they are exaggerated to the point of silly but sound really smart):&lt;a href="https://t.co/fkIKwKXzq7"&gt;https://t.co/fkIKwKXzq7&lt;/a&gt;&lt;br&gt;&lt;br&gt;And why stop at CDOs? Why not CDO^2s? &lt;a href="https://t.co/wXK4hSjZvi"&gt;https://t.co/wXK4hSjZvi&lt;/a&gt;&lt;/p&gt;&amp;mdash; Clifford Asness (@CliffordAsness) &lt;a href="https://twitter.com/CliffordAsness/status/1169261733258678272?ref_src=twsrc%5Etfw"&gt;September 4, 2019&lt;/a&gt;&lt;/blockquote&gt; &lt;script async src="https://platform.twitter.com/widgets.js" charset="utf-8"&gt;&lt;/script&gt;
&lt;p&gt;But after reading the responses to Burry&amp;rsquo;s interview, it struck me that none that I&amp;rsquo;ve read so far has seemed to directly address his central concern. I think this is because although Burry heavily hinted at the concern, he was never explicit, perhaps because he assumed others would naturally arrive at the same conclusions he did. But seeing how that&amp;rsquo;s not the case, I thought I would help explain the concern.&lt;/p&gt;

&lt;p&gt;To understand Burry&amp;rsquo;s point, it may first help to understand Burry himself. Burry is an extremely detail oriented investor, who likes to dig in to the exact mechanics of how investment vehicles work. When he bet against subprime CDOs, he did so after spending countless hours poring over legal documents that govern the mechanics of these CDOs. He may have been the only person to dive into such granular detail. So when he makes a big statement about passive investing, you can be fairly certain he&amp;rsquo;s thinking about the mechanics of index funds.&lt;/p&gt;

&lt;p&gt;The chief concern Burry raised in his interview concerned liquidity. On that topic, this is what he had to say:&lt;/p&gt;

&lt;p&gt;&amp;ldquo;In the Russell 2000 Index, for instance, the vast majority of stocks are lower volume, lower value-traded stocks. Today I counted 1,049 stocks that traded less than $5 million in value during the day. That is over half, and almost half of those -- 456 stocks -- traded less than $1 million during the day. Yet through indexation and passive investing, hundreds of billions are linked to stocks like this.&amp;rdquo;&lt;/p&gt;

&lt;p&gt;Let&amp;rsquo;s unpack this statement. The Russell 2000 holds roughly the 1000th to 3000th largest US stocks. The bottom half of these stocks (the 2000th to 3000th stocks) have market caps that range from roughly $50 million to $150 million. The Russell 2000 is a market cap weighted index, and the allocation to each stock in this bottom half range from 0.01% to 0.03%. This sounds like a small fraction, but it&amp;rsquo;s really not.&lt;/p&gt;

&lt;p&gt;As Burry states, hundreds of billions of dollars are linked to the Russell 2000. I don&amp;rsquo;t know the exact number, so let&amp;rsquo;s assume that $200 billion are linked to the Russell 2000. That means the bottom half of Russell 2000 stocks have between $20 million and $60 million invested by index funds linked to the Russell 2000, which amounts to roughly 40% of these companies&amp;rsquo; market caps.&lt;/p&gt;

&lt;p&gt;But, as Burry says, these stocks don&amp;rsquo;t trade that much. Almost a quarter of them don&amp;rsquo;t even trade $1 million a day, which means that Russell 2000 index funds own at least 20 times the daily trading volume of their smallest constituents.&lt;/p&gt;

&lt;p&gt;This poses a big problem if there&amp;rsquo;s a rush to sell Russell 2000 funds. Let&amp;rsquo;s say that for whatever reason, investors decided to sell 10% of Russell 2000 index fund holdings in a single day. That means the funds themselves would need to sell between $2 and $6 million of the bottom half stocks in a single day. But the problem is, there&amp;rsquo;s not enough trading volume to handle such huge sell orders. Many of these stocks trade less than $1 million a day to begin with, but once investors see a deluge of sell orders arriving, chances are these investors will refuse to buy those stocks until the selling appears to ebb.&lt;/p&gt;

&lt;p&gt;If a traditional active fund faced the prospect of wanting to sell stocks for which there were no buyers, the fund would probably decide to pause selling. Once the selling stopped, the prices of the small stocks would have time to recover, and a market crisis in general would be averted. But such is not the case with index funds, and there lies the rub.&lt;/p&gt;

&lt;p&gt;Index funds, unlike actively managed funds, must follow a strict rule. If an investor buys a Russell 2000 index fund, exactly 0.02% of that money must go towards buying a stock with the index weight of 0.02%. The opposite is true as well:when an investor sells the fund, the fund must sell 0.02% worth of the aforementioned stock.&lt;/p&gt;

&lt;p&gt;This can therefore lead to a situation where there are literally sell orders for stocks with no corresponding buy orders. We&amp;rsquo;ve had a taste of this scenario during the flash crash of 2015. For a brief period during the crash, buy orders for Accenture stock completely dried up, and the price went from over $40/share to &lt;a href="https://www.investopedia.com/articles/investing/011116/two-biggest-flash-crashes-2015.asp"&gt;literally $0&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now, I&amp;rsquo;m not suggesting that such an extreme scenario is likely. There may be some stock market mechanisms that would prevent hundreds of stocks from going to 0. It&amp;rsquo;s also possible that there&amp;rsquo;s virtually no scenario under which investors would stampede out of index funds. I&amp;rsquo;m therefore agnostic about whether passive investing is a bubble or not.&lt;/p&gt;

&lt;p&gt;That said, I do think it&amp;rsquo;s important not to dismiss out of hand Dr. Michael Burry and other investors&amp;rsquo; concerns around passive investing. As I&amp;rsquo;ve said, I have yet to see someone convincingly argue against the problems regarding liquidity. Until then, I think it&amp;rsquo;s right to be cautious about passive investing.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 16 Sep 2019 12:10:16 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/09/16/passive-investing-bubble/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/active-vs-passive.jpg" length="100000" type="image/jpeg"></enclosure><category>ETFs</category></item><item><title>Outlier Detection: Border Security For Your Model
</title><link>http://www.moneygeek.ca/weblog/2019/09/02/outlier-detection-border-security-your-model/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/great-wall.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/difeng"&gt; zhu difeng&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;You might not know it, but outlier detection is a big part of your life. The ability to notice&amp;nbsp; diseased or rotten food, or spot a person in a crowd who might be unstable or dangerous is a very important human skill. Many of us had &lt;a href="https://www.youtube.com/watch?v=rsRjQDrDnY8"&gt;extra detection-training as children&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;So can we reliably spot outliers? For extreme examples, we&amp;#39;re pretty good. Say you ask 100 people, &amp;ldquo;what is the ideal indoor temperature?&amp;rdquo; and 99 of them answer, &amp;ldquo;somewhere between 16 and 22 degrees Celsius&amp;rdquo;, while the other one answers, &amp;ldquo;banana&amp;rdquo;. You don&amp;#39;t have to be a Family Feud judge to know that there&amp;#39;s something up with that banana answer. It&amp;#39;s obviously an outlier. But, as the data gets more complex and convoluted, outliers start to get orders of magnitude more difficult to spot.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In machine learning, especially with financial models, outlier detection is incredibly important. Outliers can severely warp your training set, leaving you with a less accurate model and more errors in predictions. It&amp;#39;s like using faulty materials to build the foundation of your house. Your training set can be contaminated by a number of different sources depending on how the data is collected. Anything from a clerical error to a computational anomaly to plain old human stupidity. (Never underestimate human stupidity--it&amp;#39;s not an outlier as a cause of outliers.)&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In some cases of machine learning you might be interested in investigating these outliers; those that are actual anomalies can hold lots of interesting information. However, for the case of predicting future returns, you are best served removing these outliers from your data before creating your model.&lt;/p&gt;

&lt;p&gt;Removing them is the easy part, finding them is the real challenge. Outliers are sneaky things; they are completely dependent on the rest of the dataset. If you&amp;#39;re a 400-pound man wearing nothing but a cloth diaper and a ponytail, you&amp;#39;re a huge outlier in most situations. &lt;a href="https://commons.wikimedia.org/wiki/File:Sumo_dohyo-iri_May_2014_002.jpg"&gt;But, in a dohyō&lt;/a&gt;, you&amp;#39;re just another data point.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The textbook definition will tell you that an outlier is &lt;a href="http://mathworld.wolfram.com/Outlier.html"&gt;an observation that lies outside the overall pattern of a distribution&lt;/a&gt;, but that&amp;#39;s a bit of a vague explanation. It leaves us with some questions, the main one being: how far outside the pattern does a point have to be to be an outlier? It&amp;#39;s like following one of your grandmother recipes. You just end up screaming at the page: &amp;ldquo;I DON&amp;rsquo;T KNOW HOW MUCH A &amp;#39;HEALTHY DOSE&amp;#39; OF SALT IS GRANDMA, WHY CANT YOU BE SPECIFIC?&amp;rdquo;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;So, if these outliers are so elusive, how do we find them? Luckily, some very smart people have discovered some very smart methods to help us in our task, such as&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Z-Score&lt;/h4&gt;

&lt;p&gt;The z-score is like a hammer: basic, simple, easy to use. Not every situation calls for a hammer, but when something needs to be hammered, there&amp;#39;s no better tool. The z-score is simply a measure of how many standard deviations a data point is from the sample&amp;#39;s mean. Anything beyond a specified threshold (often 2.5-3.5 standard deviations) is deemed an outlier. It&amp;#39;s surprisingly powerful given its simplicity, but there&amp;#39;s a major catch: it requires your data to be approximately normally distributed, and your independent variables to be few. Also, because this tool relies on standard deviation, and standard deviation is sensitive to outliers, the very outliers you&amp;rsquo;re trying to detect could interfere with your calculations. That is why some people prefer the slightly &lt;a href="https://medium.com/james-blogs/outliers-make-us-go-mad-univariate-outlier-detection-b3a72f1ea8c7"&gt;modified Z-score&lt;/a&gt; method that uses Median Absolute Deviation instead of standard deviation. This reduces the effect of the outliers on your detection.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Z-Score isn&amp;#39;t a method for every situation, but, when the stars align, it&amp;#39;s an easy-to-implement, efficient solution.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;DBSCAN&lt;/h4&gt;

&lt;p&gt;DBSCAN is as clever an algorithm as it is clunky an acronym. It stands for Density Based Spatial Clustering of Applications with Noise (obviously), and it works by determining the number of neighbouring points that exist for each data point in the set. By setting a distance, ɛ, you tell the algorithm how far to search for neighbours. You also set the minimum density of the neighbours that you&amp;#39;re searching for, and set it to work. The algorithm classifies each point into one of three categories: 1) Core points, 2) Border points 3) Outliers.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;If a point has at least the minimum number of neighbours within ɛ distance in any direction, it&amp;#39;s considered a core point. If a point doesn&amp;#39;t have the minimum number of neighbours, but is within ɛ distance of a core point, it is considered a border point. If it doesn&amp;#39;t fit into either of those classifications, it&amp;#39;s an outlier. By modifying ɛ and the minimum number of neighbours, you are able to fine-tune the outlier classification.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;It&amp;#39;s an easy to visualize method, and it works very well for searching for multidimensional outliers, but it&amp;#39;s not without its drawbacks. It&amp;rsquo;s difficult to fine-tune the parameters ( ɛ and minimum number of neighbours). A small change in values can cause a dramatic change in outliers detected. You also need to scale your values in the feature space appropriately, lest you wreck your results.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Isolation forest&lt;/h4&gt;

&lt;p&gt;Despite sounding like a place that you&amp;#39;d get banished to in some Alice in Wonderland-esque tale, an isolation forest is actually a non-parametric method of outlier detection. It&amp;#39;s a thorough machine-learning algorithm that seeks to determine how isolated each data point is, and give it an according score. This is done using decision trees in the following order. For each data point, you randomly select a feature. For that feature, you take a random value between the minimum and maximum to function as your split value. If the current data point has a value above the split value, you now use only the data above that point. If it&amp;#39;s below, use only the data below. You then choose another feature at random, and another value in between the minimum and maximum, and repeat the process. Continue to do so until the data point is completely isolated from the rest of the set.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh3.googleusercontent.com/PmRH1gPBHlQqECiJHRc9utfeqf1IBCBk_K-SvKYYd3ulyk2eq8UC6JUwaL6hBoLTgDlzLbM0oN8NhWs8KNX1B6Um278p9HIlX6CHGRD_O9-_SocubJB2WegDfBUau3LlsIz9D9oYzuEfrFE9PA" style="height:312px; width:624px" /&gt;&lt;/p&gt;

&lt;p&gt;(picture reference: https://cs.nju.edu.cn/zhouzh/zhouzh.files/publication/icdm08b.pdf )&lt;/p&gt;

&lt;p&gt;Because outliers (X0) will be further from the rest of the data than an average point (Xi), it should take substantially fewer steps to isolate an outlier (Figure 1). By comparing the number of steps it takes with the benchmark value that you decided on, you can determine if the data point is an outlier. It&amp;#39;s a very clever algorithm, but, if it&amp;#39;s not implemented properly, it can be very slow and computationally expensive.&lt;/p&gt;

&lt;p&gt;Much like with Z-Score, there is also an &lt;a href="https://towardsdatascience.com/outlier-detection-with-extended-isolation-forest-1e248a3fe97b"&gt;extended isolation forest method &lt;/a&gt;that improves the consistency and reliability of the algorithm by re-imagining how the splits are calculated.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Conclusion&lt;/h4&gt;

&lt;p&gt;Outlier detection is incredibly important in machine learning. You want to protect the borders of your model from bad data with the fury of a wall-loving Donald Trump, but with the cleverness of anyone but. Be as vigilant as possible. In practice, you may need a combination of these methods to get a complete sense of your data. We employ both z-score and isolation forest techniques in our projects to ensure that we are using the cleanest possible information to create predictions. It may seem labor intensive, but every little edge can turn into a greater alpha on the other end.&amp;nbsp;&lt;/p&gt;
</description><author>peter.white@enjine.ca (Peter White)</author><pubDate>Mon, 02 Sep 2019 19:38:53 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/09/02/outlier-detection-border-security-your-model/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/great-wall.jpg" length="100000" type="image/jpeg"></enclosure><category>Machine Learning</category></item><item><title>Can Yield Curves Predict Stock Market Direction? - A Machine Learning Perspective
</title><link>http://www.moneygeek.ca/weblog/2019/08/19/can-yield-curves-predict-stock-market-direction-machine-learning-perspective/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/yield-curve-newspaper.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/dani3315"&gt;dani3315&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Many investors are concerned about the yield curve today. Generally speaking, a positive sloping yield curve (i.e. where long term interest rates are higher than short term rates) portends future economic health. By contrast, negative sloping yield curves (a.k.a. &amp;ldquo;inverted&amp;rdquo; curves) have tended to &lt;a href="https://www.chicagofed.org/publications/chicago-fed-letter/2018/404"&gt;precede recessions&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Today, the yield curve is the &lt;a href="https://fred.stlouisfed.org/series/T10Y2Y"&gt;most inverted it&amp;rsquo;s been since before the financial crisis&lt;/a&gt;. This has led some investors to wonder: should they sell stocks today to protect their portfolios? Or should they hold onto them because, despite widespread belief, yield curves may not be the predictor they are often made out to be?&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Academic Paper And Its Problems&lt;/h4&gt;

&lt;p&gt;At least one set of academics has come out with a purported answer. Just last month, Fama and French published &lt;a href="https://famafrench.dimensional.com/media/467645/inverted-yield-curves-and-expected-stock-returns-july-28-2019.pdf"&gt;a draft paper&lt;/a&gt; that examined a market timing strategy based on yield curves. The strategies they examined gradually unloaded stocks when yield curves were inverted, and gradually added them back when yield curves sloped upwards. They found that such strategies ended up underperforming the simple buy and hold strategy where the investor never sold stocks.&lt;/p&gt;

&lt;p&gt;Personally, I found the paper to be wanting. I know that&amp;rsquo;s a bold thing to say considering one of the authors - Eugene Fama - is a Nobel laureate. But, hear me out. All that the paper proved was that the specific strategies devised by Fama and French didn&amp;rsquo;t work. This might be okay if the strategies made good use of the yield curves, but I&amp;rsquo;m not convinced.&lt;/p&gt;

&lt;p&gt;The chart below shows the ten to two year treasury yield spreads. As you can see, the spread tended to go negative (i.e. yield curve inverted) before a recession. However, there tended to be significant lags between the timing of the inversion and the beginning of the recession. For example, the yield curve inverted the last time in 2006, a full two years before the recession started.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh5.googleusercontent.com/EkSprxfP7LRbKcx8OGZhG0-CkLT8miqT_d8k8o-MF4797DZaS0F-V057med-i4493TvGri8-hciUcLhgRd9iR7cLkeNx3C1WreJdJPpN6Go0sjVYSVrmOVxYF2-7diQD6Xu-tgrm" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Stock prices reacted more or less in sync with economic health during the last recession, rising until 2007, and falling big in 2008. But if you had followed Fama and French&amp;rsquo;s strategy, you would have sold stocks until 2007, and started buying them back in 2008, which is the wrong strategy to follow. Does this mean that we shouldn&amp;rsquo;t use yield curves to inform our investing decisions? No, it just means we shouldn&amp;rsquo;t use it the specific way Fama and French outlined.&lt;/p&gt;

&lt;p&gt;If you want to know if yield curves can be used in any fashion to make investment decisions, it&amp;rsquo;s better to see if yield curves have any predictive power over the stock market. To answer whether that&amp;rsquo;s the case or not, I turned to machine learning.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;My Machine Learning Model&lt;/h4&gt;

&lt;p&gt;Now, before we go any further, let me warn you - what I&amp;rsquo;m about to show you doesn&amp;rsquo;t qualify as rigorous academic research. If I wanted to make this a proper academic study, I would conduct a lot more tests, use more data, etc. This is more like tinkering in a lab.&lt;/p&gt;

&lt;p&gt;In order to see if there&amp;rsquo;s any connection between yield curves and stock prices, I first downloaded two data sets from Quandl - &lt;a href="https://www.quandl.com/data/USTREASURY/YIELD-Treasury-Yield-Curve-Rates"&gt;historical treasury yields of different maturities&lt;/a&gt;, and the &lt;a href="https://www.quandl.com/data/YALE/SPCOMP-S-P-Composite"&gt;monthly performance of the S&amp;amp;P 500&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Since I was interested in whether the shape of the yield curve predicted stock prices, I constructed a time series consisting of the following interest rate differentials.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;1yr - 3mo&lt;/li&gt;
	&lt;li&gt;2yr - 1yr&lt;/li&gt;
	&lt;li&gt;5yr - 2yr&lt;/li&gt;
	&lt;li&gt;10yr - 3mo&lt;/li&gt;
	&lt;li&gt;10yr - 2yr&lt;/li&gt;
	&lt;li&gt;30yr - 3mo&lt;/li&gt;
	&lt;li&gt;30yr - 2yr&lt;/li&gt;
	&lt;li&gt;30yr - 10yr&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I didn&amp;rsquo;t choose these differentials&amp;nbsp; based on any rigorous scientific reasons. Rather, I guessed that these would contain the essence of the shape of the yield curve. These data points constituted the inputs to the machine learning model.&lt;/p&gt;

&lt;p&gt;The target output of the model consisted of the ensuing 12 month S&amp;amp;P 500 returns in excess of the 3 month treasury bill interest rates. This is consistent with what Fama and French used in their paper.&lt;/p&gt;

&lt;p&gt;I then divided the data set into two - one for training, and the other for testing. The training set consisted of all data until the end of 2009. The test set consisted of all data thereafter. There were 229 data points in the training set, and 104 data points in the test set. Experienced data scientists will note that this is a rather simplistic way to evaluate the model. If I were to do more rigorous research, I&amp;rsquo;d use a method like the &lt;a href="https://medium.com/@samuel.monnier/cross-validation-tools-for-time-series-ffa1a5a09bf9"&gt;combinatorial purged cross validation&lt;/a&gt;. But as I said, I&amp;rsquo;m just tinkering here.&lt;/p&gt;

&lt;p&gt;With the inputs and targets defined, I pondered which machine learning model to use, and I decided that some type of RNN (Recurrent Neural Network) made the most sense. I had a theory that in addition to the current shape of the yield curve, the evolution of the yield curve mattered as well, and RNNs had the ability to make use of the evolutionary information. In order to make use of RNNs, I modified the inputs such that each input consisted of 12 months&amp;rsquo; worth of yield curve history.&lt;/p&gt;

&lt;p&gt;Unfortunately, I discovered that many of the popular types of RNN didn&amp;rsquo;t work for this problem. With only 229 data points available for training, the more sophisticated RNNs like &lt;a href="https://towardsdatascience.com/understanding-gru-networks-2ef37df6c9be"&gt;GRU&lt;/a&gt; and &lt;a href="https://colah.github.io/posts/2015-08-Understanding-LSTMs/"&gt;LSTM&lt;/a&gt; persistently &lt;a href="https://elitedatascience.com/overfitting-in-machine-learning"&gt;overfit&lt;/a&gt;, even when using only 1 output unit. The only RNN that didn&amp;rsquo;t overfit to uselessness was the &lt;a href="https://peterroelants.github.io/posts/rnn-implementation-part01/"&gt;simple RNN&lt;/a&gt;, with 1 output unit.&lt;/p&gt;

&lt;p&gt;Fortunately, the simple RNN seems to work decently well. The graph below shows a set of predicted S&amp;amp;P 500 returns vs. actual for the test data set.&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh3.googleusercontent.com/YE7kmPKO6dKfNV2ep09krQsoLX-eQsrncyEc-eDjmXxFkXZFMyomLeZJbo5D3Gmh7CHAT4B9USH-ercJiRNmfSDTiN6lMVVWHzgkXQoh2drpdIIb-KBHcvN725G4qjbxm0ewc4W6" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;As you can see, though the predictions are not super accurate, it suggests that the model does appear to have some predictive power. The slope of the line is 0.48, which suggests an R squared of 23% - a fairly high number. However, I suspect that this overstates the model&amp;rsquo;s predictive capability. Indeed, if you tweak the model just a little bit, then you end up with a somewhat lower R squared. For example, if I lower the batch size of training from 8 to 4, I get an R squared of roughly 10% instead.&lt;/p&gt;

&lt;p&gt;But even an R squared of 10% is significant, and it suggests that yield curves can be used in some fashion to get an idea of where the stock market is headed next. I also suspect that yield curve data would be even more useful if used in conjunction with other data, such as inflation data. If this is true, I believe investors would be able to craft some investment strategy that uses yield curves to beat the buy and hold strategy outlined in Fama and French&amp;rsquo;s paper.&lt;/p&gt;

&lt;p&gt;But before we get too excited, let me reiterate that there&amp;rsquo;s no guarantee my model does work. It appears to work at first glance, but really confirming that would take more effort, and I&amp;rsquo;m unwilling to put in that effort. If someone would like to continue where I left off, feel free to do so. I&amp;rsquo;ve made my code available for &lt;a href="https://s3.amazonaws.com/MoneyGeek/Images/2019/YieldCurveSP500-MoneyGeek.ipynb"&gt;download here&lt;/a&gt; in the Jupyter notebook format. If you do use my code, I would appreciate it if you could credit me.&lt;/p&gt;

&lt;p&gt;Finally, you&amp;rsquo;re probably curious about what the model says about where stock prices are going. I do have an answer for you. It says stocks will go down slightly (roughly -3%) in the next 12 months. I think this is in line with many investors&amp;rsquo; gut feelings on where stock prices are headed.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 19 Aug 2019 08:54:55 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/08/19/can-yield-curves-predict-stock-market-direction-machine-learning-perspective/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/yield-curve-newspaper.jpg" length="100000" type="image/jpeg"></enclosure><category>Machine Learning</category></item><item><title>Discontinuing MoneyGeek's Portfolios
</title><link>http://www.moneygeek.ca/weblog/2019/08/05/discontinuing-moneygeeks-portfolios/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/investment-securities.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/Wlliam+Potter"&gt;William Potter&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;On the first Monday of every month (like today), I normally give an update on MoneyGeek&amp;rsquo;s portfolios. But as you can tell from the title, today is different. Today, I&amp;rsquo;ve decided to remove the model portfolios feature from this website.&lt;/p&gt;

&lt;p&gt;I know that many of you have been using my model portfolios to invest real money, so I feel that I owe you a full explanation.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Early last year, I started work on a successor website to the model portfolios&amp;rsquo; page. I called it &amp;lsquo;Portfolio Expo&amp;rsquo;, and it was going to contain some big enhancements. PE would have let users create and publish their own portfolios. It would have also included some sophisticated analytics of each portfolio, and enabled people to discuss the portfolios.&lt;/p&gt;

&lt;p&gt;A couple of months ago, I felt that the site was almost ready to launch, so I started demoing it to other people. One of the people I demoed the site to recommended that I contact the regulators, to make sure the site wasn&amp;rsquo;t contravening any regulations. When I met with the regulators, they had some bad news. They felt that we would need to be regulated, given the features we had planned for the site.&lt;/p&gt;

&lt;p&gt;Becoming regulated is a big deal. There are many requirements that must be met, ranging from keeping extensive records to having a certain amount of cash in the bank at all times. But perhaps the biggest challenge for us was in finding someone who could become the chief compliance officer.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;To qualify as the officer, one needs to have either a &lt;a href="https://www.cfainstitute.org/"&gt;CFA&lt;/a&gt; or a &lt;a href="https://www.csi.ca/student/en_ca/designations/cim.xhtml"&gt;CIM&lt;/a&gt; designation, as well as a few years of relevant work experience. I come close to qualifying, since I&amp;rsquo;ve passed two out of three levels of the CFA, and have the requisite work experience. I therefore considered taking the third CFA exam, but decided not to. Taking that last CFA exam would mean reserving one to two hours a day to study, and I simply don&amp;rsquo;t have the time right now.&lt;/p&gt;

&lt;p&gt;Even if I decided to spend the time, I would have to wait until June of next year to take the exam. Assuming I passed, my company would have started being regulated at the end of 2020, which I judge is too long a time to wait.&lt;/p&gt;

&lt;p&gt;As an alternative, I could hire someone else to become the compliance officer. I&amp;rsquo;ve considered this option, but decided against it. Such people are expensive, and I don&amp;rsquo;t feel confident enough about our cash flow situation yet.&lt;/p&gt;

&lt;p&gt;After ruling out the options above, I tried to think of ways that I could launch PE without being regulated. I was willing to gut some key features if need be, so I contacted some securities lawyers for advice. Unfortunately, they had some bad news as well.&lt;/p&gt;

&lt;p&gt;As they saw it, any website that provided even the most basic analytics and tools needed to be regulated. This included automatic performance tracking, and calculators that showed exact trades in order to implement a portfolio. I was willing to gut some features from PE, but gutting every feature that met the regulatory threshold would have left the site hollow - which brings us back to MoneyGeek.&lt;/p&gt;

&lt;p&gt;As you may know, MoneyGeek&amp;rsquo;s portfolios section already provides many of the same features that meet the regulatory threshold. This means that the regulators could in theory choose to shut down my site any time they wanted. In fact, I had that exact experience some years ago.&lt;/p&gt;

&lt;p&gt;In late 2013, just a few months after I launched MoneyGeek, the regulators found out about the model portfolios section and asked me to take it down, which I complied with promptly. I later sat down with the regulators to explain the situation, and they allowed me to put the site back up. I believe a big reason I was allowed to continue publishing the site was because the rules were unclear about websites like MoneyGeek. Fintech was very nascent at the time, so they hadn&amp;rsquo;t yet issued guidelines.&lt;/p&gt;

&lt;p&gt;But fast forward a few years to the present, and things have changed. Robo advisors have become a thing, and many websites have started to straddle the line between providing tools and giving advice. The regulators have now provided guidelines, which means taking more clear cut stances towards websites like MoneyGeek.&lt;/p&gt;

&lt;p&gt;My own circumstances have changed too during these past few years. I have a lot more to lose today. I run a business employing six people besides myself, so drawing the ire of regulators could affect not just my own life, but the lives of six other people as well.&lt;/p&gt;

&lt;p&gt;This is why, after some careful consideration, I have decided to shut the model portfolios section down. From now on, this site will essentially be just a blog, which is acceptable from the regulators&amp;rsquo; point of view.&lt;/p&gt;

&lt;p&gt;If this decision affects you financially, please accept my apologies. For those who are wondering about alternatives, I would suggest two things.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;If you have a decent amount of savings (over $200,000), I would recommend retaining a financial advisor with a fiduciary obligation. A fiduciary is obligated to have your interest at heart, and while not foolproof, I do believe it lessens the chance that the advisor will end up taking advantage of you. Any advisor with a CFA is bound by fiduciary duty. If you don&amp;rsquo;t know of any advisor like that, please email me at &lt;a href="mailto:info@moneygeek.ca"&gt;info@moneygeek.ca&lt;/a&gt; and I&amp;rsquo;ll introduce you to one.&lt;/p&gt;

&lt;p&gt;If you don&amp;rsquo;t have that much money saved up, I would recommend that you follow the &lt;a href="https://canadiancouchpotato.com/model-portfolios/"&gt;Canadian Couch Potato&amp;rsquo;s model portfolios&lt;/a&gt;. Some of you may see the irony in this, as I&amp;rsquo;ve written articles critical of &lt;a href="https://www.moneygeek.ca/weblog/2013/06/01/open-challenge-canadian-couch-potato/"&gt;CCP&amp;rsquo;s model portfolios in my early years&lt;/a&gt;. As time has passed, however, I&amp;rsquo;ve come to regret my decision to write those critical articles. Although I still feel that I made some good points, my negative tone was unwarranted. The truth is that CCP&amp;rsquo;s model portfolios are good portfolios. Are they perfect? Probably not. But they&amp;rsquo;re a lot better than some of the stuff other advisors recommend.&lt;/p&gt;

&lt;p&gt;I wish that I didn&amp;rsquo;t have to write this article. I wish instead that I&amp;rsquo;d be announcing the exciting launch of Portfolio Expo, a platform that will revolutionize DIY investing. I wish that regulation hadn&amp;rsquo;t stood in the way of that dream. But I accept reality as it is. Regulators have a job to do, and from my conversations with them, they really do care about protecting the little investor. I hope to someday get the resources to be regulated, and finally launch Portfolio Expo.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 05 Aug 2019 10:23:56 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/08/05/discontinuing-moneygeeks-portfolios/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/investment-securities.jpg" length="100000" type="image/jpeg"></enclosure><category>Announcements</category></item><item><title>The Zeta Coefficient – A New Way to Forecast Returns Using  Risk
</title><link>http://www.moneygeek.ca/weblog/2019/07/29/zeta-coefficient-new-way-forecast-returns-using-risk/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/jay-z.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/dwong19"&gt;Debby Wong&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Risk comes from not knowing what you’re doing&lt;/p&gt;
&lt;footer class="blockquote-footer"&gt;Warren Buffett&lt;/footer&gt;
&lt;/blockquote&gt;

&lt;p&gt;As far as superhuman powers go, the ability to accurately forecast returns probably wouldn&amp;#39;t be many people&amp;#39;s first choice. It&amp;#39;s not as sexy as super speed or laser eyes. But, imagine the edge you&amp;#39;d have as an investor if you could look at an opportunity and predict the returns with precision. You would essentially remove all of the risk from investing: you&amp;#39;d be playing the game on easy mode!&lt;/p&gt;

&lt;p&gt;Risk and returns are inter-twined. If you can assess risk accurately, you can generally predict returns accurately as well. Risk is the secret ingredient to investing in the same way that &lt;u&gt;&lt;a href="https://www.youtube.com/watch?v=9Gq3UEAiWio"&gt;love is the secret ingredient to cookin&lt;/a&gt;g&lt;/u&gt;. So, risk assessment is one of the most complex parts of investing and underpins many of our decisions. But, how well do we really understand it?&lt;/p&gt;

&lt;p&gt;Each of us develops an intuitive understanding of risk during the course of our life, but it&amp;#39;s a very difficult thing to quantify. It&amp;rsquo;s like trying to put a number on fun. The concept is too abstract, too vague to measure. We all know that dinner with friends is more fun than getting punched in the face, but how can you show that mathematically? The same issues arise when trying to compare investment risks. There&amp;#39;s no obvious way to objectively measure risk, so, we often have to make a judgement call. And, you don&amp;#39;t need me to tell you that when it comes to judgement calls that people don&amp;#39;t always &lt;a href="https://www.google.com/search?q=worst+haircuts+ever&amp;amp;source=lnms&amp;amp;tbm=isch&amp;amp;sa=X&amp;amp;ved=0ahUKEwiZm-3QgrzjAhXKKs0KHTTND2YQ_AUIECgB&amp;amp;biw=1396&amp;amp;bih=686"&gt;&lt;u&gt;make the right decisions&lt;/u&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So, while you understand risk as a concept, it&amp;#39;s not inherently clear how to factor it into your investment decisions. It&amp;#39;s arguably the most important thing, but you can&amp;#39;t really put it in the recipe because it&amp;#39;s not tangible. You want a meal made with love, but if you saw a recipe that called for one cup of love, you&amp;#39;d be a bit sceptical. So, how do you properly factor risk into your return predictions?&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;&lt;strong&gt;CAPM &amp;ndash; An Old Friend&lt;/strong&gt;&lt;/h4&gt;

&lt;p&gt;It seems as though everything under the sun has been used to predict returns at one time or another, but one of the most well-known methods is the &lt;a href="https://www.investopedia.com/terms/c/capm.asp"&gt;&lt;u&gt;capital asset pricing model&lt;/u&gt;&lt;/a&gt;. Most financial professionals are familiar with CAPM and its ingenious method of exploring the relationship between risk and reward. It&amp;#39;s a beautiful model that won over people&amp;#39;s hearts and &lt;a href="https://www.nobelprize.org/prizes/economic-sciences/1990/press-release/"&gt;&lt;u&gt;even won a Nobel Prize in 1990&lt;/u&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;CAPM is a beautiful theory, but, much like &lt;a href="https://en.wikipedia.org/wiki/Robert_J._Lang"&gt;&lt;u&gt;origami master Robert J. Lang&lt;/u&gt;&lt;/a&gt;, only works on paper. Beyond the &lt;a href="https://en.wikipedia.org/wiki/Capital_asset_pricing_model#Assumptions"&gt;&lt;u&gt;laundry list of assumptions it makes&lt;/u&gt;&lt;/a&gt;, CAPM has been around for so long and is in use by so many people that it&amp;#39;s virtually impossible to gain an edge with it. And, despite the shortcomings, CAPM is still widely used as a tool because it simply and elegantly predicts expected returns in the face of risk. However, there are few--if any--who would say that CAPM is a complete and perfect model.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;&lt;strong&gt;ZCAPM &amp;ndash; The New Kid in Town&lt;/strong&gt;&lt;/h4&gt;

&lt;p&gt;If Jay-Z has taught us anything, it&amp;#39;s that if you want something to seem cool, you add a Z to the name, and ZCAPM is no different. &lt;u&gt;D&lt;/u&gt;&lt;u&gt;eveloped earlier this year by Wei Liu, James W. Kolari, and Jianhua Z. Huang&lt;/u&gt;, the ZCAPM is like CAPM on steroids. CAPM compares a security&amp;#39;s return to the return of the market. ZCAPM adds another important factor, which it calls Zeta. Much like Beta in CAPM is a measure of a security&amp;#39;s volatility compared to market returns, Zeta analyzes a security&amp;rsquo;s volatility compared to the cross sectional return dispersion of the market. That is, it measures how much a stock moves compared to the standard deviation of all of the individual stock returns during a particular period.&lt;/p&gt;

&lt;p&gt;The idea that return dispersion is a predictive factor is nothing new (the idea has &lt;a href="https://www.sr-sv.com/predicting-equity-volatility-with-return-dispersion/"&gt;&lt;u&gt;been well documented&lt;/u&gt;&lt;/a&gt;&lt;u&gt;)&lt;/u&gt;, but using it in this application is a real leap forward. ZCAPM is ready to be applied to portfolio construction, and, although the tests are minimal so far, early results are quite promising. Long only portfolios showed similar volatility to the CRSP index, but with somewhat higher returns (between 1.06% and 1.10% to the CRSP&amp;rsquo;s 0.89%). Other numbers are similarly impressive, although the results have yet to be verified by others.&lt;/p&gt;

&lt;p&gt;So, what&amp;#39;s the catch? Firstly, it&amp;#39;s really hard to say &amp;ldquo;ZCAPM&amp;rdquo; aloud, which I think will really hold it back. But, more importantly, the premise is new and untested. Lots of models with long only portfolios look promising under initial test conditions, but they fall apart under rigorous examination. Also, further research is needed into how ZCAPM applies to other asset classes, including bonds and real estate, as well as international stocks. However, while both the scope and the breadth of the zeta coefficient are limited, the results are such that it is worth taking the time to investigate it further.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;&lt;strong&gt;Zeta and Machine Learning&lt;/strong&gt;&lt;/h4&gt;

&lt;p&gt;ZCAPM is an interesting concept, but for you to really tap into the full power of the coefficient, it&amp;#39;s better to incorporate it into a machine-learning model. There is so much unavoidable risk when it comes to investing that you want to do your best to remove any potential source of human error that might compound it. And, the best way to remove human error in decision-making is to remove the human. Machine-learning algorithms can allow us to spot patterns and trends that are either too subtle for humans to notice or buried under too much data. And, more importantly, algorithms are free of the cognitive biases that haunt our choices, &lt;a href="https://medium.com/@barbhyman1410/why-machines-make-better-decisions-than-humans-oh-and-why-i-hate-simon-sinek-23155b97b296"&gt;&lt;u&gt;leaving them free to potentially make better decisions&lt;/u&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;That said, machine-learning models are only as good as the inputs you feed them. The more significant the inputs, the more accurate the model. Think of your model like a &lt;a href="https://en.wikipedia.org/wiki/Sled_dog_racing"&gt;&lt;u&gt;dog sled &lt;/u&gt;&lt;/a&gt;where the inputs are your noble huskies. The more good dogs you have, the better the result. The ZCAPM results seem to indicate that the zeta coefficient contains an important signal about future performance, and you can harness that in your predictions. That&amp;#39;s the sign of a good husky.&lt;/p&gt;

&lt;p&gt;Investing is as much about beating everyone else as it is about beating the market, so, you need to stay a step ahead. Doing what everyone else is doing is not enough; you have to actively seek out the next thing. Machine learning helps immensely in this task as it allows you to develop and test new factors and models with a level of efficiency and complexity that human beings can never replicate. If the right algorithm can &lt;a href="https://blog.statsbot.co/deep-learning-achievements-4c563e034257"&gt;&lt;u&gt;develop Star Trek like translating abilities&lt;/u&gt;&lt;/a&gt;, imagine what it can do for your portfolio.&lt;/p&gt;
</description><author>peter.white@enjine.ca (Peter White)</author><pubDate>Mon, 29 Jul 2019 14:13:29 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/07/29/zeta-coefficient-new-way-forecast-returns-using-risk/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/jay-z.jpg" length="100000" type="image/jpeg"></enclosure><category>Machine Learning</category></item><item><title>Why Decision Trees Work Well For Investment Analysis
</title><link>http://www.moneygeek.ca/weblog/2019/07/22/why-decision-trees-work-well-investment-analysis/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/decision-tree.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/Elizaveta+Serpinskaya"&gt;Boo-Tique&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;What is the best machine learning algorithm? The answer is, unsurprisingly, &amp;ldquo;it depends.&amp;rdquo; There are many different types of machine learning algorithms, each with their own unique way of modelling the real world in some fashion.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Tradeoffs on Model Complexity&lt;/h4&gt;

&lt;p&gt;The best algorithm is generally one that most closely mirrors the real world. Think of each machine learning algorithm as a set of lego boxes, each containing different shapes of bricks. If you&amp;rsquo;re going to build an airplane, you&amp;rsquo;re going to do better with lego boxes containing wing shaped bricks.&lt;/p&gt;

&lt;p&gt;However, the complexity of the algorithm comes into play as well. Some people may think that more complexity is always better because it can more accurately model real world phenomena, but this would be a mistake. Indeed, complex algorithms have greater capacity to learn the &amp;ldquo;wrong&amp;rdquo; lessons. Let me show you an example.&lt;/p&gt;

&lt;p&gt;Let&amp;rsquo;s say we want to create a model that predicts the probability of a coin coming up heads. We therefore toss a few coins, record their outcomes, and train an algorithm on that data. The outcome is as follows (&amp;lsquo;H&amp;rsquo; denotes head and &amp;lsquo;T&amp;rsquo; denotes tail).&lt;/p&gt;

&lt;p&gt;T T H T H H&lt;/p&gt;

&lt;p&gt;A very simple algorithm may only look at the number of Hs relative to Ts, and conclude that the probability of an H coming up is 50%. But a more complex model that remembers past outcomes may think that the probability of H is more likely after T T or H T. The complex algorithm, though more powerful, has yielded an inferior model.&lt;/p&gt;

&lt;p&gt;Another problem with using complex algorithms is that they are generally more difficult to interpret. One reason linear regression is still so popular in the investment community today is because linear regressions, being simple mathematically, are also simple to interpret. For instance, the Fama French 3 factor model says that the smaller the stock, the higher the expected return for that stock. By contrast, it&amp;rsquo;s rarely possible to explain the process behind machine learning models using just one or two lines.&lt;/p&gt;

&lt;p&gt;There therefore exists a tension around choosing the complexity of the machine learning algorithm. Too simple, and the algorithm doesn&amp;rsquo;t have the ability to accurately model real world phenomena. Too complex, and the algorithm learns the wrong lessons, and/or it becomes too hard to explain the model&amp;rsquo;s inner workings. The best machine learning algorithm is one that can bring the benefits of complexity while paying as little as possible for them.&lt;/p&gt;

&lt;p&gt;In the domain of investment selection, I find that algorithms that employ the &amp;lsquo;decision tree&amp;rsquo; model often do a good job of achieving this balance. Let me show you why.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Strengths and Weaknesses of Decision Trees&lt;/h4&gt;

&lt;p&gt;First, let me give you an overview of how decision trees work. Let&amp;rsquo;s say that we start with some input data and their corresponding output data. For instance, the input data may include the return on equity, and the output may be the percentage change in the price of the stock.&lt;/p&gt;

&lt;p&gt;To form a decision tree, first we identify the input variable which is the most important factor in determining what the output will be. For example, the tree algorithm may decide that P/E is the most important variable to consider.&lt;/p&gt;

&lt;p&gt;We then analyze how the values of the variable are associated with the output, and divide the data into separate sets using a critical value. For instance, we may see big differences in outputs between stocks with P/E less than 15 versus those with P/E equal to or greater than 15. If this is the case, we would divide all stocks into two sets based on this criteria.&lt;/p&gt;

&lt;p&gt;After the data has been split, we have the option of splitting the data set further using either the same or another input variable. For example, in the data set containing stocks with P/E less than 15, we may find that 6 month momentum matters most, and split the data set further based on whether 6 month momentum is positive or negative. On the other hand, for stocks with P/E more than 15, we may find that P/E still matters most, but we may choose to split on a P/E value of 40 this time.&lt;/p&gt;

&lt;p&gt;After some point, it will no longer make sense to split data sets further. Instead, we would assign some score for all data that belongs to a set. Such scores may indicate that we should buy a stock, or vice versa. The chart below depicts the example we&amp;rsquo;ve followed thus far.&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh5.googleusercontent.com/Otoqei-M3CffeL7_8nw4Zja6xZtrnMntTIMFaNYSWorloz31rVG_U8OIXsLsN7oMC1XlwLITF33jmgN1WfU3AJWdazS7WNCnAOCxL9N-VNPsODTBG_M9YYUk-D3Dcfi3uEKYKVa2" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;In this example, we may conclude that we should buy stocks with P/E less than 15, that have positive 6 month momentum. Perhaps this represents the GARP (growth at reasonable price) stocks, and the data indicates that the strategy works. On the other hand, the model may tell us to avoid stocks with P/E less than 15 that have negative 6 month momentum. Perhaps these are value traps, which the data says often leads to bad outcomes.&lt;/p&gt;

&lt;p&gt;One of the major strengths of decision trees is the fact that they can model many different contexts. We&amp;rsquo;ve already seen an example of this, where stocks with P/E less than 15 were treated very differently depending on whether momentum was positive or negative. Not all machine learning algorithms are as flexible.&lt;/p&gt;

&lt;p&gt;Another strength of decision tree algorithms is that they can handle missing data gracefully. In finance, missing data occurs often. This is sometimes due to an error with the data vendor, but at other times, the data simply doesn&amp;rsquo;t exist. For example, profitability margins don&amp;rsquo;t exist for companies that have yet to make a sale.&lt;/p&gt;

&lt;p&gt;In decision trees, missing data can be treated as its own class of data, and the algorithm only needs to decide whether to go left or right down the tree path when it encounters missing data. Other machine learning models typically can&amp;rsquo;t handle missing data out of the box, and while there are good workarounds, I feel that they don&amp;rsquo;t handle missing data as gracefully as decision trees can.&lt;/p&gt;

&lt;p&gt;Decision trees are particularly great when there are relatively few data points to work with. Because the outcome is modeled to be the same for all stocks that belong to the same context, decision trees tend to be more resistant to &amp;lsquo;overfitting&amp;rsquo; than other more complex algorithms. In other words, a decision tree algorithm tends not to learn the &amp;ldquo;wrong lessons&amp;rdquo; we talked about earlier. However, this is a double edged sword since by the same token, decision trees can&amp;rsquo;t model differences between stocks that belong to the same context.&lt;/p&gt;

&lt;p&gt;Finally, decision trees are easier to interpret compared to other more complex algorithms. Modern software packages allow us to view graphs of decisions that have been constructed, and through them, humans can at least trace the decision paths that have led to a particular outcome.&lt;/p&gt;

&lt;p&gt;Now, does this mean that decision trees are always the best algorithm for handling investment data? Certainly not. Time series, for instance, may be better handled by some types of neural networks. However, in situations where there are relatively few data points and a high proportion of missing data, decision trees can shine, and in finance, those situations occur frequently.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 22 Jul 2019 15:29:36 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/07/22/why-decision-trees-work-well-investment-analysis/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/decision-tree.jpg" length="100000" type="image/jpeg"></enclosure><category>Machine Learning</category></item><item><title>It's Not Just Hype - Why Machine Learning Holds So Much Promise
</title><link>http://www.moneygeek.ca/weblog/2019/07/08/its-not-just-hype-why-machine-learning-holds-so-much-promise/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/two-dogs.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/Rita+Kochmarjova"&gt;Grigorita Ko&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In the book &lt;a href="https://www.amazon.ca/dp/B000RH0C8G/ref=dp-kindle-redirect?_encoding=UTF8&amp;amp;btkr=1"&gt;&amp;ldquo;MoneyBall&amp;rdquo;&lt;/a&gt;, author Michael Lewis documented the story of the Oakland A&amp;rsquo;s baseball team. Despite their shoestring budget, the A&amp;rsquo;s consistently contended with teams with far bigger budgets, such as the New York Yankees. The secret of the team&amp;rsquo;s success boiled down to one thing - the use of statistics. Instead of relying on the subjective judgements of scouts, the A&amp;rsquo;s made rational decisions on player acquisitions using data.&lt;/p&gt;

&lt;p&gt;Unfortunately, the story doesn&amp;rsquo;t have a good epilogue. Not long after the book&amp;rsquo;s publication in 2004, the team&amp;rsquo;s standing began to slide. Whereas the team had finished either first or second in its division from 1999 to 2006, the A&amp;rsquo;s often slumped to third or fourth during the 2007 to 2011 period. Then after a couple of good years, the A&amp;rsquo;s finished fifth three seasons in a row from 2015-2017. The reason for their failure to achieve top results is simple - other teams caught on to the A&amp;rsquo;s methodology and started adopting it themselves. Inefficiencies in player trading had been arbitraged out.&lt;/p&gt;

&lt;p&gt;I sometimes wonder if a similar story is unfolding in the quantitative investing world. As I wrote a couple of months ago, many mainstream quantitative strategies have &lt;a href="https://www.moneygeek.ca/weblog/2019/05/06/strange-year-quants/"&gt;failed to perform recently&lt;/a&gt;. The strategies may have yielded good results when they were first discovered, but would the strategies still work going forward once most financial advisors learned about them? No one can say, but it&amp;rsquo;s possible they won&amp;rsquo;t.&lt;/p&gt;

&lt;p&gt;Now, I understand what people advocating such strategies would say. They&amp;rsquo;d say the strategies will continue to work because they exploit people&amp;rsquo;s behavioural biases. For example, value strategies work because investors generally become too pessimistic about many companies&amp;rsquo; prospects, tanking their stock prices below their intrinsic values. Momentum works because people&amp;rsquo;s minds are anchored to the last traded stock price, and so they underreact to good news. These are all good points, and they might be right, but they might also be wrong in a world where investment decisions are increasingly driven by algorithms.&lt;/p&gt;

&lt;p&gt;So if you&amp;rsquo;re worried that mainstream quantitative strategies won&amp;rsquo;t be as effective going forward, how then should you look for superior returns? To answer this question, I think it&amp;rsquo;s helpful to keep the different sources of investing edge in mind.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Sources of Investing Edge&lt;/h4&gt;

&lt;p&gt;Investing edge refers to the competitive advantage an investment manager may have over his or her competitors. &lt;a href="https://www.morningstar.com.au/learn/article/what-is-your-investing-edge/164063"&gt;Some theorize&lt;/a&gt; that there are three sources of investing edge: informational, behavioural and analytical advantages.&lt;/p&gt;

&lt;p&gt;Informational advantage refers to having exclusive access to important information. Such information may include a pending takeover bid of a company, or legal documents that no one else bothers to read. The problem with exploiting informational advantages is that they&amp;rsquo;re often costly, illegal or tedious to gather.&lt;/p&gt;

&lt;p&gt;Behavioural advantage refers to the willingness to sit through emotional discomfort. In late 2008, for example, many investors knew that stocks were trading at very cheap levels. But they were afraid to act because they had the real risk of losing a lot of money in the short term. If&amp;nbsp; investors could bring themselves to not care about the short term pain, they would have made a lot of money. Of course, making such decisions is often easier said than done, especially for financial professionals who have to answer to their clients.&lt;/p&gt;

&lt;p&gt;Lastly, analytical advantage refers to the ability of the investment manager to synthesize and analyze information better than others. Mainstream quantitative strategies attempt to exploit this advantage. Computers are used to conduct quick analysis of stocks that would take human analysts a long time to do.&lt;/p&gt;

&lt;p&gt;Of the three potential advantages, pressing for the analytical advantage seems the most attractive since it involves the investor working smarter, not harder. Unfortunately, analytical advantage can be fleeting, and as I&amp;rsquo;ve mentioned previously, we may have already reached that stage where the advantage offered by mainstream quantitative strategies has evaporated.&lt;/p&gt;

&lt;p&gt;The good news is that it&amp;rsquo;s still possible to gain an analytical advantage without using mainstream quantitative strategies. But gaining the advantage requires the investor to use more sophisticated analytical tools. I believe that machine learning provides those tools.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;Limitations of Linear Regression Models&lt;/h4&gt;

&lt;p&gt;Many of the mainstream quantitative strategies today makes use of linear regression models. For example, the famous &lt;a href="https://www.investopedia.com/terms/f/famaandfrenchthreefactormodel.asp"&gt;Fama French Three Factor Model&lt;/a&gt; is a linear regression involving three input features:Total Market Returns, Size Premium and the Value Premium.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Linear regressions consider each feature in isolation. For example, in the Fama French model, a higher Value Premium of a stock always leads to a higher expected rate of return for the stock. Moreover, increases in feature values will always have the same effect, regardless of their starting base values. For example, the Size Premium going from 0.0 to 0.3 would have the same effect on the output as an increase from 2.0 to 2.3.&lt;/p&gt;

&lt;p&gt;Unfortunately, this rigid structure prevents linear regressions from being able to model many types of real life situations. A famous example of this is called the &amp;lsquo;Exclusive Or&amp;rsquo; problem. Let me explain using an example.&lt;/p&gt;

&lt;p&gt;Suppose that we want to create a model that predicts whether a pair of dogs can breed or not. We know that in order to breed, one of the dogs has to be male, and the other has to be female. A linear regression model would look like this:&lt;/p&gt;

&lt;p&gt;Y = 𝜔&lt;sub&gt;0&lt;/sub&gt; + 𝜔&lt;sub&gt;1&lt;/sub&gt;X&lt;sub&gt;1&lt;/sub&gt; + 𝜔&lt;sub&gt;2&lt;/sub&gt;X&lt;sub&gt;2&lt;/sub&gt;&lt;/p&gt;

&lt;p&gt;&amp;lsquo;X&lt;sub&gt;1&lt;/sub&gt;&amp;rsquo; and &amp;lsquo;X&lt;sub&gt;2&lt;/sub&gt;&amp;rsquo; would denote the genders of the first and second dog, respectively. X&lt;sub&gt;1&lt;/sub&gt; would be 0 if it were male, and 1 if it were female. &amp;lsquo;Y&amp;rsquo; would denote whether they could breed or not, with 1 being Yes, and 0 being No. The values of 𝜔 should be set during model training such that Y would be correct given the values for X.&lt;/p&gt;

&lt;p&gt;If you try to train the model using a statistical package, however, you&amp;rsquo;d get the following values: 𝜔&lt;sub&gt;0&lt;/sub&gt; would come out to be 0.5 while 𝜔&lt;sub&gt;1&lt;/sub&gt; and 𝜔&lt;sub&gt;2&lt;/sub&gt; would come out to be 0. Since anything multiplied by 0 is 0, the equation would reduce to the following:&lt;/p&gt;

&lt;p&gt;Y = 0.5&lt;/p&gt;

&lt;p&gt;In other words, the linear regression model wouldn&amp;rsquo;t consider the genders of the dogs at all. It would always say the chance of whether the dogs can breed or not is 50/50. For all intents and purposes, the linear regression model would be useless.&lt;/p&gt;

&lt;p&gt;The linear regression model failed to yield a useful model because it considered each input in isolation. It tried to see whether the gender of the first dog influenced the probability of breeding, without taking the gender of the second dog into account. It&amp;rsquo;s like sending one analyst to check the gender of the first dog, and another analyst to check the gender of the second dog, and asking them to vote on the outcome without allowing them to talk to each other.&lt;/p&gt;

&lt;p&gt;There are many situations in finance where some input features likewise have to be evaluated in the context of other features. Take insider transactions, for example. It is said that insider purchases are stronger signals of insiders&amp;rsquo; confidence in the stock if the stock has been rising leading up to the purchase. But linear regression models wouldn&amp;rsquo;t be able to model the different contexts.&lt;/p&gt;

&lt;p&gt;Another limitation of linear regression arises from the fact that the relationship between input features and outputs are too rigid. Let me give an example from finance.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Every investor would agree that it&amp;rsquo;s never good to see companies with very high leverage ratios. For such companies, increasing the leverage ratio further would result in lower expected returns, since the chance of bankruptcy goes that much higher.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;However, it&amp;rsquo;s also true that companies can have too low a leverage ratio. Equity&amp;rsquo;s cost of capital is generally higher than that of debt, so it&amp;rsquo;s good for a profitable company to have some debt. For underleveraged companies, higher leverage ratios should result in higher expected returns for the stock.&lt;/p&gt;

&lt;p&gt;Unfortunately, linear regression models don&amp;rsquo;t have the ability to distinguish between the two scenarios. Adding leverage ratios would either reward companies all the time, or it would penalize companies all the time. As a result of these limitations, research that uses linear regression models can miss a lot of important insight. For example, it may wrongly conclude that leverage ratios don&amp;rsquo;t affect expected returns.&lt;/p&gt;

&lt;p&gt;Modern machine learning models, on the other hand, overcome these problems by allowing for more flexibility. Their structure allows input features to interact with other features, and for input features to influence output in complex ways. When you train machine learning models on financial problems, the model teases out insight that&amp;rsquo;s not immediately obvious to human analysts. This allows the model user to wield analytical advantage over other investors, which can lead to superior investment returns.&lt;/p&gt;

&lt;p&gt;Now, you may be wondering,if this is all true, why aren&amp;rsquo;t machine learning models more popular? I think that&amp;rsquo;s a great question, and a topic for another time. But for now, let me just say this: Many of the objections to machine learning I&amp;rsquo;ve come across are rooted in misconceptions or lack of knowledge about the subject. I hope that in the coming weeks, we can answer those objections. Machine learning models are powerful, and it&amp;rsquo;d be a shame for someone to discard it because of misconceptions.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 08 Jul 2019 14:38:50 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/07/08/its-not-just-hype-why-machine-learning-holds-so-much-promise/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/two-dogs.jpg" length="100000" type="image/jpeg"></enclosure><category>Machine Learning</category></item><item><title>Gold Moves Up  - But Will It Continue To?
</title><link>http://www.moneygeek.ca/weblog/2019/07/01/gold-moves-will-it-continue/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/gold-bullions.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/photo+BC"&gt;photo BC&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At the beginning of every month, I brief members on how MoneyGeek&amp;#39;s Regular portfolios have performed and comment on the state of the financial markets. In this update, I&amp;rsquo;ll also share my thoughts on gold.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;June Performance of Regular Portfolios&lt;/h4&gt;

&lt;p&gt;The performance of MoneyGeek&amp;#39;s Regular portfolios for the month of June 2019 were as follows:&lt;/p&gt;

&lt;table class="table table-striped"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&amp;nbsp;&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Last Month&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Last 12 Months&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Since Apr 2013&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Aggressive&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+3.4%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-5.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+90.2%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Growth&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+3.0%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-4.2%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+76.0%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Balanced&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+2.6%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-3.2%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+62.2%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Conservative&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+2.2%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-2.2%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+49.1%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Very Conservative&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+1.8%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-1.0%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+36.9%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;I&amp;#39;ve chosen to list below the performance of some of our competitors. For the sake of brevity, I&amp;#39;ve decided to show only those portfolios that have a similar risk profile to MoneyGeek&amp;#39;s Regular Aggressive portfolio.&lt;/p&gt;

&lt;table class="table table-striped"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&amp;nbsp;&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Last Month&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Last 12 Months&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Since Apr 2013&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;&lt;a href="https://www.theglobeandmail.com/investing/markets/funds/RBF187.CF/full-chart"&gt;RBC Select Aggressive Growth&lt;/a&gt;&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+2.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-0.7%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+40.6%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;&lt;a href="https://www.theglobeandmail.com/investing/markets/funds/TDB889.CF/"&gt;TD Comfort Aggressive Growth&lt;/a&gt;&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+2.3%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-7.0%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+36.9%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;&lt;a href="https://www.theglobeandmail.com/investing/markets/funds/CIB946.CF/full-chart"&gt;CIBC Managed Aggressive Growth&lt;/a&gt;&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+2.4%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+1.0%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+52.7%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Canadian Couch Potato Aggressive&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+2.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+6.7%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;N/A&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In contrast with our competitors, MoneyGeek&amp;rsquo;s Regular portfolios employ stocks/ETFs that follow the value investing strategy (QVAL, IVAL and BRK-B), and also allocate a larger percentage of the portfolios toward Canadian oil and gas stocks (XEG.TO) and gold (CGL-C.TO). If you would like to take a look at our portfolios, I invite you to sign up for our &lt;a href="https://www.moneygeek.ca/accounts/signup/regular/"&gt;free membership&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The Regular portfolios outperformed its competitors in June. QVAL went up by 6.1% during the month, beating the US stock market average which went up by 4.0%. Gold prices lent a helping hand as well, going up by 4.3%.&lt;/p&gt;

&lt;p&gt;Gold made headlines among financial publications for the first time in many years. After the 2009 to 2013 period in which some investors made &lt;a href="https://www.cnbc.com/2015/12/20/the-peter-meter-assessing-schiffs-predictions.html"&gt;overly optimistic predictions&lt;/a&gt;, the price of gold had stayed stuck in a range between $1,100 and $1,300 an ounce. Last month, however, gold broke out of that range, causing some investors to ask why.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://lh5.googleusercontent.com/8s6Ey_xjKKdCn3vlpxWiw8doEqjO3UOfCdnuHSjPbqwFT9c0_VP76ynLOwix4D9b-RT-JOd85ilA1YtRMKCFMBhxJ7uxYRjdimkvbvIjSTSCXV-KJrjroqwL9Aju2euy-6ClzWUy" style="height:309px; width:624px" /&gt;&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://goldprice.org/gold-price-history.html"&gt;https://goldprice.org/gold-price-history.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Different sets of factors drive gold&amp;rsquo;s long term and short term price movements. Of these, the long term movement is easier to understand, since it&amp;rsquo;s mainly driven by inflation.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;A piece of gold, once purchased, neither changes in size or quality. This is different from owning stock in a company, which has the potential to grow significantly. The price of gold could still increase significantly if demand for it continues to increase exponentially and/or supply decreases continuously. However, neither has been the case historically, and I fail to see how it would be different in the future. So barring any fundamental changes, gold prices will track inflation in the long term.&lt;/p&gt;

&lt;p&gt;The short term movement of gold, however, is trickier to understand. As I see it, there are two factors that drive gold prices, and they are flight to safety and low interest rates, which often go hand in hand.&lt;/p&gt;

&lt;p&gt;Historically speaking, gold enjoyed bumps up in prices when the world seemed close to a major war or a recession. People view gold as the ultimate store of value, and as a universal currency. This property of gold hit home for me when I read an anecdote of two commodity traders discussing what they&amp;rsquo;d prefer to own should world war 3 erupt.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The first trader asserted that he&amp;rsquo;d want to own oil. Waging a war is very energy intensive as tanks and airplanes guzzle oil, while the supply of oil may see disruptions. The second trader, however, said he&amp;rsquo;d rather own gold. The only reason the second trader was alive was because his grandparents escaped Nazi Germany by bribing soldiers with gold.&lt;/p&gt;

&lt;p&gt;Now, it&amp;rsquo;s hard for me to imagine the world descending into such chaos that I&amp;rsquo;d want to own physical gold to escape calamity. But some people do view the world through rather cynical lenses, and increasing talks of wars and recessions can stoke their cynicism. It would also be wrong of us to dismiss all pessimists&amp;rsquo; concerns out of hand. After all, no one knows the future, and most people were equally bewildered when the first world war erupted the way it did.&lt;/p&gt;

&lt;p&gt;The other short term factor that can push gold prices up is the prevalence of low interest rates. Sometimes, interest rates could be so low that investors become disinterested in putting money into bonds. Instead, they look for something - anything - that would generate better returns. Money tends to flow towards high risk, potentially high reward investments in such circumstances. In the past few years, the destination of this money were growth stocks (e.g. Uber) and cryptocurrencies. But gold also has the potential to be a similar destination, as was the case in 2012.&lt;/p&gt;

&lt;p&gt;Since interest rates tend to come down during recessions, you could argue that the two short term factors driving gold prices are linked. It therefore stands to reason that gold would do well if the world does slip into a recession soon, and vice versa.&lt;/p&gt;

&lt;p&gt;While no one knows for sure whether we&amp;rsquo;ll have a recession or not, most thoughtful investors would agree that the chance of having one seems high. That&amp;rsquo;s why I still choose to keep gold in MoneyGeek&amp;rsquo;s Regular portfolios, to act as a hedge in case stocks in the portfolios go down.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 01 Jul 2019 15:55:47 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/07/01/gold-moves-will-it-continue/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/gold-bullions.jpg" length="100000" type="image/jpeg"></enclosure><category>Gold</category></item><item><title>My TFSA Update May 2019 - The Final Article
</title><link>http://www.moneygeek.ca/weblog/2019/06/17/my-tfsa-update-may-2019-final-article/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/orchard.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/fotokostic"&gt;Fotokostic&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In this series, I (Jin Choi) talk about my journey of investing in my TFSA account. If you want to know what a TFSA is, I recommend you read &lt;a href="http://www.moneygeek.ca/book/"&gt;my free book&lt;/a&gt;. In this update, I&amp;rsquo;ll explain why I&amp;rsquo;m discontinuing this series, and how the content of this website will change in the future.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;h4&gt;May Results: Down 13.8%&lt;/h4&gt;

&lt;p&gt;At the end of May, I had $40,416 in my TFSA account, which is down by 13.8% since the end of last month. By comparison, the Canadian stock market went down by 3.3% while the U.S. stock market went down by 5.4% in Canadian dollar terms. Therefore, my portfolio underperformed.&lt;/p&gt;

&lt;p&gt;The majority of my portfolio consists of Canadian oil and gas stocks. Oil prices crashed in May, going from $63.83/bbl to $53.49/bbl (in US dollars). There is just one big reason for this crash. As I explained in &lt;a href="https://www.moneygeek.ca/weblog/2019/06/03/recession-coming-soon/"&gt;my previous article&lt;/a&gt;, global economic growth has slowed dramatically, to the point that we&amp;rsquo;re now teetering on the brink of a recession. Global oil demand has fallen as a result, bringing prices down with it.&lt;/p&gt;

&lt;p&gt;This latest stumble of my portfolio has forced me to think long and hard about my own investing acumen, and by extension the value I&amp;rsquo;m providing through this site in general.&lt;/p&gt;

&lt;p&gt;For a long time, I considered myself a good value investor. I&amp;rsquo;d always excelled in academics, particularly on subjects involving numbers. I also believed I had good business instincts, a belief which I&amp;rsquo;d say is supported by the fact that I&amp;rsquo;m currently running a growing business. However, as I read through Michael Lewis&amp;rsquo; excellent book called &amp;lsquo;&lt;a href="https://www.amazon.ca/Big-Short-Inside-Doomsday-Machine/dp/0393338827/ref=sr_1_1?gclid=EAIaIQobChMI942g5uTr4gIVF6rsCh1hag_FEAAYASAAEgLShPD_BwE&amp;amp;hvadid=230007508024&amp;amp;hvdev=c&amp;amp;hvlocphy=9001075&amp;amp;hvnetw=g&amp;amp;hvpos=1t1&amp;amp;hvqmt=e&amp;amp;hvrand=17178451260872770381&amp;amp;hvtargid=kwd-320586799594&amp;amp;hydadcr=22432_10105314&amp;amp;keywords=the+big+short+book&amp;amp;qid=1560612020&amp;amp;s=gateway&amp;amp;sr=8-1"&gt;The Big Short&lt;/a&gt;&amp;rsquo;, I&amp;rsquo;ve been convinced of the fact that in addition to intelligence, you need a specific temperament to succeed as a value investor, a temperament that I don&amp;rsquo;t possess.&lt;/p&gt;

&lt;p&gt;The Big Short tells the story of several money managers who foresaw the collapse of the subprime bubble and profited from it. Although these managers had very different backgrounds, they all had one thing in common: they dug deeper into research than any of their peers. Michael Burry read legal documents that nobody else bothered to read. The principals at Cornwall Capital didn&amp;rsquo;t make huge bets until they spoke to everyone who could possibly tell them they were wrong.&lt;/p&gt;

&lt;p&gt;If I&amp;rsquo;m honest with myself, I simply don&amp;rsquo;t have the patience or the interest to conduct such deep dive research. Rather, I&amp;rsquo;m motivated by ideas, and predisposed to building stuff. I think up new ideas for a web tool or a research project, and start coding before the ideas are fully formed.&lt;/p&gt;

&lt;p&gt;Now, this doesn&amp;rsquo;t mean I&amp;rsquo;m doomed to fail at investing. Rather, it means that I need to concentrate on a style that works for me.&lt;/p&gt;

&lt;p&gt;The investing style exhibited by the heroes in the The Big Short is called fundamental analysis. This style of investing requires an investor to focus on only a few ideas at a time, and since such investors don&amp;rsquo;t have the capacity to analyze every idea deeply, they generally end up with concentrated portfolios.&lt;/p&gt;

&lt;p&gt;A good analogy would be that of picking apples in an orchard. A fundamental analyst would inspect each apple carefully before putting it into his basket. While there&amp;rsquo;s a higher chance that the apples in his or her basket are good, the basket would generally contain only a few apples.&lt;/p&gt;

&lt;p&gt;On the other hand, there is an equally effective style of investing called quantitative analysis. This style of investing makes heavy use of statistics to analyze all companies at once, assigning ratings to each company. Investors who employ this style would then take some number of highly rated stocks and put them in portfolios. While investors wouldn&amp;rsquo;t place great conviction in any one company, they&amp;rsquo;d be confident that the companies they&amp;rsquo;ve chosen would be good overall.&lt;/p&gt;

&lt;p&gt;In the orchard analogy, quantitative analysts would be like those who pick apples based on a set of well defined criteria, such as size and colour. Because the apple picker only cares about such limited set of criteria, he&amp;rsquo;d fill the basket a lot quicker, but he risks having some bad apples thrown in the basket. Both fundamental and quantitative styles have merit - you generally get better quality with the former, and more quantity with the latter.&lt;/p&gt;

&lt;p&gt;Given my skill set and temperament, it&amp;rsquo;s clear to me that I&amp;rsquo;m more suited toward the quantitative style of investing rather than the fundamental. It&amp;rsquo;s a shame because I still hold some romance towards the fundamental style, which is probably why it&amp;rsquo;s taken me so long to come to this realization. But now that I&amp;rsquo;ve come to the realization, I&amp;rsquo;ve decided to change not just my investing style with my own money, but the orientation of this site as well.&lt;/p&gt;

&lt;p&gt;Starting next month, I will discontinue &amp;lsquo;My TFSA&amp;rsquo; series. Instead, I will start writing about the machine learning model that my company has been hard at work on. I will begin by giving a high level overview of the machine learning paradigm, and go on to discuss specific features and techniques we employ in our models.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m excited about this new direction, because I feel that we&amp;rsquo;ll be offering something truly unique. There are a good number of quantitative investing blogs out there, but none that I know of that focus purely on machine learning. Most quantitative analysts still rely on more basic statistical tools such as linear regression. But having worked on machine learning models, I know that machine learning can add a lot of value that these basic statistical tools can&amp;rsquo;t.&lt;/p&gt;

&lt;p&gt;If you&amp;rsquo;re wondering about MoneyGeek&amp;rsquo;s portfolios, I don&amp;rsquo;t anticipate any major changes for now. I will continue to write about them, but I will perhaps put more emphasis on including ETFs with quantitative strategies in the portfolios.&lt;/p&gt;

&lt;p&gt;Writing about my failures managing my TFSA account has not been fun. I&amp;rsquo;m also not convinced that it was the best material to write about from the reader&amp;rsquo;s perspective. I therefore look forward to putting this behind me, and start providing better value for your time.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 17 Jun 2019 20:35:17 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/06/17/my-tfsa-update-may-2019-final-article/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/orchard.jpg" length="100000" type="image/jpeg"></enclosure><category>Jin's TFSA Updates</category></item><item><title>Is A Recession Coming Soon?
</title><link>http://www.moneygeek.ca/weblog/2019/06/03/recession-coming-soon/</link><description>
&lt;p&gt;&lt;img alt="" src="https://s3.amazonaws.com/MoneyGeek/Images/2019/car-manufacturing.jpg" style="width:100%" /&gt;&lt;/p&gt;

&lt;p&gt;Image Credit:&amp;nbsp;&lt;a href="https://www.shutterstock.com/g/xieyuliang"&gt;Jenson&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://www.shutterstock.com/editorial?cr=00&amp;amp;pl=edit-00"&gt;Shutterstock.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;At the beginning of every month, I brief members on how MoneyGeek&amp;#39;s Regular portfolios have performed and comment on the state of the financial markets. In this update, I&amp;rsquo;ll also talk about some economic indicators that point to a weakening global economy.&lt;/p&gt;

&lt;h4&gt;May Performance of Regular Portfolios&lt;/h4&gt;

&lt;p&gt;The performance of MoneyGeek&amp;#39;s Regular portfolios for the month of May 2019 were as follows:&lt;/p&gt;

&lt;table class="table table-striped"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&amp;nbsp;&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Last Month&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Last 12 Months&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Since Apr 2013&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Aggressive&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-8.9%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-7.9%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+84.0%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Growth&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-7.8%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-6.4%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+70.9%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Balanced&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-6.7%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-5.1%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+58.1%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Conservative&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-5.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-3.8%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+45.9%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Very Conservative&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-4.4%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-2.4%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+34.5%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;I&amp;#39;ve chosen to list below the performance of some of our competitors. For the sake of brevity, I&amp;#39;ve decided to show only those portfolios that have a similar risk profile to MoneyGeek&amp;#39;s Regular Aggressive portfolio.&lt;/p&gt;

&lt;table class="table table-striped"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&amp;nbsp;&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Last Month&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Last 12 Months&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Since Apr 2013&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;&lt;a href="https://www.theglobeandmail.com/investing/markets/funds/RBF187.CF/full-chart"&gt;RBC Select Aggressive Growth&lt;/a&gt;&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-4.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-2.3%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+37.1%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;&lt;a href="https://www.theglobeandmail.com/investing/markets/funds/TDB889.CF/"&gt;TD Comfort Aggressive Growth&lt;/a&gt;&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-3.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-8.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+33.8%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;&lt;a href="https://www.theglobeandmail.com/investing/markets/funds/CIB946.CF/full-chart"&gt;CIBC Managed Aggressive Growth&lt;/a&gt;&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-3.3%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-0.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+49.1%&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;p&gt;Canadian Couch Potato Aggressive&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;-4.0%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;+5.5%&lt;/p&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;N/A&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In contrast with our competitors, MoneyGeek&amp;rsquo;s Regular portfolios employ stocks/ETFs that follow the value investing strategy (QVAL, IVAL and BRK-B), and also allocate a larger percentage of the portfolios toward Canadian oil and gas stocks (XEG.TO) and gold (CGL-C.TO). If you would like to take a look at our portfolios, I invite you to sign up for our &lt;a href="https://www.moneygeek.ca/accounts/signup/regular/"&gt;free membership&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Regular portfolios heavily underperformed our competitors in May. Funds containing value stocks were largely to blame, as QVAL, IVAL and XEG went down by 13.1%, 11.1% and 11.7% respectively. Although gold prices went up, the increase was not nearly enough to offset the damage wrought by the value funds.&lt;/p&gt;

&lt;p&gt;The broader stock market also declined in May, although not by as much. In Canadian dollar terms, the S&amp;amp;P 500 (the US stock market benchmark) declined by 5.6%, while the TSX Composite (the Canadian stock market benchmark) fell by 3.3%. I believe value stocks underperformed because investors are choosing to dump the losers in the portfolios while keeping the winners. Indeed, momentum funds like &lt;a href="https://finance.yahoo.com/quote/QMOM?p=QMOM"&gt;QMOM&lt;/a&gt; held up well last month.&lt;/p&gt;

&lt;p&gt;It&amp;rsquo;s hard to say when value stocks will stop underperforming relative to the rest of the stock market. However, I still strongly believe that value investing&amp;rsquo;s day will come. By investing in value stocks, we are implicitly saying that we prefer companies that are generating cash today. The investing public, on the other hand, seems to be saying it prefers companies that are predicted to gain big in the future, even if that prediction is highly uncertain. For example, Beyond Meat, a company that generated just $88 million in revenue last year, went up by 58% last month to be valued at $6 billion. Companies rarely live up to such lofty expectations.&lt;/p&gt;

&lt;p&gt;It will be interesting to see how such companies fare in the coming economic environment. A lot of warning signs are currently flashing that suggest we may be entering a recession. Let me show a few data points that suggest this is so.&lt;/p&gt;

&lt;p&gt;Let&amp;rsquo;s start with China. One measure that&amp;rsquo;s highly correlated with economic growth is diesel consumption, since it&amp;rsquo;s used heavily to move goods and people via trucks and trains. Unfortunately, Chinese diesel consumption has dropped dramatically in &lt;a href="https://www.cnbc.com/2019/05/28/falling-diesel-fuel-demand-in-china-paints-bleak-picture.html"&gt;March and April&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The official Chinese Purchasing Manager Index (PMI) tells a similar story. The PMI is a gauge that tells whether companies are seeing improvements in their businesses, and is an important leading indicator of economic growth. As &lt;a href="https://www.ft.com/content/0c7beb6c-833e-11e9-b592-5fe435b57a3b"&gt;this article&lt;/a&gt; shows, the Chinese PMI has been trending down since late last year.&lt;/p&gt;

&lt;p&gt;European PMI is not looking good either. As &lt;a href="https://www.bloomberg.com/graphics/global-pmi-tracker/"&gt;this link&lt;/a&gt; shows, European countries registered very high PMIs in the beginning of last year. But the PMI numbers have deteriorated steadily since, and as of the latest data points, many countries are reporting PMIs low enough to indicate economic contractions.&lt;/p&gt;

&lt;p&gt;Finally, it appears that even the US economy is slowing down. During the past couple of years, the US proved to be a particularly bright spot in the global economy. Unfortunately, multiple leading economic indicators suggest the growth might be coming to an end.&lt;/p&gt;

&lt;br/&gt;

&lt;blockquote class="twitter-tweet"&gt;&lt;p lang="en" dir="ltr"&gt;US growth has completely rolled over.... &lt;a href="https://t.co/JikUBOdhBD"&gt;pic.twitter.com/JikUBOdhBD&lt;/a&gt;&lt;/p&gt;&amp;mdash; THE LONG VIEW ⚫️ (@HayekAndKeynes) &lt;a href="https://twitter.com/HayekAndKeynes/status/1134979192326672385?ref_src=twsrc%5Etfw"&gt;June 2, 2019&lt;/a&gt;&lt;/blockquote&gt; &lt;script async src="https://platform.twitter.com/widgets.js" charset="utf-8"&gt;&lt;/script&gt;

&lt;br/&gt;

&lt;p&gt;The latest economic data points are making investors more wary. In a &lt;a href="https://www.moneygeek.ca/weblog/2018/05/07/yield-curve-flattening-and-its-making-some-investors-nervous/"&gt;previous article&lt;/a&gt;, I explained how the &amp;ldquo;yield curve&amp;rdquo; tends to invert when investors think a recession is coming. That is, long term interest rates tend to fall below short term interest rates. Not only is the yield curve inverted today, but the curve has been &lt;a href="https://stockcharts.com/freecharts/yieldcurve.php"&gt;getting steeper as well&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It has been about ten years since the world last experienced a recession. I&amp;rsquo;m fairly convinced that we&amp;rsquo;re about to see another recession soon, in part because I believe we&amp;#39;re due for one. &lt;a href="https://www.osam.com/pdfs/whitepapers/_8_Commentary_TheEconomicCycle-AFactorInvestorsPerspective_May-2016.pdf"&gt;Historically&lt;/a&gt;, value stocks have tended to outperform growth stocks during recessions. I hope that will be the case again, so that MoneyGeek&amp;rsquo;s portfolios will start to outperform its competitors once again.&lt;/p&gt;
</description><author>jin.choi@moneygeek.ca (Jin Won Choi)</author><pubDate>Mon, 03 Jun 2019 09:23:04 -0500</pubDate><guid>http://www.moneygeek.ca/weblog/2019/06/03/recession-coming-soon/</guid><enclosure url="http://s3.amazonaws.com/MoneyGeek/Images/2019/car-manufacturing.jpg" length="100000" type="image/jpeg"></enclosure><category>Economy</category></item></channel></rss>