User:570csc/sandbox

In statistics, a confounding variable (also confounding factor, lurking variable, a confound, or confounder) is an extraneous variable in a statistical model that correlates (positively or negatively) with both the dependent variable and the independent variable. The methodologies of scientific studies therefore need to account for these variables - either through experimental design, in which case, one achieves control, or through statistical means, in which case we are said to account for them - to avoid a false positive (Type I) error; an erroneous conclusion that the dependent variables are in a causal relationship with the independent variable. Such a relation between two observed variables is termed a spurious relationship. Thus, confounding is a major threat to the validity of inferences made about cause and effect, i.e. internal validity, as the observed effects should be attributed to the independent variable rather than the confounder.

In the case of risk assessments evaluating the magnitude and nature of risk to human health, it is important to control for confounding to isolate the effect of a particular hazard such as a food additive, pesticide, or new drug. For prospective studies, it is difficult to recruit and screen for volunteers with the same background (age, diet, education, geography, etc.), and in historical studies, there can be similar variability. Due to the inability to control for variability of volunteers and human studies, confounding is a particular challenge.

Example
For example, consider possible statistical relationships between ice cream consumption and number of drowning deaths for a given period. These two variables have a positive, and potentially statistically significant, correlation with each other.
 * At first sight, an evaluator might be tempted to infer a causal relationship in one direction or the other (either that ice cream causes drowning or that drowning causes ice cream consumption):
 * On one hand, the evaluator might attribute the entirety of the correlation to the causal chain "Since a) a nonzero fraction of people who eat ice cream go swimming shortly thereafter, b) swimming after eating causes cramps in a nonzero fraction of that fraction of people, and c) those cramps cause the inability to swim and the subsequent drowning of a nonzero fraction of the latter fraction, an increase in ice cream sales will cause an increase in drowning deaths."
 * On the other, the evaluator might attribute the entirety of that correlation to the causal chain "Since a) drowning deaths cause bereavement among almost all of the deceased's loved ones and b) some nonzero fraction of grieving persons console themselves with ice cream, an increase in drowning deaths will cause an increase in ice cream consumption."
 * In turn, if both of these patterns hold true, they will amplify each other, although that amplification is bounded at a horizontal asymptote: Some of the people who eat ice cream and then drown will leave behind grieving loved ones who console themselves with ice cream, some of those ice-cream-eating loved ones will go swimming after eating their ice cream, and some of those ice-cream-eating-and-then-swimming loved ones will drown, etc., but even in a world where these two factors are the only ones in play, the small percentages at issue quickly reduce the amplification at each successive iteration to almost nil.
 * In the world in which these observations are made, however, although either or both of these causal relationships might hold true in some minute fraction of cases, and although an accordingly minute fraction of the correlation may be attributable to either or both of them, the evaluator will vastly overstate the force of these relationships if s/he does not account for a confounding — and indeed far more influential — variable, namely the season: An increase in average temperature causes both an increase in ice cream consumption (observed event 1) and an increase in the number of people swimming; furthermore, if the fraction of swimmers who drown remains constant, an increase in the number of people swimming will cause an increase in the number of people who drown (observed event 2).  This causal structure is by far the greatest contributor to the observed correlation, and since the season's being summer is by far the greatest contributor to warm weather, summertime is the root cause of an overwhelming majority of each observed increase.
 * Since the "branches" of the causal "event tree" reintersect in only a vanishingly few cases, for all practical purposes, each of the two observed increases merely coincides with, rather than causing or being caused by, the other.

Confounding in Risk Assessments
In risk assessments, factors such as age, gender, and educational levels often have impact on health status and so should be controlled. Beyond these factors, researchers may not consider or have access to data on other causal factors. An example is on the study of smoking tobacco on human health. Smoking, drinking alcohol, and diet are lifestyle activities that are related. A risk assessment that looks at the effects of smoking but does not control for alcohol consumption or diet may overestimate the risk of smoking. Smoking and confounding are reviewed in occupational risk assessments such as the safety of coal mining. When there is not a large sample population of non-smokers or non-drinkers in a particular occupation, the risk assessment may be biased towards finding a negative effect on health.

