Random Variable

5.1 Random Variable
ADDITIONAL MATHEMATICS • Form 5 • Chapter 5: Probability Distribution

5.1 Random Variable

A random variable assigns numerical values to the outcomes of a random phenomenon. In daily situations, outcomes can either be counted, such as the number of heads obtained when tossing a coin, or measured over an interval, such as the waiting time for a bus. This note covers the classification of random variables into discrete and continuous types, and explores how the probability distribution of a discrete random variable can be determined, tabulated, and graphed.

Learning Objectives

  • Define a random variable and state its values in set notation.
  • Differentiate between a discrete random variable and a continuous random variable.
  • Describe and determine the probability distribution of a discrete random variable using tree diagrams.
  • Verify the fundamental properties of a discrete probability distribution: \(P(X = r_i) \ge 0\) and \(\sum_{i=1}^{n} P(X = r_i) = 1\).
  • Construct probability distribution tables and draw probability distribution graphs for discrete random variables.

Probability Distribution Representation

Tree diagram, probability distribution table, and stick line graph of \(P(X = r)\) against \(r\).

Discrete Random Variable

Countable values such as \(X = \{0, 1, 2, 3\}\). Each value has a distinct probability mass, shown by separate vertical lines on a stick graph.

Continuous Random Variable

Measured values within an interval such as \(X = \{x : a \le x \le b\}\). The probability is represented by a shaded region along a number line.

Representation Discrete random variable Continuous random variable
Values Countable: \(0, 1, 2, 3, \dots\) Any value in an interval: \(a \le x \le b\)
Set notation \(X = \{r : r = 0, 1, 2, 3, \dots, n\}\) \(X = \{x : a \le x \le b\}\)
Graph Stick line graph of \(P(X = r)\) against \(r\) Shaded region along a number line

Short Explanation

A random variable converts outcomes of chance events into numbers.

1. Concept of a Random Variable

A random variable is a variable with numeric values that can be determined from a random phenomenon. It is represented by a capital letter, typically \(X\), while its specific values are represented by lowercase letters such as \(r\) or \(x\). Possible values can be expressed in set notation, for example, \(X = \{0, 1, 2\}\).

2. Sample Space and Mapping

In an experiment with a sample space \(S\), each outcome is mapped to a real number. For example, in two basketball matches where outcomes are win (\(W\)), lose (\(L\)), or draw (\(D\)), the sample space is \(S = \{WW, WL, WD, DW, DL, DD, LW, LD, LL\}\). If \(X\) is the number of wins, \(X\) maps outcomes to values in \(\{0, 1, 2\}\).

3. Discrete Random Variable

A discrete random variable has a countable number of values, usually zero and positive integers. It is written in set notation by listing elements: \(X = \{r : r = 0, 1, 2, 3, \dots, n\}\).

4. Continuous Random Variable

A continuous random variable takes values that are not solely integers, but lie continuously within a certain interval. It is obtained by measurement and written using an inequality: \(Y = \{y : a \le y \le b\}\).

5. Probability Distribution

A probability distribution lists all possible values \(r\) of a discrete random variable \(X\) together with their corresponding probabilities \(P(X = r)\).

6. Two Key Conditions

Each probability is non-negative and between \(0\) and \(1\): \(0 \le P(X = r_i) \le 1\). The sum of all probabilities is equal to \(1\): \(\sum_{i=1}^{n} P(X = r_i) = 1\).

Probability of \(r\) successes in \(n\) independent trials

\(P(X = r) = \,^nC_r \, p^r (1 - p)^{n - r}\)

where \(p\) is the probability of success and \(q = 1 - p\) is the probability of failure.

Steps to Determine a Discrete Probability Distribution

1

Identify the random variable \(X\) and its possible values.

2

Draw a tree diagram to list all possible outcomes.

3

Multiply probabilities along each branch and add probabilities for the same value of \(X = r\).

4

Verify that \(\sum P(X = r) = 1\), then construct the table and graph.

Try to Answer First

Answer in your mind, then press "Check Answer".

1

A fair coin is tossed three times. Let \(X\) represent the number of times getting 'heads'. State all possible values of \(X\) in set notation and determine whether \(X\) is discrete or continuous.

