Unravelling uncertainty in trajectory prediction using a non-parametric approach