Wednesday, March 23, 2016

PrgCalcPro: One Variable Statistics

PrgCalcPro: One Variable Statistics

Instructions:

Initialize the parameters: [JUMP] 31 [RUN]
Enter the data:  X [RET] [RUN]
Analyze: [JUMP] 14 [RUN], μ on the x stack, sx on the y stack 

Registers:
1: n
2: Σx
3: Σx^2
4: Mean (μ)
5: Standard Deviation (sx)

Program:
0: 62  ;  R2
   1: 14  ;  XY // swap
   2: 10  ;  +
   3: 42  ;  M2
   4: 0F  ;  BX // last x
   5: 22  ;  X^2
   6: 63  ;  R3
   7: 10  ;  +
   8: 43  ;  M3
   9: 61  ;  R1 // determine n
  10: 01  ;  1
  11: 10  ;  +
  12: 41  ;  M1
  13: 50  ;  STOP
  14: 62  ;  R2 // calculate mean 
  15: 61  ;  R1
  16: 13  ;  /
  17: 44  ;  M4
  18: 63  ;  R3 // calculate standard deviation 
  19: 64  ;  R4
  20: 62  ;  R2
  21: 12  ;  *
  22: 11  ;  -
  23: 61  ;  R1
  24: 01  ;  1
  25: 11  ;  -
  26: 13  ;  /
  27: 21  ;  sqr // √ 
  28: 45  ;  M5
  29: 64  ;  R4
  30: 50  ;  STOP
  31: 00  ;  0 // clear variables
  32: 41  ;  M1
  33: 42  ;  M2
  34: 43  ;  M3
  35: 44  ;  M4
  36: 45  ;  M5
  37: 50  ;  STOP

Example:   Data set: {2, 3.4, 3.41, 7, 11, 23}

JUMP 31 RUN

2 RET RUN
3.4 RET RUN
3.41 RET RUN
7 RET RUN
11 RET RUN
23 RET RUN

JUMP 14 RUN

Mean = 8.301667
Std. Dev = 7.907997
N = 6
ΣX = 49.81
ΣX^2 = 726.1981


Source for formulas:   HP - 21 Applications Book: Hewlett Packard.  1975

This blog is property of Edward Shore, 2016. 

Casio fx-991CW: Input Output Formats

Casio fx-991CW: Input Output Formats The Four Formats There are four input/output formats that the Casio fx-991CW has. With eac...