In football, basketball, and other sports, some fans claim referees favor big teams over smaller ones. Are these just conspiracy theories, or do stats support the idea?

Do referees subconsciously favor big teams? What can be done to make refereeing completely fair?