Confounding occurs in statistical analysis when the effect of one variable is mixed up with the effect of another variable. This can lead to misleading conclusions about the relationship between the variables being studied. In other words, a confounder is an external factor that is associated with both the independent variable (the one being manipulated or the presumed cause) and the dependent variable (the one being measured or the presumed effect).
New to topics? Read the docs here!