diff options
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);
|