Experimental controls
There are various ways to modify a study design to actively exclude or control confounding variables:


 * Case-control studies assign confounders to both groups, cases and controls, equally. For example if somebody wanted to study the cause of myocardial infarct and thinks that the age is a probable confounding variable, each 67 years old infarct patient will be matched with a healthy 67 year old "control" person. In case-control studies, matched variables most often are the age and sex. Drawback: Case-control studies are feasible only when it is easy to find controls, i.e., persons whose status vis-à-vis all known potential confounding factors is the same as that of the case's patient: Suppose a case-control study attempts to find the cause of a given disease in a person who is 1) 45 years old, 2) African-American, 3) from Alaska, 4) an avid football player, 5) vegetarian, and 6) working in education.  A theoretically perfect control would be a person who, in addition to not having the disease being investigated, matches all these characteristics and has no diseases that the patient does not also have — but finding such a control would be an enormous task.
 * Cohort studies: A degree of matching is also possible and it is often done by only admitting certain age groups or a certain sex into the study population, and thus all cohorts are comparable in regard to the possible confounding variable. For example, if age and sex are thought to be confounders, only 40 to 50 years old males would be involved in a cohort study that would assess the myocardial infarct risk in cohorts that either are physically active or inactive. Drawback: In cohort studies, the overexclusion of input data may lead researchers to define too narrowly the set of similarly situated persons for whom they claim the study to be useful, such that other persons to whom the causal relationship does in fact apply may lose the opportunity to benefit from the study's recommendations.  Similarly, "over-stratification" of input data within a study may reduce the sample size in a given stratum to the point where generalizations drawn by observing the members of that stratum alone are not statistically significant.
 * Double blinding: conceals from the trial population and the observers the experiment group membership of the participants. By preventing the participants from knowing if they are receiving treatment or not, the placebo effect should be the same for the control and treatment groups. By preventing the observers from knowing of their membership, there should be no bias from researchers treating the groups differently or from interpreting the outcomes differently.
 * Randomized controlled trial: A method where the study population is divided randomly in order to mitigate the chances of self-selection by participants or bias by the study designers.  Before the experiment begins, the testers will assign the members of the participant pool to their groups (control, intervention, parallel), using a randomization process such as the use of a random number generator.  For example, in a study on the effects of exercise, the conclusions would be less valid if participants were given a choice if they wanted to belong to the control group which would not exercise or the intervention group which would be willing to take part in an exercise program.  The study would then capture other variables besides exercise, such as pre-experiment health levels and motivation to adopt healthy activities.  From the observer’s side, the experimenter may choose candidates who are more likely to show the results the study wants to see or may interpret subjective results (more energetic, positive attitude) in a way favorable to their desires.
 * Stratification: As in the example above, physical activity is thought to be a behaviour that protects from myocardial infarct; and age is assumed to be a possible confounder. The data sampled is then stratified by age group – this means, the association between activity and infarct would be analyzed per each age group. If the different age groups (or age strata) yield much different risk ratios, age must be viewed as a confounding variable. There exist statistical tools, among them Mantel–Haenszel methods, that account for stratification of data sets.

Peer review is a process that can assist in reducing instances of confounding. It is a process of evaluating the provision, work process, or output of an individual or collective operating in the same field as the reviewer(s). While not an experimental control of confounding because peer review happens after the completion of the experiment, peer review can unearth cases of confounding ex post facto, by testing for the ability to reproduce the results and assessing for chance.


 * Controlling for confounding by measuring the known confounders and including them as covariates in multivariate analyses; however, multivariate analyses reveal much less information about the strength of the confounding variable than do stratification methods.

All these methods have their drawbacks:
 * 1) * The best available defense against this possibility is often to dispense with efforts at stratification and instead conduct a randomized study of a sufficiently large sample taken as a whole, such that all confounding variables (known and unknown) will be distributed by chance across all study groups.
 * 2) Ethical considerations: In double blind and randomized controlled trials, participants are not aware that they are recipients of sham treatments and may be denied effective treatments.  There is resistance to randomized controlled trials in surgery because patients would agree to invasive surgery which carry risks under the understanding that they were receiving treatment.

Types of confounding
Confounding by indication : Evaluating treatment effects from observational data is problematic. Prognostic factors may influence treatment decisions, producing a type of bias referred to as "confounding by indication". Controlling for known prognostic factors may reduce this problem, but it is always possible that a forgotten or unknown factor was not included or that factors interact complexly. Confounding by indication has been described as the most important limitation of observational studies of treatment effects. Randomized trials are not affected by confounding by indication.

Confounding variables may also be categorised according to their source: the choice of measurement instrument (operational compound), situational characteristics (procedural confound), or inter-individual differences (person confound).
 * An operational confound is a type of confound that can occur in both experimental and nonexperimental research designs. This type of confound occurs when a measure designed to assess a particular construct inadvertently measures something else as well.
 * A procedural confound is a type of confound that can occur in a laboratory experiment or a quasi-experiment. This type of confound occurs when the researcher mistakenly allows another variable to change along with the manipulated independent variable.

Decreasing the Likelihood of Confounding Factors in Ecological Risk Assessments
Diminishing the effect of confounding factors can be obtained by increasing the types and numbers of comparisons performed in the analysis. Confounding variables are unlikely to occur and act similarly at multiple times and locations. Also, the environment can be characterized in detail at the study sites to ensure sites are ecologically similar and therefore less likely to have confounding variables. Lastly, the relationship between the environmental variables that possibly confound the analysis and the measured parameters can be studied. The information pertaining to environmental variable can then be used in site-specific models to identify residual variance that may be due to real effects.