diff options
Diffstat (limited to '569/CH3/EX3.30/3_30.sci')
-rwxr-xr-x | 569/CH3/EX3.30/3_30.sci | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/569/CH3/EX3.30/3_30.sci b/569/CH3/EX3.30/3_30.sci new file mode 100755 index 000000000..2d2a8cf0c --- /dev/null +++ b/569/CH3/EX3.30/3_30.sci @@ -0,0 +1,16 @@ +//to find confidence interval for given confidence levels
+
+clc;
+cl=[.5 .9 .95 .99];
+s=.22;
+d=[.7 1.83 2.26 3.25];
+function [a]=ci(b)
+ a=s*b;
+endfunction
+
+CI(1)=ci(d(1));
+CI(2)=ci(d(2));
+CI(3)=ci(d(3));
+CI(4)=ci(d(4));
+
+disp(CI,'confidence interval');
\ No newline at end of file |