when do you use a p chart

when categorizing pass or fail and the subgroup size is not constant