Formula | ||||
Mean | Standard Deviation | Variance |
Line | Commands or Statements | Comments |
1. | ClrHome | Clear Screen |
2. | Disp "SELECT LIST OR" | Instructions |
3. | ,"DATA TO BEGIN -" | | |
4. | ,"USE COMMAS BTWN" | | |
5. | ,"NUMBERS IN LIST" | | |
6. | ,"ENTER n, Σx, Σx²" | | |
7. | ,"FOR DATA" | End Instructions |
8. | Pause | |
9. | ClrHome | |
10. | Float | |
11. | Menu("STD DEV","LIST",L,"DATA",D | |
12. | Lbl D | Data Input |
13. | Input "n =",N | n = sample size |
14. | Input "Σx =",B | Σx = sumX |
15. | Input "Σx² =",Y | Σx² = sumXsquared |
16. | Goto X | |
17. | Lbl L | |
18. | Disp "DATA LIST | Input Data |
19. | Input "L1=",Str1 | Input List L_{1} |
20. | expr("{"+Str1->L1 | |
21. | Disp "FREQ LIST | Input Freq |
22. | Input "L2=",Str2 | Input List L_{2} |
23. | expr("{"+Str2->L2 | |
24. | sum(L2->N | n |
25. | sum(L1L2->B | Σx |
26. | sum(L1²L2->Y | Σx² |
27. | Lbl X | formula calculations & display |
28. | B/N ->C | calculates mean x |
29. | ((Y - ((B) ²/N))/(N - 1)) ->V | calculates variance |
30. | ?(V) -> S | standard deviation |
31. | ClrHome | Clear Screen & Display |
32. | Disp "n= | |
33. | Output(1,4,N | display n |
34. | Disp "Σx = | |
35. | Output(2,5,B | display Σx |
36. | Disp "Σx ² = | |
37. | Output(3,6,Y | display Σx ² |
38. | Fix 4 | set decimal to 4 places |
39. | Disp "x = | |
40. | Output(4,4,C | display mean (x) |
41. | Disp "S² = | |
42. | Output(5,5,V | display variance (S ²) |
43. | Disp "S = | |
44. | Output(6,4,S | display standard deviation (S) |
45. | Pause | |
46. | Float | clear fix 4 (line 38) |
47. | ClrHome |
Screenshots: | |||
instructions | data | list | answers |