For example, a research group might design a study to determine if heavy drinkers die at a younger age.
They proceed to design a study, and set about gathering data. Their results, and a battery of statistical tests, indeed show that people who drink excessively are likely to die younger.
Unfortunately, when the researchers do a crosscheck with their peers, the results are ripped apart, because their peers live just as long - maybe there is another factor, not measured, that influences both drinking and living age?
The weakness in the experimental design was that they failed to take into account the confounding variables, and did not try to eliminate or control any other factors.
For example, it is quite possible that the heaviest drinkers hailed from a different background or social group. Heavy drinkers may be more likely to smoke, or eat junk food, all of which could be factors in reducing longevity. A third variable may have adversely influenced the results.
MINIMIZING THE EFFECTS OF CONFOUNDING VARIABLES
In many fields of science, it is difficult to remove entirely all of the variables, especially outside the controlled conditions of a lab.
A well-planned experimental design, and constant checks, will filter out the worst confounding variables.
For example, randomizing groups, utilizing strict controls, and sound operationalization practice all contribute to eliminating potential third variables.
After a research, when the results are discussed and assessed, by a group of peers, this is the area that stimulates the most heated debate. When you read stories of different foods making you die young, or hear claims about the next super-food, assess these findings carefully.
Many media outlets jump upon sensational results, but never pay any regard to the possibility of confounding variables.