#gptchat Okay, gptchat will do math if you give it enough hints. This estimates the sum of a subset maximum of a population using resampling and monte carlo methods for estimating the conf intervals.
https://gist.github.com/matthewdeanmartin/e4056e87474d75e8475aa8433aea0e17