diff options
Diffstat (limited to '291/CH14/EX14.3e/eg14_3e.sce')
-rwxr-xr-x | 291/CH14/EX14.3e/eg14_3e.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/291/CH14/EX14.3e/eg14_3e.sce b/291/CH14/EX14.3e/eg14_3e.sce new file mode 100755 index 000000000..f54bf4849 --- /dev/null +++ b/291/CH14/EX14.3e/eg14_3e.sce @@ -0,0 +1,8 @@ +X = [5 7 6.2 8.1 7.9 15 18 3.9 4.6 5.8];
+Y= [3 3.2 4.1 1.8 1.6 2.7 1.2 5.4 10.3 1.5];
+t = sum(X)+sum(Y);
+R =10;
+a = 20;
+b = 2;
+estimate = (R+b)/(a+t);
+disp(estimate, "Bayes estimate of lambda is");
\ No newline at end of file |