Joint Pedestrian Trajectory Prediction through Posterior Sampling