Proportions and sampling