Statistics I · Unit 5 · 5 hrs
Random Variables and Mathematical Expectation
Exam-focused notes for Random Variables and Mathematical Expectation (Statistics I, STA169): what the TU syllabus asks and how it has actually been tested, with 4 solved past questions from this unit.
Random Variables and Mathematical Expectation in short
A random variable turns the outcomes of a chance experiment into numbers that ordinary algebra can work with, and mathematical expectation summarises such a variable in a single representative value, the idea behind an "expected" score, profit, or wait time.
What this unit covers
- Concept of a random variable
- Types of random variables
- Probability distribution of a random variable
- Mathematical expectation of a random variable
- Addition and multiplicative theorems of expectation
- Problems and illustrative examples related to computer Science and IT
Mathematical expectation of a random variable
2080 · 5 marks
Define random variable. If X is the number of points rolled with a balanced die, find E(X) and variance of X. Also find the expected value of random variable g(X) = 2X^2 + 1. [5]
Show solved answerHide answer
Random Variable: Definition, E(X), Variance, and E(g(X))
Given
- Experiment: rolling a balanced (fair) die
- Random variable $X$ = number of points shown
- Possible values: $x = 1, 2, 3, 4, 5, 6$
- $P(X = x) = \frac{1}{6}$ for each value (balanced die)
- Function required: $g(X) = 2X^2 + 1$
Solution
Definition of Random Variable
A random variable is a real-valued function that assigns a numerical value to each outcome in the sample space of a random experiment. It may be discrete (countable values) or continuous (values over an interval).
Probability Distribution
$$P(X = x) = \frac{1}{6}, \quad x = 1, 2, 3, 4, 5, 6$$
Calculation of E(X)
$$E(X) = \sum x \cdot P(X=x) = \frac{1+2+3+4+5+6}{6} = \frac{21}{6} = \frac{7}{2} = 3.5$$
Calculation of Variance
$$E(X^2) = \frac{1^2+2^2+3^2+4^2+5^2+6^2}{6} = \frac{1+4+9+16+25+36}{6} = \frac{91}{6}$$
$$\text{Var}(X) = E(X^2) - [E(X)]^2 = \frac{91}{6} - \left(\frac{7}{2}\right)^2 = \frac{91}{6} - \frac{49}{4}$$
$$= \frac{182}{12} - \frac{147}{12} = \frac{35}{12} \approx 2.917$$
Expected Value of g(X) = 2X² + 1
$$E(2X^2 + 1) = 2E(X^2) + 1 = 2 \cdot \frac{91}{6} + 1 = \frac{182}{6} + \frac{6}{6} = \frac{188}{6} = \frac{94}{3} \approx 31.33$$
Summary
| Quantity | Value |
|---|---|
| $E(X)$ | $\frac{7}{2} = 3.5$ |
| $\text{Var}(X)$ | $\frac{35}{12} \approx 2.917$ |
| $E(2X^2+1)$ | $\frac{94}{3} \approx 31.33$ |
2079 · 5 marks
A coin is tossed two times and if X denotes the number of heads obtained, find (i) $E(x)$ (ii) $E(x^2)$ (iii) $V(x)$ (iv) $E(2X^2 + 3x - 5)$ [5]
2076 · 5 marks
The random variable $X$ has the following probability distribution.
$$\begin{array}{|c|ccccccc|}\hline X & 0 & 1 & 2 & 3 & 4 & 5 & 6 \ P(X=x) & 0.03 & 0.15 & 0.4 & 0.2 & 0.1 & 0.07 & 0.05 \ \hline \end{array}$$
[5]
Probability distribution of a random variable
2080.1 · 5 marks
Write notes on any two: a. Random variable and probability distribution b. Five number summary c. Sampling error. [5]
Make Unit 5 stick
Practice STA169 with flashcards & quizzes