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
The ratio of Val's savings to Dan is 2:3 at first. After Dan spent P3000.00, Val's saving became 11/3 more of that Dan's remaini
andrew11 [14]

Answer:

P.7500.00

Step-by-step explanation:

We are told that:

The ratio of Val's savings to Dan is 2:3 at first.

Now, Dan spent P3000.00 and Val's saving became 1⅓ more of that Dan's remaining savings.

Let's say the total amount of savings they had at first was x.

Thus;

Val had: 2x/5

Dan had: 3x/5

Now, Dan spent P3000.00.

So amount Dan has left = (3x/5) - 3000

We are told Val's savings is now 1⅓ = 4/3 times that of Dan's remaining savings

Thus; 2x/5 = (4/3)((3x/5) - 3000)

2x/5 = 12x/15 - 4000

Multiply through by 15 to get;

6x = 12x - (3000 × 15)

6x = 12x - 45000

Rearranging, we have;

12x - 6x = 45000

6x = 45000

x = 45000/6

x = P.7500

4 0
3 years ago
PLEASE HELP TIMED---
LekaFEV [45]

Answer:

6/10

Step-by-step explanation:

i think sorry if incorrect

3 0
3 years ago
Read 2 more answers
What are the discontinuities of the function y= 1500/x
Ratling [72]
The discontinuity occurs at x = 0, since that is the only "problem" place in the graph that makes the function undefined. A vertical asymptote exists there. It is nonremoveable.
4 0
4 years ago
Intergrate secx(secx+tanx) dx
frozen [14]
\displaystyle\int\sec x(\sec x+\tan x)\,\mathrm dx=\int(\sec^2x+\sec x\tan x)\,\mathrm dx=\tan x+\sec x+C
3 0
3 years ago
Antwan Campbell earns $494 per week. He is married and claims 1 child as a dependent. The state tax rate is 2.25% of taxable inc
DENIUS [597]

Answer:

$12.35

Step-by-step explanation:

Amount earned by Campbell per week = $494

Tax rate = 2.25 %

Amount withheld = 2.25% of his earning;

Amount withheld = 2.25 % of 494

Amount withheld = 0.025 * 494

Amount withheld  = $12.35

Hence the amount withheld from his weekly pay for state income tax is $12.35

7 0
3 years ago
Other questions:
  • A checkbook register began the page with a balance of $600.84. A check was written for $89.50. A deposit was made for $55. Bank
    5·1 answer
  • A boat traveled 27 miles in 2 hours. at this rate, how many miles will the boat travel in 1 2 hour
    5·1 answer
  • 2[3(4+ + 1] - 2<br> Please answer
    7·1 answer
  • Elena writes the equation 6x + 2y = 12. Write a new equation that has:
    11·1 answer
  • Gabriel determined that his total cost would be represented by 2.5x + 2y – 2. His sister states that the expression should be x
    15·1 answer
  • 16. A sweater is marked 30% off during an
    12·1 answer
  • Pleaseeeeeee help!!!!!
    7·2 answers
  • If I have five gallons of paint and I used 3/4 of the five gallons how much do I have left over ​
    14·1 answer
  • Leo buys a new car for $17,600. The simple interest rate is 8.4% and the amount of loan (plus simple interest) is repayable in 5
    6·1 answer
  • Which type of sequence is shown?<br> -2,0, 2, 4, 6, ...
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!