Unit 3
Unit 3
Categorical
variable
Single Two
Bar chart
Respondents are most likely to pay for purchases with cash followed by debit card.
Very few people paid by check or electronically.
vertical axis on the left represents the percentage due to each cause;
vertical axis on the right represents the cumulative percentage.
which causes contribute the most to the problem of incomplete
transactions?
warped card jammed (50.44%) and card unreadable (32.3%), account
for 82.7% of the incomplete transactions.
Thus, attempts to reduce incomplete ATM transactions due to warped
or unreadable cards should produce the greatest payoff.
2023 Lecture: Ms. Nupur Kataria 13
Graphical Visualization of data
Example 1: Method percentage cumulative percentage
Cash 40 40
Debit card 25 65
Credit card 17 82
Check 7 89
Online payment 7 96
Others 4 100
Total 100
Cash and debit card account for nearly two-thirds of the responses.
These two categories combined with credit card account for 82% of the responses.
2023 Lecture: Ms. Nupur Kataria 14
Graphical Visualization of data
(Two categorical Variables)
Side-by-Side Chart
Shows bars that represent the categories of
one variable set grouped by the categories of
the second variable.
Example 2: Retirement funds-
Two types of funds- growth and value;
visualizes the data for the levels of risk for
growth and value funds;
The histogram for center city restaurants shows that the cost
of meals is concentrated between approximately $40 and
$70.
Eleven meals at center city restaurants cost $70 or more.
The histogram for metro area restaurants shows that the
cost of meals is concentrated between $20 and $60.
Very few meals at metro area restaurants cost more than
$60. 2023 Lecture: Ms. Nupur Kataria 25
Graphical Visualization of data
Example 2: Retirement growth and value funds:
Compare the past performance of the growth funds and the value funds, using
the one year return percentage variable using frequency histograms.
Class intervals: -15 to -10 (less than), -10 to -5, -5 to 0, 0 to 5,…..,15 to 20, 20 to
25.
returns were lower for the growth funds than for value funds.
The return for both the growth funds and the value funds is concentrated
between 0 and 15, but
the return for the value funds is more concentrated between 5 and 15 while
the return for the growth funds is more concentrated between 0 and 15.
Again note that the center city (blue line) meal cost is concentrated between $40 and
$70 while the metro area (yellow line) meal cost is concentrated between $20 and $60.
However, unlike the pair of histograms, the polygons allow you to more easily identify
which class intervals have similar percentages for the two groups and which do not.
At X = $35 (30-40 class interval), for meal costs at center city restaurants (the lower
one) show that 10% of the meals cost between $30 and $40, while the meal costs at
metro area restaurant (the higher one) shows that 24% of meals at these restaurants
cost between $30 and $40.
2023 Lecture: Ms. Nupur Kataria 29
Graphical Visualization of data
Example 2: Retirement growth and value funds:
To compare the past performance of the growth funds and the value
funds using the one year return percentage variable, construct
percentage polygons for the growth and value funds-
30
2023 Lecture: Ms. Nupur Kataria
Graphical Visualization of data
Example 2: Retirement growth and value funds:
20-30 6 12 12 14 28 30
30-40 5 10 22 12 24 54
40-50 9 18 40 10 20 74
50-60 9 18 58 10 20 94
60-70 10 20 78 3 6 100
70-80 6 12 90 0 0 100
80-90 2 4 94 0 0 100
a. Construct a bar chart, a pie chart, a doughnut chart, and a Pareto chart.
b. Which graphical method do you think is best for portraying these data?
Most often Way to Find out About New Most often Way to Find out About New
Marketing Agencies Marketing Agencies
6%
7% Referrals from friends,
Referrals from friends, colleagues
6%
colleagues 7%
7% Calls/emails from agencies
Calls/emails from agencies 7%
0 10 20 30 40 50
no
32%27%
yes
Recommendation yes
no
73%68%
0 50 100 150 200 250 300 350 400 450
Frequency
Mid- Cumulative
CI points Frequency Percentage (%) Percentage Histogram (Alcohol)
0.02-0.03 0.025 3 1.75% 1.75% 60.00%
50.00%
Percentage
0.03-0.04 0.035 4 2.34% 4.09% 40.00%
30.00%
0.04-0.05 0.045 95 55.56% 59.65% 20.00%
10.00%
0.05-0.06 0.055 44 25.73% 85.38%
0.00%
0.025 0.035 0.045 0.055 0.065 0.075 0.085 0.095
0.06-0.07 0.065 12 7.02% 92.40%
mid-points
0.07-0.08 0.075 6 3.51% 95.91%
Percentage
150-200 175 68 40% 88% 30%
Percentage Polygon:
Percentage Polygon (Alcohol) Percentage Polygon (Calories)
60% 55.56% 45%
40% 42%
40%
50% 35%
Percentage 30%
40% 25%
Percentage
20%
30% 25.73% 15%
10% 9%
7%
20% 5%
0% 1% 2%
0% 0%
10% 7.02% 25 75 125 175 225 275 325 375
3.51%2.34%
1.75%2.34% 1.75% Calories
0% 0%
0%
0.015 0.025 0.035 0.045 0.055 0.065 0.075 0.085 0.095 0.105 2023 Lecture: Ms. Nupur Kataria 51
Alcohol(%)
Cumulative Percentage Polygon:
Cumulative Percentage Polygon
(Alcohol)
120.00%
Cumulative Percent
100.00%
80.00%
60.00%
40.00%
20.00%
0.00%
0.0199 0.0299 0.0399 0.0499 0.0599 0.0699 0.0799 0.0899
Alcohol (%)
100%
80%
60%
40%
20%
0%
49.99 99.99 149.99 199.99 249.99 299.99
Calories
Frequency
15
2.050
10
Amount
2.000
1.950 5
1.900
0
1.850
1.875 1.925 1.975 2.025 2.075
1.800
1.750 Amount of soft drink
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49
Bottle Number of soft drink
H.W
Practice back questions of the chapter for
relevant sections