Discrete Histogram Input
Example Data Table
| Value | Frequency | Relative Frequency | Percent | Cumulative Frequency |
|---|---|---|---|---|
| 1 | 2 | 0.20 | 20% | 2 |
| 2 | 3 | 0.30 | 30% | 5 |
| 3 | 1 | 0.10 | 10% | 6 |
| 4 | 2 | 0.20 | 20% | 8 |
| 5 | 2 | 0.20 | 20% | 10 |
This sample shows how a discrete distribution becomes a histogram-ready table with values, counts, relative shares, and running totals.
Formula Used
\( N = \sum f_i \)
\( r_i = \frac{f_i}{N} \)
\( C_i = \sum_{j=1}^{i} f_j \)
\( \mu = \frac{\sum x_i f_i}{N} \)
\( \sigma^2 = \frac{\sum f_i (x_i - \mu)^2}{N} \)
\( \sigma = \sqrt{\sigma^2} \)
How to Use This Calculator
- Choose raw values or value-frequency pairs.
- Paste the data into the matching input box.
- Select the chart metric and preferred sort order.
- Adjust labels, decimal places, and bar gap if needed.
- Submit the form to generate the graph and distribution table.
- Review summary measures like mean, variance, standard deviation, and modes.
- Use the CSV or PDF buttons to export the results.
FAQs
1. What is a discrete histogram?
A discrete histogram displays counts for separate numeric values. Each bar represents one exact value instead of a continuous interval. It is useful when values are distinct and repeat in the dataset.
2. Can I enter raw numbers instead of frequencies?
Yes. Use raw mode when you have the original observations. The calculator counts repeats automatically, builds the frequency table, and then draws the histogram from those totals.
3. When should I use value-frequency pairs?
Use pairs when you already know the count for each value. This is faster for summarized data and avoids retyping repeated values many times.
4. What does relative frequency mean?
Relative frequency is the share of the total represented by a value. It equals frequency divided by total frequency. It helps compare categories using proportions instead of raw counts.
5. Why does the calculator show cumulative totals?
Cumulative totals show the running sum across sorted values. They are useful for locating thresholds, medians, percent positions, and understanding how the distribution builds from smallest to largest values.
6. Can the values be decimals?
Yes. The tool accepts decimal values as long as they are valid numbers. It treats each unique numeric value as a separate discrete category in the distribution.
7. What does the export feature save?
The CSV export saves the calculated distribution table. The PDF export saves the summary statistics plus the same table, making the output easier to share or include in coursework and reports.
8. Is this the same as a grouped histogram?
No. Grouped histograms use intervals or bins. This calculator is designed for discrete values, where each value is shown directly instead of being merged into class ranges.