A QUANTITATIVE NOTION OF REDUNDANCY AND ITS APPLICATIONS