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
Lines l and k are parallel to each other. A=120 degrees. and C=80 degrees. What is the number of degrees in B??
Aleonysh [2.5K]

Answer:

B = 160°

Step-by-step explanation:

This is how I solved it (I hope the explanation isn't too confusing):

Since L and K are parallel, I drew a straight line from A to B. By doing this, I'm making a triangle: ΔABC

Then I solved for the angles of the triangle. First, we are given that ∠C = 80° and ∠A = 120°. Although, when I drew the vertical line from A to B, it made a 90° (see attachment).

So what we basically did was break ∠A into two parts: an angle inside ΔABC and one outside. To find the interior angle, simply subtract 90° from 120° to get 30°.

There are 180° in a triangle, so add the two interior angles you know:

30° + 80° = 110°

Then subtract 110° from 180° to find the final interior angle which is:

180° - 110° = 70°.

To find the measure of angle B, you must add all of the parts together, so the 90° outside angle and the 70° interior angle:

90° + 70° = 160°

5 0
2 years ago
Identify the congruent criteria (mcqs)<br> pls answer all of them
Contact [7]
5. SSS
6. ASA
7. SAS
8. ASA
9. ASA
6 0
2 years ago
11.Use the exponential regression equation that best fits the data
Marysya12 [62]

Answer:

73.5 ....................

6 0
3 years ago
Read 2 more answers
Which equation has no solution?
san4es73 [151]

Answer:

c

Step-by-step explanation:

hope this helps

4 0
2 years ago
PLZ!!!!HELP!!!What is the absolute deviation for 15 in the data set?
Brut [27]
20 + 20 + 30 + 15 + 40 = 125
125/5= 25
25-15 = 10
Absolute deviation for 15 is 10
5 0
3 years ago
Read 2 more answers
Other questions:
  • Can someone help me with this geometry question asap?
    10·1 answer
  • Henry has a fair number pyramid with four faces and a spinner with three equal sized colored sections. what is the probability t
    12·2 answers
  • Help I need a good grade!!!!!!!
    5·2 answers
  • The equation x2 + y2 − 2x + 2y − 1 = 0 is the general form of the equation of a circle. What is the standard form of the equatio
    7·2 answers
  • HELP!
    6·1 answer
  • the 80 students in the fifth grade at Northside Elementary School voted for their favorite animal after a trip to the zoo the el
    7·2 answers
  • 1. A grocery store has 26 shelves for bottled goods. Each shelf can hold 52 bottles. How many bottles will the shelves hold in a
    7·1 answer
  • Two trapeziums are similar, thee area of one of the trapezium is 4times that of the other. Determine the ratio of the perimeter
    9·1 answer
  • Find the simple interest on an investment of $3500 for 2.5 years at
    13·1 answer
  • I thought of a number, added 21, and then added twice my
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!