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
Customers can pick their own apples at the happy apple farm. they pay $6 to enter the farm and $3.50 per pound for the apples th
Amanda [17]
Y = 3.5x + 6

Shows the 6 inital fee plus the 3.50 for each pound
4 0
4 years ago
Read 2 more answers
Six hikers shared 4 1/2 lbs of trail mix. How much trail mix did each hiker receive?
babunello [35]
6 hikers = 4.5 lbs of trail mix

4.5 divided by 6= .75 lbs each hiker.
3 0
4 years ago
Read 2 more answers
Kelly just completed compiling a listing of her firm's accounts receivables with each invoice segregated according to the length
ivanzaharov [21]

Answer:

Aging schedule

Step-by-step explanation:

An aging schedule can be defined as a schedule that help to shows a company's or an organisation accounts receivables, ordered by their due dates in order for the company or organisation to see if their customers are paying on time reason been that AGING SCHEDULE enables account receivable to be summarized into separate or different time brackets which in turn rank the receivables based upon the days until due or the days past due.

In other word Aging schedule is a table that help to shows a summarized break down of accounts receivable into different time brackets in order for a company or an organisation to easily identify the customers that are extending the time it takes to collect your accounts receivable.

3 0
3 years ago
The annual tuition at a public two-year college last year was $3,200. For the new school year, Elizabeth’s first year in college
Korolek [52]

he tuition of $3,200 increased by 5% is: 3,200 + 0.05*3,200 = 1.05*3,200 = $3,360

Elizabeth saved equal amounts each month for 12 months the previous year thus we divide $3,360 by 12 to find how much she saved monthly:

$3,360 : 12 = $280

The minimum amount Elizabeth should have saved monthly is $280.

6 0
3 years ago
What ratio is equal to 2/3??
Andrew [12]

Answer:4/6. 6/9. 8/12. 10/15

Step-by-step explanation:all of those fractions reduced are equivalent to the fraction 2/3

3 0
3 years ago
Other questions:
  • 71. Suppose that you currently have one credit card with a balance of $10,000 at an annual rate of 24.00% interest. You have sto
    10·1 answer
  • Huilan is 7 years younger than thomas the sum of their age is 59 what is thomas age
    10·2 answers
  • One third of a number t is equal to 7
    13·2 answers
  • Find the integral using substitution or a formula.
    11·1 answer
  • You deposit $250 in an account. The account earns $20 simple interest in 4 years. What is the annual interest rate?
    12·1 answer
  • Answer this for me please! thanks very much &lt;3
    6·1 answer
  • Han's house is 450 meters from school. Lin's house is 135 meters closer to school. how far is Lin's house from school
    15·2 answers
  • What the answer to this "difficult" math equation?
    12·2 answers
  • PLEASE HELP ASAP I WILL MARK AS BRAINLIEST
    14·1 answer
  • Write the given fraction as a decimal: 18/40.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!