diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /331/CH7/EX7.14/Example_7_14.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '331/CH7/EX7.14/Example_7_14.sce')
-rwxr-xr-x | 331/CH7/EX7.14/Example_7_14.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/331/CH7/EX7.14/Example_7_14.sce b/331/CH7/EX7.14/Example_7_14.sce new file mode 100755 index 000000000..3e7f9f3ca --- /dev/null +++ b/331/CH7/EX7.14/Example_7_14.sce @@ -0,0 +1,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.
\ No newline at end of file |