Exploring Variable Types in Data Analysis
Exploring Variable Types in Data Analysis
in
DATA ANALYSIS
02 codebasics.io
Am I?
You are!
Have a dumpling.
What is that?
So silly!
Anyone can see yummy, delicious,
mouth-watering food.
03 codebasics.io
04 codebasics.io
TYPES OF VARIABLES
05 codebasics.io
CATEGORICAL VARIABLES
Categorical variables represent characteristics or attributes and can be
divided into categories.
Nominal Variable
Nominal variables have categories without a specific order.
Examples: Gender, eye colour, flavour of ice cream etc.
These variables are used to label distinct categories.
Ordinal Variable
Ordinal variables have categories with a meaningful order.
Examples: Customer satisfaction ratings, military ranks, spice level etc.
07 codebasics.io
NUMERICAL VARIABLES
Numerical variables represent quantities that can be counted or measured.
Example: Price
Discrete Variable
Discrete variables can take specific, distinct values.
Examples: Number of children, number of cars, number of ingredients
in a dish etc.
·Discrete variables are often counted and can be represented by
integers.
Continuous Variable
Continuous variables can take any value within a range.
Examples: Height, weight, temperature, time etc.
Continuous variables are often measured and can be represented by a
real number.
09 codebasics.io
Continuous Variables
For continuous variables use histograms, scatter plots, and box plots.
Discrete Variables
For discrete variables use bar charts and pie charts.
Categorical Variables
For categorical variables use bar charts, pie charts, and stacked bar charts.