In [1,§3.2], David FreedmanDavid Freedman suggests an essentially negative answer to your question. That is, no (mere) statistical model or algorithm could solve John Snow's problem. Snow's problem was to develop a critical argument supporting his theory that cholera is a water-borne infectious disease, against the prevailing miasma theory of his day. (Chapter 3 in [1], titled “Statistical Models and Shoe Leather,” is also available in previously published form [2] here.)