Professional Documents
Culture Documents
Random variables
Ignacio Cascos
Ignacio Cascos
e1
e2
e3
X (e3)
Ignacio Cascos
Ignacio Cascos
X (e2)
X (e1)
IR
4
Outline
1. Definition of random variable
2. Discrete and continuous random variables
Ignacio Cascos
Ignacio Cascos
x p(x) = P(X=x)
It satisfies that 0 p(x) 1 for every x and if X assumes
n different possible values x1,,xn , then i p(xi) = 1.
We have P(XA) = xiA p(xi) .
Ignacio Cascos
F(x) = P(X x)
0.375
0.05
0.20
p(x) = P(X=x)
0.125
0.375
0.125
0.15
x
0
0.00
probabilidad
0.25
0.30
0.35
Probability
function
Funcion demass
probabilidad
0.10
2.
3.
0
Ignacio Cascos
limx F(x) = 0 ;
limx F(x) = 1 ;
F is nondecreasing ;
F is right-continuous.
1.
4.
Ignacio Cascos
10
The cumulative
distribution function of
a discrete random
variable is stepwise,
0.8
1.0
Funcion de distribucion
cdf
0.6
0.2
0.2
0.0
0.0
-1
Ignacio Cascos
0.4
Density
0.4
Density
0.0
F(x) = P(X x)
= xi x p(xi)
0.2
0.6
0.6
0.8
0.8
Histogram of duracion
0.4
probability
probabilidad
11
Ignacio Cascos
4
duracion
4
duracion
12
Ignacio Cascos
0.8
1.0
0.6
1.
0.4
2.
0.2
3.
f(x) 0 ;
+ f(x)dx = 1 .
We have P(a X b) = ab f(x)dx .
0.0
density
densidad
P(X = a) = 0 ;
P(a X b) = P(a < X b) = P(a X < b) = P(a < X < b)
13
Ignacio Cascos
14
2.
3.
4.
limx F(x) = 0 ;
limx F(x) = 1 ;
F is nondecreasing ;
F is continuous .
Ignacio Cascos
Ignacio Cascos
cumulative probability
1.
Exponential Distribution
1
Mean
1
0,8
0,6
0,4
0,2
0
-1 0
16
Outline
17
Ignacio Cascos
18
Median
Ignacio Cascos
19
Ignacio Cascos
20
Quantiles
Scatter parameters
21
Scatter parameters
22
Ignacio Cascos
Shape parameters
Ignacio Cascos
where1 a 99 and 1 i 3 .
Ignacio Cascos
23
24
Outline
Ignacio Cascos
27
26
28
Outline
29
Ignacio Cascos
30
1.
2.
p(x,y) 0
xyp(x,y) = 1
Ignacio Cascos
31
Ignacio Cascos
32
Marginal distributions
f(x,y) 0 ;
2.
f(x,y)dxdy = 1 .
y0
That satisifes
P(a X b , c Y d) = abcd f(x,y)dydx
f(x,y) = 2F(x,y)/xy
Ignacio Cascos
33
Marginal distributions
Ignacio Cascos
P((XA)(YB)) = P(XA)P(YB)
Equivalently, for any x,yIR
Ignacio Cascos
34
35
Ignacio Cascos
36
E[ X 1 ]
E[ X 2 ]
E[ X ] =
M
E[ X ]
n
Ignacio Cascos
37
Ignacio Cascos
38
Cov(X,Y) = E[XY]E[X]E[Y] ;
if X and Y are independent, Cov(X,Y) = 0 ;
Cov(X,Y) = 0 does not guarantee that X and Y are
independet ;
Cov(aX+b,cY+d)=acCov(X,Y) .
Depto. Estadstica, Universidad Carlos III
39
Properties:
1.
2.
3.
4.
Ignacio Cascos
Cov( X , Y )
Var[ X ]Var[Y ]
40
Covariance matrix.
M X = E[( X )( X ) t ]
Cov( X 1 , X 2 )
Var[ X 1 ]
Var[ X 2 ]
Cov( X 2 , X 1 )
MX =
M
M
Cov( X , X ) Cov( X , X )
n
1
n
2
Ignacio Cascos
L Cov( X 1 , X n )
L Cov( X 2 , X n )
O
M
L
Var[ X n ]
1 / 1600 if 0 x, y 40
f X ,Y ( x, y ) =
otherwise
0
where (X,Y) represent the coordinates (in centimeters) of the
hitting point. The lower right corner of the board is represented
by the origin, that is, the point (0,0).
41
Example (Dartboard)
Whenever we hit one of the circles, we get some
point. What is the probability of getting some point
from a throw?
What is the mean vector of (X,Y)?, and the
probability that (X,Y) assumes that value?
The inner circle has a diameter of 4cm. What is the
probability of hitting it with a dart?
Ignacio Cascos
Example (Dartboard)
43
Ignacio Cascos
42