summaryrefslogtreecommitdiff
path: root/260/CH6/EX6.13/6_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '260/CH6/EX6.13/6_13.sce')
-rw-r--r--260/CH6/EX6.13/6_13.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/260/CH6/EX6.13/6_13.sce b/260/CH6/EX6.13/6_13.sce
new file mode 100644
index 000000000..9c70237fc
--- /dev/null
+++ b/260/CH6/EX6.13/6_13.sce
@@ -0,0 +1,30 @@
+//Eg-6.13
+//pg-302
+
+clear
+clc
+
+//zc-confidence level
+A=[3 99.73;2.33 98;1.96 95;1.65 90;1.28 80;1 68.27];
+
+//mean and standard deviation
+x=24.8;
+s=1.35;
+n=60;//two months
+
+//90% confidence level
+zc=1.65;
+limit1=x-zc*s/n^.5;
+limit2=x+zc*s/n^.5;
+
+//95% confidence level
+zc=2.33;
+lim1=x-zc*s/n^.5;
+lim2=x+zc*s/n^.5;
+
+disp("90% confidencelevel limits")
+disp(limit1)
+disp(limit2)
+disp("95% confidencelevel limits")
+disp(lim1)
+disp(lim2)