TC3 → Stan Brown → TI-83/84/89 → Frequency Polygon
revised Jan 26, 2008

Frequency Polygons on the TI-83/84

Copyright © 2008 by Stan Brown, Oak Road Systems

Summary: 

You can use your TI-83 or TI-84 to make a frequency polygon from a frequency grouped distribution. This note shows you the procedure, and gives you a TI-83/84 program to save you the effort.

Assuming you’ve already entered your class marks and frequencies, you add two more classes with zero frequency on Stats Edit, you adjust window margins on Window, and you set up the polygon on Stat Plot.

Contents: 

Step 1: Deactivate all other graphs
Step 2: Add two classes with zero frequencies
Step 3: Specify bar width and margins on the Window screen
Step 4: Program the frequency polygon on the Stat Plot screen
Step 5: Display the graph
Example
optional extra: Trace the polygon
TI-83/84 program HISTNPGN

See also:  TI-83/84 Troubleshooting
Histograms of Numeric Data on the TI-83/84
Descriptive Statistics of a Data Set on the TI-83/84

Step 1: Deactivate all other graphs

Deactivate any graphs that are already set up, so that they don’t interfere with your new graph.

Clear any plots. [2nd Y= makes STAT PLOT] [4] [ENTER] selects PlotOff and executes it.
Clear any equation plots. [VARS] [] [4] [2] [ENTER] selects FnOff and executes it.

(As an alternative to PlotOff and FnOff, you might prefer to press [Y=] and de-highlight Plot1 through Plot3 as well as Y1 through Y0. That’s fine, as long as you remember to scroll down to check Y8, Y9, and Y0, and look up to check the three plots at the top of the Y= screen. Many people forget, but with PlotOff and FnOff you can’t forget.)

Steps 2–4 set up three screens. You can do them in any order — the order shown here isn’t critical.

Step 2: Add two classes with zero frequencies

Compared to the histogram, the frequency polygon needs one extra class mark at the left (low end) and one at the right (high end), both with zero frequencies. This puts both ends of the polygon on the x axis.

Assuming you’ve already entered your class marks in L1 and your frequencies in L2, you need to insert one row before the first row and add one row after the last.

Insert the extra class mark at the low end. [STAT] [1] selects the list-edit screen.
 
Move cursor onto the first row of the first column (not the column header), then press [2nd DEL makes INS] to open a slot. Enter the value of the lowest class mark minus one class width.
Insert a frequency of zero for the extra class mark. Move cursor onto the first row of the second column (not the column header), then press [2nd DEL makes INS] to open a slot. Enter a zero.
Add the extra class mark at the high end. Move cursor to the first blank at the end of L1. Enter the value of the highest class mark plus one class width.
Add a frequency of zero for the extra class mark. Move cursor to the first blank at the end of L2 and enter a zero.

Step 3: Specify bar width and margins on the Window screen

The settings are quite similar to a grouped frequency histogram. In fact, only Xmin and Xmax are different, but for simplicity all seven variables will be shown here.

Press [WINDOW] to get to the Window screen, and then enter values as follows:

If the class boundaries are 150 to 250, 250 to 350, and so on up to 950 to 1050, then your class width is 100. Xmin is 150−100 = 50, and Xmax is 1050+100 = 1150.

Step 4: Program the frequency polygon on the Stat Plot screen

Turn on Stat Plot 2 as an x-y line graph. Press [2nd Y= makes STAT PLOT] [2] [ENTER] to turn on plot 2.
Caution: make sure you press [ENTER] to turn the plot on. Many people press the down arrow instead, so that the plot is still turned off.
Select the x-y line icon. [] [] [ENTER]
Answer Xlist: with L1 because the class marks are in L1. Press [] [2nd 1 makes L1].
Answer Freq: with L2 because the frequencies are in L2. TI-83 Stat Plot screen for frequency polygon, as per text Press [2nd 2 makes L2] [ENTER].
Select a marker for the corners of the polygon. Select □ or + for visibility.

Step 5: Display the graph

