HP Forums
[12C] Semi-Automatic for Moving Average - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: Articles Forum (/forum-14.html)
+--- Thread: [12C] Semi-Automatic for Moving Average (/thread-11644.html)



[12C] Semi-Automatic for Moving Average - Gamo - 10-24-2018 05:00 AM

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