This lesson on Probability Distributions — Discrete and Continuous is hands-on and example-driven. You will be able to define a statistical distribution and explain how it represents the likelihood of different measurements occurring. You will learn how histograms and approximating curves visualize distributions and why the curve is often preferred for precise probability calculation.
What You'll Be Able To Do
- Define a statistical distribution based on measured data.
- Explain how binning measurements creates a histogram.
- Contrast the advantages of using a curve versus a histogram.
- Calculate the region of highest probability from a distribution visualization.
- Describe how bin size affects the precision of a distribution estimate.
Topics Covered in Probability Distributions — Discrete and Continuous
- Defining Distribution (0:00 - 0:30) — A statistical distribution describes how measurements are spread out.
- Building a Histogram (0:30 - 1:15) — Measurements are placed into defined bins to visualize frequency.
- Interpreting Likelihood (1:15 - 1:45) — The histogram shows where measurements are most and least likely to fall.
- Precision and Bin Size (1:45 - 2:30) — Using smaller bins and more data yields a more precise distribution estimate.
- Curve Approximation (2:30 - 3:00) — A smooth curve can be used to approximate the shape shown by the histogram.
- Curve Advantages (3:00 - 4:00) — The curve allows probability calculation for unobserved ranges and is not limited by bin width.
- Distribution Summary (4:00 - 4:30) — Both histograms and curves show how probabilities of measurements are distributed.
SQL Cheat Sheet
-
Distribution— Shows how probabilities of measurements are spread outSELECT height, COUNT(*) FROM measurements GROUP BY 1 ORDER BY 2 DESC; -
Histogram— Stacks binned measurements to visualize frequencySELECT FLOOR(height / 0.5) * 0.5 AS bin, COUNT(*) FROM measurements GROUP BY 1; -
Bin Size— The width of the range used to group measurementsSELECT 0.5 AS bin_width; -
Curve Approximation— Smooth line used to estimate probabilities across the range -
Probability— The likelihood of measuring a specific value or rangeSELECT COUNT(*) FROM measurements WHERE height BETWEEN 5.0 AND 6.0;
Comparison Table
| Feature | Histogram | Curve Approximation |
|---|---|---|
| Basis | Stacked binned measurements. | Smooth mathematical function. |
| Precision | Limited by bin width. | Not limited by bin width. |
| Missing Data | Cannot calculate probability for empty bins. | Can calculate probability for empty bins. |
| Resource Use | Requires many measurements. | Good with fewer measurements. |
Common Pitfalls
- Mistake: Assuming an empty histogram bin means that measurement is impossible. Avoid: Use the approximating curve to calculate probability for that range.
- Mistake: Using overly large bins, losing precision in the distribution shape. Avoid: Use smaller bins and more measurements for a more accurate estimate.
- Mistake: Confusing the height of the curve with the measurement value itself. Avoid: The height shows the likelihood of that measurement occurring.
FAQs
- What does the tallest part of the distribution represent? It represents the region where measurements are most likely to occur, often near the average.
- Why is the curve approximation better than the histogram? The curve allows calculation of probability for any range, even those not observed, and is not limited by bin size.
- How does measuring more people affect the distribution visualization? Measuring more people, combined with smaller bins, leads to a more accurate and precise estimate of the true distribution shape.