4ffbddba 94e6 46c3 a637 c90afe1ac033

📚 4ffbddba-94e6-46c3-a637-c90afe1ac033.pdf

Brief overview

This document provides a foundational understanding of probability theory and its application in data analysis. It covers essential statistical concepts, common probability distributions, and methods for interpreting data, equipping readers with tools for statistical reasoning.

Key points

  • Overview of fundamental probability concepts and calculations for events.
  • Explanation of descriptive statistics including measures of central tendency and dispersion.
  • Exploration of probability distributions like binomial and normal, and their approximations.
  • Application of statistical theorems to interpret real-world data.
  • Data analysis using contingency tables and frequency distribution shapes.

1. Introduction to probability and basic concepts

1.1 Types of probability

  • Classical probability: Based on equally likely outcomes, often used for games of chance. Example: rolling a fair die.
  • Relative frequency probability: Based on observed data from past experiments or occurrences. Example: predicting weather based on historical data.
  • Subjective probability: Based on personal belief, intuition, or opinion. Example: a specialist's hunch about interest rates. .

1.2 Calculating basic probabilities

When selecting items randomly, the probability of an event depends on the total number of items and the number of favorable outcomes.

  • Scenario: 11 toys, 7 red and 4 green. Choosing two toys at random.

  • Probability of choosing two red toys:

    • Total ways to choose 2 toys from 11: (112)=11×102×1=55\binom{11}{2} = \frac{11 \times 10}{2 \times 1} = 55.
    • Ways to choose 2 red toys from 7: (72)=7×62×1=21\binom{7}{2} = \frac{7 \times 6}{2 \times 1} = 21.
    • P(two red)=2155≈0.38P(\text{two red}) = \frac{21}{55} \approx 0.38. .
  • Probability of choosing one red and one green toy:

    • Ways to choose 1 red from 7: (71)=7\binom{7}{1} = 7.
    • Ways to choose 1 green from 4: (41)=4\binom{4}{1} = 4.
    • Ways to choose 1 red AND 1 green: 7×4=287 \times 4 = 28.
    • P(one red, one green)=2855≈0.51P(\text{one red, one green}) = \frac{28}{55} \approx 0.51. .
  • Probability of choosing at least one green toy:

    • This is 1−P(no green toys)=1−P(two red toys)1 - P(\text{no green toys}) = 1 - P(\text{two red toys}).
    • P(at least one green)=1−2155=3455≈0.62P(\text{at least one green}) = 1 - \frac{21}{55} = \frac{34}{55} \approx 0.62. .
  • Probability of choosing a red then a green toy (order matters):

    • P(first red)=711P(\text{first red}) = \frac{7}{11}.
    • After picking one red, 10 toys remain (6 red, 4 green).
    • P(second green | first red)=410P(\text{second green | first red}) = \frac{4}{10}.
    • P(red then green)=P(first red)×P(second green | first red)=711×410=28110≈0.25P(\text{red then green}) = P(\text{first red}) \times P(\text{second green | first red}) = \frac{7}{11} \times \frac{4}{10} = \frac{28}{110} \approx 0.25. .

🔑 Important: When order matters, use permutations. When order does not matter, use combinations.

1.3 Mutually exclusive and independent events

Understanding the relationship between events is crucial for probability calculations.

  • Mutually exclusive events: Events that cannot occur at the same time. If A and B are mutually exclusive, then P(A and B)=0P(A \text{ and } B) = 0.
  • For mutually exclusive events, the probability of A OR B occurring is the sum of their individual probabilities: P(A or B)=P(A)+P(B)P(A \text{ or } B) = P(A) + P(B).
  • Complementary events: Two events that are mutually exclusive and together cover all possible outcomes. If A is an event, its complement is denoted as A̅. P(A) + P(A̅) = 1. Complementary events are mutually exclusive.
  • Independent events: The occurrence of one event does not affect the probability of the other event occurring. If A and B are independent, then P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B).
  • If events are dependent (not independent), P(A and B)=P(A)×P(B∣A)P(A \text{ and } B) = P(A) \times P(B|A) or P(B)×P(A∣B)P(B) \times P(A|B).

