Universitas Gadjah Mada Fakultas Teknik
Jurusan Teknik Sipil dan Lingkungan
http://istiarto.staff.ugm.ac.id
Pengertian
27-Apr-15 Variabel Random
2
q
Random variable (variabel acak)
q suatu fungsi yang didefinisikan pada sample space
q
Jenis
q Discrete random variables
q Continuous random variables
q
Contoh
q jumlah hari hujan selama 1 tahun à diskrit
Variabel Random
3
q
Notasi
q X à variabel random
q x à nilai variabel random
q
Fungsi
q Suatu fungsi variabel random adalah variabel random pula
http://istiarto.staff.ugm.ac.id
Variabel Random Diskrit
27-Apr-15 Variabel Random
4
q
X
= discrete random variables
q= x
1, x
2, x
3, …, x
nf
X(x
1)
f
X(x
2)
f
X(x
n)
f
X(x
3)
∑ f
X(x
i) = 1
probabilitas
x
1f
X(x
i)
x
nx
1x
2x
3…
x
n−1F
X(x
i)
x
nx
2x
3…
x
n−11
distribusi probabilitas diskrit
distribusi probabilitas kumulatif
diskrit
probabilitas
x ≤ x
ihttp://istiarto.staff.ugm.ac.id
( )
∑
( )
≤ = x x X i X i x f x F Variabel Random 6q
Distribusi probabilitas
suatu variabel random X untuk X = x
q
Distribusi probabilitas kumulatif
suatu variabel random X untuk X = x
27-Apr-15
( )
i = X( )
i − X(
i−1)
X x F x F x
§
Frekuensi relatif
§
Probabilitas
( )
∑
( )
≤ = x x X i X i x f x F( )
∑
= = i j x xi x f j F 1 1 − − = i i i x x x F F f§
Frekuensi relatif kumulatif
( )
i = X( )
i − X(
i−1)
X x F x F x
http://istiarto.staff.ugm.ac.id
Variabel Random Kontinu
27-Apr-15 Variabel Random 8 q
Probabilitas
( )
i fxi n n A = =prob ni = jumlah data di klas ke-i
n = jumlah seluruh data
fxi à estimasi prob (A)
histogram frekuensi à pendekatan distribusi probabilitas
frekuensi kumulatif à pendekatan distribusi probabilitas kumulatif
q
Dengan demikian f
xidapat dipandang sebagai nilai estimasi probabilitas
variabel random kontinu diperlakukan seolah-olah variabel random diskrit
prob(a
≤X ≤ b)
x
x
a b
a b
p
X(x)
P
X(x)
pdf = probability density function
P
X(b)
P
X(a)
1
0
luas = prob(a ≤ X ≤ b) luas = prob(X ≤ b) luas = 1cdf = cumulative probability
distribution function
PX(x) =prob(X ≤ x)
http://istiarto.staff.ugm.ac.id Variabel Random 10
p
X(x) = probability density function of a continuous random variable
P
X(x) = cumulative probability distribution function
27-Apr-15
( )
x(
X x)
PX = prob ≤ dPX( )
x = pX( )
x dx( )
∫
( )
∞ − = x X X x p t t P dBeberapa Sifat Probabilitas
11( )
x x pX ≥ ,0 ∀( )
d =1∫
+∞ ∞ − x x pX(
−∞)
=0 X P(
+∞)
=1 X P(
a X b)
p( )
t t PX( )
b PX( )
a b a X = − = ≤ ≤∫
d prob(
)
( )
d( )
( )
0 prob X =c =∫
p t t =PX c −PX c = c c X(
a≤ X ≤b)
=prob(
a< X ≤b)
=prob(
a≤ X <b)
=prob(
a< X <b)
prob (1) (2) (3) (4) (5) (6)
http://istiarto.staff.ugm.ac.id
Kala Ulang (Return Period)
27-Apr-15 Variabel Random
12
(
X ≥a)
=prob(
X >a)
prob
q
Jadi dalam definisi kala ulang
a. suatu kejadian yang menyamai atau melampaui suatu nilai tertentu
b. suatu kejadian yang melampaui suatu nilai tertentu
q
Kedua definisi,
a
dan
b
, adalah sama mengingat probabilitas suatu
kejadian (event) menyamai suatu nilai tertentu bernilai nol
Contoh #1
13
q Diketahui suatu variabel random X memiliki fungsi kerapatan probabilitas (pdf)
sbb.
q Gambarlah pdf tersebut
q Tunjukkan bahwa prob(0 < X < 2) = 1
q Hitunglah prob(X < 1.5)= PX(1.5) q Hitunglah prob(0.5 < X < 1.5)
( )
⎪ ⎩ ⎪ ⎨ ⎧ < < = lain yang nilai untuk 0 2 0 untuk 2 x x x x pXhttp://istiarto.staff.ugm.ac.id
Contoh #2
27-Apr-15 Variabel Random
14
q Pengolahan data annual series curah hujan harian maksimum, H mm, di suatu stasiun ARR
(Automatic Rainfall Recorder) menunjukkan bahwa sebaran probabilitas suatu besaran
curah hujan, pH(h), dapat dinyatakan dengan suatu fungsi (pdf) sbb.
q Gambarlah pdf tsb.
q Carilah fungsi cdf berdasarkan pdf tsb.
q Hitunglah prob(40 mm < H < 60 mm) ( ) ( ) ⎪ ⎪ ⎪ ⎩ ⎪⎪ ⎪ ⎨ ⎧ < < − < < = lain yang nilai untuk 0 100 50 untuk 100 3750 1 50 0 untuk 75 1 h h h h h pH
Bivariate Distributions
15
q
Pada bahasan sebelumnya, variabel random adalah variabel tunggal
(univariate distribution)
q
Pada bahasan berikut ini, variabel random terdiri dari dua variabel
(bivariate distributions)
q Apabila kita ingin mempelajari perilaku dua atau lebih variabel random, maka kita perlu menghitung probabilitas gabungan atau probabilitas bersama (joint probabilities)
http://istiarto.staff.ugm.ac.id
Bivariate Distributions
27-Apr-15 Variabel Random
16
q
Probabilitas gabungan, probabilitas bersama
(
)
(
)
( )
∫ ∫
∞ + ∞ − ∞ + ∞ − = ≤ ∧ ≤ = s t t s p y Y x X y x P Y X Y X d d , prob , , ,(
)
P(
x y)
y x y x pX,Y , X,Y , ∂ ∂ ∂ = pdf cdfBivariate Distributions
17
q
Beberapa sifat bivariate distribution
(
,)
0, x y ≥
pX Y
(
,∞)
, x
PX Y cdf variabel random X saja (univariate)
(
y)
PX,Y ∞, cdf variabel random Y saja (univariate)
(
,)
1 ,Y +∞ +∞ = X P(
,)
,(
,)
0 , −∞ y =P x −∞ = PX Y X Yhttp://istiarto.staff.ugm.ac.id
Distribusi Marginal
27-Apr-15 Variabel Random
18
q
Dua variabel random X dan Y
q Ingin diketahui perilaku variabel X tanpa mempertimbangkan nilai variabel Y
q Densitas marginal (pdf) dan distribusi kumulatif marginal (cdf)
( )
∫
( )
+∞ ∞ − = p x t t x pX X,Y , d( )
(
)
(
)
(
)
( )
∫
( )
∫ ∫
∞ − ∞ − ∞ + ∞ − = = ≤ = ∞ ≤ ∧ ≤ = ∞ = x X x Y X X X s s p s t t s p x X Y x X x P x P d d d , prob prob , ,(
x y)
p( )
x pX,Y , → X PX,Y(
x,y)
→PX( )
xcdf
Distribusi Marginal
19
q
Dua variabel random X dan Y
q Untuk variabel Y
( )
∫
(
)
+∞ ∞ − = p s y s y pY X,Y , d( )
(
)
(
)
(
)
( )
∫
( )
∫ ∫
∞ − ∞ − ∞ + ∞ − = = ≤ = ≤ ∧ ∞ ≤ = ∞ = y Y y Y X Y Y t t p t s t s p y Y y Y X y P y P d d d , prob prob , ,(
x y)
p( )
y pX,Y , → Y PX,Y(
x,y)
→PY( )
ycdf
http://istiarto.staff.ugm.ac.id
Distribusi Bersyarat (
Conditional Distributions
)
27-Apr-15 Variabel Random
20
q
Dua variabel random X dan Y
q Ingin diketahui perilaku variabel X yang bergantung pada variabel Y
n Distribusi X jika Y = y0
Distribusi Bersyarat (
Conditional Distributions
)
21(
)
( )
( )
(
)
(
)
(
)
(
)
( )
( )
(
)
( )
y p y x p y x p y p y x p y y x p x S y x p S y R x t t p t t x p S y x p Y Y X Y X Y Y X Y X R XY S Y S XY i Y X , dituliskan sering lebih yang , d dalam di dalam di dalam di prob d d , dalam di , 0 0 , 0 , , = = = = =∫
∫
∫
http://istiarto.staff.ugm.ac.id
Independence
27-Apr-15 Variabel Random
22
q
Variabel random X dan Y
q X dan Y independence jika
q Joint probabilities
n Perkalian densitas marginal kedua variabel
( )
( )
x y p( )
x p y y x p X Y X Y X = fungsi bukan(
x y)
p( )
x p( )
y pX,Y , = X ⋅ YContoh
23 Temperatur udara, T°C 22-24 24-26 26-28 28-30 30-32 32-34 el emb ab an r el a tif , H % 0 – 20 2 4 6 2 2 1 20 – 40 4 8 12 30 6 9 40 – 60 5 15 30 60 30 20 60 - 80 3 7 9 25 17 11 80 - 100 1 0 2 12 8 3Data jumlah hari yang memiliki temperatur udara rerata (T°C) dan kelembaban udara relatif (H%) di suatu stasiun klimatologi
http://istiarto.staff.ugm.ac.id
Contoh
27-Apr-15 Variabel Random
24
q
Dari tabel temperatur udara dan kelembaban udara tsb.
q pdf (gabungan)
q pdf marginal dan cdf marginal temperatur udara rerata
q pdf marginal dan cdf marginal kelembaban udara relatif
q probabilitas temperatur udara berkisar pada 28°C s.d. 30°C
q probabilitas temperatur udara berkisar pada 28°C s.d. 30°C pada saat kelembaban udara relatif 60% s.d. 80%