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/CH7/EX7.2f/eg7_2f.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 291/CH7/EX7.2f/eg7_2f.sce (limited to '291/CH7/EX7.2f/eg7_2f.sce') diff --git a/291/CH7/EX7.2f/eg7_2f.sce b/291/CH7/EX7.2f/eg7_2f.sce new file mode 100755 index 000000000..9df5c4963 --- /dev/null +++ b/291/CH7/EX7.2f/eg7_2f.sce @@ -0,0 +1,13 @@ +X= [2.2 3.4 1.6 0.8 2.7 3.3 1.6 2.8 2.5 1.9] +upperlimX = 3 +lowerlimX = 2; +upperlimlogX= log(upperlimX); +lowerlimlogX = log(lowerlimX); + +logX = log(X) +samplemean= mean(logX) +samplesd= sqrt(variance(logX)) +//disp(samplemean) +//disp(samplesd) +prob = cdfnor("PQ", upperlimlogX, samplemean, samplesd) - cdfnor("PQ", lowerlimlogX, samplemean, samplesd) +disp(prob) \ No newline at end of file -- cgit