From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 291/CH14/EX14.3d/eg14_3d.sce | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 291/CH14/EX14.3d/eg14_3d.sce (limited to '291/CH14/EX14.3d') 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 -- cgit