1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kolbaska11 [484]
3 years ago
11

Jack has three coins C1, C2, and C3 with p1, p2, and p3 as their corresponding probabilitiesof landing heads. Jack flips coin C1

twice and then decides, based on the outcome, whetherto flip coin C2 or C3 next. In particular, if the two C1 flips come out the same, Jack flips coinC2 three times next. However, if the C1 flips come out different, he flips coin C3 three timesnext. Given the outcome of Jack’s last three flips, we want to know whether his first two flipscame out the same. Describe a Bayesian network and a corresponding query that solves thisproblem. What is the solution to this problem assuming that p1 = .4, p2 = .6, and p3 = .1and the last three flips came out as follows:(a) tails, heads, tails(b) tails, tails, tails
Mathematics
1 answer:
nikitadnepr [17]3 years ago
8 0

Let X denote the event that the two C_1 flips yield the same faces (1 if the same faces occur, 0 if not), so that

P(X=x)=\begin{cases}2{p_1}^2-2p_1+1&\text{for }x=1\\2p_1-2{p_1}^2&\text{for }x=0\\0&\text{otherwise}\end{cases}

For example,

P(X=1)=P(C_1=\mathrm{HH}\lor C_1=\mathrm{TT})=P(C_1=\mathrm{HH})+P(C_1=\mathrm{TT})={p_1}^2+(1-p_1)^2

Let Y denote the outcome (number of heads) of the next three flips of either C_2 or C_3. By the law of total probability,

P(Y=y)=P(Y=y\land X=1)+P(Y=y\land X=0)

P(Y=y)=P(Y=y\mid X=1)P(X=1)+P(Y=y\mid X=0)P(X=0)

and in particular we have

P(Y=y\mid X=1)=\begin{cases}\dbinom3y{p_2}^y(1-p_2)^{3-y}&\text{for }y\in\{0,1,2,3\}\\\\0&\text{otherwise}\end{cases}

P(Y=y\mid X=0)=\begin{cases}\dbinom3y{p_3}^y(1-p_3)^{3-y}&\text{for }y\in\{0,1,2,3\}\\\\0&\text{otherwise}\end{cases}

Then

P(Y=y)=\begin{cases}\dbinom3y{p_2}^y(1-p_2)^{3-y}(2{p_1}^2-2p_1+1)+\dbinom3y{p_3}^y(1-p_3)^{3-y}(2p_1-2{p_1}^2)&\text{for }y\in\{0,1,2,3\}\\\\0&\text{otherwise}\end{cases}

Jack wants to find P(X=1\mid Y=y) for some given y.

a. With y=1, we have

P(X=1\mid Y=1)=\dfrac{P(X=1\land Y=1)}{P(Y=1)}

P(X=1\mid Y=1)=\dfrac{P(Y=1\mid X=1)P(X=1)}{P(Y=1)}

P(X=1\mid Y=1)=\dfrac{\binom31p_2(1-p_2)^2(2{p_1}^2-2p_1+1)}{\binom31p_2(1-p_2)^2(2{p_1}^2-2p_1+1)+\binom31p_3(1-p_3)^2(2p_1-2{p_1}^2)}

P(X=1\mid Y=1)\approx\dfrac{0.1498}{0.2376}\approx0.6303

b. With y=0, we'd get

P(X=1\mid Y=0)=\dfrac{P(X=1\land Y=0)}{P(Y=0)}

P(X=1\mid Y=0)=\dfrac{P(Y=0\mid X=1)P(X=1)}{P(Y=0)}

P(X=1\mid Y=0)\approx\dfrac{0.0333}{0.1128}\approx0.295

You might be interested in
.7 times 4 all this is for a question
anyanavicka [17]

Answer:

7777

Step-by-step explanation:

3 0
3 years ago
Evaluate.4 2 – 6+2 +3 =
Charra [1.4K]
4^2-6\text{ / 2 + 3 = ?}4^2\text{ - }\frac{6}{2}\text{ + 3 = ? }\Rightarrow\text{ 16 - 3 + 3 = ?}

16 - 3 + 3 = 16

3 0
1 year ago
What would the answer be for this question to find out the answer to it
Kay [80]

Answer: 294

Step-by-step explanation:

81-25+800/2=

81-25+400=

81-375=  294

3 0
3 years ago
What is bigger 4 out of 5 or 0.325
Dahasolnce [82]
4/5 is bigger: 4/5 = 0.8
3 0
3 years ago
Read 2 more answers
Krutika was thinking of a number. Krutika halves the number and gets an answer of 86. Form an equation with x from the informati
ddd [48]
X divided by 2=86

X=172
8 0
3 years ago
Other questions:
  • Four students buy a box of popsicles for 4.29 and a bag of pretzels for 3.97. how much should each person contribute to the tota
    9·1 answer
  • Find the absolute value of 3.1+(-6.3)
    12·1 answer
  • Write a description of how a diagram can help you solve 2x40
    12·1 answer
  • If m∠ABC = 72°, what is m∠DAB?<br> A) 72° <br> B) 108° <br> C) 144° <br> D) 216°
    12·2 answers
  • Type the correct answer in the box.Use numerals instead of words. If necessary, use / for the fraction bar.
    7·1 answer
  • If the side of a triangle are 16, 24 and 18 , the triangle is ____
    15·1 answer
  • If f(x) = x2 – 1 and g(x) = 2x – 3, what is the domain of (F g)(x)
    10·2 answers
  • What is the volume of a cube if the length measures 2 cm?
    10·1 answer
  • Use the table below to answer the following questions. a. Plot the points (x,y) in this table on a graph (except when x is 5)
    7·1 answer
  • HELLPPPPPPP PLEASEEE​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!