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
2/3x=10 thankyou for helping me
Novay_Z [31]
(2/3)x = 10
(3/2)(2/3)x = 10(3/2)
x = 30/2 = 15
6 0
3 years ago
Read 2 more answers
Joe has a 28 foot long board. He needs to cut it into 24 equal length parts.How many feet should each section of the board be?
Ilya [14]
28 divides by 24 is 1.1666667 which rounds to 1.17 <——answer
6 0
3 years ago
I really need the answer immediately!!!!!!!!!
igor_vitrenko [27]

Answer

y = 0.2x − 7

Step-by-step explanation:

Find the slope first by subtracting (10, -5) and (5, -6) in slope formula, this will equal 1/5 or 0.2

Then find the y-intercept which is the point that crosses the y-axis, in this case -7 is the y-intercept

Finally format in y=mx + b for slope-intercept form

y=0.2x-7

5 0
2 years ago
Hi I really need help it's confusing 8th grade math is hard can u please tell me what to put in the boxes please
KonstantinChe [14]
Decimal: It’s easier to work with the numbers You can add, subtract, multiply and divide in your head (for the most part) instead of having to find common denominators and things like that.

Fraction: You can put repeating values in fraction form to represent them in a simpler way, as opposed to having to put the line over the repeating digits if it were in decimal form.

Power: Powers are just condensed forms of repeated multiplication, so they save space/time and you can use certain properties with some powers that allow you to multiply and divide them instantly.

Scientific notation: This is good when you’re dealing with numbers that have a lot of digits/place value. That can become confusing, so scientific notation is a way we can represent these numbers clearly and more condensed (takes less space/time).

3 0
3 years ago
Read 2 more answers
the price of a dress is $40.00. it went to sale at a discount of 25%. if the sales tax is 6% what is the final cost of the dress
Delvig [45]
 So first you figure out what 25% of $40.00 is whitch would be $30.00. Then what i think you would do next is add 6% of the cost of the dress. 6% of $30.00 is $1.80. so $30.00 + $1.80 = $31.80 dollors for the dress.
8 0
3 years ago
Other questions:
  • During a clothing store's Bargin Days, the regular price for T-shirts is discounted to $8.25. You have an additional coupon for
    9·1 answer
  • A video game that usually costs $30.65 is marked down 60%. Kelvin determined that the new price of the game would be $18.39. Loo
    8·2 answers
  • What is the quotient of 12 and -1/2
    7·1 answer
  • Please help me I don’t understand
    10·1 answer
  • Which of the following controls what enters or exits a cell?
    6·1 answer
  • Use the reverse order of operation to solve this problem. <br><br><br> 2m = 1
    8·1 answer
  • How to solve -4(3m-1)+9m=m
    10·2 answers
  • Can someone help me with this?​
    5·1 answer
  • Describe fully the single transformation which takes shape A to shape B.
    5·2 answers
  • Find the midpoint of the line segment shown below.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!