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
Marty and Ethan both wrote a function, but in different ways.
marishachu [46]

<em><u>Question:</u></em>

Marty and Ethan both wrote a function, but in different ways.

Marty

y+3=1/3(x+9)

Ethan

x y

-4 9.2

-2 9.6

0 10

2 10.4

Whose function has the larger slope?

1. Marty’s with a slope of 2/3

2. Ethan’s with a slope of 2/5

3. Marty’s with a slope of 1/3

4. Ethan’s with a slope of 1/5

<em><u>Answer:</u></em>

Marty’s with a slope of 1/3 has the larger slope

<em><u>Solution:</u></em>

<em><u>Given that Marty equation is:</u></em>

y + 3 = \frac{1}{3}(x+9)

<em><u>The point slope form is given as:</u></em>

y - y_1 = m(x-x_1)

Where, "m" is the slope of line

On comapring both equations,

m = \frac{1}{3}

<em><u>Ethan wrote a function:</u></em>

Consider any two values from the table we have;

(0, 10) and (2, 10.4)

<em><u>The slope is given by formula:</u></em>

m = \frac{y_2-y_1}{x_2-x_1}

From above two points,

(x_1, y_1) = (0, 10)\\\\(x_2, y_2) = (2, 10.4)

Therefore,

m = \frac{10.4-10}{2-0}\\\\m = \frac{0.4}{2} \\\\m = 0.2

Thus we get,

\text{Slope of Ethan} < \text{Slope of Marty}

Therefore, Marty’s with a slope of 1/3  has the larger slope

4 0
3 years ago
Read 2 more answers
PLEASE HELP
tia_tia [17]

Answer:

Both were major port cities. (A)

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
Please help!!!
sasho [114]

Answer:

B!

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Anyone I need help with this problem plss
Nady [450]

Answer:

About 1.23 standard deviation above the mean

Step-by-step explanation:

From what we have here, we need to calculate the difference between the given value and the mean and divide by the standard deviation

That would be through calculating the z score as follows;

z-score = (x - mean)/SD

where x is the given value

z-score = (87-71)/13 = 1.23

Since the score is bigger than the mean, the correct choice here is that the score is about 1.23 standard deviation above the mean

3 0
3 years ago
I need help with the first two please
lesantik [10]

Answer:

1. 45 minutes a day cycling

2.$1.55 on each cup of coffee a day

Step-by-step explanation:

1. You would figure up how much he jogs per week by multiplying 15 times 5 which would be 75 minutes and then from there you would subtract 75 from 300 and get 225 and divide 225 and 5 and end up with 45

2. You would multiply $.75 by 4 to figure up how much he spends on donuts which is $3 and then subtract  15.40 from 3 and get 12.40 and divide 12.40 by 8 since he goes twice a day and end up with 1.55

3 0
3 years ago
Other questions:
  • Leslie has to measure 8 cups of gaterade and she has 2 1/2 how much more does she need
    5·2 answers
  • A 6 feet tall boy cast a shadow of 9 feet at the same time of day at the shadow of the tree measures 21 feet what is the height
    9·1 answer
  • Find the equation of the line that goes through (2,4) and has a slope of -2
    12·1 answer
  • Solve algebraically y = - x - 2 y = - 2x
    14·1 answer
  • According to the National Health Statistics Reports, the standard deviation of the weights of all one-year-old baby boys born in
    5·1 answer
  • HELP. PLEASE I put the coordinates but don't know what the answer is HELP ME​
    10·1 answer
  • I NEED HELP ASAP!!! I'LL GIVE BRAINLIEST TO THE CORRECT ANSWER!!!
    9·2 answers
  • A saleswoman earns a 30% commission on all the merchandise that she sells. Last month she sold $400 worth of merchandise. How mu
    5·2 answers
  • Find the degree of the monomial (question in image)
    9·2 answers
  • !Can some1 help! !Help FAST!
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!