2.discrete Random Variables
2.discrete Random Variables
2.discrete Random Variables
Outline
2.1 Basic Concepts
2.2 Probability Mass Functions
Variables
2.6 Conditioning
2.7 Independence
pX: PMF.
x: Any possible value of X.
pX (x): Probability mass of x.
(
)
Note that :
For any set S of possible values of X, we
have :
Its PMF is
Normalization property:
10
11
k 1
k 1
k 1
p
(
k
)
(1
p
)
p
x
p (1 p ) k
k 0
1
p
1 (1 p)
1
12
the PMF.
13
14
Y is also a RV.
The PMF of Y is
15
16
PMF of Z is
17
2.4 Expectation
We define the expected value (also
the PMF.
18
Example 2.2
Example 2.2 : Consider two independent coin
So the mean is :
19
standard deviation of X:
20
Example 2.3
Recall Example 2.1.
21
Proof:
22
23
a xp X ( x) b p X ( x)
x
aE[ x] b
24
Proof:
25
26
the speed V .
27
Example 2.5
Mean and Variance of the Bernoulli.
PMF:
28
Variable.
PMF:
29
General case :
30
Example 2.7
The Mean of the Poisson.
PMF:
31
32
33
Verify:
34
Example 2.9
The marginal PMF of X or Y at a given value is
35
variables.
PMF:
Expected value:
When g(X, Y) = aX + bY + c,
36
Z X 2Y
Please find E[z]=?
E[Z ] E[ X ] 2E[Y ]
3
6
8
3 51
2 3 4
20
20
20
20 20
3
7
7
3 50
E[Y ] 1 2 3 4
20
20
20
20 20
51
50
E[ Z ]
2 7.55
20
20
E[ X ] 1
37
Marginal PMFs:
Expected value:
38
Example 2.10
Mean of the Binomial : Your probability class
Sol:
1
2 1
E[ X i ] 1 0
3
3 3
39
Example 2.11
The Hat Problem : Suppose that n people
40
therefore
41
Visualization of pX|A(x)
42
Example 2.12
Roll a Die. X: The roll of a fair six-sided die.
43
Example 2.13
A student will take a certain test repeatedly,
P( A) (1 p) m1 p
m 1
(1 p) k 1 p
, if k 1,..., n.
n
m 1
PX | A (k ) (1 p) p
m1
0,
otherwise
Broadband Communication Lab, NCTU, Taiwan
44
Normalization property:
45
Visualization of pX|Y(x|y)
46
47
48
49
and
So:
50
Conditional Expectations
The conditional expectation of X given
value y of Y is defined by
51
event B and
P(Ai B) > 0
52
53
Example 2.16
Messages Transmission :
54
Variable.
55
56
PMF, we have
as the condition
57
Example 2.19
Consider two independent tosses of a fair coin.
58
59
variables, then
60
unconditional independence.
Example :
61
said to be independent if
variables, then
62
variables, then
Example 2.20 :
Xi ~ Bernoulli(p).
X = X1 + + Xn ~ Binomial(n, p).
{Xi} are independent.
Sol:
63
64
65
66
67