What is the relation between reasoning and randomness or more specifically finding any relation between logic and stochastic processes? Why does it work so well, I wonder. For instance, prices in economic studies may move in random ways such as the daily perturbations of the prices of commodities, but there also appear to be meaningful patterns, particularly in terms of supply and demand. It is believed that some prediction from hypothesis is held to be scientific, and not same as foretelling future, so there must be a line between the two.
How does logic and reasoning suss out the difference between guessing or supernatural prediction and mathematical or scientific prognostication when dealing with randomness?