Apply Bayes theorem to solve the following questions;
Exercise 1. A doctor is called to see a sick child. The doctor has prior information that 90% of sick children in that neighborhood have the flu, while the other 10% are sick with 1 measles. Let F stand for an event of a child being sick with flu and M stand for an event of a child being sick with measles. Assume for simplicity that FUM = 0, i.e., that there no other maladies in that neighborhood. A well-known symptom of measles is a rash (the event of having which we denote R). Assume that the probability of having a rash if one has measles is P(R | M) = 0.95. However, occasionally children with flu also develop rash, and the probability of having a rash if one has flu is P(R | F) = 0.08. Upon examining the child, the doctor finds a rash. What is the probability that the child has measles?Exercise 2. In a study, physicians were asked what the odds of breast cancer would be in a woman who was initially thought to have a 1% risk of cancer but who ended up with a positive mammogram result (a mammogram accurately classifies about 80% of cancerous tumors and 90% of benign tumors.) 95 out of a hundred physicians estimated the probability of cancer to be about 75%. Do you agree?Exercise 3. Suppose we have 3 cards identical in form except that both sides of the first card are colored red, both sides of the second card are colored black, and one side of the third card is colored red and the other side is colored black. The 3 cards are mixed up in a hat, and 1 card is randomly selected and put down on the ground. If the upper side of the chosen card is colored red, what is the probability that the other side is colored black?Exercise 4. It is estimated that 5% of emails are spam emails. Some software has been applied to lter these spam emails before theyr reach your inbox. A certain brand of software claims that it can detect 99% of spam emailsj and the probability.r for a false positive (a nonspam email detected as spam} is 5%. Now if an email is detected as spam, then what is the probabilityr that it is in fact a nonspam email?I