Illustrating a Random Variable

Illustrating a Random Variable

Learning Competencies

  • Illustrate a random variable
  • Distinguish between a discrete and a continuous random variable
  • Find the possible values of a random variable
  • Illustrate a probability distribution for a discrete random variable and its properties

Key Concepts

  • Random Variable: A random variable is a numerical value derived from the outcome of an experiment. It is represented by a capital letter (e.g., H, R, X).
  • Sample Space: This is the set of all possible outcomes of an experiment.

Examples of Random Variables

Example 1: Tossing Two Coins
  1. Experiment: Toss two coins.
  2. Sample Space: {HH, HT, TH, TT}
  3. Number of Heads (Random Variable H):
    • HH -> 2 heads
    • HT -> 1 head
    • TH -> 1 head
    • TT -> 0 heads
  4. Possible Values of H: {0, 1, 2}
Example 2: Picking Bananas
  1. Experiment: A basket with 10 ripe and 4 unripe bananas.
  2. Random Variable R: Number of ripe bananas in three picks.
    • Outcomes: RRR, RRU, RUR, URR, UUR, URU, RUU, UUU
    • Possible values: {0, 1, 2, 3}
Example 3: Tossing a Coin Thrice
  1. Sample Space: S = {HHH, HHT, HTH, THH, TTH, THT, HTT, TTT}
  2. Random Variable X:
    • a. Number of Tails: Possible values {0, 1, 2, 3}
    • b. Twice the Number of Heads: Possible values {0, 2, 4, 6}
    • c. Product of Heads and Tails: Possible values {0, 2}
    • d. Sum of Squares of Heads and Tails: Possible values {5, 9}
    • e. Heads minus Tails: Possible values {-3, -1, 1, 3}

Types of Random Variables

  • Discrete Random Variable: Can assume a countable number of values (e.g., number of students in a classroom).
  • Continuous Random Variable: Can assume an infinite number of values within an interval (e.g., height of students).

Properties of Probability Distribution

  • The probability distribution of a discrete random variable lists all possible values of the variable and their probabilities.
  • The probabilities must be between 0 and 1, and their sum must equal 1.
Example of Probability Distribution
  • Random variable R: Count of ripe bananas.
  • Values:
    • 0 ripe bananas: P(R=0) = 1/8
    • 1 ripe banana: P(R=1) = 3/8
    • 2 ripe bananas: P(R=2) = 3/8
    • 3 ripe bananas: P(R=3) = 1/8
Constructing Probability Distributions
Using Formulas
  • The probability mass function (pmf) gives the probabilities for each possible outcome.
  • Example: If X is a random variable with values 0, 1, 2, …, the pmf might be expressed as P(X=x).

Conclusion

  • Understanding random variables helps in interpreting and analyzing data in probability theory and statistics.
  • Constructing probability distributions enhances comprehension of how outcomes relate to their likelihoods.