Control variable
From Wikipedia, the free encyclopedia
This article does not cite any references or sources. (December 2007) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |
- For the notion of a controlled variable, see independent variable.
The term control variable has different meanings, depending on the area in which it is used.
[edit] Experimental design and data analysis
In the design of experiments and data analysis, control variables are those variables that are not changed throughout the trials in an experiment because the experimenter is not interested in the effect of that variable being changed for that particular experiment. In other words, control variables are extraneous factors, possibly affecting the experiment, that are kept constant so as to minimize their effects on the outcome. An example of a control variable in an experiment might be keeping the pressure constant in an experiment designed to test the effects of temperature on bacterial growth.
[edit] Control theory
In control theory, control variables are variables that are input to the control system. If you are performing an experiment to find out how changing the concentration of reactants affects the rate of reaction, concentration is the independant variable, reaction rate is the dependant variable and everything else that can change the reaction rate must be controlled (kept constant) so that you only measure the effects of concentration. Variables that need to be controlled in this case include temperature, catalyst, surface area of solids, and pressures of gases.
[edit] Programming
In programming, a control variable is a program variable that is used to regulate the flow of control of the program. For example, a loop control variable is used to regulate the number of times the body of a program loop is executed; it is incremented (or decremented when counting down) each time the loop body is executed.