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
Cedric lives in an apartment and pays the following expenses each month: electric bill, ; TV streaming service, ; and rent, . Es
Lynna [10]

Answer:

ncjnudnf

Step-by-step explanation:

8 0
3 years ago
I give brainiest!!! Find the area of that sector. Show work.
Aleksandr [31]
That's a quarter of the circle. So find the area of the circle, and divide by 4 to get the answer.

Circle area = 3.14*13^2 = 530.66
Answer = circle area / 4 = 132.665
6 0
2 years ago
Read 2 more answers
A lake has a large population of fish. On average, there are 2,400 fish in the lake, but this number can vary by as much as 155.
AleksAgata [21]

Answer:

Minimum population of fish in lake = 2400 - 155 = 2245

Maximum population of fish in lake = 2400 + 155 = 2555

Step-by-step explanation:

population of fish in lake = 2400

Variation of fish = 155

it means that while current population of fish is 2400, the number can increase or decrease by maximum upto 155.

For example

for increase

population of fish can 2400 + 2, 2400 + 70, 2400 + 130 etc

but it cannot be beyond 2400 + 155.

It cannot be 2400 + 156

similarly for decrease

population of fish can 2400 - 3, 2400 - 95, 2400 - 144 etc

but it cannot be less that 2400 - 155.

It cannot be 2400 - 156

Hence population can fish in lake can be between 2400 - 155 and 2400 + 155

minimum population of fish in lake = 2400 - 155 = 2245

maximum population of fish in lake = 2400 + 155 = 2555

4 0
3 years ago
Geo help pls! 20 PTS
Mice21 [21]
2 is 160, 3 is 10 so it’ll add to 180
3 0
3 years ago
21. Given the equation of the circle (x + 3)² + (y-2)² = 16, what is the center and radius of the circle? A (3.2):r = 4 B. (-3,-
Gre4nikov [31]
I’m still laughing so I just got a text back home lol lol sorry I’m not leaving now I have got a new car so I’m sorry buddy can send it back home if it’s
5 0
1 year ago
Read 2 more answers
Other questions:
  • Felipe picked a pumpkin that weighed three times the weight of Meg's pumpkin Meg's pumpkin with half the weight of Ryan's pump R
    13·1 answer
  • How to do multiplication ​
    12·2 answers
  • Janie bought 4 apples and 6 bananas. Each apple costs $0.40, and each banana costs $0.60. Enter an expression representing the t
    8·1 answer
  • Which is the soluction of x/5 - 10 = 20?<br>A x = 2 <br>B x = 6<br>C x = 50<br>D x = 150
    8·2 answers
  • Plz help question below
    10·1 answer
  • Please help with this
    15·1 answer
  • A new truck costs $32,000 if the truck is worth 24,500 after three years write an explicit formula for the value of the car afte
    11·1 answer
  • Last Saturday jay spent 6 hours playing games,studying, and talking with friends. He spent 2/5 of the time playing and 1/2 of th
    7·1 answer
  • Can you please for the love of god help me it's 2am and I cannot figure this out<br>​
    10·2 answers
  • The value of Zlatans house has increased by 7%
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!