2

The random variable \(X = \{0, 1, 2, 3, 4\}\) has the probability distribution shown below. If \(p = 2q\), find the values of \(p\) and \(q\).

3

A box contains 2 basketballs and 4 footballs. A ball is drawn at random, its type is recorded, and it is returned to the box. This process is repeated 2 times. If \(X\) represents the number of basketballs drawn, find \(P(X = 0)\), \(P(X = 1)\), and \(P(X = 2)\), and show that \(\sum P(X = r) = 1\).

Common Mistakes

  • !Writing non-numerical outcomes as random variables, such as \(\{H, T\}\) or \(\{W, L, D\}\), instead of numbers \(\{0, 1\}\) or \(\{0, 1, 2\}\). A random variable must take numeric values.
  • !Forgetting that the sum of probabilities must equal 1. Arithmetic errors or omitting outcomes result in \(\sum P(X = r) \neq 1\).
  • !Confusing replacement and non-replacement conditions. With replacement, probabilities remain constant; without replacement, denominators change after each draw.
  • !Drawing a smooth continuous curve instead of separate vertical stick lines on a discrete probability distribution graph.

Concept Misunderstandings

Misunderstanding

All variables measured in numbers are discrete.

Correct Concept

If a variable is measured along a continuous scale and can take any value within an interval \(a \le x \le b\), it is a continuous random variable, not discrete.

Misunderstanding

The probability of an outcome can be greater than 1 or negative.

Correct Concept

Every probability \(P(X = r)\) must strictly satisfy \(0 \le P(X = r) \le 1\).

Misunderstanding

Writing the set notation of a continuous random variable by listing isolated numbers.

Correct Concept

Continuous random variables cannot be listed as individual elements because there are infinitely many values between any two points; they must be stated as an interval such as \(\{x : a \le x \le b\}\).

Summary

  • A random variable \(X\) assigns numeric values to random outcomes.
  • Discrete random variables have countable values, e.g. \(X = \{0, 1, 2, \dots\}\).
  • Continuous random variables take values across an interval, e.g. \(X = \{x : a \le x \le b\}\).
  • For any valid discrete probability distribution: \(0 \le P(X = r_i) \le 1\) and \(\sum_{i=1}^{n} P(X = r_i) = 1\).
  • Discrete probability distributions are displayed using tables and vertical line (stick) graphs of \(P(X = r)\) against \(r\).

Short Activity

Objective: Identify discrete and continuous random variables, verify probability distribution properties, and match key terms.

A. Objective Quiz

1 Which of the following represents a continuous random variable?

2 The discrete random variable \(X\) has the probability function given by \(P(X = 0) = 0.2\), \(P(X = 1) = 0.35\), \(P(X = 2) = 0.3\), and \(P(X = 3) = k\). What is the value of \(k\)?

B. Fill in the Blanks

3 For any discrete probability distribution, the sum of all individual probabilities \(\sum_{i=1}^{n} P(X = r_i)\) must equal ________.

4 A random variable that takes values lying within a continuous interval rather than countable values is known as a ________ random variable.

C. Matching / Drag and Drop

Drag each situation or definition to its correct description or classification. On a phone, tap a term first, then tap the matching box.

Situation / Definition
Number of defective bulbs among 10 inspected bulbs
Length of nails produced by a machine between 1.2 cm and 10.2 cm
Total sum of all probabilities in a distribution
Probability value of an individual outcome \(P(X = r)\)
The set of all possible outcomes of a random experiment
Graphical display of discrete probability distribution
Classification / Description
5Discrete random variable
6Continuous random variable
7Equal to 1
8Lies between 0 and 1 inclusive
9Sample space
10Stick line graph of \(P(X = r)\) against \(r\)
Answer key: 1 C; 2 B; 3 1; 4 continuous; 5 Discrete random variable; 6 Continuous random variable; 7 Equal to 1; 8 Lies between 0 and 1 inclusive; 9 Sample space; 10 Stick line graph of \(P(X = r)\) against \(r\).

Keywords

Random variable Discrete random variable Continuous random variable Sample space Probability distribution Probability distribution graph

