The fallacy of composition happens when the reasoning is that what is true of a part of something must also be true of the entire thing it is a part of. Hasty generalization happens when the reasoning is that what is true of a member of a group is also true of other members of the group.