Discrete and random variables

Random Variables

Overview

  • Introduction to random variables

  • Two varieties of random variables:

    • Discrete random variables

    • Continuous random variables

Definitions

  • Discrete Random Variables

    • Independent variable that can take on distinct or separate values.

    • Origin of the term: Derived from the English language meaning distinct or separate values.

    • Examples include the outcomes in a coin flip (heads or tails).

  • Continuous Random Variables

    • Independent variable that can take on any value within a range, which may be infinite.

    • Represents values that can include every conceivable fraction in a specified interval.

Classification Examples

Example 1: Coin Flip
  • Random Variable X: Value assigned to a fair coin flip.

    • Heads = 1

    • Tails = 0

  • Is this discrete or continuous?

    • Answer: Discrete random variable

    • Can only take the values 0 or 1.

    • The set of possible values is countable.

Example 2: Mass of Animal at the Zoo
  • Random Variable Y: Mass of a random animal selected at Audubon Zoo, New Orleans.

    • Possible mass could be anywhere from close to 0 (e.g., an ant) to potentially 5000 kg (e.g., a large elephant).

  • Is this discrete or continuous?

    • Answer: Continuous random variable

    • The mass can take any value in an interval and is not countable.

    • Examples: 123.75921 kg, where potentially there are infinite decimal values in between possible weights.

Example 3: Year of Birth
  • Random Variable Y: Year a random student in the class was born.

    • Possible values include distinct years: 1992, 1985, 2001.

  • Is this discrete or continuous?

    • Answer: Discrete random variable

    • Has distinct values; you can count the years.

    • Values are not infinite, although it might seem theoretically unlimited in a timeline context.

Characteristics of Discrete Random Variables

  • Discrete random variables can have a finite or an infinite number of values, as long as the values are countable.

  • An example of an infinite discrete random variable might be the number of integers.

  • They cannot take values in between, distinguishing them from continuous variables where infinite values exist within intervals.

Example 4: Number of Ants Born
  • Random Variable Z: Number of ants born tomorrow in the universe.

  • Is this discrete or continuous?

    • Answer: Discrete random variable

    • Possible values: 1, 2, 3, … continuing indefinitely as we can count.

Example 5: Winning Time at Olympics
  • Random Variable X: Exact winning time for men's 100 meters at the 2016 Olympics.

  • Is this discrete or continuous?

    • Answer: Continuous random variable

    • Exact time could be any value, e.g., not limited to rounding; could take on values like 9.5701 seconds.

    • Infinite values possible between any two points denote continuity.

Example 6: Rounded Winning Time
  • Random Variable X: Winning time rounded to the nearest hundredth.

  • Is this discrete or continuous?

    • Answer: Discrete random variable

    • Possible values are countable since they can be expressed as 9.56, 9.57, etc.

Conclusion

  • Understanding differences between discrete and continuous random variables is crucial.

  • Discrete variables have distinct, countable outcomes, while continuous variables can take on any value within a range without restriction.

Overview

Random variables classify data into two main types: discrete and continuous.

Definitions
  • Discrete Random Variables

    • Independent variables that take on distinct, separate, and countable values. Examples include outcomes of a coin flip (Heads = 1, Tails = 0) or the year of birth of a student.

  • Continuous Random Variables

    • Independent variables that can take any value within a range, potentially infinite. These represent values with infinite decimal possibilities within an interval, such as the exact mass of an animal or the precise winning time in a race.

Characteristics and Key Distinction
  • Discrete variables can have a finite or infinite number of values, provided they are countable. They cannot take values in between two distinct points.

  • Continuous variables, conversely, can assume any value within an interval, highlighting their infinitely divisible nature.

Classification Examples
  • Discrete:

    • Coin flip outcome (0 or 1).

    • Year of birth (e.g., 1992, 1985).

    • Number of ants born (1, 2, 3, ext{…}).

    • Winning time rounded to the nearest hundredth (e.g., 9.56, 9.57).

  • Continuous:

    • Mass of an animal (e.g., 123.75921 kg).

    • Exact winning time for men's 100 meters (e.g., 9.5701 seconds).

Conclusion

Distinguishing between discrete (distinct, countable outcomes) and continuous (any value within a range) random variables is fundamental for data analysis.