Bi Variate
Bi Variate
RANDOM VARIABLES
RANDOM VARIABLE
(VARIATE)
BIVARIATE
(two-variable)
MULTIVARIATE
(more than two-variable)
where the sums are taken over all the possible values of Y and of X
respectively.
3. The joint probability mass functon has the property that :
3.
(*)
The event (X x and Y y ) in (*) is equivalent to the event
AB, where A and B are events of , defined by :
(*)
provided that one of the double sums or integral in (*) is well defined.
SWN SCIENCE DEPARTMENT
CONDITIONAL DISTRIBUTIONS
Definition :
Let X and Y be jointly discrete random variables, with joint
probability mass function p(x,y).
Let
denote the marginal probability mass funtion of X
and let x be any number for which
>0.
The conditional probability mass function of Y given X = x is:
10
11
CONDITIONAL EXPECTATION
Expectation is another term for mean.
A conditional expectation is an expectation, or mean ,
calculated using a conditional probability mass
function or conditional probability density function.
The conditional expectation of Y given X = x is
denoted
E ( Y| X = x) or
.
12
13
Definition :
Two random varibales X and Y are independent, provided
that :
1. If X and Y are jointly discrete, the joint probability mass
function is equal to the product of the marginals :
2. If X and Y are jointly continuous, the joint probability
density functions is equal to the product of the marginals :
Intuitively, when two random variables are independent,
knowledge of the value of one of them does not affect the
probability distribution of the other. In other words, the
conditional distribution of Y given X is the same as the
marginal distribution of Y.
SWN SCIENCE DEPARTMENT
14
15
COVARIANCE
When two random variables are not independent, it is useful to
have a measure of the strength of the relationship between
them.
The population covariance is a measure of a certain type of
relationship known as a linear relationship.
We will usually drop the term population , and refer simply
to the covariance.
Definition : Let X and Y be random variables with means
and .
The covariance of X and Y is :
An alternate formula is :
SWN SCIENCE DEPARTMENT
16
CORRELATION
We will denote the correlation between random variable X and Y by
and is given
17
= 0,
18
EXERSICES
1. Consider a random experiment of tossing a fair coin
twice. Let (X,Y) be a bivariate r.v , where X is the
number of heads that occurs in the two tosses and Y is
the number of tails that occurs in the two tosses.
(a) What is the range of X ?
(b) What is the range of Y?
(c) Find and sketch the range
of (X,Y)
(d) Find P(X = 2 , Y = 0) , P(X = 0 , Y = 2) and
P (X =1 , Y =1)
19
Solution :
Dari yang diketahui, yaitu RE : menguncalkan SMUL
sebanyak dua kali, diperoleh = {HH, HT, TH, TT}
(a) = {0,1,2} kenapa ?
(b) = {0,1,2}
(c) Ingat definisi
maka,
(d)
P(X = 2 , Y = 0) = P(HH) =
P(X = 0 , Y = 2) = P(TT) =
P (X =1 , Y =1) = P(HT,TH) =
SWN SCIENCE DEPARTMENT
20
21
Solution :
(a) = {(0,0) , (0,1) , (1,0) , (1,1)} , jelaskan!
(b) Karena X dan Y saling bebas (independent), maka :
P(X = 0) = P(X = 1) =
P(Y = 0) = P (Y = 1) =
Dengan demikian,
22
23
Solution :
(a) Dari skenario soal ; vr X menyatakan banyaknya terambilnya
bola warna merah, dan vr Y menyatakan banyaknya terambilnya
bola warna putih.
Banyaknya bola warna merah ada 2 dan banyaknya bola warna
putih ada 3.
Dengan demikian ;
= { (0,0), (0,1), (0,2), (0,3), (1,0), (1,1), (1,2), (2,0), (2,1)}
(b) joint pmfs / pmf bersama dari (X,Y) :
24
y
0
diperoleh :
(d) Karena
, maka
X dan Y tidakSWN
independent.
SCIENCE DEPARTMENT
25
26
Solution :
(a) Dari data yang diketahui, buat tabel :
Tabel p(x,y)
x
0
1
2
y
0
1
0
1/3
1/3 0
0
1/3
Marginal pmf :
27
28
of X and Y, is given by :
p(0,0) = 0,4 , p(0,1) = 0,2 , p(1,0) = 0,1 , p(1,1) =
0,3
Calculate the conditional probability mass function of
X, given that Y =1.
29
Solution :
(a) Dari yang diketahui , buat tabel p(x,y) .
x
0
1
0
0,4
0,1
0,5
y
1
0,2
0,3
0,5
0,6
0,4
1
30
31
Solution :
(a) Gunakan sifat dari joint pdf :
32
33
where k is a constant.
(a) Find the value of k
(b) Find the marginal probability pmfs of X and Y.
(c) Are X and Y independent?
34
Solution :
(a)
35
36
P(Y=0| X=0)
0
Y
X
1
P(Y=0| X=1)
P(Y=1| X=0)
P(Y=1| X=1)
SWN SCIENCE DEPARTMENT
37
Solution :
(a) P(Y=1| X=0) + P(Y=0| X=0) =1
maka P(Y=0| X=0) =0,9
P(X=1) + P(X=0) =1
P(X=1) =1-0,5 = 0,5
Demikian juga
P(Y=1| X=1) =0,8
Mengingat : P(AB) = P(B) . P(A |B) = P(A) . P(B |A)
Maka :
P(X=0, Y=0) = P(Y=0 |X=0) . P(X=0) = 0,9 (0,5) = 0,45
P(X=0, Y=1) = P(Y=1 |X=0) . P(X=0) = 0,1 (0,5) = 0,05
P(X=1, Y=0) = P(Y=0 |X=1) . P(X=1) = 0,2 (0,5) = 0,10
P(X=1, Y=1) = P(Y=1 |X=1) . P(X=1) = 0,8 (0,5) = 0,40
Jadi, joint pmf dari (X,Y) adalah :
p(0,0) = 0,45 , p(0,1) = 0,05
p(1,0) =SWN
0,10
, p(1,1) = 0,40
SCIENCE DEPARTMENT
38
39
40
Solution :
(a)
(b)
41
(c)
= 0.0.(0,45) + 0.1.(0,05) + 1.0.(0,1) + 1.1.(0,4)
= 0,4
Jadi, Cov (X,Y) = 0,4 (0,5) (0,45) = 0,175
(d)
42
43
Solution :
(a) Seperti pada soal 1;
Jadi,
(b) Jelas bahwa X dan Y saling bebas/independent,
Untuk variabel random X :
, dengan
cara yang sama ,
SWN SCIENCE DEPARTMENT
44
x
0
y
2
0
1
2
3
SWN SCIENCE DEPARTMENT
45
(c)
46