{"id":5657,"date":"2020-01-10T11:13:40","date_gmt":"2020-01-10T10:13:40","guid":{"rendered":"https:\/\/quantpedia.com\/?p=5657"},"modified":"2025-06-04T14:29:27","modified_gmt":"2025-06-04T12:29:27","slug":"the-cape-ratio-and-machine-learning","status":"publish","type":"post","link":"https:\/\/vvv.quantpedia.com\/es\/the-cape-ratio-and-machine-learning\/","title":{"rendered":"The CAPE Ratio and Machine Learning"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Professor Robert Shiller&#8217;s work and his famous CAPE (cyclically-adjusted price-to-earnings) ratio is well known among the investment community. His methodology for assessing a valuation of the U.S. equity market is not the first one but is surely the most cited and the most discussed. There are numerous papers that tweak or adjust Shiller&#8217;s methodology to assess better if U.S. equities are under- or over-valued. We recommend the work of Wang, Ahluwalia, Aliaga-Diaz, and Davis (all from The Vanguard Group ) in which they use a combination of <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/strategy-tags\/machine-learning\/\" target=\"_blank\" rel=\"noreferrer noopener\">machine learning<\/a> and a regression-based approach to obtain forecasted CAPE ratio, and subsequently, U.S. stock market returns, more accurately. <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Authors:<\/strong> Wang, Ahluwalia, Aliaga-Diaz, Davis<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Title: <\/strong>The Best of Both Worlds: Forecasting US Equity Market Returns using a Hybrid Machine Learning \u2013 Time Series Approach<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Link<\/strong>: <a href=\"https:\/\/papers.ssrn.com\/sol3\/papers.cfm?abstract_id=3497170\">https:\/\/papers.ssrn.com\/sol3\/papers.cfm?abstract_id=3497170<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Abstract:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Predicting long-term equity market returns is of great importance for  investors to strategically allocate their assets. We apply machine  learning methods to forecast 10-year-ahead U.S. stock returns and  compare the results to traditional Shiller regression-based forecasts  more commonly used in the asset-management industry. Machine-learning  forecasts have similar forecast errors to a traditional return forecast  model based on lagged CAPE ratios. However, machine-learning forecasts  have higher forecast errors than the regression-based, two-step approach  of Davis et al [2018] that forecasts the CAPE ratio based on  macroeconomic variables and then imputes stock returns. When we combine  our two-step approach with machine learning to forecast CAPE ratios (a  hybrid ML-VAR approach), U.S. stock return forecasts are statistically  and economically more accurate than all other approaches. We discuss why  and conclude with some best practices for both data scientists and  economists in making real-world investment return forecasts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Notable quotations from the academic research paper:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8221; A high CAPE ratio has been associated with below average 10-year-ahead U.S. stock returns and vice-versa. Typically, researchers express this relationship in terms of a linear regression (Shiller\u2019s regression) of 10-year-ahead equity returns on the beginning period\u2019s CAPE ratio. However, the accuracy of the Shiller regression has deteriorated since the 2000s. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2020\/01\/Untitled-244-The-CAPE-Ratios-Preditive-Power-has-diminished.jpg\" alt=\"\" class=\"wp-image-5658\" width=\"532\" height=\"325\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-244-The-CAPE-Ratios-Preditive-Power-has-diminished.jpg 709w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-244-The-CAPE-Ratios-Preditive-Power-has-diminished-300x183.jpg 300w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/figure>\n\n\n\n<table style=\"height: 10px; width: 99.99999999999999%; border-collapse: collapse; background-color: #bdced5; border-color: #bdced5; border-style: solid;\" border=\"10\">\n<tbody>\n<tr style=\"height: 43px;\">\n<td style=\"width: 570px; text-align: center; height: 10px;\"><span style=\"font-size: inherit; font-family: inherit;\"><span style=\"font-size: inherit; font-family: inherit;\"><a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/links-tools\/?category=algo-trading-discounts\"><strong style=\"font-size: inherit; font-family: inherit;\">Algo Trading Promo Codes<\/strong><\/a><span style=\"font-size: inherit; font-family: inherit;\"> are available exclusively for Quantpedia\u2019s readers.<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">We extend the Shiller univariate regression to a multivariate regression, including CAPE, real interest rates, inflation, measures of financial volatility, stock variance, Treasury bill rates, the default yield spread, and the default return spread. We use 10-year ahead return as the predicted variable (Equation 2). Put simply, we attempt to forecast returns directly, just like the Shiller regression, but add a few important economic and market variables to the regression.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2020\/01\/Untitled-245-Regression-approach-to-predict-CAPE-ratio.jpg\" alt=\"\" class=\"wp-image-5659\" width=\"604\" height=\"329\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-245-Regression-approach-to-predict-CAPE-ratio.jpg 805w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-245-Regression-approach-to-predict-CAPE-ratio-300x164.jpg 300w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Exhibit 3 shows that the out-of-sample RMSE of the multiple regression comes out to be 6.6% while that of a na\u00efve historical average forecast is 5.7%. Thus adding other important variables to a regression alone does not improve the forecasts. We directly forecast returns using ML algorithms, based on the same predictors. Exhibit 3 shows that none of the individual models are statistically better than the na\u00efve historical average forecast. Put another way, real-time investors would have been better served using the historical average return as the baseline for future stock returns. Strikingly, only some ML methods demonstrated a small edge in predictive power over the linear regression. GRU performed particularly poorly in terms of RMSE. Despite the poor predictive power of individual models, we find an equally weighted combination of the all the ML model forecasts (Ensemble 1) and a combination of all the ML models and the traditional multiple regression (Ensemble 2) show a modest statistical improvement over the na\u00efve forecast.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2020\/01\/Untitled-246-Regression-ML-approaches-to-CAPE.jpg\" alt=\"\" class=\"wp-image-5660\" width=\"599\" height=\"358\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-246-Regression-ML-approaches-to-CAPE.jpg 799w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-246-Regression-ML-approaches-to-CAPE-300x179.jpg 300w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2020\/01\/Untitled-247-Ensemble-approach.jpg\" alt=\"\" class=\"wp-image-5661\" width=\"527\" height=\"345\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-247-Ensemble-approach.jpg 702w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-247-Ensemble-approach-300x197.jpg 300w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To address some of the potential issues regarding Shiller Regression discussed in the previous sections, Davis et al [2018] propose a two-step framework to forecast long-run equity market returns. The two-step approach is based on a VAR model to forecast the inverse of the CAPE ratio itself as the first step and to impute returns from the CAPE ratio in the second. More specifically, step one estimates a VAR model with 12 monthly lags of 1\/CAPE, real 10-year bond yields, CPI inflation rate, realized S&amp;P500 price volatility, and realized volatility of changes in real bond yield. In the second step, stock returns are imputed as a sum of three parts: valuation expansion; earnings growth; and dividend yield. At any one point in time, the VAR forecasts the CAPE earnings yields out for 10 years, and step two derives the expected future 10-year-ahead return on U.S. stocks.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2020\/01\/Untitled-247-Two-step-regression-and-CAPE.jpg\" alt=\"\" class=\"wp-image-5662\" width=\"561\" height=\"353\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-247-Two-step-regression-and-CAPE.jpg 748w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-247-Two-step-regression-and-CAPE-300x189.jpg 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Building on the two-step framework above, we propose a refined framework that integrates ML methods with VAR to forecast the inverse of CAPE ratio. Importantly, we replace the linear core within the VAR with ML and forecast 1\/CAPE, inflation, real yields, equity volatility, and bond volatility dynamically in a vector. We then use the same sum-of-parts identity used in Davis et al [2018]. The result is shown in Exhibit 6. The right column shows that all ML-VAR methods demonstrate remarkable improvement and have statistically lower average errors than the na\u00efve historical average forecast. The ML-VAR methods also have lower forecast errors than the original two-step approach. We see the highest improvement (RMSE drops the most) in GRU where the RMSE improves to 2.6%. The RMSE of Ensemble 1 (2.6%) is marginally lower than GRU and that of Ensemble 2 (2.8%) closely trail GRU. More important, applying the robust two-step framework with ML algorithms drastically improves the forecast accuracy of all non-linear ML techniques relative to the forecasts from those same ML techniques used without the two step framework<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2020\/01\/Untitled-248-Two-step-ML-regression-and-CAPE.jpg\" alt=\"\" class=\"wp-image-5663\" width=\"599\" height=\"352\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-248-Two-step-ML-regression-and-CAPE.jpg 799w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-248-Two-step-ML-regression-and-CAPE-300x176.jpg 300w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"339\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2020\/01\/Untitled-249-Two-step-ML-regression-and-CAPE-results-a.jpg\" alt=\"\" class=\"wp-image-5664\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-249-Two-step-ML-regression-and-CAPE-results-a.jpg 541w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-249-Two-step-ML-regression-and-CAPE-results-a-300x188.jpg 300w\" sizes=\"(max-width: 541px) 100vw, 541px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"345\" src=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/wp-content\/uploads\/2020\/01\/Untitled-250-Two-step-ML-regression-and-CAPE-results-b.jpg\" alt=\"\" class=\"wp-image-5665\" srcset=\"https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-250-Two-step-ML-regression-and-CAPE-results-b.jpg 556w, https:\/\/vvv.quantpedia.com\/wp-content\/uploads\/2020\/01\/Untitled-250-Two-step-ML-regression-and-CAPE-results-b-300x186.jpg 300w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-854363cc-8450-4dc0-a06a-c737766e9431\"><strong>Are you looking for more strategies to read about? <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/sign-up-for-our-newsletter\/\">Sign up for our newsletter<\/a> or visit our <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/blog\/\">Blog<\/a> or <a href=\"http:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/Screener\">Screener<\/a><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-65925002-6290-4d3b-b5cd-f3a277851ec8\"><strong>Do you want to learn more about Quantpedia Premium service? Check <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/\">how Quantpedia works<\/a>, <a href=\"http:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/Home\/About\">our mission<\/a> and <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/pricing\/\">Premium pricing offer<\/a>.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-34bf63ae-5a22-40a3-aeb4-769374e833d8\"><strong>Do you want to learn more about Quantpedia Pro service? Check its <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/quantpedia-pro\/\">description<\/a>, watch <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/quantpedia-explains\/\">videos<\/a>, review <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/how-it-works\/quantpedia-pro-reports\/\">reporting capabilities<\/a> and visit our <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/pricing-pro\/\">pricing offer<\/a>.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-21942b3a-14d9-4c0f-b8ef-04d64675e253\"><strong>Are you looking for historical data or backtesting platforms? Check our list of&nbsp;<a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/links-tools\/?category=algo-trading-discounts\">Algo Trading Discounts<\/a><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Would you like free access to <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/pricing\/\" title=\"\">our services<\/a>? Then, <a href=\"https:\/\/lightspeed.com\/lp\/quantpedia-lightspeed-financial-services-group-one-free-year-promotion\" title=\"\">open an account with Lightspeed<\/a> and enjoy one year of Quantpedia Premium at no cost.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-4c45d6c9-c8dd-4283-8743-bf573cfa4d45\"><strong>Or follow us on:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"block-476e95ed-31a5-4c4d-b701-5203f9fb2e24\"><strong>Facebook <a href=\"https:\/\/www.facebook.com\/groups\/quantstrategies\">Group<\/a>, Facebook <a href=\"https:\/\/www.facebook.com\/quantpedia\/\">Page<\/a>, <a href=\"https:\/\/twitter.com\/quantpedia\">Twitter<\/a>, <a href=\"https:\/\/www.linkedin.com\/company\/quantpedia\">Linkedin<\/a>, <a href=\"https:\/\/quantpedia.medium.com\/\">Medium<\/a> or <a href=\"https:\/\/www.youtube.com\/channel\/UC_YubnldxzNjLkIkEoL-FXg\">Youtube<\/a><\/strong><\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p><strong>Professor Robert Shiller&#8217;s work and his famous CAPE (cyclically-adjusted price-to-earnings) ratio is well known among the investment community. His methodology for assessing a valuation of the U.S. equity market is not the first one but is surely the most cited and the most discussed. There are numerous papers that tweak or adjust Shiller&#8217;s methodology to assess better if U.S. equities are under- or over-valued. We recommend the work of Wang, Ahluwalia, Aliaga-Diaz, and Davis (all from The Vanguard Group ) in which they use a combination of <a href=\"https:\/\/\\\/\\\/new-fmhwbzh6ghd9hede.swedencentral-01.azurewebsites.net\/strategy-tags\/machine-learning\/\"><strong>machine learning<\/strong><\/a> and a regression-based approach to obtain forecasted CAPE ratio, and subsequently, U.S. stock market returns, more accurately. <\/strong><\/p>\n<p><strong>Authors:<\/strong> Wang, Ahluwalia, Aliaga-Diaz, Davis<\/p>\n<p><strong>Title: <\/strong>The Best of Both Worlds: Forecasting US Equity Market Returns using a Hybrid Machine Learning \u2013 Time Series Approach<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[47,60,148],"class_list":["post-5657","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-asset-class-picking","tag-equity-long-short","tag-machine-learning"],"_links":{"self":[{"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/posts\/5657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/comments?post=5657"}],"version-history":[{"count":0,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/posts\/5657\/revisions"}],"wp:attachment":[{"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/media?parent=5657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/categories?post=5657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vvv.quantpedia.com\/es\/wp-json\/wp\/v2\/tags?post=5657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}