When the sample is not representative of the population being studied, leading to inaccurate generalizations.