Bar & Pie Charts
Quantitative Aptitude – Advanced University‑Level Notes
Prepared for the Lakshadweep Police Sub‑Inspector (SI) Examination
1. Overview
| Feature | Bar Chart | Pie Chart |
|---|---|---|
| Purpose | Compare discrete quantities across categories. | Show proportional parts of a whole. |
| Data type | Frequencies, counts, or any real values (often positive). | Percentages or frequencies that sum to a known total (usually 100 %). |
| Visual cue | Height (or width) of bars. | Central angle (or area) of sectors. |
| Mathematical basis | Linear mapping: height ∝ value. |
Angular mapping: angle = (value/total) × 360°. |
| Best use | When exact differences matter. | When relative composition matters. |
Key Takeaway
A bar chart is a linear representation of data, whereas a pie chart is a circular representation; the former excels at highlighting differences, the latter at illustrating parts of a whole.
2. Bar Charts – First Principles
2.1 Formal Definition
Let ( \mathcal{C} = {c_1, c_2, \dots, c_n} ) be a finite set of mutually exclusive categories.
Let ( f: \mathcal{C} \to \mathbb{R}_{\ge 0} ) assign a value ( f(c_i) ) to each category.
A bar chart is a mapping
[
\text{BarChart}: \mathcal{C} \to \mathbb{R}_{\ge 0}
]
such that each category (c_i) is represented by a rectangle (bar) whose height (h_i) satisfies
[
h_i = k \cdot f(c_i)
]
for a fixed scale factor (k>0).
Assumptions
- Bars are arranged in a linear order (usually alphabetical or natural order).
- Bar widths are uniform: (w_i = w) for all (i).
- Adjacent bars are separated by a fixed gap (g).
2.2 Construction Algorithm
- Determine the maximum value (M = \max_i f(c_i)).
- Choose a drawing height (H) (e.g., 10 cm or 8 in).
- Compute scale factor (k = H/M).
- For each (c_i), set bar height (h_i = k f(c_i)).
- Position bars sequentially with width (w) and gap (g).
2.3 Properties
| Property | Statement | Proof Sketch |
|---|---|---|
| Monotonicity | If (f(c_i) \le f(c_j)) then (h_i \le h_j). | Direct from (h_i = k f(c_i)), (k>0). |
| Additivity | The total area of bars equals (k \sum_i f(c_i) w). | Sum of individual areas (h_i w = k f(c_i) w). |
| Proportionality | The ratio of any two bar heights equals the ratio of the underlying values: (h_i/h_j = f(c_i)/f(c_j)). | From definition. |
2.4 Edge Cases
| Edge Case | Handling |
|---|---|
| Zero values | Bars of zero height are omitted or drawn at the baseline (height = 0). |
| Negative values | Not allowed in standard bar charts; if present, either ignore or represent with a separate negative bar below the baseline. |
| Missing categories | Treat as zero or omit, depending on context |