Comprehensive Study Notes on Conditional Probability, Random Variables, and Binomial Distributions

Conditional Probability and Diagnostic Testing

  • Assumptions regarding disease prevalence directly alter post-test (posterior) probabilities:

    • If initial disease prevalence (prior probability) decreases from a rampant level (e.g., dropping to 0.300.30, 0.200.20, or 0.100.10), the post-test probability of actually having the disease naturally decreases.
    • When COVID is assumed to be rampant and an individual has known exposure to an infected person, the baseline prior probability of infection is estimated at approximately 60%60\% (0.600.60).
  • Rapid diagnostic tests are imperfect and exhibit false negative error rates:

    • Assuming a fixed disease prevalence where 60%60\% of tested individuals are sick, an individual holding a negative rapid test result still has an infection probability of approximately 15%15\% (or roughly 16\frac{1}{6}).
    • This indicates that approximately 11 in every 66 individuals who receive a negative rapid test result is actually infected.
  • Problem-solving framework for conditional probability:

    • The initial step in solving conditional probability problems is identifying the provided simple probabilities (e.g., overall disease probability P(Disease)P(\text{Disease}), test outcome probability P(Negative)P(\text{Negative}), or joint probability P(Disease∩Negative)P(\text{Disease} \cap \text{Negative})).
    • Identifying these values dictates whether to organize the data into a probability matrix or table.
    • When setting up probability tables or matrices, the process begins by selecting all prior assumptions and entering input values into the first two columns.

Random Variables and Probability Distributions

  • Definition of a Random Variable:

    • A random variable is a variable quantity that represents numerical outcomes resulting from a random process.
  • Discrete Random Variables:

    • Discrete random variables represent outcomes with a countable number of distinct values.
    • Finite Sets: The faces of a standard six-sided die form a finite discrete set consisting of 66 possible outcomes (11, 22, 33, 44, 55, 66).
    • Countably Infinite Sets: Outcomes can also be countably infinite. Large quantities such as grains of sand on a beach or stars in the sky are theoretically countable discrete quantities because partial units (e.g., half a star) cannot exist.
  • Continuous Random Variables:

    • Continuous random variables are tied to calculus and represent measurable quantities that can take on any real value within a continuous range.
    • Measurement and Infinite Divisibility: Continuous quantities are infinitely divisible (e.g., seconds divided into fractions and sub-fractions of seconds, distances, and weights).
    • Standard Examples: Weight, height, and time.
  • Random Variable Distributions:

    • The set of all possible values and their corresponding probabilities defines a random variable's distribution.
    • Distributions can be represented visually using frequency graphs or described mathematically via formulas and discrete lookup tables.

Expectation, Variance, and Standard Deviation

  • Expected Value (Mean) of a Discrete Distribution:

    • The expected value E[X]E[X] (or mean μ\mu) represents the long-term average outcome and is calculated by multiplying each outcome value xx by its probability P(x)P(x) and summing the results:     E[X]=∑(x×P(x))E[X] = \sum \left(x \times P(x)\right)
    • Axiomatic Probability Requirement: For any valid discrete probability distribution, the sum of all probabilities must equal exactly 11:     ∑P(x)=1\sum P(x) = 1
  • Short-Term Variability vs. Long-Term Expectations (Blackjack Model):

    • In a simplified blackjack game where a player wagers $1\$1 to win or lose $1\$1 across four outcomes (including a natural Blackjack defined as receiving an Ace and a face card or 1010 card):
    • Short-Term Outcomes: High variability allows individual players to win or lose more than expected due to random variance.
    • Long-Term Expected Value: Casinos rely on long-term statistical averages (the house edge) where variance evens out over many repetitions. Real blackjack features a smaller house edge than simplified models.
  • Variance of Discrete Random Variables:

    • Variance measure the spread or dispersion of outcomes around the expected mean.
    • Conceptual Variance Formula: Take the difference between each outcome xx and the mean μ\mu, square it, multiply by its probability P(x)P(x), and sum all products:     Var(X)=∑((x−μ)2×P(x))\text{Var}(X) = \sum \left((x - \mu)^2 \times P(x)\right)
    • Computational Variance Formula: An algebraically rearranged shortcut used for faster manual or programmatic computation:     Var(X)=∑(x2×P(x))−μ2\text{Var}(X) = \sum \left(x^2 \times P(x)\right) - \mu^2
  • Standard Deviation and Reality Checks:

    • Standard deviation σ\sigma is the square root of variance:     σ=Var(X)\sigma = \sqrt{\text{Var}(X)}
    • Empirical Rule of Thumb: Typical outcome values in a distribution lie within 11 or 22 standard deviations of the mean.
    • Performing reality checks: Verifying that standard deviations (e.g., a standard deviation yielding values like $1\$1 or $2\$2) align with actual dispersion boundaries ensures that calculation errors have not occurred.

The Binomial Distribution

  • Core Definition:

    • The binomial distribution tracks, categorizes, and calculates the probability of obtaining a specific number of successes or failures across a fixed series of trials.
  • Required Criteria for Binomial Experiments:

    1. Binary Outcomes: Each trial must have exactly two mutually exclusive outcomes (e.g., success/failure, yes/no, true/false, heads/tails).
    2. Constant Success Probability: The probability of success pp must remain constant across all trials. The failure probability qq is given by:      q=1−pq = 1 - p      (Note: pp does not need to equal 0.500.50).
    3. Trial Independence: The outcome of any single trial must be independent of all other trials.
    • While theoretical models treat physical coin flips as independent, empirical research indicates physical coin flips have a slight bias toward landing on the face facing up prior to the flip.
    • Physical systems like roulette wheels and dice throws serve as standard models of independent trials.
  • Binomial Probability Formula:

    • Combinations Notation: The term (nx)\binom{n}{x} (read as "nn choose xx") represents the number of distinct ways to choose xx successful outcomes from nn total trials:     (nx)=n!x!(n−x)!\binom{n}{x} = \frac{n!}{x!(n - x)!}
    • Exact Probability Equation: The probability P(X=x)P(X = x) of obtaining exactly xx successes in nn independent trials is calculated as:     P(X=x)=(nx)×px×(1−p)n−xP(X = x) = \binom{n}{x} \times p^x \times (1 - p)^{n - x}