Worst-Case Analysis is Maximum-A-Posteriori Estimation