summaryrefslogtreecommitdiff
path: root/291/CH7/EX7.3a
diff options
context:
space:
mode:
Diffstat (limited to '291/CH7/EX7.3a')
-rwxr-xr-x291/CH7/EX7.3a/eg7_3a.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/291/CH7/EX7.3a/eg7_3a.sce b/291/CH7/EX7.3a/eg7_3a.sce
new file mode 100755
index 000000000..b4d44a102
--- /dev/null
+++ b/291/CH7/EX7.3a/eg7_3a.sce
@@ -0,0 +1,9 @@
+avg = 0;
+var = 4;
+num = 9;
+X =[5 8.5 12 15 7 9 7.5 6.5 10.5];
+samplemean= mean(X);
+lowerlim = samplemean - (1.96*sqrt(var/num))
+upperlim = samplemean + (1.96*sqrt(var/num))
+
+disp(upperlim, "to ",lowerlim,"The 95% confidence interval is ", ) \ No newline at end of file