Computes prediction intervals for the estimated distances based on residual variation between true and predicted values.
calculate_prediction_interval(
distance_matrix,
p_dist_mat,
confidence_level = 0.95
)
A single numeric value representing the margin of error for the prediction interval.
Matrix of true distances
Matrix of predicted distances
Confidence level for interval (default: 0.95)