p is the average proportion of nonconforming items taken across subgroups
ni is the number of items in the ith subgroup

Help created on 7/12/2018