diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /291/CH14/EX14.3d | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '291/CH14/EX14.3d')
-rwxr-xr-x | 291/CH14/EX14.3d/eg14_3d.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/291/CH14/EX14.3d/eg14_3d.sce b/291/CH14/EX14.3d/eg14_3d.sce new file mode 100755 index 000000000..4ef967626 --- /dev/null +++ b/291/CH14/EX14.3d/eg14_3d.sce @@ -0,0 +1,8 @@ +r = 30;
+T = 600;
+theta = 25;
+val1 = cdfchi("PQ", 2*T/theta, 2*r);
+val2 = 1- cdfchi("PQ", 2*T/theta, 2*(r+1));
+pvalue = min(val1, val2);
+disp(pvalue, "The pvalue is");
+disp("H0 would be accepted when the significance level is 0.10");
\ No newline at end of file |