REGRESSION ANALYSIS
(SALES FORECASTING)
Regression analysis can often be used to make a
forecast of a future trend based on relevant data.
Usin& regression analysis, this program forecasts
this year's sales based on last year's sales. In this
program, the forecast is made in weekly units.
l•Jil43it•J,tl
1. Reading data from CETL
The data table used by this program can be read from CETL. Create the data table in
CETL as follows:
( 1)
Input this year's weekly sales in item 1 ( records 1 to 52) and last year's weekly
sales in item 2 (records 1 to 52).
(2)
Reserve records 53 and 54 of items 1 and 2 for the values X, X2, Y#, and XY#
used for the link between CETL and BASIC.
2. Executing the program
When the program is started, the prompt "DATA INPUT CETL(1)/BASIC(2)" is dis-
played, asking you whether the last year's data is to be input from the data table
previously stored in CETL or by a BASIC program. To input the data from CETL,
enter 1. To input the data using a BASIC program, enter 2.
If you entered 1, the messages "BEING COMPUTED" and "WHICH WEEK" are
displayed. Now, enter the week (n-th week) for which the sales forecast is to be made.
The result of the forecast is then output. After that, the prompt "WHICH WEEK?" is
displayed again. You can continue the sales forecasting by specifying an appropriate
week. At the en~ of the forecasting for the final week, enter O and the program will
terminate.
'
If you entered 2, you are requested to input last year's sales data starting from the first
week. After you input all the data, enter E, and the prompts "BEi NG COMPUTED"
and "WHICH WEEK" are displayed. Now, enter the week for which the sales forecast
is to be made. The result of the forecast is output in the same manner as when you
enter 1.
Need help?
Do you have a question about the FP-200 and is the answer not in the manual?