A variable is a statistical attribute. The value of a variable is a unit of statistical data. If we, for example, were to analyze the population structure of a city, the gender of the inhabitants could take the values 'male' or 'female' . 'Gender' would be an example for a statistical variable.
Please note that the definitions in our statistics encyclopedia are simplified explanations of terms. Our goal is to make the definitions accessible for a broad audience; thus it is possible that some definitions do not adhere entirely to scientific standards.