Reading Randomvariables
Reading Randomvariables
Reading #
1. Random Variables
A random variable is a variable, x , whose value is assigned through a rule and a random experiment, , that assigns a priori a value to the outcome of each experiment, A1 , A2 , A3 ,... This rule states that x( A1 ) = x1 x( A2 ) = x2
L
x( An ) = xn
One example of a random variable is a Bernoulli random variable which assigns either a 1 or 0 to the outcome. For example, toss a fair coin. If it lands heads up you get one dollar, if it land tails up you loose a dollar. The amount won or lost in this case is the random variable. Symbolically, x( ) denotes the random variable which is a function of the random event = { A1 , A2 ,, An } which has associated probabilities: p( A1 ) = p1 , p ( A2 ) = p2 , etc. A1 x1 , p1 A2 x2 , p2
M
An xn , pn
Reading #
The variables xi are the values of the random variable, Ai , the possible events in the event space, and pi is the probability of event Ai .
EXPECTED VALUE of the random variable can be thought of as follows: after many ( M ) repetitions of a random experiment in which event A1 occurred d1 times, A2 occurred d 2 times, and so on to An occurred d n times, the total number of experiments is simply M = d1 + d 2 + d3 + L + d n .
(19)
If a weight, or cost, xi , is assigned to each event, Ai , then the total cost of all of the events is xT = d1 x1 + d 2 x2 + L + d n xn .
(20)
Then given pi , the probability of event Ai , the expected value of the event is
N
x = E { X ( )} = pi xi .
i =1
(21)
x=
xT M
(22)
As m :
di M
by the total number of events, M , is equal to the probability of the event, pi , and the expected value of x is the average income as defined in 22 as M
Reading #
x = x1 p1 + x2 p2 + L + xn pn .
(23)
Properties of Variance
Vx
=E x( ) x
}
}
= E x 2 ( ) 2 x( ) x + x 2
= E{x( ) 2 } 2 xE{x( )} + x 2
= E { x 2 ( )} x 2
2. Probability Distribution
Discrete Random Variable: possible values are a finite set of numbers or a countable set
of numbers.
Continuous Random Variable: possible values are the entire set or an interval of the
real numbers. The probability of an outcome being any specific point is zero (improbable but not impossible).
EXAMPLE: On the first day of school we observe students at the Coop buying computers. The random variable x is zero if a desktop is bought or one if the laptop is bought. If
20% of all buyers purchase laptops then the pmf of x is
2004, 2005 A. H. Techet 3 Version 3.1, updated 2/14/2005
Reading #
p(0) = p( X = 0) = p(next customer buys a desktop) = 0.8 p (1) = p ( X = 1) = p(next customer buys a laptop) = 0.2
p( x) = p( X = x) = 0 for x 0 or 1.
the probability that x takes a value between xo and xo + dx , divided by dx , or f x ( xo ) = p( xo x < xo + dx) /dx.
(24)
(25)
f x ( y )dy
(26)
Reading #
which is the area under the probability density curve to the left of value xo . Note that F ( xo ) is a probability in contrast to the PDF. Also
F ( xo ) = p ( x xo ) =
xo
f x ( x)dx
(27)
and dF ( xo ) . dx
f x ( xo ) =
(28)
Let x be a continuous random variable with a pdf f x ( x) and cdf F ( x) then for any value,
a,
p ( x > a) = 1 F (a);
(29)
p(a x b) = F (b) F (a )
(30)
Expected Value: The expected value of a continuous random variable, x, with pdf f x ( x)
is
x = E ( x) = x f x ( x)dx
(31)
If x is a continuous random variable with pdf f x ( x) and h( x) is any function of that random variable then
E[h( x)] = h ( x ) = h( x) f x ( x) dx
(32)
Reading #
Conditional Expectations: The expected value of the random variable given that the
(33)
F ( X xo ) = F ( y ( x) g ( xo ))
(34)
The probability that the random variable, X, is less than some value, xo , is the same as the probability that the function y ( x) is less than the at function evaluated at xo . EXAMPLE: Given y = x + b and the pdf f x ( x) for all > 0 , then x + b < yo for
x
yo b
and
F ( y yo ) =
yo b
f x ( x)dx
(35)
3 EXAMPLE: Given y = x3 : F ( X xo ) = F ( y xo ).
(36) (37)
Reading #
If y x1 , x2 ,L, xn then
f x ( x1 )
dy ( x1 ) dx
fy =
+L+
f x ( xn )
dy ( xn ) dx
(38)
x=
(39
and
2 ( x) =
1 n 2 i n i =1
(40)