{"id":1145,"date":"2016-10-22T08:22:32","date_gmt":"2016-10-22T08:22:32","guid":{"rendered":"http:\/\/kourentzes.com\/forecasting\/?p=1145"},"modified":"2016-10-22T16:11:02","modified_gmt":"2016-10-22T16:11:02","slug":"complex-exponential-smoothing","status":"publish","type":"post","link":"https:\/\/kourentzes.com\/forecasting\/2016\/10\/22\/complex-exponential-smoothing\/","title":{"rendered":"Complex Exponential Smoothing"},"content":{"rendered":"<p style=\"text-align: justify;\">A couple of days ago my ex-student Ivan Svetunkov successfully defended his PhD. My thanks to both Siem Jan Koopman and Rebecca Killick who were his examiners and with their questions\u00a0 led to a very interesting discussion.<\/p>\n<p style=\"text-align: justify;\">Ivan&#8217;s PhD topic is a new model, the Complex Exponential Smoothing (CES). In this post I will very briefly demonstrate the key advantages of the proposed model over conventional exponential smoothing. I will not go into the mathematical details, which can be found in detail in this <a href=\"https:\/\/ideas.repec.org\/p\/pra\/mprapa\/69394.html\" target=\"_blank\">working paper<\/a>. Furthermore, a CES implementation is available in the <a href=\"https:\/\/cran.r-project.org\/web\/packages\/smooth\/index.html\" target=\"_blank\"><code>smooth<\/code><\/a> package for R.<\/p>\n<p style=\"text-align: justify;\">One of the motivating ideas behind CES is that recent research has demonstrated that the standard forms of exponential smoothing may not be able to capture all the patterns observed in real time series. In particular, the interpretation of the level and trend components, once one goes in the details, is elusive and arguably the distinction is ad-hoc, perhaps leading to more modelling woes than what it solves. Instead, CES avoids this separation, and introduces a new flexible component that captures various types of information, beyond the level component, as necessary to achieve good fit to the given data.<\/p>\n<p style=\"text-align: justify;\">Effectively, CES is able to model a wide spectum of level and trend time series, without requiring to switch between different models, as is the case for exponential smoothing. CES is able to model both stationary and non-stationary in the mean time series, whereas exponential smoothing is capable of modelling only non-stationary ones. Because CES does not switch between level and trend models, but smoothly &#8220;slides&#8221; between the two types, not only it captures more behaviours, but also avoids any abrupt changes in successive forecasts of a time series. For example, as new data become available and new forecasts are generated, a different form of exponential smoothing may become optimal, for instance using Akaike Information Criterion, and new forecasts may become substantially different. In turn, this may cause issues for the users of the forecasts, as they become very erratic. The Multiple Prediction Aggregation Algorithm (<a href=\"http:\/\/kourentzes.com\/forecasting\/2014\/04\/19\/improving-forecasting-by-estimating-time-series-structural-components-across-multiple-frequencies\/\">MAPA<\/a>) addressed this by strengthening the identification and estimation of exponential smoothing, but at the cost of multiple model fits. CES does that by proposing an alternative the modelling series as if they are separable into level and trend components.<\/p>\n<p style=\"text-align: justify;\">The following example illustrates the point. I have simulated a simple exponential smoothing (level) and a Holt linear trend exponential smoothing (trend)\u00a0 time series. Both time series are 8 years long (96 monthly observations). For the last 4 years I perform a rolling origin evaluation experiment. At each forecast origin models are optimised and appropriate forecasts are produced. The fitting sample is extended by one observation and the process is repeated, until there is no remaining sample. At minimum 4 years of data are used to fit the first batch of models. Fig. 1 and Fig. 2 visualise the process for the level and trend series respectively.<\/p>\n<div id=\"attachment_1147\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_level.png\"><img aria-describedby=\"caption-attachment-1147\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-1147\" src=\"http:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_level.png\" alt=\"ces_level\" width=\"500\" height=\"250\" srcset=\"https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_level.png 1000w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_level-150x75.png 150w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_level-300x150.png 300w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_level-768x384.png 768w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_level-660x330.png 660w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><p id=\"caption-attachment-1147\" class=\"wp-caption-text\">Fig. 1: CES and ETS rolling forecasts on test set for the level time series.<\/p><\/div>\n<div id=\"attachment_1148\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_trend.png\"><img aria-describedby=\"caption-attachment-1148\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-1148\" src=\"http:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_trend.png\" alt=\"ces_trend\" width=\"500\" height=\"250\" srcset=\"https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_trend.png 1000w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_trend-150x75.png 150w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_trend-300x150.png 300w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_trend-768x384.png 768w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_trend-660x330.png 660w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><p id=\"caption-attachment-1148\" class=\"wp-caption-text\">Fig. 2: CES and ETS rolling forecasts on test set for the trend time series.<\/p><\/div>\n<p style=\"text-align: justify;\">Observe the erratic changes in the forecasts in the ETS case. These are caused by switching between level and trend models, which are not always correctly identified. For the level series the misspecification occurs 32% of the times, whereas for the trend series 24%. The figures provide the avergae Mean Absolute Error (MAE) across forecast origins, showing that CES is more accurate. Of course, these are just two examples, and I refer you to the working paper for a more rigorous evaluation of CES.<\/p>\n<p style=\"text-align: justify;\">An advantage of CES is that it sidesteps model selection. The same model is adequate for both level and trend series. This is not possible with conventional time series models. We argue that this simplifies the forecasting process substantially, both in terms of complexity and computational requirements. Fig. 3 illustrates the point by providing the total computation time for each example above. ETS requires substantially more time, as 19 different models are trialed at each forecast origin.<\/p>\n<div id=\"attachment_1150\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_time.png\"><img aria-describedby=\"caption-attachment-1150\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-1150 size-medium\" src=\"http:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_time-300x300.png\" alt=\"ces_time\" width=\"300\" height=\"300\" srcset=\"https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_time-300x300.png 300w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_time-150x150.png 150w, https:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2016\/10\/ces_time.png 500w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-1150\" class=\"wp-caption-text\">Fig. 3: Total computation time for each example.<\/p><\/div>\n<p style=\"text-align: justify;\">Ivan looked into the properties of the basic CES model, deriving likelihood, parameter bounds and variance expressions. He then proceeded to extend the model to the seasonal case. The conventional repertoire of series that exponential smoothing models is tackled by only two variants of CES: non-seasonal and seasonal, retaining the model selection challenge relatively simple. Obviously, we do not claim dominance of CES over ETS in every case, but the empirical results are favourable to CES, especially when the qualitative elements of the comparison (simplified or no model selection) are considered. Detailed results are descriptions are in two papers currently under review, which I hope I will be able to post here soon. Meanwhile there are two presentations by Ivan that you may find helpful about <a href=\"http:\/\/forecasting.svetunkov.ru\/en\/2015\/03\/18\/presentation-on-management-science-seminar-at-lancaster-university\/\" target=\"_blank\">CES<\/a> and <a href=\"http:\/\/forecasting.svetunkov.ru\/en\/2015\/06\/25\/international-symposium-on-forecasting-2015-2\/\" target=\"_blank\">seasonal CES<\/a>.<\/p>\n<p>If you want to trial CES for yourselves, I recommend you to explore the <a href=\"https:\/\/cran.r-project.org\/web\/packages\/smooth\/index.html\" target=\"_blank\"><code>smooth<\/code><\/a> package for R that is available on CRAN.<\/p>\n<p>Finally, let me congratulate <a href=\"http:\/\/forecasting.svetunkov.ru\/en\/\" target=\"_blank\">Ivan<\/a> for successfully defending his PhD!<\/p>\n<div class=\"SPOSTARBUST-Related-Posts\"><H3>Related Posts<\/H3><ul class=\"entry-meta\"><li class=\"SPOSTARBUST-Related-Post\"><a title=\"Automatic robust estimation for exponential smoothing: perspectives from statistics and machine learning\" href=\"https:\/\/kourentzes.com\/forecasting\/2020\/06\/04\/automatic-robust-estimation-for-exponential-smoothing-perspectives-from-statistics-and-machine-learning\/\" rel=\"bookmark\">Automatic robust estimation for exponential smoothing: perspectives from statistics and machine learning<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Elucidate structure in intermittent demand time series\" href=\"https:\/\/kourentzes.com\/forecasting\/2020\/05\/25\/elucidate-structure-in-intermittent-demand-time-series\/\" rel=\"bookmark\">Elucidate structure in intermittent demand time series<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Optimising forecasting models for inventory planning\" href=\"https:\/\/kourentzes.com\/forecasting\/2020\/05\/25\/optimising-forecasting-models-for-inventory-planning\/\" rel=\"bookmark\">Optimising forecasting models for inventory planning<\/a><\/li>\n<\/ul><\/div><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>A couple of days ago my ex-student Ivan Svetunkov successfully defended his PhD. My thanks to both Siem Jan Koopman and Rebecca Killick who were his examiners and with their questions\u00a0 led to a very interesting discussion. Ivan&#8217;s PhD topic is a new model, the Complex Exponential Smoothing (CES). In this post I will very\u2026 <span class=\"read-more\"><a href=\"https:\/\/kourentzes.com\/forecasting\/2016\/10\/22\/complex-exponential-smoothing\/\">Read More &raquo;<\/a><\/span><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[14,32,43],"_links":{"self":[{"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/posts\/1145"}],"collection":[{"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/comments?post=1145"}],"version-history":[{"count":0,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/posts\/1145\/revisions"}],"wp:attachment":[{"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/media?parent=1145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/categories?post=1145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/tags?post=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->