🔑 Important: If events A and B are mutually exclusive, P(A and B)=0P(A \text{ and } B) = 0, which is not greater than 0. Complementary events ARE mutually exclusive. If events are dependent, P(A and B)≠P(A)P(B)P(A \text{ and } B) \neq P(A)P(B). .

1.4 Calculating probabilities with given values

Given probabilities can be used to find other related probabilities.

  • Given probabilities:

    • P(A)=0.22P(A) = 0.22
    • P(B)=0.39P(B) = 0.39
    • P(C)=0.35P(C) = 0.35
    • P(C∣B)=0.55P(C|B) = 0.55
    • P(A and C)=0P(A \text{ and } C) = 0
    • P(A and B)=0.09P(A \text{ and } B) = 0.09
  • Calculations:

    • P(B and C)P(B \text{ and } C): Use the conditional probability formula P(C∣B)=P(B and C)P(B)P(C|B) = \frac{P(B \text{ and } C)}{P(B)}.
      • 0.55=P(B and C)0.390.55 = \frac{P(B \text{ and } C)}{0.39}
      • P(B and C)=0.55×0.39=0.2145P(B \text{ and } C) = 0.55 \times 0.39 = 0.2145. .
    • P(B or C)P(B \text{ or } C): Use the formula P(B or C)=P(B)+P(C)−P(B and C)P(B \text{ or } C) = P(B) + P(C) - P(B \text{ and } C).
      • P(B or C)=0.39+0.35−0.2145=0.5255P(B \text{ or } C) = 0.39 + 0.35 - 0.2145 = 0.5255. .
    • P(A∣B)P(A|B): Use the formula P(A∣B)=P(A and B)P(B)P(A|B) = \frac{P(A \text{ and } B)}{P(B)}.
      • P(A∣B)=0.090.39≈0.2308P(A|B) = \frac{0.09}{0.39} \approx 0.2308. .
    • P(A̅): The probability of the complement of A is 1−P(A)1 - P(A).
      • P(A̅) = 1 - 0.22 = 0.78. 4.
  • Event analysis:

    • Are A and C mutually exclusive? Yes, because P(A and C)=0P(A \text{ and } C) = 0.
    • Are C and B independent? Check if P(C∣B)=P(C)P(C|B) = P(C). 0.55≠0.350.55 \neq 0.35, so they are NOT independent.
    • Are A and B complementary? No, because P(A)+P(B)=0.22+0.39=0.61≠1P(A) + P(B) = 0.22 + 0.39 = 0.61 \neq 1.

🔑 Important: Always check the definitions of mutually exclusive and independent events before applying formulas.

1.5 Measures of central tendency and dispersion

