<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What is the difference between a forecast and prediction in SLR? in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798128#M4345</link>
    <description>&lt;P&gt;I need an equation for a forecast for a simple regression problem(SLR).&amp;nbsp; Please note I am not asking for a prediction value but a forecast. I could not find this in the ETS documentation. Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 17:29:21 GMT</pubDate>
    <dc:creator>MaryA_Marion</dc:creator>
    <dc:date>2022-02-23T17:29:21Z</dc:date>
    <item>
      <title>What is the difference between a forecast and prediction in SLR?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798128#M4345</link>
      <description>&lt;P&gt;I need an equation for a forecast for a simple regression problem(SLR).&amp;nbsp; Please note I am not asking for a prediction value but a forecast. I could not find this in the ETS documentation. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 17:29:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798128#M4345</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2022-02-23T17:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between a forecast and prediction in SLR?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798193#M4346</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I have &lt;FONT color="#FF0000"&gt;NOT&lt;/FONT&gt; downloaded your *.sas file.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But I want to correct something :&lt;BR /&gt;SAS/ETS is not suitable for a single | simple linear regression (SLR), you should do that with SAS/STAT (PROC REG for example).&lt;BR /&gt;Moreover, every forecast is a prediction, but not every prediction is a forecast. A forecast looks into the future (generally) and is a time series prediction. A "prediction" as a term is much broader and is any kind of prediction.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am not sure what your question is for the rest.&lt;BR /&gt;Will that become clear when I open the programme?&lt;BR /&gt;Can you copy / paste the programme into a reply?&lt;BR /&gt;Click on the running man in the toolbar when writing your reply. You can then paste your SAS-code into the window that opens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798193#M4346</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-02-23T18:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between a forecast and prediction in SLR?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798197#M4347</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA sixtyEight;
input t y;
cards;
1 47
2 46
3 51
4 44
5 54
6 47
7 52
8 45
9 50
10 51
11 49
12 41
13 48
14 50
15 51
16 55
17 52
18 53
19 48
20 52
;
proc print; run;

proc reg;
model y=t / r p;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798197#M4347</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2022-02-23T18:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between a forecast and prediction in SLR?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798200#M4348</link>
      <description>&lt;P&gt;So if your x-variable is a sequence number, then in some sense predicting when the sequence number goes beyond the range of the data could be considered a forecast.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, if you got a predicted value for t=21, is that what you want? (I'll bet there are a lot of people trained in statistics who would not call that a forecast ... nevertheless ... is that what you want?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, you don't really need the equation (although if you want it, that's fine), but this trick here allows you to get a predicted value for t=21.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798200#M4348</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-23T18:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between a forecast and prediction in SLR?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798229#M4349</link>
      <description>&lt;P&gt;I do want the predicted value for t=21.&amp;nbsp; I am working with the equation&amp;nbsp;&lt;/P&gt;
&lt;P&gt;forecast for time t from time t-1 = yhat(t-1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =y(t)-e_t(1) where&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e_t(1) = step 1 ahead error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply. MM&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 20:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798229#M4349</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2022-02-23T20:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between a forecast and prediction in SLR?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798268#M4350</link>
      <description>&lt;P&gt;Now you give us an equation that is not linear regression. It involves time series data. So PROC REG is not appropriate, and just plain wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do want to use SAS/ETS to fit this model and obtain forecasts. And so I will step aside and allow someone who is more familiar with Time Series modeling to recommend a specific model here.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 22:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798268#M4350</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-23T22:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between a forecast and prediction in SLR?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798425#M4351</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it this that you want?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.sixtyEight;
 set work.sixtyEight end=lastobs;
 output;
 if lastobs then do;
  t=21; y=.; output;
 end;
run;

proc autoreg data=sixtyEight;
model y=t / NLAG=(1) method=ML;
   output out=p p=yhat pm=ytrend
                lcl=lcl ucl=ucl;
run;
QUIT;

proc sgplot data=p;
   band x=t upper=ucl lower=lcl;
   scatter x=t y=y;
   series x=t y=yhat;
   series x=t y=ytrend / lineattrs=(color=black);
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-the-difference-between-a-forecast-and-prediction-in-SLR/m-p/798425#M4351</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-02-24T17:47:10Z</dc:date>
    </item>
  </channel>
</rss>

