summaryrefslogtreecommitdiff
path: root/1475/CH2/EX2.42
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1475/CH2/EX2.42
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/CH2/EX2.42')
-rwxr-xr-x1475/CH2/EX2.42/Example_2_42.sce11
-rwxr-xr-x1475/CH2/EX2.42/Output_2_42.PNGbin0 -> 13745 bytes
2 files changed, 11 insertions, 0 deletions
diff --git a/1475/CH2/EX2.42/Example_2_42.sce b/1475/CH2/EX2.42/Example_2_42.sce
new file mode 100755
index 000000000..d167b1a36
--- /dev/null
+++ b/1475/CH2/EX2.42/Example_2_42.sce
@@ -0,0 +1,11 @@
+// Example 2.42 A fair coin is tossed 400 times
+clc;
+clear;
+n=400;
+p=1/2;
+q=1-p;
+m=n*p;
+s_d=sqrt(n*p*q);
+disp(2*0.199," = 2*(Area between z= 0 and z= 0.05)",(199.5-m)/s_d,"and",(200.5-m)/s_d,"Probability of obtaining exactly 200 heads = (199.5-m)/s_d and (200.5-m)/s_d =");
+disp(0.5+0.3289," = (Area between left of z= 0 + Area between z=0 and z= 0.95)",(209.5-m)/s_d,"Probability of obtaining less than 210 heads = (209.5-m)/s_d and ");
+disp(2*0.3531," = 2*(Area between z= -1.05 and z= 1.05)",(189.5-m)/s_d,"and",(210.5-m)/s_d,"Probability of obtaining betweeen 190 and 210 heads = (189.5-m)/s_d and (210.5-m)/s_d =");
diff --git a/1475/CH2/EX2.42/Output_2_42.PNG b/1475/CH2/EX2.42/Output_2_42.PNG
new file mode 100755
index 000000000..e7a4bc400
--- /dev/null
+++ b/1475/CH2/EX2.42/Output_2_42.PNG
Binary files differ