Download Random Variable

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
Transcript
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