{"id":2107,"date":"2021-05-05T10:46:06","date_gmt":"2021-05-05T10:46:06","guid":{"rendered":"https:\/\/enorcerna.com\/wiki\/definition\/autoregression\/"},"modified":"2021-05-05T10:46:06","modified_gmt":"2021-05-05T10:46:06","slug":"autoregression","status":"publish","type":"post","link":"https:\/\/enorcerna.com\/wiki\/definition\/autoregression\/","title":{"rendered":"Autoregression"},"content":{"rendered":"<div>\n<p>\n<span itemprop=\"description\"><strong>Autoregression models are used to make forecasts on ex-post variables (observations that we fully know their value) at certain moments in time, normally ordered chronologically. <\/strong><\/span><\/p>\n<p><span id=\"more-51520\"\/><\/p>\n<p>Autoregressive models, as their name suggests, are models that turn back on themselves.  That is, the dependent variable and the explanatory variable are the same with the difference that the dependent variable will be at a later point in time <\/p>\n<p>We say chronologically ordered because we are currently at the moment <\/p>\n<p>Since we want to make a projection, the dependent variable must always be at least in a more advanced period of time than that of the independent variable.  When we want to make projections using autoregression, our attention must focus on the type of variable, the frequency of its observations, and the time horizon of the projection. <\/p>\n<h2>AR (p)<\/h2>\n<p>They are popularly known as AR (p), where p receives the 'order' label and is equivalent to the number of periods which we are going to go back to carry out the forecast of our variable.  We have to take into account that the more periods we go back or the more orders we assign to the model, the more potential information will appear in our forecast. <\/p>\n<p>In real life we \u200b\u200bfind forecasts through autoregression in the sales projection of a company, forecast on GDP growth of a country, forecast on budget and treasury, etc. <\/p>\n<h2>Estimation and forecast: result and error<\/h2>\n<p>The majority of the population associates forecasts with the Ordinary Least Squares (OLS) method and the forecast error with OLS residuals.  This confusion can cause serious problems when we synthesize the information provided by the regression lines. <\/p>\n<p>Difference in result: <\/p>\n<ul>\n<li><strong>Estimate<\/strong>: The results obtained by the OLS method are calculated by observations present in the sample and have been used in the regression line. <\/li>\n<li><strong>Forecast<\/strong>: Forecasts are based on a time period (t + 1) ahead of the time period of the regression observations\n<p>Difference in error: <\/p>\n<ul>\n<li><strong>Estimate<\/strong>: the residuals (u) obtained by the OLS method are the difference between the real value of the dependent variable (Y) and the estimated value of (Y) given by the sample observations. <\/li>\n<\/ul>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" itemprop=\"image\" loading=\"lazy\" src=\"https:\/\/enorcerna.com\/wiki\/wp-content\/uploads\/2021\/05\/Autoregression.png\" alt=\"Formula 1 estimation\" class=\"wp-image-103680\" width=\"209\" height=\"69\"  \/><\/figure>\n<\/div>\n<p>We remember that the subscript <em>Item<\/em> represents the i-th observation in the period <em>t<\/em>.  The Y with the hat is the estimated value given the sample observations.<\/p>\n<ul>\n<li><strong>Forecast<\/strong>: the forecast error is the difference between the future value (t + 1) of (Y), and the forecast for (Y) in the future (t + 1),.  The real value of (Y) for (t + 1) does not belong to the sample. <\/li>\n<\/ul>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" itemprop=\"image\" loading=\"lazy\" src=\"https:\/\/enorcerna.com\/wiki\/wp-content\/uploads\/2021\/05\/1620211566_150_Autoregression.png\" alt=\"Forecast Error Formula 2\" class=\"wp-image-103681\" width=\"380\" height=\"75\"  \/><\/figure>\n<\/div>\n<p>Resume: <\/p>\n<ul>\n<li>The estimates and residuals belong to observations that are within the sample. <\/li>\n<li>The forecasts and their errors belong to observations that are outside the sample. <\/li>\n<\/ul>\n<h2>Theoretical example of autoregression<\/h2>\n<p>If we want to make a forecast about the price of <em>ski passes<\/em> for the end of this season <\/p>\n<p>Our autoregressive regression would be: <\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" itemprop=\"image\" loading=\"lazy\" width=\"564\" height=\"92\" src=\"https:\/\/enorcerna.com\/wiki\/wp-content\/uploads\/2021\/05\/1620211566_596_Autoregression.png\" alt=\"Autoregression Example\" class=\"wp-image-103685\"  \/><\/figure>\n<\/div>\n<p>This autoregressive regression belongs to the first order autoregression models or more commonly called AR (1).  The meaning of autoregression is that the regression is done on the same variable <em>ski passes<\/em> but in a different period of time (t-1 and t).  In the same way, it is not in the sample. <\/p>\n<\/div>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;2107&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Autoregression&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Autoregression models are used to make forecasts on ex-post variables (observations that&hellip;<\/p>\n","protected":false},"author":1,"featured_media":2108,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-definition"],"_links":{"self":[{"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/posts\/2107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/comments?post=2107"}],"version-history":[{"count":0,"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/posts\/2107\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/media\/2108"}],"wp:attachment":[{"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/media?parent=2107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/categories?post=2107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enorcerna.com\/wiki\/wp-json\/wp\/v2\/tags?post=2107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}