Abstract : Human-computer interactions are greatly affected by the latency between the human input and the system visual response. The compensation of this latency is an important problem for the HCI (human-computer interaction) community. In this work, a simple forecasting algorithm is developed for latency compensation in indirect interaction using a mouse, based on numerical differentiation. Several differentiators are compared, including a novel algebraic version. An optimized procedure is developed for tuning the parameters of the algorithm. The efficiency is demonstrated on real data, measured with a 1 ms sampling time.