# # Written by: # -- # John L. Weatherwax 2009-04-21 # # email: wax@alum.mit.edu # # Please send comments and especially bug reports to the # above email address. # #----- # Ex 1.4: # A=7 A=8 A=9 A=10 probs = c( 0.211, 0.269, 0.17, 0.028 ) P_E = sum(probs) conditional_model = probs/P_E sum( conditional_model[3:4] ) # survives to the age of 80 (dies 90+ or 100+) # Ex 1.5: #