  One possible path along which nature evolves and acquires its habits was explored by Peirce using statistical analysis in situations of  experimental trials in which the probabilities of outcomes in later trials  are not independent of actual outcomes in earlier trials, situations of  so-called “non-Bernoullian trials.”  Peirce showed that, if we posit a certain primal habit in nature, viz. the tendency however slight to take on habits however tiny, then the result in the long run is often a high degree of regularity and great macroscopic exactness.  For this reason, Peirce suggested that in the remote past nature was considerably more spontaneous than it has now become, and that in general and as a whole all the habits that nature has come to exhibit have evolved. Just  as ideas, geological formations, and biological species have evolved,  natural habit has evolved.