Introduction To Probability and Statistics Thirteenth Edition
Introduction To Probability and Statistics Thirteenth Edition
and Statistics
Thirteenth Edition
Chapter 1
Describing Data with
Graphs
Variables and Data
• A variable is a characteristic that
changes or varies over time and/or
for different individuals or objects
under consideration.
• Examples: Hair color, white blood
cell count, time to failure of a
computer component.
Definitions
• An experimental unit is the individual
or object on which a variable is
measured.
• A measurement results when a
variable is actually measured on an
experimental unit.
• A set of measurements, called data,
can be either a sample or a
population.
Example
• Variable
–Hair color
• Experimental unit
–Person
• Typical Measurements
–Brown, black, blonde, etc.
Example
• Variable
–Time until a
light bulb burns out
• Experimental unit
–Light bulb
• Typical Measurements
–1500 hours, 1535.5 hours,
etc.
How many variables
have you measured?
• Univariate data: One variable is
measured on a single experimental unit.
• Bivariate data: Two variables are
measured on a single experimental unit.
• Multivariate data: More than two
variables are measured on a single
experimental unit.
Types of Variables
Qualitative Quantitative
Discrete Continuous
Types of Variables
•Qualitative variables measure a quality
or characteristic on each experimental
unit.
•Examples:
•Hair color (black, brown, blonde…)
•Make of car (Dodge, Honda, Ford…)
•Gender (male, female)
•State of birth (California, Arizona,….)
Types of Variables
•Quantitative variables measure a
numerical quantity on each
experimental unit.
Discrete if it can assume only a
finite or countable number of values.
Continuous if it can assume the
infinitely many values corresponding
to the points on a line interval.
Examples
• For each orange tree in a grove, the
number of oranges is measured.
– Quantitative discrete
• For a particular day, the number of cars
entering a college campus is measured.
– Quantitative discrete
• Time until a light bulb burns out
– Quantitative continuous
Graphing Qualitative Variables
• Use a data distribution to describe:
– What values of the variable have
been measured
– How often each value has occurred
• “How often” can be measured 3 ways:
– Frequency
– Relative frequency = Frequency/n
– Percent = 100 x Relative frequency
Example
• A bag of M&Ms contains 25
candies: m m m m m m m m m m
m m m m m m m m m m
• Raw Data: m m m m m
• Statistical Table:
Color Tally Frequency Relative Percent
Frequency
Red mmm 3 3/25 = .12 12%
Blue mmmmmm 6 6/25 = .24 24%
Green mm mm 4 4/25 = .16 16%
Orange mmmmm 5 5/25 = .20 20%
Brown mm m 3 3/25 = .12 12%
Yellow mmmm 4 4/25 = .16 16%
6
Graphs
5
Frequency 4
2 Bar Chart
1
0
Brown Yellow Red Blue Orange Green
Color
Green Brown
16.0% 12.0%
Yellow
Red
12.0%
Blue
24.0%
Graphing Quantitative
Variables
• A single quantitative variable measured for
different population segments or for different
categories of classification can be graphed
using a pie or bar chart.
chart
5
AABig
BigMac
Mac
hamburger
hamburgercosts
costs
4
$2.90
$2.90ininthe
theU.S.
U.S.and
and 2
$1.86
$1.86ininSouth
South 1
Africa.
Africa.
0
Switzerland U.S. South Africa
Country
• A single quantitative variable measured
over time is called a time series.
series It can
be graphed using a line or bar chart.
chart
CPI: All Urban Consumers-Seasonally Adjusted
Sept Oct Nov Dec Jan Feb Mar
178.10 177.60 177.50 177.30 177.60 178.00 178.60
Dotplots
• The simplest graph for quantitative data
• Plots the measurements as points on a horizontal axis,
stacking the points that duplicate existing points.
• Example: The set 4, 5, 5, 7, 6
4 5 6 7
Stem and Leaf Plots
• A simple graph for quantitative data
• Uses the actual numerical values of each
data point.
––Divide
Divide eacheach measurement
measurement into into two
two parts:
parts: the
the
stem
stem andand the the leaf.
leaf.
––List
List the
the stems
stems in in aa column,
column, with
with aa vertical
vertical line
line
to
to their
their right.
right.
––For
For each
each measurement,
measurement, recordrecord the the leaf
leaf
portion
portion in in the
the same
same row row as
as its
its matching
matching stem.stem.
––Order
Order the the leaves
leaves from
from lowest
lowest to to highest
highest inin
each
each stem.
stem.
––Provide
Provide aa key key toto your
your coding.
coding.
Example
The prices ($) of 18 brands of walking shoes:
90 70 70 70 75 70 65 68 60
74 70 95 75 70 68 65 40 65
4 0 4 0
Reorder
5 5
6 580855 6 055588
7 00050405 7 00000045
0 5
8 8
9 05 9 05
Interpreting Graphs:
Location and Spread
•• Where
Where is
is the
the data
data centered
centered on
on the
the
horizontal
horizontal axis,
axis, and
and how
how does
does itit
spread
spread out
out from
from the
the center?
center?
Interpreting Graphs: Shapes
Mound shaped and
symmetric (mirror
images)
Skewed right: a few
unusually large
measurements
Skewed left: a few
unusually small
measurements
No Outliers Outlier
14/50
12/50
Relative frequency
10/50
8/50
6/50
4/50
2/50
0
25 33 41 49 57 65 73
Ages
14/50
Describing 12/50
Relative frequency
10/50
the 8/50
6/50
Distribution 4/50
2/50
0
25 33 41 49 57 65 73
Ages