These statistical measures describe the center and spread of data.

  • Data: Incubation periods in days (n=18).

    • Sorted data: 1, 2, 2, 5, 6, 6, 6, 7, 7, 8, 8, 9, 11, 12, 12, 13, 13, 14
    • Σx=143\Sigma x = 143, Σx2=1,405\Sigma x^2 = 1,405
  • Measures:

    • Mean: Average of all values.
      • xˉ=Σxn=14318≈7.94\bar{x} = \frac{\Sigma x}{n} = \frac{143}{18} \approx 7.94 days. .
    • Median: Middle value of sorted data. For n=18 (even), it's the average of the 9th and 10th values.
      • Median = 7+82=7.50\frac{7 + 8}{2} = 7.50 days. .
    • Mode: Most frequent value.
      • Mode = 6 days (appears 3 times). .
    • First quartile (Q₁): The median of the lower half of the data. For the 9 values (1-7), the median is 6.
      • Q1=6Q₁ = 6 days. .
    • Third quartile (Q₃): The median of the upper half of the data. For the 9 values (8-14), the median is 12.
      • Q3=12Q₃ = 12 days. .
    • Interquartile range (IQR): The difference between Q3Q₃ and Q1Q₁.
      • IQR=Q3−Q1=12−6=6IQR = Q₃ - Q₁ = 12 - 6 = 6 days. .
    • Range: The difference between the maximum and minimum values.
      • Range = 14−1=1314 - 1 = 13 days. .
    • Sample standard deviation (s): Measures spread around the mean.
      • s=Σx2−(Σx)2nn−1=1405−21818−1=1405−1144.2817=260.7217≈15.34≈3.92s = \sqrt{\frac{\Sigma x^2 - \frac{(\Sigma x)^2}{n}}{n-1}} = \sqrt{\frac{1405 - \frac{ ^2}{18}}{18-1}} = \sqrt{\frac{1405 - 1144.28}{17}} = \sqrt{\frac{260.72}{17}} \approx \sqrt{15.34} \approx 3.92 days. .
    • Coefficient of variation (CV): Ratio of standard deviation to the mean, expressed as a percentage. Useful for comparing variability between datasets.
      • CV=sxˉ×100%=3.927.94×100%≈49.37%CV = \frac{s}{\bar{x}} \times 100\% = \frac{3.92}{7.94} \times 100\% \approx 49.37\%. 5.

🔑 Important: Outliers significantly affect the range and mean but have less impact on the median and IQR.

1.6 Data visualization and interpretation

Visual tools help understand data distribution.

  • Box-and-Whisker Plot: A graphical display showing quartiles, median, and potential outliers.
    • Median (Q2Q₂) = 50
    • First quartile (Q1Q₁) = 25
    • Third quartile (Q3Q₃) = 60
    • Interquartile range (IQRIQR) = Q3−Q1=60−25=35Q₃ - Q₁ = 60 - 25 = 35.
    • Smallest value within inner fences (Min) = 25 (assuming no lower outliers)
    • Largest value within inner fences (Max) = 67.5 (this is likely the upper whisker, not an inner fence value)
    • 75th percentile (P75P_{75}) is the same as Q3Q₃, so approx. 60.
    • Percentile rank of x=30x = 30: This value falls between Q1Q₁ and the median. It's slightly above Q1Q₁. The percentile rank would be between 25% and 50%. Given the plot, it looks closer to 30-35%. (The question asks for approximate value, implying estimation from the plot) .
    • Range (consider outlier, if any) = From the plot, the data ranges from 25 to 75. So, Range = 75−25=5075 - 25 = 50.
    • Distribution symmetric? False. The left whisker is much longer than the right whisker, and the median is not in the center of the box.
    • Upper Inner Fence is 67.5? True. If Q3=60Q₃=60 and IQR=35IQR=35, then Upper Fence = Q3+1.5×IQR=60+1.5×35=60+52.5=112.5Q₃ + 1.5 \times IQR = 60 + 1.5 \times 35 = 60 + 52.5 = 112.5. The value 67.5 is likely related to the plot's actual scale. If the plot is scaled such that the upper fence calculation yields 67.5, then it's true. Based on a visual inspection of a typical box plot structure, 67.5 might be the end of the upper whisker if an outlier is present at 75. However, without the actual plot, this is hard to confirm precisely. Let's re-evaluate assuming standard fence calculations from quartiles: If Q3=60Q_3 = 60 and IQR=35IQR = 35, the upper fence is 60+1.5=112.560 + 1.5 = 112.5. If the data ends at 67.5 before an outlier at 75, then 67.5 is the upper inner fence .
    • Outlier (extreme observation) is 75? True, if 75 is plotted beyond the upper inner fence. The plot seems to indicate 75 is indeed an outlier. 3.

🔑 Important: An outlier is a data point that differs significantly from other observations. It can skew statistical measures like the mean and range.

