summaryrefslogtreecommitdiff
path: root/331/CH7/EX7.14/Example_7_14.sce
blob: 3e7f9f3ca4d45d11ccccbf436cebdea0d53793d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Caption: Sample Size for Determining Sample Mean
//Example7.14
//Page219

clc;
Var = 64;//  variance of axial length of pistons in mm
Std = sqrt(Var);
D = 2;// deviation from mean length in mm
alpha = 0.05;//significance level
alpha = alpha/2;
z = standard_normal_zstat(alpha)
n = (z*Std/D)^2;
disp(ceil(n),'Sample Size n =')
//Result
//Sample Size n =   
// 
//    62.