Discrete and Continuous Random Variables and Probability Distributions

Fundamentals of Random Variables

  • Classification of Variables:
    • Qualitative Variables: Categorical attributes or descriptive qualities.
    • Quantitative Variables: Numerical values that can be measured or counted. Quantitative variables are subdivided into:
      • Discrete Variables: Variables whose possible values are whole numbers or countable outcomes.
      • Continuous Variables: Variables whose possible values can take any numerical value within an interval, including fractions and decimals.
  • Definition of a Random Variable:
    • A random variable is a variable whose value is determined by chance or probability in a random experiment.
    • While standard mathematical variables have defined fixed values (e.g., x=0x = 0), a random variable associates each possible numerical outcome with a specific probability or chance of occurrence (e.g., P(X=0)=12P(X = 0) = \frac{1}{2} and P(X=1)=12P(X = 1) = \frac{1}{2}).
  • Notation Rules:
    • Capital/Uppercase Letters (XX, YY, ZZ): Represent the random variable itself, containing the set of all possible outcomes/values.
    • Lowercase Letters (xx, yy, zz): Represent a specific individual numerical value that the random variable can take (e.g., x=0x = 0 or x=1x = 1).
    • Probability Notation: P(X=x)P(X = x) or P(x)P(x) denotes the probability that the random variable XX equals the specific value xx
  • Statistical Context:
    • Discrete probability distributions (covered in Chapter 5) and continuous probability distributions (covered in Chapter 6) serve as essential foundational concepts for inferential statistics (statistical inference) presented in Chapters 8, 9, and 10.

Discrete vs. Continuous Random Variables

  • Discrete Random Variables:
    • Definition: A random variable that has either a finite or countable number of possible values.
    • Characteristics: Values are distinct, separate whole numbers. Fractions or intermediate decimal values between possible outcomes are impossible.
    • Examples & Counter-Examples:
      • Coin Flipping Example: Let XX be the number of heads in two coin tosses.
        • Sample Space S={HH,HT,TH,TT}S = \{HH, HT, TH, TT\}.
        • Outcome mapping to XX:
          • HH→2HH \rightarrow 2
          • HT→1HT \rightarrow 1
          • TH→1TH \rightarrow 1
          • TT→0TT \rightarrow 0
        • Possible values of XX are 00, 11, and 22. (A value such as 1.51.5 heads is impossible).
      • Patient Recovery Example: Let YY be the number of patients recovering after a specific medical treatment.
        • Possible values for YY are 00, 11, 22, 33, …\dots
        • Values represent whole counts of individual people.
      • M&M Color Count: Let XX be the number of distinct colors of M&M's in a bag.
        • Classification: Discrete.
        • Possible values: 00, 11, 22, 33, …\dots
  • Continuous Random Variables:
    • Definition: A random variable that has infinitely many possible values within a continuous interval.
    • Characteristics: Values are measurement-based and can take any decimal or fractional real number within a range.
    • Examples:
      • Student Height: Let XX be the height of students in inches.
        • Possible values can be any real number: 63 in63\,\text{in}, 63.5 in63.5\,\text{in}, 63.55 in63.55\,\text{in}, etc.
        • There are infinitely many possible values depending on precision.
      • Task Completion Time: Let YY be the time taken to complete a task in hours.
        • Possible values can be any continuous measure: 2 hours2\,\text{hours}, 2.5 hours2.5\,\text{hours}, 2.75 hours2.75\,\text{hours}, etc.
      • M&M Mass: Mass of an individual M&M.
        • Classification: Continuous.
        • Possible values: 1 g1\,\text{g}, 2.5 g2.5\,\text{g}, etc. (continuous measurement).
      • M&M Diameter: Diameter of an individual M&M.
        • Classification: Continuous.
        • Possible values: 1 mm1\,\text{mm}, 1.1 mm1.1\,\text{mm}, 2.75 mm2.75\,\text{mm}, etc. (continuous measurement).

Discrete Probability Distributions

  • Definition:
    • The probability distribution of a discrete random variable XX provides all possible values of XX alongside their corresponding probabilities P(x)P(x).
  • Methods of Representation:
    • Tables
    • Graphs (bar-style probability graphs)
    • Formulas
  • Two Essential Validation Rules:
    1. Probability Range Rule: Every individual probability P(x)P(x) must be between 00 and 11 inclusive:         0≤P(x)≤10 \le P(x) \le 1
    2. Summation Rule: The sum of all probabilities for all possible values of XX must equal exactly 11:         ∑P(x)=1\sum P(x) = 1
  • Step-by-Step Construction Procedure:
    • Step 1: Identify all possible numerical values xx for the random variable XX using the sample space.
    • Step 2: Calculate the individual probability P(X=x)P(X = x) for each outcome xx.
    • Step 3: Construct a probability distribution table listing xx in the first column/row and P(X=x)P(X = x) in the second column/row, and verify that the sum of probabilities equals 11
  • Coin Toss Distribution Construction Example:
    • Experiment: Flipping two fair coins; XX = number of heads.
    • Sample Space: S={HH,HT,TH,TT}S = \{HH, HT, TH, TT\}.
    • Probabilities:
      • P(X=0)=P(TT)=14=0.25P(X = 0) = P(TT) = \frac{1}{4} = 0.25
      • P(X=1)=P(HT or TH)=14+14=24=0.50P(X = 1) = P(HT \text{ or } TH) = \frac{1}{4} + \frac{1}{4} = \frac{2}{4} = 0.50
      • P(X=2)=P(HH)=14=0.25P(X = 2) = P(HH) = \frac{1}{4} = 0.25
    • Distribution Table:
      • x=0  ⟹  P(x)=14x = 0 \implies P(x) = \frac{1}{4}
      • x=1  ⟹  P(x)=24x = 1 \implies P(x) = \frac{2}{4}
      • x=2  ⟹  P(x)=14x = 2 \implies P(x) = \frac{1}{4}
    • Verification Check: 14+24+14=44=1.00\frac{1}{4} + \frac{2}{4} + \frac{1}{4} = \frac{4}{4} = 1.00. The distribution is valid.

