Histogram in Numbers

Is there a way to create a histogram in Numbers...I'm in a stats class and can do everything in Numbers but can't make a Histogram...

MacBook

Posted on Nov 25, 2010 6:06 AM

Reply
8 replies

Jun 22, 2017 8:35 PM in response to golfnphil42

Could not agree more.


In all due respect to the experts who have responded to this question. This should be automated. Data distribution is an abstract concept, yet easily and instantly rendered tangible and understandable with software - sadly not with numbers. Alas, the beautiful spreadsheet for the masses, is clearly beautiful, but just a variant of Excel.


If you have ever successfully taught statistics to anybody, you will understand that the shenanigans proposed by the experts in this post are of no use to anybody that could implement them, but are excellent at convincing generations of students that they can't do stats.


The leadership for numbers seems more focused on attractive graphical output rather than promoting numerical literacy. At that they 'excel' (sorry). This is a laudable, but not overly empowering goal.


If you are looking to graphically manipulate data for exploratory purposes - look no further than JMP (by the team that brought us SAS). If you are looking for modern, creative tools to capture, store, and manipulate all sorts of data - try out AirTable at www.airtable.com

Nov 25, 2010 1:35 PM in response to golfnphil42

Hi Phil,

Welcome to Apple Discussions and the Numbers '09 forum.

A histogram is a bar chart displaying the number (count) of values falling within specified ranges in a data set. You'll need to construct a table showing the ranges and the counts for each range, then chart that table as you would any other bar graph.

More information regarding how the data is to be divided into sets allocated to each bar of the histogram is needed before getting into specifics.

Regards,
Barry

Feb 15, 2011 5:28 AM in response to golfnphil42

Phil,

There really isn't anything to making a histogram in Numbers that you haven't already learned in Statistics class and that you don't already know about in Numbers Charts.

Numbers does have a FREQUENCY function that streamlines the process a tiny bit. I'll demonstrate here:

User uploaded file

There is only one equation in this document, and it's repeated for each "bucket" of your histogram.

It couldn't get much easier.

Here's how it works. The Frequency function looks at your data (DATA :: A), and your intervals (Column A of the Summary Table, represented by "A"), and calculates an array of frequencies. This array of frequency data exists only internally and must be accessed by INDEX or the like. So, we wrap the FREQUENCY function in an INDEX function to access the individual elements of the FREQUENCY array. In my example, we get the element corresponding to the ROW we're in, less 1 row for the Header. Then simply Chart the elements that are returned from the array.

Jerry

Feb 15, 2011 11:42 AM in response to DG4444

DG4444 wrote:
I would love to have this automated rather than having to manipulate the data prior to graphing it.

It would be good to be able to just select the graph, select the range and the number of bins and then let numbers do the rest.

This would be a great addition.


If you still think so after reading Jerry's reply and example, then tell Apple. Go to the application menu (in Numbers, that's the "Numbers" menu) and Provide Numbers Feedback. Your feedback could result in improvements in future versions of Numbers.

Regards,
Barry

Sep 29, 2011 4:52 AM in response to Jerrold Green1

That works nicely.


When I use the Reorganize Panel to filter my original data table (by a column I'm not counting), my histogram doesn't change. I'm assuming that the Reorganize Panel only filters what is displayed, and so the functions in my secont spreadsheet aren't affected. Is there a way to dynamically filter the data and have the histogram change, or will I have to make separate histograms for different situations?


As an example, suppose I am tracking the borrowing time for different library books. My data table has two columns, one for the genre and one for the number of days borrowed. I used the method above to make a histogram and it worked nicely, but when I filtered the data table ti display only the Mystery books, the histogram didn't change. What I wanted was a histogram showing only the borrowing times for mysteries.


I think it may be possible to modify the formula to only count the frequencies of entries that match a criteria, but if so I can't figure it out. Am I hunting in vain?

Sep 30, 2011 9:02 AM in response to Robert Prior

Nope, it can be done, Robert.


The problem, I believe, is that when you filtered your data, you only filtered the DISPLAY of the data, not what data was still in the table. So, FREQUENCY is still including them.


My solution (which includes a little more than you wanted, but it's how I roll) is:


First create a simple 1-column table listing your Genres.


If your books table isn't already populated with hundreds of books, then I'd use an OFFSET function on your genres table to pull in the genre in your books table. This will prevent typos and will be more dynamic should you need to add genres later. That's been explained in other discussions, so I'll leave that alone for now. You might be perfectly happy using a non-dynamic drop-down list.


Now create a small table to house the genre you're wanting to get frequencies for. Again, either use OFFSET against your genres table, or create a drop-down list.


Now add a column to your books table. See my example below:

User uploaded file

Run FREQUENCY off of that column and it will change as you change genres in your "Choose Genre Here" table. If you want to include more than one genre simultaneously, that can be done but will require a different means to execute, using checkboxes and a more complex IF function to replace the one above.


Vince

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Histogram in Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.