diff options
Diffstat (limited to '149/CH35/EX35.1/example1.sce')
-rwxr-xr-x | 149/CH35/EX35.1/example1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/149/CH35/EX35.1/example1.sce b/149/CH35/EX35.1/example1.sce new file mode 100755 index 000000000..f608bdd30 --- /dev/null +++ b/149/CH35/EX35.1/example1.sce @@ -0,0 +1,14 @@ +clc
+disp('suppose the coin is unbiased ')
+disp('then probability of getting the head in a toss=1/2')
+disp('then,expected no. of successes=a=1/2*400 ')
+a=1/2*400
+disp('observed no. of successes =216')
+b=216
+disp('the excess of observed value over expected value=')
+b-a
+disp('S.D. of simple sampling = (n*p*q)^0.5=c')
+c=(400*0.5*0.5)^0.5
+disp('hence,z=(b-a)/c=')
+(b-a)/c
+disp('as z<1.96,the hypothesis is accepted at 5% level of significance')
\ No newline at end of file |