Standard deviation in prediction decreases for points further in the future
Closed this issue · 4 comments
The figure below shows the bivariant gauss distribution of the model's prediction. It contains the 25 timesteps of the most likely maneuver (fut_pred_max). The model was trained with default settings on the NGSIM data set as described.
As you see in the figure, predicted points that are nearer in the future have a higher variance than points that are further in the future. Looking at the pure number confirms this.
How is this possible? Usually, the further the prediction is in the future the less certain you are about the exact position. So the variance should increase over time. Any help is appreciated!
Are you directly using the model outputs for the plot? The model outputs the reciprocal of standard deviations.
Thanks for your answer! That explains a lot...
Is there a reason for using the reciprocals?
Where is it defined? I guess only by the NLL loss, am I right?
Yes, it's defined purely by the NLL loss. sigX and sigY are just constrained to be positive.
If all multiplications in the NLL expression with sigX or sigY were swapped with divisions, the interpretation of the model's outputs would be the standard deviations rather than their reciprocals.