When an acquaintance fails an exam, a student assumes it is because the acquaintance is lazy and not intelligent.
However, when the student fails an exam, they blame the failure on an overly difficult test and a lack of sleep.
This difference in attribution is a classic example of: