Patterns and probabilities : a study in algorithmic randomness and computable learning