Patterns from the past can predict the future.