Random Variable

5.1 Random Variable
ADDITIONAL MATHEMATICS • Form 5 • Chapter 5: Probability Distribution

5.1 Random Variable

A random variable assigns numerical values to the outcomes of a random phenomenon. In daily situations, outcomes can either be counted, such as the number of heads obtained when tossing a coin, or measured over an interval, such as the waiting time for a bus. This note covers the classification of random variables into discrete and continuous types, and explores how the probability distribution of a discrete random variable can be determined, tabulated, and graphed.

Learning Objectives

  • Define a random variable and state its values in set notation.
  • Differentiate between a discrete random variable and a continuous random variable.
  • Describe and determine the probability distribution of a discrete random variable using tree diagrams.
  • Verify the fundamental properties of a discrete probability distribution: \(P(X = r_i) \ge 0\) and \(\sum_{i=1}^{n} P(X = r_i) = 1\).
  • Construct probability distribution tables and draw probability distribution graphs for discrete random variables.

Probability Distribution Representation

Tree diagram, probability distribution table, and stick line graph of \(P(X = r)\) against \(r\).

Discrete Random Variable

Countable values such as \(X = \{0, 1, 2, 3\}\). Each value has a distinct probability mass, shown by separate vertical lines on a stick graph.

Continuous Random Variable

Measured values within an interval such as \(X = \{x : a \le x \le b\}\). The probability is represented by a shaded region along a number line.

Representation Discrete random variable Continuous random variable
Values Countable: \(0, 1, 2, 3, \dots\) Any value in an interval: \(a \le x \le b\)
Set notation \(X = \{r : r = 0, 1, 2, 3, \dots, n\}\) \(X = \{x : a \le x \le b\}\)
Graph Stick line graph of \(P(X = r)\) against \(r\) Shaded region along a number line

Short Explanation

A random variable converts outcomes of chance events into numbers.

1. Concept of a Random Variable

A random variable is a variable with numeric values that can be determined from a random phenomenon. It is represented by a capital letter, typically \(X\), while its specific values are represented by lowercase letters such as \(r\) or \(x\). Possible values can be expressed in set notation, for example, \(X = \{0, 1, 2\}\).

2. Sample Space and Mapping

In an experiment with a sample space \(S\), each outcome is mapped to a real number. For example, in two basketball matches where outcomes are win (\(W\)), lose (\(L\)), or draw (\(D\)), the sample space is \(S = \{WW, WL, WD, DW, DL, DD, LW, LD, LL\}\). If \(X\) is the number of wins, \(X\) maps outcomes to values in \(\{0, 1, 2\}\).

3. Discrete Random Variable

A discrete random variable has a countable number of values, usually zero and positive integers. It is written in set notation by listing elements: \(X = \{r : r = 0, 1, 2, 3, \dots, n\}\).

4. Continuous Random Variable

A continuous random variable takes values that are not solely integers, but lie continuously within a certain interval. It is obtained by measurement and written using an inequality: \(Y = \{y : a \le y \le b\}\).

5. Probability Distribution

A probability distribution lists all possible values \(r\) of a discrete random variable \(X\) together with their corresponding probabilities \(P(X = r)\).

6. Two Key Conditions

Each probability is non-negative and between \(0\) and \(1\): \(0 \le P(X = r_i) \le 1\). The sum of all probabilities is equal to \(1\): \(\sum_{i=1}^{n} P(X = r_i) = 1\).

Probability of \(r\) successes in \(n\) independent trials

\(P(X = r) = \,^nC_r \, p^r (1 - p)^{n - r}\)

where \(p\) is the probability of success and \(q = 1 - p\) is the probability of failure.

Steps to Determine a Discrete Probability Distribution

1

Identify the random variable \(X\) and its possible values.

2

Draw a tree diagram to list all possible outcomes.

3

Multiply probabilities along each branch and add probabilities for the same value of \(X = r\).

4

Verify that \(\sum P(X = r) = 1\), then construct the table and graph.

Try to Answer First

Answer in your mind, then press "Check Answer".

1

A fair coin is tossed three times. Let \(X\) represent the number of times getting 'heads'. State all possible values of \(X\) in set notation and determine whether \(X\) is discrete or continuous.

