Chap 4. Pivot Practice
Chap 4. Pivot Practice
Exercise 1.
Monthly
Major Monthly Salary Major Monthly Salary Major
Salary
Management 3330 Accounting 3780 Accounting 4280
Management 2700 Management 2975 Management 4285
Finance 3155 Management 3275 Accounting 3240
Accounting 3855 Marketing 3645 Marketing 3115
Info Systems 4220 Management 3250 Marketing 3645
Accounting 3110 Finance 3875 Accounting 3800
Accounting 3880 Marketing 2900 Marketing 3635
Management 3695 Management 2685 Accounting 4890
Finance 3775 Accounting 3020 Info Systems 3855
Finance 3875 Info Systems 4410 Marketing 3110
Accounting 4560 Finance 3350 Finance 2955
Accounting 3475 Accounting 5000 Management 3440
Marketing 2780 Accounting 4040 Marketing 3935
Marketing 3715 Accounting 3770 Info Systems 4360
Marketing 3260 Accounting 4995 Info Systems 4285
Management 3175 Info Systems 5030 Marketing 2495
Finance 3355 Finance 3370 Management 2800
Accounting 4205 Accounting 4340 Marketing 4485
Finance 4000 Accounting 4225 Management 2840
Finance 4245 Finance 3400 Management 3135
Finance 2950 Management 2890 Marketing 3190
Marketing 3270 Finance 4075 Marketing 3190
Management 3835 Finance 3530 Management 2240
Accounting 4150 Info Systems 3325 Management 3365
Marketing 3200 Marketing 3025 Accounting 3095
Accounting 3140 Marketing 4010 Info Systems 3765
Finance 3700 Management 2865 Info Systems 3860
Marketing 3480 Management 4245 Accounting 2700
Accounting 3760 Accounting 5650 Finance 5000
Marketing 3440 Accounting 4090 Info Systems 4610
Marketing 3535 Info Systems 3715 Accounting 5500
Management 2630 Accounting 3800 Info Systems 3610
Management 3080 Finance 3535 Info Systems 3865
Management 3615 Management 2780 Accounting 4210
Finance 3800 Info Systems 3965 Management 3190
Info Systems 2830 Finance 3665 Finance 3810
Marketing 2530 Info Systems 4295 Finance 4175
1. Compute the average salary by majors and compute the % difference of average salary from baseline
Accounting
2. Compute the highest, lowest, mean, median and standard deviation of salary for each major.
3. Create a crosstabulation table with the row by majors and column by monthly salary. Salary is divided
equally into 4 groups (from $2000 to $3000, $3000 - $4000, $4000 – $5000, $5000 – $6000). Value in
each cell of the table is count of employees. Then calculate the distribution of majors by each level of
salary. Choose appropriate graph to visualize.
Exercise 2:
1. Set up data bars to summarize this data. Players making less than $1 million should have the shortest
data bar, and players making more than $15 million should have longest data bar.
2. Set up a three-color scale to summarize the NBA salary data. Change the color of the bottom 10
percent of all the salaries to green and the top 10 percent to red.
3. Use five icons to summarize the NBA player data. Create break points for icons at $3 million, $6
million, $9 million, and $12 million.
4. How could you set things up so that no icons are shown for players who have salaries between $7
million and $8 million?