二項分佈及泊松分佈
程式 (共63字,藍色的 - 是負號,按EXP或E可以產生E。):
0BAC + B ^ ( A cos( sin-1( X ) ) ) ( A cos( sin-1( X ) ) ) !-1 e^( - B ) cos( sin-1( X ) )
+ BX nCr AX * C ^ ( A + E - 99 ) X ( 1 - C ) ^ ( B - A )
SAVE PROG1 或 PROG2 (SRP-285II計數機)
STO EQN (HP 30S計數機)
例題1: 若X ~ Bin(9,0.5),求P(X=4),P(X=5)及P(X=6)。
SRP-285II 按法:
按 2nd CL-VAR P/V RCL,再按 ← 選擇正確的PROG,再按 = =
9 = 4 = 0.5 = 1 = (1代表二項分佈,顯示P(X=4)為0.24609)
↑5 = (顯示P(X=5)為0.24609)↑6 = (顯示P(X=6)為0.16406)
HP 30S 按法:
按 2nd CL-VAR VRCL,再按 ← = =
9 = 4 = 0.5 = 1 = (1代表二項分佈,顯示P(X=4)為0.24609)
↑5 = (顯示P(X=5)為0.24609)↑6 = (顯示P(X=6)為0.16406)
例題2: 若X ~ Po(5),求P(X=4),P(X=5)及P(X=6)。
SRP-285II 按法:
按 2nd CL-VAR P/V RCL,再按 ← 選擇正確的PROG,再按 = =
5 = 4 = = = (0代表泊松分佈,顯示P(X=4)為0.17547)
↑5 = (顯示P(X=5)為0.17547)↑6 = (顯示P(X=6)為0.14622)
HP 30S 按法:
按 2nd CL-VAR VRCL,再按 ← = =
5 = 4 = = = (0代表泊松分佈,顯示P(X=4)為0.17547)
↑5 = (顯示P(X=5)為0.17547)↑6 = (顯示P(X=6)為0.14622)
例題3: 若X ~ Bin(9,0.5),求P(X=4),P(X=5),P(X=6),P(X=7)及P(4≦X≦7)。
先清除M的記憶按 MRC MRC CL
按 2nd CL-VAR P/V RCL,再按 ← 選擇正確的PROG,再按 = =
9 = 4 = 0.5 = 1 = M+ (1代表二項分佈,顯示P(X=4)為0.24609)
5 SAVE =↑↑ M+ (顯示P(X=5)為0.24609)
6 SAVE =↑↑ M+ (顯示P(X=6)為0.16406)
7 SAVE =↑↑ M+ (顯示P(X=7)為0.00703)
MRC = (顯示P(4≦X≦7)為0.72656)
例題4: 若X ~ Po(5),求P(X=4),P(X=5),P(X=6),P(X=7)及P(4≦X≦7)。
SRP-285II 按法:
先清除M的記憶按 MRC MRC CL
按 2nd CL-VAR P/V RCL,再按 ← 選擇正確的PROG,再按 = =
5 = 4 = = = M+ (0代表泊松分佈,顯示P(X=4)為0.17547)
5 SAVE =↑↑ M+ (顯示P(X=5)為0.17547)
6 SAVE =↑↑ M+ (顯示P(X=6)為0.14622)
7 SAVE =↑↑ M+ (顯示P(X=7)為0.10444)
MRC = (顯示P(4≦X≦7)為0.60160)
HP 30S 按法:
先清除M的記憶按 MRC MRC CL 再按 2nd CL-VAR RCL,再按 ← EQN,再按 = =
5 = 4 = = = M+ (0代表泊松分佈,顯示P(X=4)為0.17547)
5 SAVE =↑↑ M+ (顯示P(X=5)為0.17547)
6 SAVE =↑↑ M+ (顯示P(X=6)為0.14622)
7 SAVE =↑↑ M+ (顯示P(X=7)為0.10444)
MRC = (顯示P(4≦X≦7)為0.60160)
例題5: 若X ~ Bin(9,0.5),求P(4≦X≦7)。
SRP-285II 按法:
先清除ANS的記憶按 CL 0 =
按 2nd CL-VAR P/V RCL,再按 ← 選擇正確的PROG,再按 + 2nd ANS =
9 = 4 = 0.5 = 1 (1代表二項分佈,顯示P(X=4)為0.24609)
↑5 = (顯示P(X=4)+P(X=5)為0.49219)
↑6 = (顯示P(X=4)+P(X=5)+P(X=6)為0.65563)
↑7 = (顯示P(4≦X≦7)為0.72656)
HP 30S 按法:
先清除ANS的記憶按 CL 0 = 再按 2nd CL-VAR RCL,再按 ← EQN,再按 + 2nd ANS =
9 = 4 = 0.5 = 1 (1代表二項分佈,顯示P(X=4)為0.24609)
↑5 = (顯示P(X=4)+P(X=5)為0.49219)
↑6 = (顯示P(X=4)+P(X=5)+P(X=6)為0.65563)
↑7 = (顯示P(4≦X≦7)為0.72656)
例題6: 若X ~ Po(5),求P(X=4),P(X=5),P(X=6),P(X=7)及P(4≦X≦7)。
SRP-285II 按法:
先清除Ans的記憶按 CL 0 =
按 2nd CL-VAR P/V RCL,再按 ← 選擇正確的PROG,再按 + 2nd Ans =
5 = 4 = = = (0代表泊松分佈,顯示P(X=4)為0.17547)
↑5 = (顯示P(X=4)+P(X=5)為0.35093)
↑6 = (顯示P(X=4)+P(X=5)+P(X=6)為0.49716)
↑7 = (顯示P(4≦X≦7)為0.60160)
HP 30S 按法:
先清除ANS的記憶按 CL 0 = 再按 2nd CL-VAR RCL,再按 ← EQN,再按 + 2nd ANS =
5 = 4 = = = (0代表泊松分佈,顯示P(X=4)為0.17547)
↑5 = (顯示P(X=4)+P(X=5)為0.35093)
↑6 = (顯示P(X=4)+P(X=5)+P(X=6)為0.49716)
↑7 = (顯示P(4≦X≦7)為0.60160)