diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3513/CH2/EX2.6/Ex2_6.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3513/CH2/EX2.6/Ex2_6.sce')
-rw-r--r-- | 3513/CH2/EX2.6/Ex2_6.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/3513/CH2/EX2.6/Ex2_6.sce b/3513/CH2/EX2.6/Ex2_6.sce new file mode 100644 index 000000000..059ea33a3 --- /dev/null +++ b/3513/CH2/EX2.6/Ex2_6.sce @@ -0,0 +1,27 @@ +// To determine probabilty
+//page no 24
+clear
+clc;
+n=50;
+p=0.25;
+q=0.75;
+sd=3.062; // standard deviation
+x1=14.5;
+x2=15.5;
+x3=11.5
+p1=0.7422*100 // probability from table
+p2=0.8340*100 // probability from table
+//(a) Exactly 15 defective
+m=n*p
+z1=((x1-m)/sd)*100
+z2=((x2-m)/sd)*100
+p=(p2-p1)
+mprintf("\nTherefore the probability Exactly 15 defective = %.2f percentage",p);
+//(b) Less than or equal to 11 defective
+z3=((x3-m)/sd)*100
+p3=37.45
+mprintf("\nTherefore the probabilityLess than or equal to 11 defective = %.2f percentage",p3);
+//(c) More than 15 or 15 defectives
+z4=((x1-m)/sd)*100
+p4=100-p1
+mprintf("\nTherefore the probability More than 15 or 15 defectives = %.2f percentage",p4);
|