1.7 Expected value

The expected value represents the average outcome of a random event over many trials.

  • Scenario: A bet with a pair of fair dice.

    • Win EUR 24 if both dice match (probability P(x=24)=1/6P(x=24) = 1/6).
    • Pay EUR 6 (win -EUR 6) otherwise (probability P(x=−6)=5/6P(x=-6) = 5/6).
  • Expected winnings (E(x)E(x)):

    • E(x)=∑[x×P(x)]E(x) = \sum [x \times P(x)]
    • E(x)=(24×16)+(−6×56)E(x) = (24 \times \frac{1}{6}) + (-6 \times \frac{5}{6})
    • E(x)=4+(−5)=−1E(x) = 4 + (-5) = -1 euros. 2.

🔑 Important: A negative expected value suggests that, on average, you will lose money over many repetitions of the bet.

2. Probability distributions and their applications

2.1 Discrete probability distributions

Discrete probability distributions describe the probabilities of outcomes for random variables that can only take on a finite number of values or a countably infinite number of values.

  • Probability distribution characteristics:

    • Each probability must be between 0 and 1, inclusive.
    • The sum of all probabilities must equal 1.
  • Binomial distribution: This distribution models the number of successes in a fixed number of independent trials, where each trial has only two possible outcomes (success or failure) and a constant probability of success.

    • Formula for binomial probability: P(X=k)=(nk)pk(1−p)n−kP(X=k) = \binom{n}{k} p^k (1-p)^{n-k}

      • nn: number of trials
      • kk: number of successes
      • pp: probability of success on a single trial
      • (nk)\binom{n}{k}: the binomial coefficient, calculated as n!k!(n−k)!\frac{n!}{k!(n-k)!}
    • Example: If LeBron James makes 70% of his free throws (p=0.7p=0.7) and shoots 10 (n=10n=10), the probability of him making exactly 8 free throws is calculated as P(X=8)=(108)(0.7)8(0.3)10−8P(X=8) = \binom{10}{8} (0.7)^8 (0.3)^{10-8}.

  • Expected value and standard deviation for discrete variables:

    • Expected value (mean): E(X)=μ=∑[x⋅P(x)]E(X) = \mu = \sum [x \cdot P(x)]

    • Variance: Var(X)=σ2=∑[(x−μ)2⋅P(x)]Var(X) = \sigma^2 = \sum [(x-\mu)^2 \cdot P(x)]

    • Standard deviation: σ=Var(X)\sigma = \sqrt{Var(X)}

    • Example: For a variable xx with probabilities P(x)P(x) where PP is unknown, the expected value μ\mu and standard deviation σ\sigma can be found once PP is determined, ensuring ∑P(x)=1\sum P(x) = 13.

2.2 Continuous probability distributions

Continuous probability distributions describe probabilities for random variables that can take any value within a given range.

  • Normal distribution: This is a bell-shaped, symmetric distribution characterized by its mean (μ\mu) and standard deviation (σ\sigma).

    • Key properties:

      • Symmetric around the mean (μ\mu).
      • The mean, median, and mode are equal.
      • The total area under the curve is 1.
      • The probability of any single value is 0 (P(x=c)=0P(x=c)=0), so probabilities are calculated for ranges of values.
    • Standard Normal Distribution: A special case of the normal distribution with a mean of 0 and a standard deviation of 1 (μ=0,σ=1\mu=0, \sigma=1). It is often denoted by ZZ.

      • Z-score: A standardized value that indicates how many standard deviations an element is from the mean. It is calculated using the formula: z=x−μσz = \frac{x - \mu}{\sigma}. 10.
  • Applications of the Normal Distribution:

    • Test scores: If test scores are normally distributed with a mean of 72 and a standard deviation of 10, probabilities for ranges of scores can be found using z-scores. For example, a score of 74 has a z-score of z=74−7210=0.20z = \frac{74 - 72}{10} = 0.20 7.

    • Recovery times: Patient recovery times, often normally distributed, can have their median, mode, and probabilities for specific recovery durations calculated. For a mean of 10.9 days and a standard deviation of 3.2 days, the median and modal recovery times are both 10.9 days. The z-score for 15 days is z=15−10.93.2=1.28z = \frac{15 - 10.9}{3.2} = 1.28 9.

    • Calculator lifespan: The lifespan of manufactured items can be modeled by a normal distribution to predict replacement rates or expected durations. For calculators with a mean of 54 months and a standard deviation of 10 months, about 50% are expected to last more than 54 months 13.

    • Consumer debt: Non-mortgage debt, if normally distributed with a mean of 28,200 dollars and a standard deviation of 5,000 dollars, allows for percentage calculations of consumers within specific debt ranges.

