02 +Types+of+Variables
02 +Types+of+Variables
Statistics
Types of Variables
Types of Variables
Variable
Variable
For example, a
person's hair color is
In statistics, a A variable is an The value of the a potential variable,
variable has two attribute that variable can "vary" which could have
defining describes a person, from one entity to the value of "blond"
characteristics: place, thing, or idea. another. for one person and
"brunette" for
another.
Types of Variables
Definition of Data
Data:
observations on a single variable or
simultaneously on two or more
variables
Types of Variables
Categorical Variables
Categorical
Sometimes called Qualitative The color of candy (red, green, blue)
or the breed of a dog (greyhound,
Variables. Categorical variables
poodle, dachshund) would be
take on values that are names or examples of qualitative or categorical
labels. variables.
Types of Variables
Numerical Variables
Numerical
Sometimes called Quantitative For example, when we speak of the
height of an individual, we are talking
Variables. Numerical variables are
about a measurable attribute of the
observations or measurements that person. Therefore, height would be a
take on numerical values. numerical (quantitative) variable.
Types of Variables
Two Types of Numerical Variables
Discrete Continuous
Types of Variables
Examples of Discrete Data
Suppose we flip a coin and observe the number of tails that occur
in 10 tosses. The possible outcomes of our discrete random
variable X = # of tails that are tossed would be {0, 1, 2, … , 9, 10}.
Since this is a countable set of values (notice we cannot toss, for
example, 4.168 tails, the variable here would be discrete.
The number of people served by a drive through bank teller over
a one hour time period is observed for a sample of five different
one hour time periods:
{18 , 22 , 14 , 31 , 28}
The number free throws made by a professional basketball player
in a sample of 12 games:
{3 , 11 , 5 , 5 , 4 , 0 , 10 , 2 , 8 , 7 , 4 , 13}
Types of Variables
Examples of Continuous Data
The weights of individuals on the varsity football team:
{225, 180, 157, 288, 216, 200, 198, 253, 144, … , 303}
(Notice even though the weights are measured accurately to the nearest
pound, the actual weight could be any value in some reasonable interval.)
Numerical Numerical
Age Pulse Rate
(Quantitative) (Quantitative)
Consider the
Unusual variables:
Social Security
Categorical Number and Zip
Variables Code
Although both are
expressed as
numbers, they are
categorical variables.