An urn model study of variability within a compartment