Suppose that bugs are present in 1% of all computer programs. A computer de-bugging program detects an actual bug with probability 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?
Introduction:
Denote B as the event that a bug is actually present, so that Bꞌ denotes the event that no bug is actually present. Denote T+ as the event that the de-bugging program detects the presence of a bug, that is, it tests positive, and T– as the event that the de-bugging program does not detect the presence of a bug, that is, it tests negative.
(i)
The given probabilities are as follows:
P (B) = 0.01 (= 1%) (Bug is present).
P (Bꞌ) = 0.99 (= 1 – 0.01) (Therefore, bug is absent).
P (T+ | B) = 0.99 (Tests positive when there is actual bug).
P (T+ | Bꞌ) = 0.02 (Tests positive when there is no actual bug).
Conditional probability:
For any 2 events A and B, the probability of the occurrence of A when B has already occurred, is the conditional probability: P (A | B) = P (A ⋂ B) / P (B). As a result, the intersection probability can be written as: P (A ⋂ B) = P (B) ∙ P (A | B).
Further recall that, P (Aꞌ | B) + P (A | B) = 1.
Using the above relationships and the given probabilities, the following can be obtained:
P (T– | B) = 0.01 (= 1 – 0.99) (Tests negative when there is actual bug).
P (T– | Bꞌ) = 0.98 (= 1 – 0.02) (Tests negative when there is no actual bug).
P (T+ ⋂ B) = 0.0099 (= 0.99 * 0.01).
P (T– ⋂ B) = 0.0001 (= 0.01 * 0.01).
P (T+ ⋂ Bꞌ) = 0.0198 (= 0.02 * 0.99).
P (T– ⋂ Bꞌ) = 0.9702 (= 0.98 * 0.99).
The probability that there is a bug present, given that the test is positive, is as follows:
P (B | T+) = P (T+ ⋂ B) / P (T+).
Now, P (T+) = P (T+ ⋂ B) + P (T+ ⋂ Bꞌ).
= 0.0099/ (0.0099 + 0.0198)
= 0.0099/0.0297
≈ 0.3333.
Thus, if the de-bugging program claims to have found a bug in program A, the probability that the bug is actually present is 0.3333.
(ii)
Since Program A is tested twice and independently, if the de-bugging program claims that bugs are present on both the first and second tests, the situation described in Part (i) will be replicated twice; then the probability that the bug is actually present is:
[P (B | T+) ∙ P (B | T+)]
= [P (B | T+)]2
= (0.3333)2
≈ 0.1111.
Thus, if the de-bugging program claims that bugs are present on both the first and second tests, the probability that the bug is actually present is 0.1111.
(iii)
Again, if Program A is tested thrice, independently, and the result is positive for all three tests, the probability of the presence of a bug is:
[P (B | T+) ∙ P (B | T+) ∙ P (B | T+)]
= [P (B | T+)]3
= (0.3333)3
≈ 0.0370.
Thus, if the de-bugging program claims that bugs are present on all three tests, the probability that the bug is actually present is 0.0370.
Suppose that bugs are present in 1% of all computer programs. A computer de-bugging program detects...
4. Suppose a computer program has an error in it. To locate the error, investigators conduct a series of independent tests. Each test is based on a set of random inputs for the program. Suppose the probability that a random test detects the error is 0.16. (a) What is the expected number of tests that will need to be conducted to detect the error? What is the standard deviation? (b) Suppose that the error is not removed after it is...
RBV testing Suppose that 1% of all people are infected with the rare banana virus (RBV). There is a test to detect the RBV: if you do have the RBV, then the test will correctly detect this 99% of the time; if you do not have RBV, then the test will correctly indicate this 97% of the time. We assume that if the RBV test is given repeatedly to the same person, then the test results are independent of cach...
Case Study 1: Should a Computer Grade Your Essays? Would you like your college essays graded by a computer? Well, you just might find that happening in your next course. In April 2013, EdX, a Harvard/MIT joint venture to develop massively open online courses (MOOCs), launched an essay-scoring program. Using arti ficial intelligence technology, essays and short answers are immediately scored and feedback tendered, allowing students to revise, resubmit, and improve their grade as many times as necessary. The non-profit...
plesse help with explanations and answers for all of those ...
im stuck and cant figure out how to do them. its the hard copy from
web work wnd they are all incorrect.
P align="center Inference about a Population Propor- tion /p hr Due: 07/01/2019 at 11:59pm EDT hrStudents will be able to: iUL ili;, Perform a hypothe- sis test on population proportion /li ili; Cakculate a confidence interval for a population proportionAi Interpret levels of significance/i il Perform a...
Programming Language: JAVA
Construct a program that uses an agent to solve a Sudoku
puzzle as a Constraint Satisfaction Problem, with the following
guidelines:
1. Since 3 x 3 puzzles are too trivial for a computer, your
program should use 4 x 4 puzzles (also known as Super Sudoku
puzzles; see Figure 2 for an example).
2. The program should read a Sudoku puzzle from a text file. The
user should be able to browse the file system to select...
Required:
1. What is the amount of Apple’s accounts
receivable as of September 30, 2017?
2. Compute Apple’s accounts receivable turnover as
of September 30, 2017.
3. How long does it take, on average, for
the company to collect receivables for fiscal year ended September
30, 2017?
4. Apple’s most liquid assets include (a)
cash and cash equivalents, (b) short-term marketable
securities, (c) accounts receivable, and (d)
inventory. Compute the percentage that these liquid assets (in
total) make up of...
How can we assess whether a project is a success or a
failure?
This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...