Ever wonder how Netflix recommends such strangely precise movie categories?

Or how Google Maps can predict an upcoming traffic jam in a small town?