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
Mumz [18]
3 years ago
7

Suppose you are given a bag containing n unbiased coins. You are told that n − 1 of these coins are normal, with heads on one si

de and tails on the other, whereas one coin is a fake, with heads on both sides. . Suppose you reach into the bag, pick out a coin at random, flip it, and get a head. What is the (conditional) probability that the coin you chose is the fake coin?. Suppose you continue flipping the coin for a total of k times after picking it and see k heads. Now what is the conditional probability that you picked the fake coin? . Suppose you wanted to decide whether the chosen coin was fake by flipping it k times. The decision procedure returns fake if all k flips come up heads; otherwise it returns normal. What is the (unconditional) probability that this procedure makes an error?
Computers and Technology
1 answer:
Charra [1.4K]3 years ago
4 0

Answer:

a) [2/n+1]

b) 2ᵏ/[2ᵏ + (n-1)]

Explanation:

(n-1) coins are fair and only 1 is a fake coin with two heads.

This means there are a total of n coins in the bag.

Let the probability of getting a head be P(h)

Probability of picking a fake coin = P(f) = (1/n)

Probability of getting head on a fake coin = P(h|f) = 1

Probability of picking a fake coin and getting a head = P(f n h) = (1/n) × 1 = (1/n)

Probability of picking the right (original) coin = P(r) = (n-1)/n

Probability of getting a head on the right coin = P(h|r) = (1/2)

Probability of picking a real coin and getting a head = P(h n r) = [(n-1)/n] × (1/2) = [(n-1)/2n]

a) The required conditional probability is the probability that the coin is fake, given that it turns up head

P(f|h) = P(f n h)/P(h)

P(f n h) = (1/n)

But, we do not have P(h). We can obtain it through the relation,

P(h) = P(h n r) + P(h n f)

= P(r) P(h|r) + P(f) P(h|f)

= {[(n-1)/n] × [1/2] + [1/n] [1]

= [(n-1)/2n] + [1/n]

= (n+1)/2n

P(f|h) = P(f n h)/P(h)

= (1/n) ÷ [(n+1)/2n] = [2/n+1]

b) The second required probability

Probability that it's a fake coin, given that we get k heads.

P(f|k heads) = P(f n k heads) ÷ P(k heads)

P(f n k heads) = (1/n) × 1ᵏ = (1/n)

But, we do not have P(k heads). We can obtain it through the relation,

P(k heads) = P(r n k heads) + P(f n k heads)

P(r n k heads) = [(n-1)/n] × [1/2)ᵏ

= [(n-1)/2ᵏn]

P(f n k heads) = (1/n)

P(k heads) = P(r n k heads) + P(f n k heads)

= [(n-1)/2ᵏn] + [1/n]

P(f|k heads) = P(f n k heads) ÷ P(k heads)

= [1/n] ÷ {[(n-1)/2ᵏn] + [1/n]}

On simplifying,

We obtain

P(f|k heads) = 2ᵏ/[2ᵏ + (n-1)]

Note that, Bayes rule is the guiding principle in all the conditional probability evaluations we have done above.

Hope this Helps!!!

You might be interested in
A spreadsheet has some values entered: Cell A1 contains 10, cell A2 contains 14, cell A3 contains 7. You enter in cell A4 the fo
lesya [120]
The value displayed in A4 is 24
5 0
3 years ago
Which best describes how computer simulations are used in science?
xz_007 [3.2K]
Computer simulation is just like training for example before pilot fly plane they got training from computer simulation it's just like video lecture
5 0
3 years ago
Hey guys do you mind subscribing to my utube BrokenShoe once I hit 40 subs I'm doing a massive giveaway of gift cards ps: also g
luda_lava [24]

Answer:

ok

Explanation:

4 0
3 years ago
Write a full class definition for a class named Counter, and containing the following members: A data member counter of type int
vfiekz [6]

// making the class

class Counter {

int counter;

int limit;

// Constructor

Counter(int a, int b){

counter = a;

limit = b;

}

// static function to increment

static increment(){

if(counter<limit)

nCounter+=1;

}

// Decrement function

void decrement(){

if(counter>0)

nCounter-=1;

}

int getValue(){

return counter;

}

static int nCounter;

int getNCounters(){

return nCounter;

}

};

// Initializa the static

int Counter::nCounter = 0;

4 0
3 years ago
Sets of rules that a computer uses to solve problems?
jonny [76]

Protocal

I need to make this 20 charaters so ye

8 0
4 years ago
Read 2 more answers
Other questions:
  • A technology _____ begins with the birth of a new technology and ends when that technology reaches its limits and dies as it is
    13·1 answer
  • While trying to solve a network issue, a technician made multiple changes to the current router configuration file. The changes
    7·1 answer
  • Helen has no experience in security. She would like to earn a certification that demonstrates that she has the basic knowledge n
    15·1 answer
  • Suppose the program counter (pc) is set to 0x2000 0000. is it possible to use the jump (j) mips assembly instruction to set the
    15·1 answer
  • I'm the state of Florida, your first conviction for DUI can result in your vehicle being impounded for
    5·1 answer
  • Write a program that reads a stream of integers from a file and writes only the positive numbers to a second file. The user shou
    5·1 answer
  • Technician A says that the first step in the diagnostic process is to verify the problem (concern). Technician B says that the s
    11·1 answer
  • What best describes presentation software?
    14·1 answer
  • Presentation software allows users to what ?
    5·2 answers
  • Which of the following is NOT areserved word in Java?intpublicstaticnum
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!