 Information-theoretical foundations for lossy data compression are provided by rate-distortion theory.Much like the use of probability in optimal coding theory, rate-distortion theory heavily draws on Bayesian estimation and decision theory in order to model perceptual distortion and even aesthetic judgment.There are two basic lossy compression schemes