Excel For Mac Relative Frequency Histogram

The Importance of Histograms and Descriptive Statistics

  1. Creating a Relative Frequency Table and Plotting the Relative Frequency Histogram Making a Pivot Table from a set of observed data (1-7) and plotting the Histogram (7-11) 1. Highlight the column of data 2. Go to the ‘Insert’ tab at the top ribbon and select ‘Pivot Table’ 3. Check the box next to the variable name (xobs here) 4.
  2. To create a histogram in Excel 2016/2013/2010 for Mac and Windows, follow these simple steps: Go to the Data tab and click on Data Analysis. Select Histogram in Data Analysis ToolPak Menu Dialog and hit the OK button. In Input Range, select your data. In Bin Range select the interval range. Now if you have selected headers then check Labels.
  3. How to create a Histogram Chart Highlight the frequency data table (cells M4:P8) From the Insert tab of the ribbon select Column 2-D column. You should end up with something like this.

The word “statistics” comes from the German word “stadt”. Stadt means “city” but in the 18th century each city was a state in its own right. And the people who ran those states needed to have the facts. What is the population? What is the food production? How many men are available for the military? What is the birth rate? Information about the state came to be known as Statistics. In today’s complex world people do data mining, gather big data, and perform tests of statistical hypotheses. It is easy to forget that one of the primary tasks of statistics is purely descriptive.

Calculating descriptive statistics such as mean, median, and variance is easy, since Excel has functions for this purpose. Let’s look at something a little more complicated but a necessary tool in the statistician’s toolbox, the frequency distribution and its graphical comrade, the histogram.

Creating a Histogram using Microsoft Excel

We’ll stick with the centuries-old tradition and gather some information about cities, starting with a table of income information about cities in the United States from the year 2009. We would like to observe the frequency distribution of median family incomes. The Excel data analysis toolpak has a nice dialog box for doing this automatically, but we’re going to take charge and do it ourselves using the FREQUENCY function.

We must first define the bins, which is to say the value ranges into which our data will be sorted. Generally this is done in a worksheet column, and Excel’s auto-fill feature makes this easy. In this example we will create bins from 10,000 to 170,0000 at increments of 5000.

Excel for mac relative frequency histogram calculator

Now we are ready to tabulate our frequency distribution. We highlight a second column next to our column of bin values. In the formula bar, we enter =FREQUENCY(. The first argument is the range containing our data. If you enter this range by highlighting it on the worksheet, be careful not to include the column heading. Only the data is highlighted. The second argument to FREQUENCY is the range containing the bin values. After entering the range in the formula bar close the parenthesis, but

Another way to create a histogram in Excel is to use the Data Analysis ToolPak add-in. This is a very simple method, and it works in older versions of Excel. However, one limitation is that the output is static, and won't update automatically if values in the data change.

Do not hit enter!
Highlight the range where the frequency results will appear and enter the frequency function.

Excel For Mac Relative Frequency HistogramFunction

Enter both the data ranges and the frequency bin range.

You’re almost ready but
Do not hit enter yet!

Excel for mac relative frequency histogram calculator

FREQUENCY if one of the many valuable Excel array functions. Mr. Excel calls them “CSE” functions, and this name is well chosen. The CSE acronym reminds us that you enter array functions not by hitting enter but by hitting <ctrl><shift><enter>. When you hit control-shift-enter, the formua will be entered in the highlighted cells. Note that in the formula bar, the function is now within curly braces. You cannot just type in these curly braces yourself. You must let Excel enter them after you type <ctrl><shift><enter>.

Excel For Mac Relative Frequency Histogram

Now that we have our frequency distribution, it is impossible to resist creating a chart. The frequency range is already highlighted; we have only to click on “column chart” from Excel’s Insert ribbon tab. The chart looks OK, but we see that we will have to edit the horizontal axis label to reflect our frequency bins. We can right-click on the chart and choose “Select Data…” . Click the “Edit” button on the right-hand side, the side for the horizontal axis labels. Then enter the range containing the frequency bins.

Right-click the chart and choose “Select Data…” to edit the axis labels.

Right-click the chart and choose “Select Data…” to edit the axis labels.

Excel

After entering a title and choosing a style, we have our finished frequency histogram!

Excel For Mac Relative Frequency Histogram Example

I hope you enjoyed my first Excel post! Stay tuned for my next one where we cover Standard Deviations.