Question

In: Statistics and Probability

Use MATLAB to plot the likelihood function for estimating the probability of a coin landing heads-up...

Use MATLAB to plot the likelihood function for estimating the probability of a coin landing heads-up without prior knowledge after observing HTHT. -would greatly appreciate if you went in detail on how to find the likelihood function based off the given information.

Solutions

Expert Solution

Let p be the probability of landing Heads up.

Let be the independent outcomes from n toss of a coin, taking the value 1 if it lands heads up and 0 otherwise.

Then has a Bernoulli distribution with parameter p with probability

The joint probability of observing and hence the likelihood is

We wanve observed HTHT. That means n=4.

The likelihood of observing HTHT is

We will plot L(p|x) for different values of p=[0,1] and find the value of p at which the likelihood L is the maximum.

Matlab code

The plot is

We can see that the maximum is at p=0.50.

the output from the program confirms that

The maximum likelihood estimate of p (the probability of a coin landing heads up) given the sample HTHT is


Related Solutions

Analysis question The probability of landing heads in a coin toss is 1/2. Use this information...
Analysis question The probability of landing heads in a coin toss is 1/2. Use this information to explain why the remaining number of pennies is reduced by about half each time they are shaken and tossed.
A coin is tossed 400 times, landing heads up 219 times. Is the coin fair?
A coin is tossed 400 times, landing heads up 219 times. Is the coin fair?
Ken has a coin that has probability 1/5 of landing Heads.    Mary has a coin that...
Ken has a coin that has probability 1/5 of landing Heads.    Mary has a coin that has probability 1/3 of landing Heads.    They toss their coins simultaneously, repeatedly. Let X be the number of tosses until Ken gets his first Heads. Let Y be the number of tosses until Mary gets her first Heads. Find: Let U = min(X,Y) and V = max(X,Y) (d) For k = 1, 2, 3,... , find a formula for P(U = k). (e) For...
(A) Discuss the probability of landing on heads if you flipped a coin 10 times? (B)...
(A) Discuss the probability of landing on heads if you flipped a coin 10 times? (B) What is the probability the coin will land on heads on each of the 10 coin flips? (C) Apply this same binomial experiment to a different real-world situation. Describe a situation involving probability? please explain each and show work. showing the steps to the answer would be great..
Coin 1 comes up heads with probability 0.6 and coin 2 with probability 0.5. A coin...
Coin 1 comes up heads with probability 0.6 and coin 2 with probability 0.5. A coin is continually flipped until it comes up tails, at which time that coin is put aside and we start flipping the other one. (a) What proportion of flips use coin 1? (b) If we start the process with coin 1 what is the probability that coin 2 is used on the fifth flip? (c) What proportion of flips land heads?
Suppose that coin 1 has probability 0.8 of coming up heads, and coin 2 has probability...
Suppose that coin 1 has probability 0.8 of coming up heads, and coin 2 has probability 0.6 of coming up heads. If the coin flipped today comes up heads, then with equal probability we select coin 1 or coin 2 to flip tomorrow, and if it comes up tails, then we select coin 2 to flip tomorrow. (a) If the coin initially flipped is coin 1, what is the probability that the coin flipped on the second day after the...
30.Consider a coin that comes up heads with probability p and tails with probability 1 −...
30.Consider a coin that comes up heads with probability p and tails with probability 1 − p. Let qn be the probability that after n independent tosses, there have been an even number of heads. Derive a recursion that relates qn to qn−1, and solve this recursion to establish the formula qn = 1 + (1 − 2p) n 2 Using method other than Mathematical Induction
A bias coin has the probability 2/3 of turning up heads. The coin is thrown 4...
A bias coin has the probability 2/3 of turning up heads. The coin is thrown 4 times. (a) What is the probability that the total number of heads shown is 3? (b) Suppose that we know that outcome of the first throw is a head. Find the probability that the total number of heads shown is 3. (c) If we know that the total number of heads shown is 3, find the probability that the outcome of the first throw...
Please give detailed solution for this Coin 1 comes up heads with probability .3, whereas coin...
Please give detailed solution for this Coin 1 comes up heads with probability .3, whereas coin 2 comes up heads with probability .6. A coin is randomly chosen and flipped 10 times. (a) Find the probability the first flip lands heads. (b) Find the expected number of heads in the 10 flips. (c) Find the probability that there are a total of 7 heads.
In a sequence of independent flips of a fair coin thwr comes up heads with probability...
In a sequence of independent flips of a fair coin thwr comes up heads with probability 0.6, what is the probability that there is a run of three consecutive heads within the first 10 flips? Show a Markov chain that counts the number of consecutive heads attained.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT