* Example: Newbold, Statistics for Business and Economics, * Fourth Edition, 1995, Chapter 17. SAMPLE 1 30 * Read the annual sales data (in thousands of dollars) of * Lydia E. Pinkham from 1931 to 1960. Source: Newbold, p. 691. READ SALES / BYVAR 1806 1644 1814 1770 1518 1103 1266 1473 1423 1767 2161 2336 2602 2518 2637 2177 1920 1910 1984 1787 1689 1866 1896 1684 1633 1657 1569 1390 1387 1289 GENR YEAR=TIME(1930) * Set the smoothing constant GEN1 A=0.4 * Use the SMOOTH command for moving averages and exponential smoothing. GEN1 W=1-A SMOOTH SALES / NMA=5 WEIGHT=W MAVE=MA5 EMAVE=SS * The results for a centered 5-point moving average (MOVING-AVE) are in * Newbold, Table 17.12, p. 698. * The results from exponential smoothing (EXP-MOV-AVE) are in * Newbold, Table 17.16, p. 710. PRINT YEAR MA5 SS * Graph the smoothed series (see Newbold, Figure 17.7, p. 698) SAMPLE 3 28 GRAPH MA5 YEAR / LINEONLY STOP