2.3 Approximating distributions

  • Normal approximation to the binomial distribution: When the sample size (nn) is large, the normal distribution can approximate the binomial distribution.
    • Condition: This approximation is valid if np≥5np \ge 5 and n(1−p)≥5n(1-p) \ge 5 (or nq≥5nq \ge 5).

    • Continuity correction: When using the normal distribution to approximate binomial probabilities, a continuity correction is applied to adjust for the continuous nature of the normal distribution versus the discrete nature of the binomial.

      • For P(X>k)P(X > k), use P(X>k+0.5)P(X > k+0.5).
      • For P(X<k)P(X < k), use P(X<k−0.5)P(X < k-0.5).
      • For P(X≥k)P(X \ge k), use P(X≥k−0.5)P(X \ge k-0.5).
      • For P(X≤k)P(X \le k), use P(X≤k+0.5)P(X \le k+0.5).
      • For P(a<X<b)P(a < X < b), use P(a+0.5<X<b−0.5)P(a+0.5 < X < b-0.5).
    • Example: To find the probability of more than 25 but less than 35 successes (25<x<3525 < x < 35) for a binomial variable with n=50n=50 and p=0.4p=0.4, the normal approximation with continuity correction would be P(25.5<X<34.5)P(25.5 < X < 34.5) 6.

    • Example: For a survey where 30% of Canadians are concerned about economic worries (p=0.3p=0.3) and a sample of 200 people (n=200n=200), the normal approximation can find probabilities for the number of concerned individuals. For "fewer than 51" people, the corrected probability is P(X<51−0.5)P(X < 51-0.5) or P(X<50.5)P(X < 50.5) 11.

2.4 Key statistical theorems and rules

These theorems provide guidelines for understanding data spread and distribution shape.

  • Chebyshev's Theorem: Applies to any distribution, regardless of its shape. It states that a minimum percentage of data falls within a certain number of standard deviations from the mean.

    • Formula: At least 1−1k21 - \frac{1}{k^2} of the data lies within kk standard deviations of the mean, where k>1k > 1.
    • Example: For non-mortgage debt with a mean of 28,200 dollars and a standard deviation of 5,000 dollars, to find the percentage between 18,200 and 38,200 dollars, we see this range is k=2k=2 standard deviations from the mean (28,200±2×5,00028,200 \pm 2 \times 5,000). Chebyshev's Theorem states at least 1−122=1−0.25=0.751 - \frac{1}{2^2} = 1 - 0.25 = 0.75, or 75%, of the data falls in this range.

    🔑 Important: Chebyshev's theorem guarantees a minimum proportion of data within a range for any distribution.

  • Empirical Rule (68-95-99.7 Rule): Applies specifically to data that follows a normal distribution (bell-shaped).

    • Approximately 68% of the data falls within 1 standard deviation of the mean (μ±σ\mu \pm \sigma).

    • Approximately 95% of the data falls within 2 standard deviations of the mean (μ±2σ\mu \pm 2\sigma).

    • Approximately 99.7% of the data falls within 3 standard deviations of the mean (μ±3σ\mu \pm 3\sigma).

    • Example: For consumer debt with a mean of 28,200 dollars and a standard deviation of 5,000 dollars, the interval from 18,200 to 38,200 dollars represents μ±2σ\mu \pm 2\sigma. The Empirical Rule estimates that approximately 95% of the data falls within this range for a normal distribution 14.

    🔑 Important: The Empirical Rule provides approximate percentages for normal distributions, while Chebyshev's Theorem provides minimum percentages for any distribution.

