5 Random Variables And Mathematical Expectation

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.

Random Variables and Mathematical Expectation: notes

Concept of a random variable

A random variable is a function that assigns a unique real number to every outcome of a random experiment. If two coins are tossed and $X$ denotes the number of heads obtained, then $X$ takes the value 2 for outcome $HH$, 1 for $HT$ and $TH$, and 0 for $TT$; $X$ is a random variable built on the sample space ${HH, HT, TH, TT}$. A random variable is conventionally written with a capital letter, while the particular values it can take are written with the corresponding lower-case letter.

Types of random variables

A random variable is discrete if it can take only a finite or countably infinite set of isolated values, usually obtained by counting, such as the number of heads in three coin tosses or the number of packets lost by a network link in a minute. A random variable is continuous if it can take any value in an interval of real numbers, usually obtained by measurement, such as the time until a server responds to a request.

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 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

QuantityValue
$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$
Open this answer on its own page →

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]

  • Fair coin tossed 2 times - X = number of heads - Possible values: X = 0, 1, 2 - Sample space: {TT, HT, TH, HH}, each equally likely with probability 1/4 X Outcomes P(X) ------------------- 0 TT 1/4 1 HT, TH 1/2 2 HH 1/4 Check: $\frac{1}{4}+\frac{1}{2}+\frac{1}{4}=1$ ✓ --- $$E(X)=\sum X\cdot P(X...
Open this answer on its own page →

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]

X 0 1 2 3 4 5 6 ------------------------ P(X=x) 0.03 0.15 0.40 0.20 0.10 0.07 0.05 The question statement does not specify what to compute. Standard interpretation for a 5-mark problem: verify validity, then find mean, variance, and standard deviation. --- $$\sum P(X=x) = 0.03 + 0.15 + 0.40 + 0.2...

Open this answer on its own page →

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]

--- Definition: The five number summary is a set of five descriptive statistical values that together provide a concise summary of a dataset. These five values are: Symbol Meaning ----------------- Xs Smallest value (minimum) Q1 First quartile (lower quartile) Q2 Second quartile (median) Q3 Third...

Open this answer on its own page →