Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Random Variable
Tutorial 3
STAT1301 Fall 2010
05OCT2010, MB103@HKU
By Joseph Dong
β’ A random variable is a function
π: Ξ© β π β¦ π π β π
β’ π = π Ξ© is called the sample space. It is usually a
numbers set, i.e., a subset of β or β.
β’ A random variable is deterministic. The randomness does
not reside in the random variable π. The randomness
resides in the state space Ξ©, and is carried by π over to
the sample space.
The Definition
2
β’
β’
β’
β’
β’
β’
β’
β’
Whatβs the random experiment?
What are the possible outcomes of the random experiment?
What is the state space?
What are the possible values of money you can win?
What is the sample space?
What is the probability measure β on the state space?
What is the probability measure βπ on the sample space?
What is the distribution function πΉπ β
on the sample space?
Handout Problem 1
3
β’ R.E. = Tossing two dice simultaneously to observe 2
digits.
β’ The possible physical outcomes are (1,1), (1,2), β¦β¦,
(6,6). There are 36 of them.
β’ The State Space is the set of all physical outcomes
(states): {(1,1), β¦, (6,6)}.
4
β’ The possible values of money I can win are 9, -10, and 0.
β’ The Sample Space is the set of all possible numerical
outcomes I can win: {9, -10, 0}
5
β’ The (discrete) Probability measure β on the
state space Ξ© is a function that evaluates
1
every singleton subset of Ξ© to and that
36
evaluates every composite subset according
to (i) the countable additivity axiom in
Kolmogorovβs definition of Probability; and
(ii) how it evaluates on the singleton subsets.
β’ For example, β will evaluate the composite
1
1
subset {(1,1), (1,2)} to + because
36
36
β’ (i) the singleton sets {(1,1)} and {(1,2)} are
disjoint and therefore β 1,1 βͺ 1,2 =
β 1,1 + β 1,2 ; and
β’ (ii) β 1,1
= β 1,2
=
1
.
36
6
β’ The (discrete) Probability measure βπ on
the Sample Space π Ξ© is a function
β’ that evaluates the singleton subsets of π Ξ© ,
6 6 24
{9}, {-10}, {0} to , , respectively, and
36 36 36
β’ that evaluates every composite subset
according to (i) the countable additivity
axiom in Kolmogorovβs definition of
Probability; and (ii) how it evaluates on the
singleton subsets.
β’ For example, βπ will evaluate the composite
6
24
subset {9, 0} to + because (i) the
36
36
singleton sets {9} and {0} are disjoint and
therefore βπ 9,0 = βπ {9} + βπ 0 ; and (ii)
6
24
βπ 9 = and βπ 0 = .
36
36
β’ Q: How is βπΏ linked to β by πΏ?
7
Choice of R.E. is flexible
β’ R.E. = Tossing two dice simultaneously to observe the
sum of the 2 digits produced.
OR
β’ R.E. = Tossing two dice simultaneously to observe the
value of money you can win based on the sum of the 2
digits produced.
8
β’ Conclusion: Since the 3 spaces above have consistent
probability measure, any one can be used as our state space or
sample space, depending on your choice.
β’ They are just different representations.
β’ The consistency across the spaces are guaranteed by the defining
nature of the random variable between them.
β’ Make sure you use the right probability measure for the
sample/state space you work on.
β’ The choice of a good sample space is an art. A good choice of
sample spaceβand accordingly its probability measureβcan
greatly simplify the solution process.
9
β’ Because of the βdeterministicβ random variable π and the
βrandomβ state space Ξ©, the sample space π = π Ξ© as the
combination of the two is also βrandomβ.
β’ Therefore we usually have each of Ξ© and π Ξ© endowed with
a probability measure, for the depiction of their randomness.
β’ As usual, we use β to denote the probability measure on the
state space Ξ©.
β’ We use a subscripted βπ to symbolize the probability measure
of the sample space π Ξ© .
β’ β and βπ must be consistent because π is deterministic.
A Short Wrap-up
Ξ© & β vs π Ξ© & βπ
10
Going Visual
Random
Variable/Function
11
Sample Space Illustrated
12
β’ Hint: If you understand our discussion of Problem 1, you
should immediately know an example for Problem 6.
β’ Also try to find a different kind of example.
Handout Problem 6
13
β’ Cumulative
Distribution
Function
β’ Distribution Function ππΏ π
β’ Probability
Density
Function
β’ Density Function ππΏ π
β’ Probability
Mass
Function
β’ βπ π β€ π₯
β’ βπ π = π₯
β’ Probability Function
β’
Distribution
Nomenclature
βπ π₯β€π<π₯+ππ₯
lim
ππ₯
ππ₯β0+
14
β’ The term distribution function is used in the
mathematical literature for never-decreasing functions of
π₯ which tend to 0 as π₯ β ββ, and to 1 as π₯ β β.
Statisticians currently prefer the term cumulative
distribution function, but the adjective βcumulativeβ is
redundant.
β’ A density function is a non-negative function π π₯ whose
integral, extended over the entire π₯-axis, is unity.
β’ The integral from ββ to π₯ of any density function is a
distribution function.
βWilliam Feller: An Introduction to Probability Theory and Its
Applications (1950) Volume I, page 179: βNote on Terminology.β
15
β’ Handout Problem 3
β’ Hint: π + π
π
=?
β’ Handout Problem 4
β’ Hint: Just routine calculation.
Handout Problem 3 and 4
16
β’ We only define distribution function from β to [0,1].
Therefore, strictly speaking, only real-valued random
variables can have a distribution function defined for its
sample space.
β’ A distribution function πΉπ β
is just an alternative way
besides the probability measure βπ to depict randomness.
β’ Relationship: ππΏ β
β βπΏ (πΏ β€β
)
β’ Still with Problem 1, whatβs the distribution function
πΉπ β
on the sample space {-10, 0, 9}?
Distribution Function
17
β’ Draw a graph for each question to show the random
variable, the state space, the sample space, and the
probability mass function on the sample space.
Handout Problem 2
18
β’ This time the state space is the interval 0,1 on the real
line.
β’ Try to use use the state space and the sample space as the
two ordinates of a Cartesian plane, and draw the graph of
the random variable on that coordinated plane.
Handout Problem 5
19
β’ Hint: Try to
understand
βExpectation is the
coordinate of the
center of massβ
Handout Problem 7
20