summaryrefslogtreecommitdiff
path: root/1475/CH4/EX4.13/Example_4_13.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1475/CH4/EX4.13/Example_4_13.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1475/CH4/EX4.13/Example_4_13.sce')
-rwxr-xr-x1475/CH4/EX4.13/Example_4_13.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1475/CH4/EX4.13/Example_4_13.sce b/1475/CH4/EX4.13/Example_4_13.sce
new file mode 100755
index 000000000..aad958587
--- /dev/null
+++ b/1475/CH4/EX4.13/Example_4_13.sce
@@ -0,0 +1,11 @@
+//Example 4.13 A random sample of 100 articles taken from alarge batch of article contains 5 defective article
+clc;
+clear;
+n=100;
+p=5/100;
+q=1-p;
+N=2646;
+SE=sqrt((p*q)/n);
+disp((p-2.05*SE),"to",(p+2.05*SE),"The 96% confidence limits for Pare ",N,"Population size N",n,"Sample size");
+S_E=sqrt(p*q/(n))*sqrt((N-n)/(N-1));
+disp((p-1.96*S_E),"to",(p+1.96*S_E),"The required 95% confidence limits for P are ");