If you've ever tried machine learning, it's easy to understand what a prejudice is: inference based on learning on biased data. Or sometimes the data doesn't even need to be biased: your stereotyping may be factually true on average. It's just that we should not make assumptions based on averages, especially when they involve people.