🔑 Important: Understanding the properties of different probability distributions (binomial, normal) and how to approximate them is crucial for solving statistical problems in various fields.

3. Data analysis using contingency tables and distributions

3.1 Contingency tables and probability

Contingency tables organize data by two or more categorical variables. They help calculate probabilities for different groups.

Key Concepts:

  • Marginal Totals: Sums for each row and column. They represent the total for each category of a single variable.
  • Joint Frequencies: Counts in the cells where rows and columns intersect. These represent the occurrence of two characteristics together.
  • Conditional Probability: The probability of an event occurring given that another event has already occurred. It is calculated as P(A∣B)=P(A and B)/P(B)P(A|B) = P(A \text{ and } B) / P(B).
  • Mutually Exclusive Events: Events that cannot happen at the same time. If A and B are mutually exclusive, P(A and B)=0P(A \text{ and } B) = 0.
  • Complementary Events: Two events that cover all possible outcomes and are mutually exclusive. If A is an event, its complement AcA^c means P(A)+P(Ac)=1P(A) + P(A^c) = 1.
  • Independent Events: Events where the occurrence of one does not affect the probability of the other. If A and B are independent, P(A and B)=P(A)∗P(B)P(A \text{ and } B) = P(A) * P(B).

🔑 Important: Always check for independence by comparing P(A and B)P(A \text{ and } B) with P(A)∗P(B)P(A) * P(B), or P(A∣B)P(A|B) with P(A)P(A).

Example Analysis:

Consider the marital status and age data. The total number of women surveyed is 101,748.

Martial StatusAge 18-29Age 30-64Age 65+Total
Married7,70042,5508,00058,250
Never Married13,6007,20070021,500
Widowed483,2508,00011,298
Divorced6509,0001,05010,700
Total21,99862,00017,750101,748
  • The probability a woman is between 18-29 is 21,998/101,748≈0.21621,998 / 101,748 \approx 0.216. [ ].
  • The probability a woman is 18-29 AND never married is 13,600/101,748≈0.13413,600 / 101,748 \approx 0.134. [ ].
  • The probability a woman is divorced GIVEN she is 30-64 is 9,000/62,000≈0.1459,000 / 62,000 \approx 0.145. [ ].
  • The probability a woman is a widow GIVEN she is 65+ is 8,000/17,750≈0.4518,000 / 17,750 \approx 0.451. [ ].
  • The probability a woman is NOT widowed OR 65+ means she is (Never Married AND 18-29) OR (Married AND 18-29). This is calculated by summing those joint frequencies and dividing by the total. [ ].
  • The probability a woman is NOT in the 30-64 age group is 1−P(Age 30-64)=1−(62,000/101,748)≈0.3801 - P(\text{Age 30-64}) = 1 - (62,000 / 101,748) \approx 0.380. [ ].

📝 Example: Are "Married" and "Age 30-64" mutually exclusive? No, because a woman can be married AND in the 30-64 age group. The count is 42,550. [ ].

📝 Example: Are "Married" and "Divorced" mutually exclusive? Yes, a woman cannot be both married and divorced at the same time. [ ].

📝 Example: Are "Married" and "Divorced" complementary events? No, these do not cover all possibilities; "Never Married" and "Widowed" are also statuses. [ ].

