 If the difference between the predicted and the actual data (called the "error") tends to be small, then certain difference values (like 0, +1, −1 etc.on sample values) become very frequent, which can be exploited by encoding them in few output bits.It is sometimes beneficial to compress only the differences between two versions of a file (or, in video compression, of successive images within a sequence).