An example of affinity bias is when a hiring manager favors a candidate because they share a similar background or interests.