[SOLVED] EMATM0044 -Worksheet Week 21

30.00 $

Category:

Description

5/5 - (1 vote)

Problems

Q1. X and Y are two (binary) random variables. If X and Y are independent, then P(X,Y ) = P(X)P(Y )

  • Give an example of two random variables that are independent.
  • Complete the probability table below in such way that the variables X and Y are independent.
X = 0 X = 1
Y = 0
Y = 1
  • Determine the missing entries (a, b) of the joint distribution in such a way that the variables X and Y are again independent.

P(Y = 0,X = 0) = 0.1

P(Y = 0,X = 1) = 0.3

P(Y = 1,X = 0) = a

P(Y = 1,X = 1) = b

Q2. Consider the following Bayesian network:

2

  • Which random variables are independent of X3,1?
  • Which random variables are independent of X3,1 given X1,1?

Q3. Solve the questions on slides 42 and 44 of the lecture slides.

Q4. A patient can have a symptom, S, that is caused by two different diseases, A and B. It is known that the presence of a gene G is important in the manifestation of disease A.

The Bayes net and conditional probability tables are shown in Figure 2.

 

 

P(G)
g             0.1
¬g                    0.9
 

P(B)
b                    0.4
¬b                    0.6
 

P(A G)
g                     a                     1.0
g                     ¬a                     0.0
¬g                     a                     0.1
¬g                     ¬a                     0.9
 

P(S A, B)
a                     b                     s                      1.0
a                     b                     ¬s                      0.0
a                     ¬b                     s                      0.9
a                     ¬b                     ¬s                      0.1
¬a                     b                     s                      0.8
¬a                     b                     ¬s                      0.2
¬a                     ¬b                     s                      0.1
¬a                     ¬b                     ¬s                      0.9

 

 

Figure 1: Bayes net and probability tables for Q5

  • What is the probability that a patient has disease A

3                                               turn over/Qu. continues …

  • What is the probability that a patient has disease A if we know that the patient has disease B
  • What is the probability that a patient has disease A if we know that the patient has disease B AND symptom S