Chapter 2: Random Variables In this chapter we will cover:
- 1. Discrete Random variables, (§2.1 Rice)
- 2. Continuous Random variables, (§2.2 Rice)
- 3. Functions of a random variable (§2.3 Rice)
Random Variables
- 1. A random variable is a number whose value is determined by chance
- 2. The number of heads in three coin tosses is a random variable
- 3. The time till the next magnitude 8 earth-quake is a random variable.
- 4. Example 2 is a discrete random variable since the answer must be a discrete integer value i.e., 0, 1, 2 . . .. Since time
is continuous (3) is a continuous random variable Example: coin toss
- For the three coin tosses the sample space is
Ω = {hhh, hht, htt, hth, ttt, tth, thh, tht}
- The random variable X is then 3 when hhh occurs, 2 when hht or thh or hth occurs
- That is X = 2 if and only if ω ∈ {hht, thh, hth}, hence P(X = 2) = P({hht, thh, hth}).
- We can therefore work out the probability of seeing X = 0, 1, 2, 3 These are
P(X = 0) = 1 8, P(X = 1) = 3 8, P(X = 2) = 3 8, P(X = 3) = 1 8
- This is called the probability mass function for X. It is also called the frequency function.
1