I am trying to use Mathematica to check my results to questions in the book “Probability and Statistics for Computer Science 2ed.” There are no answers in the book and so no way to check that I have the correct result. At present I am trying to combine probabilities and can’t find a function in mathematica that does this automagically. I am sure it is simple but my searches in the documentation have not revealed the type of function I am looking for. Below is a sample of the type of question I am trying to answer:
2.10 Three computer viruses arrived as an e-mail attachment.
Virus A damages the system with probability 0.4.
Independently of it, virus B damages the system with probability 0.5.
Independently of A and B, virus C damages the system with probability 0.2.
What is the probability that the system gets damaged?
And my Mathematica code to answer this Question:
va=0.4;
vb=0.5;
vc=0.2;
va+vb+vc-va*vb-va*vc - vb vc+va*vb*vc
My question is, is there a function that will take a list of the probabilities and return the combined probability?