Chap3 Excel PDF
Chap3 Excel PDF
Mac Notes: As of this writing, if you are running Excel 2008 or higher on a Mac, the analysis ToolPak
is not available. There is an application called StatPlus:Mac LE which is a free version of the full
StatPlus application. It can handle most of the tasks performed by the Analysis ToolPak and in it’s
full version is probably superior - but that costs money. The free version does not have the Histogram
function installed. This is a problem with no easy work-around. There are various histogram templates
available on the web.
→ →
1
7. Do not click labels unless you have included labels in the data entries.
8. Put in a range of cells for the output range (or click new worksheet ply)
9. Check the include chart option
10. Then Click OK.
11. Your frequency distribution and histogram should appear where you told Excel to place it.
12. In order to make the frequency distribution table look like an actual frequency distribution, you
should edit the left column. Instead of the class boundaries (bin values), replace these with the
actual classes such as 30-39, 40-49, . . .. This will automatically change the x-axis labels in the
graph.
13. The histogram can be edited to look a lot better by clicking on the graph and choosing various
options from the chart tools menu. I like the option which includes axis titles and a main title.
14. Technically, a histogram’s bars are adjacent to each other. To do this, right click one of the
bars, and choose Format Data Series. From here you can set the Gap Width to zero and put in
borders.
15. The trickiest part is getting the x-axis to look good. By default, the axis has the class boundaries
under each bar. This is confusing. By editing the frequency table (a few steps back) the axis
labels now have the actual classes. If you ask me, that is good enough. If you want to place the
actual class boundaries on the x-axis, you must delete the x-axis label then insert a text-box with
the appropriate boundary values positioned in just the right places. This is tricky and has to be
re-scaled if you change the size of the graph. I’d rather have the actual class ranges under each
bar and save myself the headache of creating a custom text box.
→ →
If you already have the frequency table (as in some of the homework problems), creating a histogram
is quite easy using the bar-chart option in Excel and no ToolPak is necessary.
1. In the first column enter the classes as text. Format this column as text if necessary, otherwise
you will get a double histogram (not what you want). In the second column enter the frequencies.
2. Now highlight both columns.
3. Click on Insert then choose Column from the Charts menu, and choose the first option.
4. You get something like the middle graph above.
5. You can edit this graph in the same ways as described previously. Again, you can delete the x-axis
labels and put in a text-box with the actual class boundaries but I think the class ranges are just
as good. The right-hand graph above demonstrates a pretty good example.
2
• Creating a Scatter Plot (we’ll do more of this in Chapter 10).
80
→ 60
40
20
0
0 50 100 150 200 250
1. You can create a time-series plot with the x variables as some time unit. In this case, instead of
choosing Scatter, you choose, Line. Warning: If you are using dates, Excel will take control of
this to some extent - Be Careful. You can actually use the Scatter option here but the automated
x-axis labeling is not as friendly.
2. Or, you can just highlight the y variables, click insert from the menu bar and choose Line. This
will give you the sequential values of y with x-values starting at one and counting from there.