Predicting software defects. Refer to the PROMISE Software

Chapter 8, Problem 58E

(choose chapter or problem)

Get Unlimited Answers
QUESTION:

Problem 58E

Predicting software defects. Refer to the PROMISE Software Engineering Repository data on 498 modules of software code written in “C” language for a NASA spacecraft instrument, saved in the file. (See Exercise 3.76, p. 168) Recall that the software code in each module was evaluated for defects; 49 were classified as “true” (i.e., module has defective code), and 449 were classified as “false” (i.e., module has correct code). Consider these to be independent random samples of software code modules. Researchers predicted the defect status of each module using the simple algorithm, “If number of lines of code in the module exceeds 50, predict the module to have a defect.” The accompanying SPSS printout shows the number of modules in each of the two samples that were predicted to have defects (PRED_LOC = “yes”) and predicted to have no defects (PRED_LOC = “no”). Now, define the accuracy rate of the algorithm as the proportion of modules that were correctly predicted. Compare the accuracy rate of the algorithm when applied to modules with defective code to the accuracy rate of the algorithm when applied to modules with correct code. Use a 99% confidence interval.

Questions & Answers

QUESTION:

Problem 58E

Predicting software defects. Refer to the PROMISE Software Engineering Repository data on 498 modules of software code written in “C” language for a NASA spacecraft instrument, saved in the file. (See Exercise 3.76, p. 168) Recall that the software code in each module was evaluated for defects; 49 were classified as “true” (i.e., module has defective code), and 449 were classified as “false” (i.e., module has correct code). Consider these to be independent random samples of software code modules. Researchers predicted the defect status of each module using the simple algorithm, “If number of lines of code in the module exceeds 50, predict the module to have a defect.” The accompanying SPSS printout shows the number of modules in each of the two samples that were predicted to have defects (PRED_LOC = “yes”) and predicted to have no defects (PRED_LOC = “no”). Now, define the accuracy rate of the algorithm as the proportion of modules that were correctly predicted. Compare the accuracy rate of the algorithm when applied to modules with defective code to the accuracy rate of the algorithm when applied to modules with correct code. Use a 99% confidence interval.

ANSWER:

Step 1 of 7

Compute 99% confidence interval for  .

Consider  = 449 ,  = 49 ,  = 400 ,  = 20  .

Find the value of .

Find the value of .

Add to cart


Study Tools You Might Need

Not The Solution You Need? Search for Your Answer Here:

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back