summaryrefslogtreecommitdiff
path: root/291/CH8/EX8.7c/eg8_7c.sce
diff options
context:
space:
mode:
Diffstat (limited to '291/CH8/EX8.7c/eg8_7c.sce')
-rwxr-xr-x291/CH8/EX8.7c/eg8_7c.sce7
1 files changed, 7 insertions, 0 deletions
diff --git a/291/CH8/EX8.7c/eg8_7c.sce b/291/CH8/EX8.7c/eg8_7c.sce
new file mode 100755
index 000000000..2846deeea
--- /dev/null
+++ b/291/CH8/EX8.7c/eg8_7c.sce
@@ -0,0 +1,7 @@
+Aerror =28;
+Berror = 18;
+common =10;
+N2 = Aerror - common;
+N3 =Berror- common;
+pval = 1- cdfbin("PQ", N2-1, N2 + N3, 0.5, 0.5);
+disp(pval, "P-value is") \ No newline at end of file