Subsampling in information theory and data processing