Graphing Histograms with # Bins (General Question)

  • Thread starter Thread starter doubled
  • Start date Start date
  • Tags Tags
    Graphing
Click For Summary

Homework Help Overview

The discussion revolves around the process of graphing histograms, specifically focusing on how to determine the range each bin covers when given a set number of bins. The subject area includes data visualization and statistical representation.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • Participants explore different methods of binning data, including age ranges and equal intervals. Questions arise regarding the necessity of equal bin widths and the subjective nature of binning choices. The original poster seeks clarification on the instructions for calculating and plotting a histogram with a specified number of bins.

Discussion Status

There is an ongoing exploration of how to approach the problem of binning data for a histogram. Some participants have offered insights into the flexibility of bin widths, while others are questioning the clarity of the instructions provided. The discussion is productive, with various interpretations being considered.

Contextual Notes

The original poster mentions a specific problem involving 10 data points and a template for the plot, which includes defined minimum and maximum values. This context raises questions about how to calculate bin ranges based on the provided template.

doubled
Messages
27
Reaction score
0
If you're given a set of data and asked to plot the histogram with x amount of bins. How do you determine which range each bin covers?
 
Physics news on Phys.org
I think that depends on what you're trying to show.

Say you had data for a whole range of people from infants to centenarians.

You could bin by:
- every ten years
- every 20 years

or you could define age ranges:
- infants 0-8 years
- preteens 9-15
- teens 16-21
- yuppies 22-50,
- baby boomers 51-64
- seniors 65-80
- centenarians 81-100+

The binning choice is yours use it wisely to convey what you need to convey.
 
Thanks. The width of each bin should be the same right?
 
doubled said:
Thanks. The width of each bin should be the same right?

No, not necessarily. Look at the previous posting. Are the bin widths for teens the same as for yuppies or baby boomers?
 
Ah I see. I see. So I guess it's a subjective thing.

I was given a problem with the following 10 data ptns:
289.1 269.6 270.7 277.5 279 267.8 283.7 271 261.9 282.6

I attached this problem.

I was asked to "calculate and plot the histogram with 3 bins."
I'm not sure what they mean by calculate. Think it's just an unnecessary word in the instructions.

Anyway, I was given a template for the plot. On the x-axis the template they gave goes from 260-290 in increments of 5. So from common sense I would have my ranges as 260-270, 270-280, 290-300.


If you're given a template with the maximum and minimum values, would it set the range as the (maximum-minimum)/# of bins?
 

Attachments

  • Untitled.png
    Untitled.png
    9.1 KB · Views: 431

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 3 ·
Replies
3
Views
8K
Replies
7
Views
5K
Replies
4
Views
2K