Question

In: Math

Problem 6 (Inference via Bayes’ Rule) Suppose we are given a coin with an unknown head...

Problem 6 (Inference via Bayes’ Rule)
Suppose we are given a coin with an unknown head probability θ ∈ {0.3,0.5,0.7}. In order to infer the value θ, we experiment with the coin and consider Bayesian inference as follows: Define events A1 = {θ = 0.3}, A2 = {θ = 0.5}, A3 = {θ = 0.7}. Since initially we have no further information about θ, we simply consider the prior probability assignment to be P(A1) = P(A2) = P(A3) = 1/3.
(a) Suppose we toss the coin once and observe a head (for ease of notation, we define the event B = {the first toss is a head}). What is the posterior probability P(A1|B)? How about P(A2|B) and P(A3|B)? (Hint: use the Bayes’ rule)
(b) Suppose we toss the coin for 10 times and observe HHTHHHTHHH (for ease of notation, we define the event C = {HHTHHHTHHH}). Moreover, all the tosses are known to be independent. What is the posterior probability P(A1|C), P(A2|C), and P(A3|C)? Given the experimental results, what is the most probable value for θ?
(c) Given the same setting as (b), suppose we instead choose to use a different prior probability assignment P(A1) = 2/5,P(A2) = 2/5,P(A3) = 1/5. What is the posterior probabilities P(A1|C), P(A2|C), and P(A3|C)? Given the experimental results, what is the most probable value for θ?

Solutions

Expert Solution


Related Solutions

Suppose we are flipping a coin with Head (H) and Tail (T) sides. The coin is...
Suppose we are flipping a coin with Head (H) and Tail (T) sides. The coin is not balancedwith 0.6 probability of H coming up (and 0.4 of T). Compute the probabilities of getting: a)HTHT b)THTTE c)Exactly 1 Head out of a sequence of 4 coin flips. d)Exactly 1 Tail out of sequence of 4 coin flips
A fair coin is tossed until a head appears. Given that the first head appeared on...
A fair coin is tossed until a head appears. Given that the first head appeared on an even-numbered toss, find the probability that it occurred on the second or the fourth toss.
Bayes' Rule Problem Consider the following simplified view of a manager and worker. The worker selects...
Bayes' Rule Problem Consider the following simplified view of a manager and worker. The worker selects either high (H) or low (L) effort. Given effort, the firm's profit is either x1 or x2, with x1 < x2. Assume that the probability of x1, given that the worker selected H, is f(x1 | H) = 1/10 and the probability of x1, given that the worker selected L, is f(x1 | L) = 4/5 . Note that the f functions are just...
Suppose that we have a red coin and a blue coin. The red coin has probability...
Suppose that we have a red coin and a blue coin. The red coin has probability pR = 0.1 of landing heads, and the blue coin has probability pB = 0.2 of landing heads. (a) Write R code to generate a sequence of coin tosses, starting with the red coin, and switching coins every time a coin lands heads. (b) Generate 1000 such sequences, each consisting of 1000 coin tosses, and use them to construct a plot of the 2.5%,...
An individual makes decisions according to Bayes’ decision rule. For her current problem, she has constructed...
An individual makes decisions according to Bayes’ decision rule. For her current problem, she has constructed the following payoff table, and she now wishes to maximize the expected payoff. Alternative State of Nature         q1        q2        q3 a1 3x 40        10 a2 35 50        90 a3 25 2x        30 Prior probability        0.2 0.5 0.3 The value of x currently is 50, but there is an opportunity to increase x by spending some money now.   What is the maximum amount that should...
Suppose you win $1 if a unfair coin shows a head and lose $1 if it...
Suppose you win $1 if a unfair coin shows a head and lose $1 if it shows a tail. Denote the outcome on toss t by st. For each coin toss, there is 60% probability to get a head, and 40% probability to get a tail. For each independent coin toss t, your average winnings on the last three tosses (wt) are 1/3st + 1/3st−1 + 1/3st−2 (1) (a)Compute the expected value and variance of st. (b)(i) Compute the expected...
A coin has a probability of 1/4 for head, and is repeatedly tossed until we throw...
A coin has a probability of 1/4 for head, and is repeatedly tossed until we throw head. The successive results of the toss are independent of each other. What is the probability that the first time we throw head after an odd number of toss? Hint: Use the law of total probability and consider the event that the first toss is head is, and her complement, as conditioning events. Correct answer: 3/7
Suppose we suspect a coin is not fair — we suspect that it has larger chance...
Suppose we suspect a coin is not fair — we suspect that it has larger chance of getting tails than heads, so we want to conduct a hypothesis testing to investigate this question. a: Let p be the chance of getting heads, write down the alternative hypothesis Ha and the null hypothesis H0 in terms of p. b: In order to investigate this question, we flip the coin 100 times and record the observation. Suppose we use T = the...
Suppose you play a coin toss game in which you win​ $1 if a head appears...
Suppose you play a coin toss game in which you win​ $1 if a head appears and lose​ $1 if a tail appears. In the first 100 coin​ tosses, heads comes up 34 times and tails comes up 66 times. Answer parts​ (a) through​ (d) below. a. What percentage of times has heads come up in the first 100​ tosses? 34​% What is your net gain or loss at this​ point? Select the correct choice and fill in the answer...
Suppose that we flip a fair coin until either it comes up tails twice or we...
Suppose that we flip a fair coin until either it comes up tails twice or we have flipped it six times. What is the expected number of times we flip the coin?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT