HP Forums

Full Version: [12C] Semi-Automatic for Moving Average
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Simple program for "Simple Moving Average" using simple manual data input.

With this routine, each input data simply follow by [R/S]
Each [R/S] accumulate the Average in each steps.
To change statistic data simply recall register 7, 8 and 9 in order then [Σ-]


Example is from HP-12C Solutions Handbook on Forecasting Section.

Program:

01 Σ+
02 PSE
03 CLx
04 X bar

----------------------------------------

Example:
An electronics sales firm wished to calculate a 3-month average for
the dollar volume of components sold each month.
Sales for the first six months of this year were:

January-------$211,570
February------$112,550
March---------$190,060
April-----------$131,760
May-----------$300,500
June-----------$271,120

Procedure:

211570 STO 7 [R/S]
112550 STO 8 [R/S]
190060 STO 9 [R/S] ------------> 171,393.33 // 3-month average for March.

[RCL] 7 g [Σ-] 131760 [R/S] ---> 144,790.00 // 3-month average for April.

[RCL] 8 g [Σ-] 300500 [R/S] ---> 207,440.00 // 3-month average for May.

[RCL] 9 g [Σ-] 271120 [R/S] ---> 234,460.00 // 3-month average for June.


Gamo
Reference URL's