Comment on Activity 2

In part (a), if we average all the lifetimes, we have `(50 times 35 + 100 times 63)/150~~53.7` days.

In part (b), we find an average lifetime of `p_1t_1 + p_2t_2 + p_3t_3 = 45.5` days.

In the general case, the corresponding formula for average lifetime is

`p_1t_1 + p_2t_2 + cdots + p_nt_n = sum_(k=1)^n p_kt_k`.