2-Lcture-Types of Variables
2-Lcture-Types of Variables
Data Information
Observations and variables
Observation
Instatistics, an observation often means any
sort of numerically recording of information.
Example:
Whether it is physical measurement such as
height or weight; a classification as heads or
tails, or answer to a question such as yes or no.
Variable
Variable
Example
A
O Blood
Grou B Gender
p
A
B
Female
Dr
Tarekk
Classification of variable
Quantitative variable
Dr
Tarekk
Discrete
Measurements are integers
Examples:
Example
A continuous variable represents measurement
data such as age of a person, height of a plant,
the weight of commodity, the temperature at a
place, ect.
10 23
0 0
7 25
Years Years
I. Quantitative
Variable
Continuous
Measurements can take on any value - usually
within some range
Examples:
Age
Income
Arithmeticoperations such as differences and
averages make sense.
Data types
www.statstutor.ac.uk
Types of variables
Variables
Qualitative Quantitative
Amount of
Children in
Gender, marital Brand of Pc, hair income tax paid,
family, Strokes
status color weight of a
on a golf hole
student
What data types relate to following questions?
Q1: What is your favourite subject?
Q2: Gender:
Male Female
www.statstutor.ac.uk
Dr
Tarekk
Qualitatiave or Quantitative?
Discrete or Continuous?
Height
Salary
Number of applicants
Ethnic origin
Treatment as Ranks
Natural order
Not strictly measured
Examples:
Age group
Likert Scale data
Distinctionbetween adjacent points on the scale is
not necessarily the same
Analysis
Qualitative Data
Frequency tables
Modes - most frequently occurring
Graphs: Bar Charts and Pie Charts
Analysis
Quantitative Data
Any form
Create groups or categories and generate
frequency tables
All descriptive statistics
Effective Graphs:
Quantitative Data
Histograms
Stem-and-Leaf plots
Dot Plots
Box plots
XY Scatter Plots (2 variables).
Examples of Graphs
Pie Chart
Performance Appraisals
1 0%
3 8% More Difficult
1 4%
Difficult
Same
Much Easier
Easier
33%
90
80
70
60
50 East
40 West
30 North
20
10
0
1st Qtr 2nd Qtr 3rd Qtr 4th Qtr
Histogram
Histogram
14
12
10
Frequency
8
6
4
2
0
49 59 69 79 89 99
Score
Boxplot
Boxplot of C1
20 30 40 50 60 70 80 90 100 110
C1
Stem and Leaf Plot
Stem and Leaf Plot
Weight of Meat
7 5
8 3
8 7999
9 23
9 66789
10
10 688
11 2244
11 788
12 4
12 8
13
13 8
14 1
Analyze Ranked Data
Frequencytables
Mode, Median, Quartiles
Graphs:
Bar Charts
Dot Plots, Pie Charts
Line Charts (2 variables)
Data Example
Suggest some ways you could analyze these items.