In [1,§3.2], David 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.)
In these few short pages [1, pp.47–53], much of which is an extended quote from John Snow himself, Freedman argues that "what Snow actually did in 1853–54 is even more interesting than the fable [of the Broad Street Pump]." As far as marshalling statistical evidence (other preliminaries such as index case identification, etc., are discussed besides), Snow exploited natural variation to effect a truly remarkable quasi-experiment.
It turns out that at an earlier time, there was a vigorous competition among water supply companies in London, and this resulted in spatial mixing of the water supply that was (in Snow's words) "of the most intimate kind."
The pipes of each Company go down all the streets, and into nearly all the courts and alleys. A few houses are supplied by one Company and a few by the other, according to the decision of the owner or occupier at that time when the Water Companies were in active competition.
...
As there is no difference whatever in the houses or the people receiving the supply of the two Water Companies, or in any of the physical conditions with which they are surrounded, it is obvious that no experiment could have been devised which would more thoroughly test the effect of water supply on the progress of cholera than this, which circumstances placed ready made before the observer.
—John Snow
Another critically important bit of 'natural variation' John Snow exploited in this quasi-experiement was that one water company had its water intake on the Thames downstream of sewage discharges, whereas the other had a few years before relocated its intake upstream. I'll let you guess which was which was which from John Snow's data table!
| Number of | Cholera | Deaths per Company | of houses | deaths | 10,000 houses ---------------------------------------------------------- Southwark & Vauxhall | 40,046 | 1263 | 315 Lambeth | 26,107 | 98 | 37 Rest of London | 256,423 | 1422 | 59
As Freedman notes witheringly,
As a piece of statistical technology, [the above table] is by no means remarkable. But the story it tells is very persuasive. The force of the argument results from the clarity of the prior reasoning, the bringing together of many different lines of evidence, and the amount of shoe leather Snow was willing to use to get the data. [1, p.51]
This matter also provides an instructive study in the contrast between deductivism and inductivism, as discussed in this answer.