for my current project, I have a sequence of positions in 3D space usually sampled in a 1 second interval coming from a vehicle. I want to predict the position of the vehicle after the next 3-5 seconds. My first approach was using the history of sampled positions to generate a Lagrange polynomial, but this becomes very unstable even 1 second in the future. Do you know a similar approach that would be simple to implement and yet have basic stability against outliers? I think this would basically come down to approximation rather than interpolation.