summaryrefslogtreecommitdiff
path: root/291/CH8/EX8.3b/eg8_3b.sce
diff options
context:
space:
mode:
Diffstat (limited to '291/CH8/EX8.3b/eg8_3b.sce')
-rwxr-xr-x291/CH8/EX8.3b/eg8_3b.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/291/CH8/EX8.3b/eg8_3b.sce b/291/CH8/EX8.3b/eg8_3b.sce
new file mode 100755
index 000000000..58086b7d0
--- /dev/null
+++ b/291/CH8/EX8.3b/eg8_3b.sce
@@ -0,0 +1,9 @@
+noise_var = 4;
+noise_mean= 0;
+num = 5;
+Xbar = 8.5;
+u = 8;
+statistic = sqrt(num/noise_var)*(Xbar - u);
+
+prob = 2*cdfnor("PQ", -1*statistic , 0,1 );
+disp(prob, "P-value is") \ No newline at end of file