A sample proportion, p, is computed by using the formula:

pic

where x denotes the number of members in the sample that have the specified attribute and n denotes the sample size.