Question:
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.
DEFECT ' PRED_LOC Cross tabulation
Transcribed Image Text:
Count PRED LOC no Total DEFECT faise 449 49 498 400 49 20 69 rue 29 429 Total