This document describes a lossless data compression technique called the Rice algorithm and a modification of the Rice algorithm using curve fitting. The Rice algorithm uses a two-stage approach of preprocessing data to decorrelate it followed by entropy coding to assign variable-length codes. The modified Rice algorithm uses curve fitting to generate a function to predict future data points for improved compression performance compared to the original Rice algorithm. Simulation results show the modified algorithm achieves better compression by selecting an encoding option that uses fewer bits than the original Rice algorithm on a sample data set.