/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q132SE Software defects in NASA spacecr... [FREE SOLUTION] | 91影视

91影视

Software defects in NASA spacecraft instrument code. Portions of computer software code that may contain undetected defects are called blind spots. The issue of blind spots in software code evaluation was addressed at the 8th IEEE International Symposium on High AssuranceSoftware Engineering (March 2004). The researchers developed guidelines for assessing methods of predicting software defects using data on 498 modules of software code written in 鈥淐鈥 language for a NASA spacecraft instrument. One simple prediction algorithm is to count the lines of code in the module; any module with more than 50 lines of code is predicted to have a defect. The accompanying file contains the predicted and actual defect status of all 498 modules. A standard approach to evaluating a software defect prediction algorithm is to form a two-way summary table similar to the one shown here. In the table, a, b, c, and d represent the number of modules in each cell. Software engineers use these table entries to compute several probability measures, called accuracy, detection rate, false alarm rate, and precision.

a. Accuracy is defined as the probability that the prediction algorithm is correct. Write a formula for accuracyas a function of the table values a, b, c, and d.

b. The detection rate is defined as the probability that the algorithm predicts a defect, given that the module actually is a defect. Write a formula for detection rate as a function of the table values a, b, c, and d.

c. The false alarm rate is the probability that the algorithm predicts a defect, given that the module has no defect. Write a formula for false alarm rates as a function of the table values a, b, c, and d.

d. Precision is defined as the probability that the module has a defect, given that the algorithm predicts a defect. Write a formula for precision as a function of the table values a, b, c, and d.

e. Access the accompanying file and compute the accuracy, detection rate, false alarm rate, and precision values. Interpret the results.

Short Answer

Expert verified
  1. The probability isP=a+da+b+c+d
  2. The probability isP=db+d
  3. The probability isP=ca+c
  4. The probability isP=dc+d
  5. The values of accuracy, detection rate, false alarm rate, and precision are84.34%,40.82%,10.91%and28.99%

Step by step solution

01

Important formula

The formula for probability isP=favourableoutcomestotaloutcomes

02

(a) The probability that the prediction algorithm is correct

Here the outcomes are a, b, c, d., and thefavorable outcome are a and d.

So, the probability is P=a+da+b+c+d.

03

(b) Write a formula for detection rate as a function of the table values a, b, c, and d

Here the outcomes are b, d. and the favorable outcome is d.

Thus, the probability is P=db+d.

04

(c) Write a formula for false alarm rate as a function of the table values a, b, c, and d

Here the outcomes are a, c., and the favorable outcome is c.

Hence, the probability isP=ca+c .

05

(d) Write a formula for precision as a function of the table values a, b, c, and d

Here the outcomes are c, d, and the favorable outcome is d.

Accordingly, the probability isP=dc+d .

06

(e) Access the accompanying file and compute the accuracy, detection rate, false alarm rate, and precision values. Interpret the results

From the algorithms, the values are:

The value for accuracy:

P=a+da+b+c+d=400+20400+29+49+20=420498=84.34%

The value for detection rate:

P=db+d=2029+20=40.82%

The value for false alarm rate:

P=ca+c=49400+49=10.91%

The value for precision:

P=ca+c=49400+49=10.91%

Therefore, the values of accuracy, detection rate, false alarm rate, and precision are 84.34%,40.82%,10.91%and28.99%.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91影视!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Mobile access to social media. The Marketing Management Journal (Fall 2014) published the results of a designed study to investigate satisfaction with the use of mobile devices to access social media. Mobile device users were classified by gender (male or female) and by the social media they use most often (Facebook, Twitter, or YouTube). Consider a similar study in which 10 males and 10 females were sampled for each of the three social media鈥攁 total of 60 mobile device users. One of these users is randomly selected. Of interest are his or her gender and most used social media.

a. Use a tree diagram to determine the possible outcomes (sample points) for this experiment.

b. Why should the probabilities assigned to each outcome be equal? Give the value of this probability.

c. Find the probability that the selected user is a female who accesses Twitter most often.

d. Find the probability that the selected user accesses YouTube most often.

Consider the Venn diagram below, were

P(E1)=P(E2)=P(E3)=15,P(E4)=P(E5)=120P(E6)=110,andP(E7)=15

Find each of the following probabilities:

a.P(A)b.P(B)c.P(AB)d.P(AB) e.P(Ac)f.P(Bc)g.P(AAc)h.P(AcB)

Is a product 鈥済reen鈥?A 鈥済reen鈥 product (e.g., a productbuilt from recycled materials) is one that has minimal impact on the environment and human health. How do consumers determine if a product is 鈥済reen鈥? The 2011

ImagePower Green Brands Survey asked this question of more than 9,000 international consumers. The results are shown in the following table.

Reason for saying a product is green

Percentage of consumers

Certification mark on label

45

Packaging

15

Reading information about the product

12

Advertisement

6

Brand we site

4

Other

18

Total

100

a.What method is an international consumer most likely to use to identify a green product?

b.Find the probability that an international consumer identifies a green product by a certification mark on the product label or by the product packaging.

c.Find the probability that an international consumer identifies a green product by reading about the product or from information at the brand鈥檚 Web site.

d.Find the probability that an international consumer does not use advertisements to identify a green product.

Testing a watch manufacturer鈥檚 claim. A manufacturer of a new Smart Watch claims that the probability of its watch running more than 1 minute slow or 1 minute fast after 1 year of use is .05. A consumer protection agency has purchased four of the manufacturer鈥檚 watches with the intention of testing the claim.

  1. Assuming that the manufacturer鈥檚 claim is correct, what is the probability that none of the watches are as accurate as claimed?
  2. Assuming that the manufacturer鈥檚 claim is correct, what is the probability that exactly two of the four watches are as accurate as claimed?
  3. Suppose that only one of the four tested watches is as accurate as claimed. What inference can be made about the manufacturer鈥檚 claim? Explain.
  4. Suppose that none of the watches tested are as accurate as claimed. Is it necessarily true that the manufacturer鈥檚 claim is false? Explain.

Home modifications for wheelchair users. The American Journal of Public Health (January 2002) reported on a study of elderly wheelchair users who live at home. A sample of 306 wheelchair users, age 65 or older, were surveyed about whether they had an injurious fall during the year and whether their home features any one of five structural modifications: bathroom modifications, widened doorways/hallways, kitchen modifications, installed railings, and easy-open doors. The responses are summarized the accompanying table. Suppose we select, at random, one of the 306 surveyed wheelchair users.

a. Find the probability that the wheelchair user had an injurious fall.

b. Find the probability that the wheelchair user had all five features installed in the home.

c. Find the probability that the wheelchair user had no falls and none of the features installed in the home.

d. Given the wheelchair user had all five features installed, what is the probability that the user had an injurious fall?

e. Given the wheelchair user had none of the features installed, what is the probability that the user had an injurious fall?

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.