Entropy can be thought of as the probability of seeing certain patterns in data. Here’s how it works.