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 --- 2294/CH12/EX12.9/EX12_9.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 2294/CH12/EX12.9/EX12_9.sce (limited to '2294/CH12/EX12.9/EX12_9.sce') diff --git a/2294/CH12/EX12.9/EX12_9.sce b/2294/CH12/EX12.9/EX12_9.sce new file mode 100755 index 000000000..fede892df --- /dev/null +++ b/2294/CH12/EX12.9/EX12_9.sce @@ -0,0 +1,11 @@ +//Example 12.9 +//Find the required probabilities. +disp('Let H be the event that Husband is alive') +disp('Let W be the event that wife is alive') +disp('P(H)=0.85 P(W)=0.9') +disp(0.85*0.9,'P(both alive)=P(H)P(W)=') +disp(0.15*0.1,'P(neither alive)=(1-P(H))(1-P(W))=') +disp(0.85+0.9-0.765,'P(Atleast one is alive)=P(H)+P(W)-P(both are alive)=') +disp('P(only one is alive)=P(Husband is alive and wife is dead)OR P(Husband is dead and wife is alive)') +disp('P(H)(1-P(W))+(1-P(H))P(W)=') +disp((0.85)*(1-0.9)+(1-0.85)*(0.9),'(0.85)(1-0.9)+(1-0.85)(0.9)=') -- cgit