Press [GRAPH] to display the graph.

You can display the frequency polygon as an overlay on the histogram. (The calculator can display up to three stat plots at the same time.) Just set up Stat Plot 1 for a histogram with the same two lists. No bars will appear for the two class marks with zero frequencies.

Example

Class BoundariesClass MarksFrequency
20 ≤ x < 302534
30 ≤ x < 403558
40 ≤ x < 504576
50 ≤ x < 6055187
60 ≤ x < 7065254
70 ≤ x < 8075241
80 ≤ x < 9085147

The grouped frequency distribution at right is the ages reported by Roman Catholic nuns, from Johnson & Kuby, Elementary Statistics 9/e (Thomson, 2004), page 67. Use your TI-83/84 to plot a frequency polygon.

To begin, clear old plots. Then, enter the class marks in L1 and the frequencies in L2.

Your class marks are 25, 35, up through 85, and your class width is 10. Therefore you need extra class marks 15 and 95. Insert the class mark of 15 at the beginning of L1, and insert a zero frequency at the beginning of L2.

Move to the end of L1 and add your class mark of 95, then add a zero frequency at the end of L2. If you’ve done it right, each list will have nine numbers.

TI-83 screen showing insertion of extra class before the lowest class mark       class marks entered in L1, frequencies in L2

TI-83 Window screen for frequency polygon Next, press [WINDOW] and fill in the values according to the rules given above:

Finally, set up the Stat Plot screen and press [GRAPH]. The result is shown below right.

You can overlay the frequency polygon on the grouped frequency histogram. Simply set up Stat Plot 1 with the histogram, while leaving Stat Plot 2 turned on. The result is shown below left.

TI-83 graph of frequency polygon       frequency polygon overlaid on grouped frequency histogram

optional extra: Trace the polygon

polygon and histogram, tracing P2 (plot 2) You can trace the polygon by pressing [TRACE] []. This lets you see the class marks and number of data points in each class.

Why press []? When you press [TRACE], the calculator starts with a trace of Stat Plot 1. The up or down cursor key will move between plots. Since the frequency polygon is Stat Plot 2, you are tracing it when you see P2 in the upper left corner, as shown in the illustration.

Press [] and [] to move through the classes. To suppress the tracing information, press [GRAPH] again.

TI-83/84 program HISTNPGN

I’ve developed a TI-83/84 program that graphs a frequency polygon or histogram, or both.

Getting the program

There are three methods to get the program into your calculator:

Using the program

To use the program, put the class marks in one list and the frequencies in another. (Enter only the real classes, not the extra classes below and above the real classes. The program will create the extra classes for you.) Then press [PROG], select HISTNPGN, and press [ENTER] [ENTER]. The program will prompt you for the lists containing the class marks and the frequencies. Here the class marks have been entered in L5 and the frequencies in L6, just for variety.

After you identify the lists, the program asks you which plots you want. I’m selecting both plots.

TI-83/84 data entry screen       TI-83/84 program run screen (1 of 2)       TI-83/84 program run screen (2 of 2)

program output screen, frequency polygon overlaid on histogram The output is quite similar to the graphs done “by hand” above, except that the vertical spacing of the dots is different. The program uses an algorithm to ensure that there are between 10 and 20 vertical divisions for most data sets.

Technical details: The program uses variables N, W, and X for temporary storage. It stores the class marks and frequencies for the histogram in lists LD and LF, and the class marks and frequencies for the polygon in lists LPD and LPF.

If you want to delete the variables, press [2nd + makes MEM] [2] [2], cursor to each one, and press [DEL]. (X is a system variable and can’t be deleted.)

If you want to delete the lists, press [2nd + makes MEM] [2] [4], scroll down to find each one, and press [DEL].


This page is used in instruction at Tompkins Cortland Community College in Dryden, New York; it’s not an official statement of the College. Please visit www.tc3.edu/instruct/sbrown/ to report errors or ask to copy it.

For updates and new info, go to http://www.tc3.edu/instruct/sbrown/ti83/