A variable is considered dependent if it depends on an independent variable. Dependent variables are studied under the supposition or demand that they depend, by some law or rule (e.g., by a mathematical function), on the values of other variables. Independent variables, in turn, are not seen as depending on any other variable in the scope of the experiment in question. In this sense, some common independent variables are time, space, density, mass, fluid flow rate,[1] [2] and previous values of some observed value of interest (e.g. human population size) to predict future values (the dependent variable).[3]
Of the two, it is always the dependent variable whose variation is being studied, by altering inputs, also known as regressors in a statistical context. In an experiment, any variable that can be attributed a value without attributing a value to any other variable is called an independent variable. Models and experiments test the effects that the independent variables have on the dependent variables. Sometimes, even if their influence is not of direct interest, independent variables may be included for other reasons, such as to account for their potential confounding effect.
In mathematics, a function is a rule for taking an input (in the simplest case, a number or set of numbers)[4] and providing an output (which may also be a number).[4] A symbol that stands for an arbitrary input is called an independent variable, while a symbol that stands for an arbitrary output is called a dependent variable.[5] The most common symbol for the input is, and the most common symbol for the output is ; the function itself is commonly written .[5] [6]
It is possible to have multiple independent variables or multiple dependent variables. For instance, in multivariable calculus, one often encounters functions of the form, where is a dependent variable and and are independent variables.[7] Functions with multiple outputs are often referred to as vector-valued functions.
In mathematical modeling, the relationship between the set of dependent variables and set of independent variables is studied.
In the simple stochastic linear model the term is the th value of the dependent variable and is the th value of the independent variable. The term is known as the "error" and contains the variability of the dependent variable not explained by the independent variable.
With multiple independent variables, the model is, where is the number of independent variables.
In statistics, more specifically in linear regression, a scatter plot of data is generated with as the independent variable and as the dependent variable. This is also called a bivariate dataset, . The simple linear regression model takes the form of, for . In this case, are independent random variables. This occurs when the measurements do not influence each other. Through propagation of independence, the independence of implies independence of, even though each has a different expectation value. Each has an expectation value of 0 and a variance of .Expectation of Proof:
E[Yi]=E[\alpha+\betaxi+Ui]=\alpha+\betaxi+E[Ui]=\alpha+\betaxi.
The line of best fit for the bivariate dataset takes the form and is called the regression line. and correspond to the intercept and slope, respectively.
In an experiment, the variable manipulated by an experimenter is something that is proven to work, called an independent variable.[8] The dependent variable is the event expected to change when the independent variable is manipulated.[9]
In data mining tools (for multivariate statistics and machine learning), the dependent variable is assigned a role as (or in some tools as label attribute), while an independent variable may be assigned a role as regular variable.[10] Known values for the target variable are provided for the training data set and test data set, but should be predicted for other data. The target variable is used in supervised learning algorithms but not in unsupervised learning.
Depending on the context, an independent variable is sometimes called a "predictor variable", "regressor", "covariate", "manipulated variable", "explanatory variable", "exposure variable" (see reliability theory), "risk factor" (see medical statistics), "feature" (in machine learning and pattern recognition) or "input variable".[11] [12] In econometrics, the term "control variable" is usually used instead of "covariate".[13] [14] [15] [16] [17]
"Explanatory variable" is preferred by some authors over "independent variable" when the quantities treated as independent variables may not be statistically independent or independently manipulable by the researcher.[18] [19] If the independent variable is referred to as an "explanatory variable" then the term "response variable" is preferred by some authors for the dependent variable.[12] [18] [19]
Depending on the context, a dependent variable is sometimes called a "response variable", "regressand", "criterion", "predicted variable", "measured variable", "explained variable", "experimental variable", "responding variable", "outcome variable", "output variable", "target" or "label".[12] In economics endogenous variables are usually referencing the target.
"Explained variable" is preferred by some authors over "dependent variable" when the quantities treated as "dependent variables" may not be statistically dependent.[20] If the dependent variable is referred to as an "explained variable" then the term "predictor variable" is preferred by some authors for the independent variable.[20]
An example is provided by the analysis of trend in sea level by . Here the dependent variable (and variable of most interest) was the annual mean sea level at a given location for which a series of yearly values were available. The primary independent variable was time. Use was made of a covariate consisting of yearly values of annual mean atmospheric pressure at sea level. The results showed that inclusion of the covariate allowed improved estimates of the trend against time to be obtained, compared to analyses which omitted the covariate.
independent | dependent | |
input | output | |
regressor | regressand | |
predictor | predicted | |
explanatory | explained | |
exogenous | endogenous | |
manipulated | measured | |
exposure | outcome | |
feature | label or target |
A variable may be thought to alter the dependent or independent variables, but may not actually be the focus of the experiment. So that the variable will be kept constant or monitored to try to minimize its effect on the experiment. Such variables may be designated as either a "controlled variable", "control variable", or "fixed variable".
Extraneous variables, if included in a regression analysis as independent variables, may aid a researcher with accurate response parameter estimation, prediction, and goodness of fit, but are not of substantive interest to the hypothesis under examination. For example, in a study examining the effect of post-secondary education on lifetime earnings, some extraneous variables might be gender, ethnicity, social class, genetics, intelligence, age, and so forth. A variable is extraneous only when it can be assumed (or shown) to influence the dependent variable. If included in a regression, it can improve the fit of the model. If it is excluded from the regression and if it has a non-zero covariance with one or more of the independent variables of interest, its omission will bias the regression's result for the effect of that independent variable of interest. This effect is called confounding or omitted variable bias; in these situations, design changes and/or controlling for a variable statistical control is necessary.
Extraneous variables are often classified into three types:
In modelling, variability that is not covered by the independent variable is designated by
eI
In a study measuring the influence of different quantities of fertilizer on plant growth, the independent variable would be the amount of fertilizer used. The dependent variable would be the growth in height or mass of the plant. The controlled variables would be the type of plant, the type of fertilizer, the amount of sunlight the plant gets, the size of the pots, etc.
In a study of how different doses of a drug affect the severity of symptoms, a researcher could compare the frequency and intensity of symptoms when different doses are administered. Here the independent variable is the dose and the dependent variable is the frequency/intensity of symptoms.
In measuring the amount of color removed from beetroot samples at different temperatures, temperature is the independent variable and amount of pigment removed is the dependent variable.
The taste varies with the amount of sugar added in the coffee. Here, the sugar is the independent variable, while the taste is the dependent variable.