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
Darya [45]
3 years ago
11

Suppose that bugs are present in 1% of all computer programs. A computer de-bugging program detects an actual bug with probabili

ty 0.99, but falsely detects a nonexistent bug with probability .02. Give numerical answers to each of the following questions:
(i) If the de-bugging program claims to have found a bug in program A, what is the probability that the bug is actually present?

(ii) Suppose that Program A is tested twice, the two tests conducted independently. If the de-bugging program claims that bugs are present on both the first and second tests, what is the probability that a bug is actually present?

(iii) Suppose that Program A is tested three times, the three tests conducted independently. If the de-bugging program claims that bugs are present on all three tests, what is the probability that a bug is actually present?
Mathematics
1 answer:
lawyer [7]3 years ago
4 0

Answer:

(i) The probability that there is a bug in the program given that the de-bugging program has detected the bug is 0.3333.

(ii) The probability that the bug is actually present given that the de-bugging program claims that bugs are present on both the first and second tests is 0.1111.

(iii) The probability that the bug is actually present given that the de-bugging program claims that bugs are present on all three tests is 0.037.

Step-by-step explanation:

Denote the events as follows:

<em>B</em> = bugs are present in a computer program.

<em>D</em> = a de-bugging program detects the bug.

The information provided is:

P(B) =0.01\\P(D|B)=0.99\\P(D|B^{c})=0.02

(i)

The probability that there is a bug in the program given that the de-bugging program has detected the bug is, P (B | D).

The Bayes' theorem states that the conditional probability of an event <em>E </em>given that another event <em>X</em> has already occurred is:

P(E|X)=\frac{P(X|E)P(E)}{P(X|E)P(E)+P(X|E^{c})P(E^{c})}

Use the Bayes' theorem to compute the value of P (B | D) as follows:

P(B|D)=\frac{P(D|B)P(B)}{P(D|B)P(B)+P(D|B^{c})P(B^{c})}=\frac{(0.99\times 0.01)}{(0.99\times 0.01)+(0.02\times (1-0.01))}=0.3333

Thus, the probability that there is a bug in the program given that the de-bugging program has detected the bug is 0.3333.

(ii)

The probability that a bug is actually present given that the de-bugging program claims that bug is present is:

P (B|D) = 0.3333

Now it is provided that two tests are performed on the program A.

Both the test are independent of each other.

The probability that the bug is actually present given that the de-bugging program claims that bugs are present on both the first and second tests is:

P (Bugs are actually present | Detects on both test) = P (B|D) × P (B|D)

                                                                                     =0.3333\times 0.3333\\=0.11108889\\\approx 0.1111

Thus, the probability that the bug is actually present given that the de-bugging program claims that bugs are present on both the first and second tests is 0.1111.

(iii)

Now it is provided that three tests are performed on the program A.

All the three tests are independent of each other.

The probability that the bug is actually present given that the de-bugging program claims that bugs are present on all three tests is:

P (Bugs are actually present | Detects on all 3 test)

= P (B|D) × P (B|D) × P (B|D)

=0.3333\times 0.3333\times 0.3333\\=0.037025927037\\\approx 0.037

Thus, the probability that the bug is actually present given that the de-bugging program claims that bugs are present on all three tests is 0.037.

You might be interested in
Someone pls help me with this im new thats why tysm if you do help!!:)
Kipish [7]

Answer:

-8 hope this helps

Step-by-step explanation:

7 0
3 years ago
Estamate 12871+6281+5146 by first rounding each number to the nearest thousand.
Pie
12,871 rounded to nearest thousand = 13,000.

6281 rounded to nearest thousand = 6,000.

5146 rounded to nearest thousand = 5,000.

In total, 13,000 + 6,000 + 5,000 = 24,000.
4 0
3 years ago
Determine which of the lines are parallel and which of the lines are perpendicular.
hichkok12 [17]
This would be easier for you if you put it in a graph
6 0
2 years ago
Determine the scale factor of the diagram
Leno4ka [110]
5 cm de longitud de eso
8 0
3 years ago
Find the circumference of the given circle given a diameter of 40 cm.
andriy [413]
The circumference of the given circle would be 125.6 cm. This is due to finding the circumference is multiplying it’s diameter by PI (3.14) giving you the total circumference of the circle.
6 0
3 years ago
Read 2 more answers
Other questions:
  • When completely full, a cube-shaped container will hold 8,000 cubic centimeter of water. What is the length of an edge of the co
    6·1 answer
  • When the new computer lab opened there were 18 computers.by the end of firdt week there were 25 computers. Find the percent of c
    7·1 answer
  • Christina will be retiring next month from her job after 35 years as a school bus driver. Over the last 35 years, Christina’s an
    10·2 answers
  • How many solutions does the system have?<br><br> 4x−6y=−24<br> 2x−3y=−6<br> ​
    5·1 answer
  • If 1 pound = 16 ounces, how many pounds are<br> in 435 ounces?<br> please help lol
    14·1 answer
  • Mr. Ward invests $45,000 in a bank at the beginning of the year. He will receive an interest rate of 8% per year. How much inter
    10·1 answer
  • Select all of the questions for which x=3 is a solution
    12·1 answer
  • What's the product of 7/8 and 9/12​
    15·2 answers
  • 9,3,1, what is the sequence and what is it equal to?
    13·1 answer
  • 49. Make Sense and Persevere A person's
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!