Optimization-Based Statistical Inference: Constrained Inverse Problems, Worst-Case Priors, And Kernel Regression