lec 1 .. Introduction to Data Visualization
lec 1 .. Introduction to Data Visualization
Visualization
By
Dr. Mourad Raafat
Why Data Visualization?
One that has two or more categories, but there is no intrinsic ordering to the categories.
For example:
•Binary variable (yes/no) is a categorical variable having two categories (e.g. Male or
Female) and there is no intrinsic ordering to the categories.
•Hair color is also a categorical variable having a number of categories (blonde, brown,
brunette, red), and again, there is no agreed way to order these from highest to lowest.
If the variable has a clear ordering, then that variable would be an ordinal
variable.
Ordinal Data
An Ordinal variable is:
A Categorical variable but with clear ordering to the categories.
Examples:
•Age category (early 20s, mid 30s, end 50s)
•Salary Scale (Low, Mid, High)
•Academic Rank (Assistant, Associate, Full Prof)
•Educational experience (elementary school graduate, high school graduate, some
college, and college graduate)
Note: The difference between categories (elementary and high school) is probably
much bigger than the difference between categories (high school and some college).
The spacing between the values may not be the same across the levels of the
variables.
Quantitative Data
A quantitative variable (sometimes called a Numerical variable) is:
Numbers (can be measured and aggregated).
Examples:
•Sales
•Profit
•Exam scores
•Page-views
•Number of patients in a hospital
(All are Numbers and can be aggregated, e.g., on a weekly, monthly,
yearly basis).
Quantitative Data