In statistics variable is something that can change or vary, with or without any conditions
Note: Values of variable could be measured w.r.t numerical scale (could be either continuous or discrete) or non measurable as well
Examples of variables:
- Height of a person w.r.t age
- Satisfaction rating according to the products purchased
- Income of a person over the years
- Age of a person over the years
Types of variables:
- Quantitative Variable: As the name suggests, this kind of variable has numerical values, these are further classified into
- Continuous variable: As the name suggests the values continue in the range (Tip: usually contain decimal values as well)
Examples of continuous variable: 5.4 liters of water saved in the dishwasher. My weight is 80.320 Kg as of today. My luggage weighs 15.4 Kg
- Discrete variable: As the name suggests the values are discrete in the range and no values between (Tip: usually contain only whole numbers)
Examples of discrete variables: My vehicle has 4 wheels. There are 50 students in the class.
- Qualitative variables: They are non-numerical variables, which are classified as
- Nominal variable: These variables don’t have any order to represent the data
Example of nominal variable: Different colors in the crayon box, Colors in rainbow
- Ordinal variable: The variable has a specific order or ranking to represent the data
Examples of Ordinal variables: Movie ratings, Education qualification, Android versions