VITEEE /Aptitude

Bar Graphs

Data Interpretation · free study notes

Bar Graphs – Advanced University‑Level Study Notes

(A MIT‑style treatment of the fundamentals, theory, edge cases, and advanced applications)

Audience – Graduate students in Statistics, Data Science, or Applied Mathematics.
Prerequisites – Basic probability, statistics, and elementary calculus.


1. From First Principles

1.1 What is a Bar Graph?

A bar graph is a chart that represents a set of categorical or discretized numerical data via rectangular bars whose areas (or heights) are proportional to the quantity represented.

  • Axes:
    • X‑axis: categorical or discretized bins.
    • Y‑axis: frequency, probability, or any quantitative measure.
  • Base: typically the horizontal axis (0).

1.2 Fundamental Assumptions

Assumption Why it matters Consequence if violated
Non‑negative counts Frequencies cannot be negative. Mis‑interpretation, negative probability.
Consistent bin width Impacts comparability across bars. Erroneous density comparison.
Uniform scaling Comparability of bar heights. Misleading visual emphasis.
Independence of categories Enables separate interpretation. Over‑aggregation or hidden dependencies.

2. Core Geometry & Scaling

2.1 Height vs Area

  • Standard bar graph: Height (h) is the quantity (q).
  • Histogram: Bar width (\Delta x) is the bin width; area (A = q \Delta x) reflects frequency density.

Key Insight:
When bins have different widths, the area is a more faithful representation of frequency density, not the height.

2.2 Normalization

Let (X) be a discrete random variable with support ({x_1, \dots, x_k}).
The empirical probability mass function (PMF) is
[ \hat{p}(x_i) = \frac{n_i}{N}, \quad N = \sum_{j=1}^k n_j, ] where (n_i) is the count in category (i).

The bar graph can display (n_i) (raw count) or (\hat{p}(x_i)) (normalized).
Rigorously, if the goal is to depict a probability distribution, the bars must sum to 1 (i.e., be normalized).

2.3 Bin Width Selection (Histograms)

For continuous data, the bin width (\Delta) is crucial.

  • Sturges’ rule: (\Delta \approx \frac{\max(x)-\min(x)}{1+\log_2 N}).
  • Scott’s rule: (\Delta = 3.5,\sigma, N^{-1/3}).
  • Freedman–Diaconis rule: (\Delta = 2, IQR, N^{-1/3}).

These emerge from minimizing the mean integrated squared error (MISE) between the histogram and the underlying density.


3. Types of Bar Graphs

Type Description Typical Use
Simple (unbarred) Single bar per category Frequencies, counts
Grouped Bars side‑by‑side for sub‑categories Comparative analysis
Stacked Bars divided into segments Cumulative distributions
Clustered Multiple bars per group (e.g., time series) Trend comparison
Mosaic (Marimekko) Variable width & height Two‑way data tables
3‑D Bar Extruded bars in 3‑D Aesthetic, rarely recommended

Mathematically, a grouped bar graph can be seen as a matrix (B \in \mathbb{R}^{k \times \ell}) where (k) is the number of groups and (\ell) is the number of sub‑categories.


4. Theoretical Foundations

4.1 Bar Graphs as Empirical Measures

Define the empirical distribution function (EDF) for data ({x_i}{i=1}^N): [ \hat{F}(x) = \frac{1}{N}\sum{i=1}^N \mathbf{1}{x_i \le x}. ] A bar graph with vertical bars at each unique data point essentially plots the derivative (in a weak sense) of (\hat{F}\

Your note

Page 1

Doubt hai is topic me?

Free AI teacher se poocho — 24/7, step by step.