2

The random variable \(X = \{0, 1, 2, 3, 4\}\) has the probability distribution shown below. If \(p = 2q\), find the values of \(p\) and \(q\).

3

A box contains 2 basketballs and 4 footballs. A ball is drawn at random, its type is recorded, and it is returned to the box. This process is repeated 2 times. If \(X\) represents the number of basketballs drawn, find \(P(X = 0)\), \(P(X = 1)\), and \(P(X = 2)\), and show that \(\sum P(X = r) = 1\).

Common Mistakes

  • !Writing non-numerical outcomes as random variables, such as \(\{H, T\}\) or \(\{W, L, D\}\), instead of numbers \(\{0, 1\}\) or \(\{0, 1, 2\}\). A random variable must take numeric values.
  • !Forgetting that the sum of probabilities must equal 1. Arithmetic errors or omitting outcomes result in \(\sum P(X = r) \neq 1\).
  • !Confusing replacement and non-replacement conditions. With replacement, probabilities remain constant; without replacement, denominators change after each draw.
  • !Drawing a smooth continuous curve instead of separate vertical stick lines on a discrete probability distribution graph.

Concept Misunderstandings

Misunderstanding

All variables measured in numbers are discrete.

Correct Concept

If a variable is measured along a continuous scale and can take any value within an interval \(a \le x \le b\), it is a continuous random variable, not discrete.

Misunderstanding

The probability of an outcome can be greater than 1 or negative.

Correct Concept

Every probability \(P(X = r)\) must strictly satisfy \(0 \le P(X = r) \le 1\).

Misunderstanding

Writing the set notation of a continuous random variable by listing isolated numbers.

Correct Concept

Continuous random variables cannot be listed as individual elements because there are infinitely many values between any two points; they must be stated as an interval such as \(\{x : a \le x \le b\}\).

Summary

  • A random variable \(X\) assigns numeric values to random outcomes.
  • Discrete random variables have countable values, e.g. \(X = \{0, 1, 2, \dots\}\).
  • Continuous random variables take values across an interval, e.g. \(X = \{x : a \le x \le b\}\).
  • For any valid discrete probability distribution: \(0 \le P(X = r_i) \le 1\) and \(\sum_{i=1}^{n} P(X = r_i) = 1\).
  • Discrete probability distributions are displayed using tables and vertical line (stick) graphs of \(P(X = r)\) against \(r\).

Short Activity

Objective: Identify discrete and continuous random variables, verify probability distribution properties, and match key terms.

A. Objective Quiz

1 Which of the following represents a continuous random variable?

2 The discrete random variable \(X\) has the probability function given by \(P(X = 0) = 0.2\), \(P(X = 1) = 0.35\), \(P(X = 2) = 0.3\), and \(P(X = 3) = k\). What is the value of \(k\)?

B. Fill in the Blanks

3 For any discrete probability distribution, the sum of all individual probabilities \(\sum_{i=1}^{n} P(X = r_i)\) must equal ________.

4 A random variable that takes values lying within a continuous interval rather than countable values is known as a ________ random variable.

C. Matching / Drag and Drop

Drag each situation or definition to its correct description or classification. On a phone, tap a term first, then tap the matching box.

Situation / Definition
Number of defective bulbs among 10 inspected bulbs
Length of nails produced by a machine between 1.2 cm and 10.2 cm
Total sum of all probabilities in a distribution
Probability value of an individual outcome \(P(X = r)\)
The set of all possible outcomes of a random experiment
Graphical display of discrete probability distribution
Classification / Description
5Discrete random variable
6Continuous random variable
7Equal to 1
8Lies between 0 and 1 inclusive
9Sample space
10Stick line graph of \(P(X = r)\) against \(r\)
Answer key: 1 C; 2 B; 3 1; 4 continuous; 5 Discrete random variable; 6 Continuous random variable; 7 Equal to 1; 8 Lies between 0 and 1 inclusive; 9 Sample space; 10 Stick line graph of \(P(X = r)\) against \(r\).

Keywords

Random variable Discrete random variable Continuous random variable Sample space Probability distribution Probability distribution graph