8
This tutorial shows you how to make a histogram using StatPro. As our example, we will use the ``age’’ variable from the British Marketing data set (bmrbxl.xls). 1. Open up the data file. Click on the Add-Ins tab at the top. Then, click StatPro > Charts > Histograms. This is shown on the following screen. 2. If you select OK on the next dialog box, it will then ask you which variables you want to make into a histogram. We want to select the ``age’’ variable.

How to Make a Histogram

  • Upload
    doshi78

  • View
    222

  • Download
    1

Embed Size (px)

DESCRIPTION

note

Citation preview

  • This tutorial shows you how to make a histogram using StatPro. As our example, we will use the ``age

    variable from the British Marketing data set (bmrbxl.xls).

    1. Open up the data file. Click on the Add-Ins tab at the top. Then, click StatPro > Charts >

    Histograms. This is shown on the following screen.

    2. If you select OK on the next dialog box, it will then ask you which variables you want to make

    into a histogram. We want to select the ``age variable.

  • 3. Having selected the age variable on the previous screen, we need to choose the number of

    ``bins and the size of each bin. This is not done automatically for you in StatPro and you may

    need to play around with it in order to make each histogram look good. For this data set, I

    have selected the minimum value to be 15 (years of age), each bin size to be 5 (years of age)

    and a total of 16 bins.

  • StatPro should produce a histogram as in the next screen. It isnt very attractive.

  • 4. To make the histogram better looking, we should play around with the features in Excel. For

    example, we might want to add borders in between each bin. To do this, left click in the blue

    shaded region of the graph. Then, Right Click and select Format Data Series.

  • 5. Then, choose Border Color. Select the Solid Line tab and a Color from the Theme Colors

    menu.

  • 6. Here, I have chosen the color Black. And, I have changed the label on the horizontal axis to

    read ``Age in years.

  • Note that it is also possible to create Histograms in Excel without using StatPro. It is just more

    tedious to do. For example, to make a histogram you would select the Insert tab. On the

    Insert tab select Column and then Clustered Column.

  • You will notice that the resulting chart is not formatted correctly. You will need to go through

    and reformat the data on the horizontal axis by creating bins. I am not going to go through the

    details of this procedure. This is the advantage of using StatPro, which does much of the work

    for us.