📝 Example: Are "Married" and "Age 30-64" independent? Compare P(Married AND Age 30-64)P(\text{Married AND Age 30-64}) with P(Married)∗P(Age 30-64)P(\text{Married}) * P(\text{Age 30-64}). P(Married AND Age 30-64)=42,550/101,748≈0.418P(\text{Married AND Age 30-64}) = 42,550 / 101,748 \approx 0.418 P(Married)=58,250/101,748≈0.572P(\text{Married}) = 58,250 / 101,748 \approx 0.572 P(Age 30-64)=62,000/101,748≈0.609P(\text{Age 30-64}) = 62,000 / 101,748 \approx 0.609 P(Married)∗P(Age 30-64)≈0.572∗0.609≈0.348P(\text{Married}) * P(\text{Age 30-64}) \approx 0.572 * 0.609 \approx 0.348. Since 0.418≠0.3480.418 \neq 0.348, the events are not independent. [ ] 16.

3.2 Frequency distributions and shape

Frequency distributions show how often values occur. Their shape gives clues about the data's characteristics.

Types of Distributions:

Distribution TypeDescriptionVisual Cue
SymmetricLeft and right sides are mirror images.Mean, median, and mode are approximately equal.
Positively SkewedTail extends to the right. Most data on the left.Mode < Median < Mean.
Negatively SkewedTail extends to the left. Most data on the right.Mean < Median < Mode.
BimodalHas two distinct peaks, suggesting two groups in the data.Two local maximums in the frequency plot.

🔑 Important: Skewness tells you where the bulk of your data lies relative to the extremes. A right skew means outliers are higher values. A left skew means outliers are lower values.

Stem-and-Leaf Display Analysis:

A stem-and-leaf display can reveal the shape of a distribution.

Stem | Leaf ------- | -------- 5 | 6 6 | 3 5 8 7 | 3 5 7 8 8 | 1 1 4 7 8 9 9 | 1 1 4 8 8

  • The data clusters in the 70s and 80s.
  • The tail extends to the left (lower values).
  • This distribution is approximately symmetric with a slight positive skew. [ ] 15.

Histogram Analysis:

A histogram provides a visual summary of data frequency.

  • The shape of a histogram indicates skewness.
  • A histogram skewed to the right has a longer tail of higher values.
  • A histogram skewed to the left has a longer tail of lower values.
  • A symmetric distribution looks balanced on both sides. [ ].

📝 Example: A distribution with most values concentrated at the lower end and a tail stretching towards higher values is "skewed to the right". [ ] 17.

3.3 Analyzing frequency distributions with class intervals

When data is grouped into class intervals, we can still analyze its distribution.

Household Size in Senegal (n=25):

Household size (x)Number of households (f)
0 – 21
2 – 42
4 – 63
6 – 84
8 – 106
10 – 129
  • Average household size: This is the mean, calculated using midpoints of classes. (∑(m⋅f))/n(\sum (m \cdot f)) / n. For these data, it's approximately 9.24. [ ].
  • Sample variance: Measures the spread of data around the mean, calculated using midpoints. s2=∑f(m−xˉ)2n−1s^2 = \frac{\sum f(m - \bar{x})^2}{n-1}. For these data, it's approximately 8.13. [ ].
  • Sample standard deviation: The square root of the variance, indicating typical deviation from the mean. s=s2s = \sqrt{s^2}. For these data, it's approximately 2.85. [ ].
  • Shape of distribution: Most households are in the 10-12 size range, with fewer in smaller sizes. This indicates a tail towards smaller sizes.

    🔑 Important: A tail towards smaller values means the distribution is skewed to the right. [ ].

  • Median class: The class interval containing the middle value. With n=25n=25, the median is the 13th value. The cumulative frequencies are: 1, 3, 6, 10, 16, 25. The 13th value falls into the 10-12 class. [ ] 18.

3.4 Five-number summary and box plots

A five-number summary simplifies a dataset's distribution. Box plots visualize this summary.

