Predicting software blights. Relate to the Pledge Software Engineering Repository data on 498 modules of software law written in “C” language for a NASA spacecraft instrument, saved in the train. (See Exercise 3.132, p. 209). Recall that the software law in each module was estimated for blights; 49 were classified as “true” (i.e., the module has imperfect law), and 449 were classified as “false” (i.e., the module has corrected law). Consider these to be Arbitrary independent samples of software law modules. Experimenters prognosticated the disfigurement status of each module using the simple algorithm, “If the number of lines of law in the module exceeds 50, prognosticate the module to have a disfigurement.” The accompanying SPSS printout shows the number of modules in each of the two samples that were prognosticated to have blights (PRED_LOC = “yes”) and prognosticated to have no blights (PRED_LOC = “no”). Now, define the delicacy rate of the algorithm as the proportion of modules. That was rightly prognosticated. Compare the delicacy rate of the algorithm when applied to modules with imperfect law with the delicacy rate of the algorithm when applied to modules with correct law. Use a 99-confidence interval.

DEFECT*PRED_LOC crosstabulation


PRED_LOC
total
noyes

DEFECT False

True

total

440

29

429

49

20

69

449

49

498

Short Answer

Expert verified

The difference in accuracy rate between the modules with correct code and modules with incorrect lies between 0.2948 and 0.6652 at 99% confidence.

Step by step solution

01

Step-by-Step Solution Step 1: Find the value of P1 and P2

Consider n1=449, n2=49, x1 = 400, x2=20.

Find the value of p1.

P_1=x1n1=400449=0.89Findthevalueofp2.p_2=x2n2=2249=0.41

02

Let the confidence level be 0.99

1α=0.99α=10.99=0.01α2=0.005

From appendix table-2, the value of Za/2 is given below.

Za2=Z0.005=2.58

So, the value of za2 is 2.58.

03

The formula for 100(1α) % confidence intervals for (P1-P2)

The formula for 100(1α) % confidence intervals for (P1-P2) is below.

(p_1p2_)±za2p_1q_1n1+p2q2n2

In this, q1 = 1 – p1and q2 = 1 – p2.

04

Find the 99% confidence interval for (P1-P2)

Substitute P1 = 0.89 P2 = .041, n1 = 449, and n2 = 49 in the above formula.

= 0.89 – 0.41 ± 2.58 0.89(10.89)+4490.41(1041)49

=0.48±2.58role="math" localid="1652718669873" 0.0979449+0.241949

=0.48±2.58(0.0718)

=.48±0.1852

= (0.2948,0.6652)

Thus, the 99% confidence interval for (P1 – P2) is (0.2948,0.6652).

05

Final answer

The difference in accuracy rate between the modules with correct code and modules with incorrect lies between 0.2948 and 0.6652 at 99% confidence.

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 Vaia!

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

Is honey a cough remedy? Refer to the Archives of Pediatrics and Adolescent Medicine (Dec. 2007) study of honey as a children’s cough remedy, Exercise 8.23 (p. 470). The data (cough improvement scores) for the 33 children in the DM dosage group and the 35 children in the honey dosage group are reproduced in the table below. In Exercise 8.23, you used a comparison of two means to determine whether “honey may be a preferable treatment for the cough and sleep difficulty associated with childhood upper respiratory tract infection.” The researchers also want to know if the variability in coughing improvement scores differs for the two groups. Conduct the appropriate analysis, using α=0.10

Gonzaga University professors conducted a study of television commercials and published their results in the Journal of Sociology, Social Work and Social Welfare (Vol. 2, 2008). The key research question was as follows: “Do television advertisers use religious symbolism to sell goods and services?” In a sample of 797 TV commercials collected ten years earlier, only 16 commercials used religious symbolism. Of the sample of 1,499 TV commercials examined in the more recent study, 51 commercials used religious symbolism. Conduct an analysis to determine if the percentage of TV commercials that use religious symbolism has changed over time. If you detect a change, estimate the magnitude of the difference and attach a measure of reliability to the estimate.

To use the t-statistic to test for a difference between the means of two populations, what assumptions must be made about the two populations? About the two samples?

Independent random samples from two populations with standard deviations σ1=2andσ2=8, respectively, are selected. The sample sizes and the sample means are recorded in the following table:

Sample 1

Sample 2

n1=58x¯1=17.5

n2=62x¯2=16.23

a. Calculate the standard error of the sampling distribution for Sample 1.

b. Calculate the standard error of the sampling distribution for Sample 2.

c. Suppose you were to calculate the difference between the sample means (x1x2). Find the mean and standard error of the sampling distribution (x1x2).

d. Will the statistic (x1x2) be normally distributed?

Random samples of size n1=400 andn2=500 were drawn from populations 1 and 2, respectively. The samples yieldedx1=105 and x2=140. TestH0:p1-p20 againstHa:p1-p2<0at the 1% level of significance.

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.

Sign-up for free