Chapter 5
Sum or Random Variable and Large-Term Average
Random signal and Process 輔仁大學 電機工程系所
Outline
• Expected value (Mean) of Random Variable
— Sum of independent identically distribution
— Sample Mean
— Chebyshev inequality
• Central Limit Theorem
— CDF, PDF, Proof
• Confidence Interval
— Sample mean, unknow Mean and know variance
— Unknow Mean and variance
— Chi-square R.V. with (n-1) degrees of freedom
— St udent ’ s t - di st r i but i on wi t h
(n-1) degrees of freedom5 - 2 Chapter 5: Sum of Random Variable and
Large-Term Average Dr. Sheng-Chou Lin
Expected value (Mean) of Random Variable
: a sequence of R.V.
: Sum of R.V.
•Meanof
•Variance of , X1 X2 Xn
Sn = X1 +X2+ X+ n Sn
E X1+X2+Xn E X= E X1 + E X2 + + n Sn
Z = X+Y E Z E X= E Y+ VAR Z E Z E= – 2 Z
E X+Y–E X E Y– 2
=
VAR X VAR Y+ 2COV X Y+
= 0
Z2X2+Y2
VAR X1+X2+Xn
VAR X k COV XjXk
k=1
n j=1
n+
k=1
n=
jk
-
If are indep.-
sum of indep., identically dist. (iid)•pdfof : are indep.
For n=2,
X1 X2 Xn
VAR X1+X2+Xn VAR X k
k=1
n=
E S E Xn = 1+X2+Xn n= VAR S AR Xn = 1+X2+Xn n= 2
Sn X1 X2 Xn Z = X+Y
Z E ew = jwZ E e= jwXejwY E ejwX E e+ jwY
= = Xw Yw
fZz
= fX fx Yy
Random signal and Process 輔仁大學 電機工程系所
Expected value (Mean) of Random Variable
• For n independent R.V.
- -
-
Sum of n iid R.V.’sEx: Sn: Sum of n independentGaussian R.V.’s with m1, ... , mn, and 12,...,n2
Sn: Gaussian R.V. with m = m1+ m2... + mn and 2=12+. .. +n2
S
n w X
1w X
nw
= fS
n z –1 X
1w X
nw
=
S
nw = Xw 2
X
k ew = jw mk–jw2k2 2
S
nw ejw mk–jw2k2 2
k=1
n=
ejw m1+ m+ n jw– 212 + + n2 2
=
Ex: A sum of n i.i.d. Exponential R.V. with
m Erlang R.V.
Xw
jw– ---
= S
nw
jw– --- n
=
jw– --- m
Exponential
mErlang R.V
5 - 4 Chapter 5: Sum of Random Variable and
Large-Term Average Dr. Sheng-Chou Lin
Sample Mean
: n i.i.d R.V’s with the same pdf
with .
• Sample mean
estimate
•Mean square errorof the sample mean about= variance of Mn
X1 X2 Xn E X =
Mn 1
n--- Xj
j=1
n=
E X
E M E 1n n--- Xj
j=1
n n---1 E X j j=1
n = = =
MSE = E Mn–2 1
n2
---VAR S nn 2 n2 ---
=
=
2 ---n
= n2
Chebyshev inequality
Ex: Measurement ; : desired voltage, : Noise voltage with .
• How many measurements P X m– a 2
a2 ---
P Mn –E M n 2n
2 ---
P Mn – 1 2 n2 ---
– = 1–
select n Xj = V+Nj V
Nj 1V=
P Mn –V 1 2 n2 ---
– 1 1
n---
– 0.99
= =
1V 1V= at least
n100
Snn
fM
nm
2n
Random signal and Process 輔仁大學 電機工程系所
Central Limit Theorem
: n i.i.d R.V’s with finite mean and ;
• nlarge; cdf, pdf of Sn Gaussian
• ;
,
standard Normal
X1 X2 Xn
2 Sn = X1+X2+ X+ n
E X = VAR X = 2
E S nn = VAR S nn = 2 S
n = n
Zn Sn–n
--- n
=
Ex:Orders ata restaurantare i.i.d R.V.’s with= $8, = $2
P[First 100 customers spend more than $840]
• ,
P[Total spent by all customers> $1000]=90%
;
n 8 100= =800 n2 =4100 =400 P S100840 P Z= 100840 800– 20
Q 2
= 2.2810–2
P 780 S100820 P= –1Z1001 1 2Q 2–
= 0.682
P S1001000 P Z= 1001000 8n– 2 n 1000 8n–
---2 n =–1.2815
8n 1.2815– 2 n–1000= 0n129 Q x 0.1=
x=1.2815
5 - 6 Chapter 5: Sum of Random Variable and
Large-Term Average Dr. Sheng-Chou Lin
Central Limit Theorem (CDF)
n = 5 Bernoulli with p = 1/2
n = 25 Bernoulli with p = 1/2
n = 5 Exponential with p = 1/2
n = 50 Exponential with p = 1/2
Random signal and Process 輔仁大學 電機工程系所
Central Limit Theorem (PDF)
n = 5 Binomial with p = 1/2
n = 25 Binomial with p = 1/2
n = 5 Discrete uniform from the set
5 1 2=
=2.5
25 1 2=
=12.5
(0,1,2...9}
nlarge; pdf of Sn Gaussian
; ,
E X = VAR X = 2 E S nn = S
n
2 =n2
5 - 8 Chapter 5: Sum of Random Variable and
Large-Term Average Dr. Sheng-Chou Lin
Central Limit Theorem (Proof)
Zn Sn–n
--- n 1
n--- Xk–
k=1
n= =
Z
n E ew jwZn E jw
n--- Xk–
k=1
n
= = exp
E eiw Xk– n
k=1
n= E eiw Xk– n
k=1
n=
E eiw X– n
n
= ex 1 x x2
2! --- x3
3! ---
+ + + +
=
E 1 jw
n--- X– jw 2 2!n2
--- X–2 R w
+ + +
1 jw
n--- EX– jw 2 2!n2
--- E X–2E R w
+ + +
=
1 w2
2n--- E R w+
– 1 w–22n
=
n
, ,
For Gaussian R.V.
• Characteristic Function of Standard Gaussian as n goes to infinity
• Usually,n20, pdf or cdf of
Gaussian R.V.
1+x
n = 1+nx+1 w–22 ex = 1+x x = –w22
Z
n 1 ww 2 2n---
–
n
= e–w22
X ew = jw m jw– 2k2 2e–w22
m=02=1
Z
nw
Zn
Random signal and Process 輔仁大學 電機工程系所
Confidence Interval
• Sample mean estimator ,
, How good
• Sample variance estimator
Confidence Interval
• Interval
-
Confidence Interval-
The width of a confidence interval is a measure of the accuracyMn E X =
Mn 1
n--- Xj
j=1 n
= Mn
Vn2 1 n –1
--- Xj–Mn2
j=1 n
=
l X u X
P l X u X 1 = – 1–
100 %
•Case 1: unknow Mean and know variance
-
-
Confidential Intervalconfidence interval for
-
Depends on , , ,P –Z Mn–n --- Z n
= 1 2Q z–
P Mn z
---n
– Mn z
---n
+
=
true mean
sample mean
2Q Z= 2
z 2 ---n
– Mn z 2 ---n
+ 1–
100 %
Mn 2 m 1–
5 - 10 Chapter 5: Sum of Random Variable and
Large-Term Average Dr. Sheng-Chou Lin
Confidence Interval
Ex: ; : unknown; : random noise, Gaussian pdf with
• 95% confidence interval for if n =100, sample m Sample mean
-
, ,X = v+N v N
2 = 1V v
Mn = 5.25V
5 %= 2 = 0.025 z 2 = 1.96
Confidence 5.25 1.96 1
---10
– 5.25 1.96 1
---10
+
= 5.05 5.45
= 95% fall in this area
• Case 1:unknow Mean and know variance
-
-
Confidential Intervalconfidence interval for
-
Depends on , , ,P –Z Mn–n --- Z n
= 1 2Q z–
P Mn z
---n
– Mn z
---n
+
=
true mean
sample mean
2Q Z= 2
z 2 ---n
– Mn z 2 ---n
+ 1–
100 %
Mn 2 m 1–
2
2
Random signal and Process 輔仁大學 電機工程系所
Confidence Interval
•Case 1: unknow Mean and variance : iid Gaussian R.V. with unknow mean and unknown variance
W :student’s t-distribution with (n-1) degrees of freedom
Xj's
2
P Mn z
---n
– Mn z ---n
+
P Mn zVn ---n
– Mn zVn ---n
+
=
sample variance
W Mn– Vnn
--- n Mn– Vn ---
= =
Mn–
n n 1–
2Vn2
n 1–
1 2 ---
=
zero-mean unit-variance Gaussian
Chi-square R.V. with (n-1) degree of freedom
• pdfofstudent’s t-distribution
fn 1–y n 2
n 1– 2n 1– --- 1 y2
n 1– ---
+
–n 2
=
P Mn zVn ---n
– Mn zVn ---n
+
fn 1–yy d
–z
z= = 1 2F– n 1– –z
Gaussian pdf Student’s pdf n=4 and n=8
5 - 12 Chapter 5: Sum of Random Variable and
Large-Term Average Dr. Sheng-Chou Lin
Confidence Interval
• Confidential Interval 1-
-
confidence interval for mean-
Table 5.2:Ex: A certain device, lifetimeGaussian;
8 devices are tested
-
sample mean10days-
sample variance4days-
99% confidence interval , 2F= n 1––z 2n 1– 1–
100 %
Mn z 2 n 1– Vn
--- Mn n z 2 n 1– Vn ---n
+ –
=
z 2 n 1–
n 1– = 7 z 2 7 = 3.499
Confidence Interval 10 3.499 2
---8
– 10 3.499 2 ---8
+ =7.53 12.47