Five-Number Summary:

  • Minimum value
  • First Quartile (Q1): 25th percentile
  • Median (Q2): 50th percentile
  • Third Quartile (Q3): 75th percentile
  • Maximum value

Calculations from a Box Plot:

Given values: B=2, C=10, D=18, E=30, F=42

  • Minimum value = B = 2 [ ].
  • Q1 = C = 10 [ ].
  • Median = D = 18 [ ].
  • Q3 = E = 30 [ ].
  • Maximum value = F = 42 [ ].

Measures of Spread and Position:

  • Interquartile Range (IQR): The range of the middle 50% of data. IQR=Q3−Q1IQR = Q3 - Q1. IQR=30−10=20IQR = 30 - 10 = 20. [ ].
  • Percentile Rank of E: To find the percentile rank of 30, we need to know how many values are less than or equal to 30. If we assume the box plot values represent quartiles, then 30 is Q3, meaning 75% of values are at or below it .

    🔑 Important: Q1 is the 25th percentile, Median is the 50th, and Q3 is the 75th percentile. [ ].

  • Fences: Used to identify potential outliers.
    • Lower Inner Fence (LIF) = Q1−1.5×IQR=10−1.5×20=10−30=−20Q1 - 1.5 \times IQR = 10 - 1.5 \times 20 = 10 - 30 = -20. [ ].
    • Upper Inner Fence (UIF) = Q3+1.5×IQR=30+1.5×20=30+30=60Q3 + 1.5 \times IQR = 30 + 1.5 \times 20 = 30 + 30 = 60. [ ].

Shape of Distribution from Box Plot:

  • Skewed Right: The median is closer to Q1, and the upper whisker is longer than the lower whisker.
  • Skewed Left: The median is closer to Q3, and the lower whisker is longer than the upper whisker.
  • Symmetric: The median is roughly in the middle of the box, and the whiskers are of similar length.

🔑 Important: If the median is not centered in the box, or if the whiskers have very different lengths, the distribution is skewed. [ ] 19.

3.5 Probability from grouped data

Probabilities can be calculated from data presented in tables, even when it's grouped.

Grade Distribution Example:

Alpha Grad %RangeNumber of Students
A+90 – 10010
A85 – 8918
A-80 – 8430
B+76 – 7916
B73 – 7516
B-70 – 7210
C or Below0 – 690
  • Probability of receiving an A+ = (Number of A+ students) / (Total students) = 10/100=0.1010 / 100 = 0.10. [ ].
  • Probability of at least 80% (A-, A, A+) = (30+18+10)/100=58/100=0.58(30 + 18 + 10) / 100 = 58 / 100 = 0.58. [ ].
  • Probability of not obtaining an A+ = 1−P(A+)=1−(10/100)=0.901 - P(A+) = 1 - (10 / 100) = 0.90. [ ].
  • Probability of either A+ or A = (10+18)/100=28/100=0.28(10 + 18) / 100 = 28 / 100 = 0.28. [ ].
  • Probability of obtaining below 70% = (Number of students with C or Below) / (Total students) = 0/100=0.000 / 100 = 0.00. [ ].

Combined Gender and Grade Data:

Men (M)Women (W)Total
A252752
B101424
C12618
D51621
F162238
Total6885153
  • The probability of a randomly selected student getting a C grade is P(C)=(Total students with C)/(Total students)=18/153≈0.118P(C) = (\text{Total students with C}) / (\text{Total students}) = 18 / 153 \approx 0.118. [ ] 20.

🔑 Important: When calculating probabilities from tables, identify the correct numerator (favorable outcomes) and denominator (total possible outcomes). Ensure you are using the correct totals for joint, marginal, or conditional probabilities.

🔑 Belangrijk: Understanding contingency tables and distribution shapes is crucial for interpreting data. Be ready to calculate probabilities and identify skewness from various data representations like tables and plots.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also