
280 ◾ Software Metrics
ere are several alternatives for nonparametric data.
6.6.1.1 Binomial Test
e binomial test should be used when
• e dependent variable can take only two distinct, mutually exclu-
sive, and exhaustive values (such as “module has been inspected”
and “module has not been inspected”).
• e measurement trials in the experiment are independent.
6.6.1.2 Chi-Squared Test for Goodness of Fit
e chi-squared test is appropriate when
1. e dependent variable can take two or more distinct, mutually
exclusive, and exhaustive values (such as “module has fewer than 100
TABLE 6.13 Examples of Statistical Tests
Sample Type Nominal