Real-World Applications and Models

  • Insurance Policy Profit Model:

    • Scenario Parameters:
      • Target demographic: Healthy 2424-year-old individual.
      • Probability of death within the year: P(death)=0.0014P(\text{death}) = 0.0014
      • Insurance policy payout to beneficiaries upon death: $10,000\$10{,}000
      • Annual policy fee (cost paid by customer): $100\$100
      • Random Variable XX: Amount of annual profit earned by the insurance company per policy.
    • Outcomes & Calculation:
      1. Policyholder Survives:
        • Probability: P(survive)=1−0.0014=0.9986P(\text{survive}) = 1 - 0.0014 = 0.9986
        • Company Profit xx: $100\$100
      2. Policyholder Dies:
        • Probability: P(death)=0.0014P(\text{death}) = 0.0014
        • Company Profit xx: $100−$10,000=−$9,900\$100 - \$10{,}000 = -\$9{,}900
    • Probability Distribution Table:
      • x=100  ⟹  P(x)=0.9986x = 100 \implies P(x) = 0.9986
      • x=−9900  ⟹  P(x)=0.0014x = -9900 \implies P(x) = 0.0014
    • Validation Check:
      • Both 0.99860.9986 and 0.00140.0014 lie strictly within [0,1][0, 1].
      • ∑P(x)=0.9986+0.0014=1.0000\sum P(x) = 0.9986 + 0.0014 = 1.0000. The distribution is valid.
  • Chuck-a-Luck Casino Game Model:

    • Game Rules:
      • Three fair dice are rolled in a wire cage.
      • A player places a $1\$1 bet on a selected number from 11 to 66.
      • If 00 dice match the selected number, the player loses the $1\$1 bet.
      • If 11 die matches, the player wins $1\$1 (net profit $1\$1).
      • If 22 dice match, the player wins $2\$2 (net profit $2\$2).
      • If 33 dice match, the player wins $3\$3 (net profit $3\$3).
    • Random Variable XX: Profit from a $1\$1 bet in Chuck-a-luck.
    • Given Probability Distribution Table:
      • 00 Matches: x=−1  ⟹  P(x)=0.5787x = -1 \implies P(x) = 0.5787
      • 11 Match: x=1  ⟹  P(x)=0.3472x = 1 \implies P(x) = 0.3472
      • 22 Matches: x=2  ⟹  P(x)=0.0695x = 2 \implies P(x) = 0.0695
      • 33 Matches: x=3  ⟹  P(x)=0.0046x = 3 \implies P(x) = 0.0046
    • Verification (Drill 10):
      • Each probability satisfies 0≤P(x)≤10 \le P(x) \le 1
      • ∑P(x)=0.5787+0.3472+0.0695+0.0046=1.0000\sum P(x) = 0.5787 + 0.3472 + 0.0695 + 0.0046 = 1.0000
      • The distribution is valid.
    • Graphical Representation:
      • Horizontal axis: Represents the possible profit values xx (−1-1, 11, 22, 33).
      • Vertical axis: Represents the probability height P(x)P(x).
      • Bar heights correspond to P(−1)≈0.58P(-1) \approx 0.58, P(1)≈0.35P(1) \approx 0.35, P(2)≈0.07P(2) \approx 0.07, and P(3)≈0.005P(3) \approx 0.005

Mean of a Discrete Random Variable

  • Definition & Concept:
    • The mean of a discrete random variable XX (denoted as μX\mu_X) represents the expected long-term average value of XX over a theoretically infinite number of repeated trials.
  • Formula:     μX=∑[x×P(x)]\mu_X = \sum [x \times P(x)]
  • Calculation Procedure:
    1. Take each possible value xx of the random variable.
    2. Multiply each value xx by its corresponding probability P(x)P(x).
    3. Sum all resulting products together.
  • Chuck-a-Luck Expected Mean Calculation:
    • Using the probability distribution values:         μX=(−1×0.5787)+(1×0.3472)+(2×0.0695)+(3×0.0046)\mu_X = (-1 \times 0.5787) + (1 \times 0.3472) + (2 \times 0.0695) + (3 \times 0.0046)
    • Step-by-step expansion:         μX=−0.5787+0.3472+0.1390+0.0138\mu_X = -0.5787 + 0.3472 + 0.1390 + 0.0138μX=−0.0787\mu_X = -0.0787
  • Standard Interpretation Rules:
    • Interpretation Phrase Format: "In the long term (or long run), you would lose $0.0787\$0.0787 per game on average."
    • Critical Requirement: Any interpretation of μX\mu_X MUST explicitly state the phrase "on average" to be mathematically correct.