Professional Documents
Culture Documents
LSW 2011/04/13 Rev Contact: lsw@9.cn: X BNP Prob Density F X CP P
LSW 2011/04/13 Rev Contact: lsw@9.cn: X BNP Prob Density F X CP P
Contact: lsw@9.cn
X ~ B(n, p)
prob. density : f ( x) Cxn p x (1 p)n x
HT 1
Lsw 2011/04/13 rev
Contact: lsw@9.cn
C35 C25
Cnn x p x (1 p)n x
HT 2
Lsw 2011/04/13 rev
Contact: lsw@9.cn
m
P( Hypergeometric : X x) Cxn p x (1 p)n x for large N , p
N
15000
C10
X ~ B(n, p)
E ( X ) np
Var ( X ) np(1 p)
See that E ( X ) E ( X 1 ) E ( X 2 ) E ( X n ) np
n
Var ( X ) Var ( X i ) (12 p p 2 ) np(1 p)
i 1
HT 3
Lsw 2011/04/13 rev
Contact: lsw@9.cn
P( X 1) P( X )
1 and 1
P( X ) P( X 1)
P( X 1) C XN1 p x 1 (1 p) N x 1 (n x)
N x
p
P( X ) C X p (1 p)
N x
( x 1)(1 p)
req. prob P(having 2 students overweight in first 9 students) P(the last is overweight )
C29 p 2 (1 p)7 p
HT 4
Lsw 2011/04/13 rev
Contact: lsw@9.cn
x e
P( X x)
x!
np
x e
Cxn p x (1 p) x
x!
HT 5
Lsw 2011/04/13 rev
Contact: lsw@9.cn
One could treat the two books as one book and reckon the total number 8! 2!
9!
Ways (Ways 3! 9!, that is, if we care their ordering again, we should multiply 3! to get 9!)
3!
9!
Ways
6! 3!
HT 6
Lsw 2011/04/13 rev
Contact: lsw@9.cn
(n 1) n ! n
Cnn 1 n (n 1)!
2
n n 1
n n n n n nn1
1 k n 1
1 1
Ckn 1 ( )n 1 C0n ( )n
2 2
1 1
Ckn11 ( )n 1 C1n ( )n
2 2
1 1
Ckn21 ( )n 1 C2n ( )n
2 2
1 1
Ckn31 ( )n 1 C3n ( )n
2 2
n 1 k
1
req. prob. C
i 0
n 1
Cin ( )2 n 1
k i
2
x n
(1 x ) m
(1
x
) (1 mx C2
m 2
x )(1
x x 2
)
r 0
Ckm r Crn Cnmkn
Cn2nk1
req. prob
22 n1
HT 7
Lsw 2011/04/13 rev
Contact: lsw@9.cn
0.5, x 0
P( X x) f ( x) (discrete)
0.5, x 1
0, else
x,0 x 1
f ( x)
1 ,1 x 2
2
1.5
P(0.5 X 1.5) f ( x) dx
0.5
1 1.5 1
x dx dx 0.625
0.5 1 2
HT 8
Lsw 2011/04/13 rev
Contact: lsw@9.cn
f ( x) dx 1
lim F ( x) 1
x
lim F ( x) 0
x
F is continuous
0, else
x,0 x 1
f ( x)
1 ,1 x 2
2
0, else
y
,0 y 2
Wrong approach : f ( y ) 2 , where f ( y ) is the pdf for Y 2 X
1
,2 y 4
2
HT 9
Lsw 2011/04/13 rev
Contact: lsw@9.cn
all y
f ( y) 2 1
b y (b ) dx
a
f ( x) dx
y(a)
f ( x( y ))
dy
dy
b
P(a x b) f ( x) dx
a
y (b ) dx
f ( x( y ))
dy
y(a) dy
P( y (a) y y (b))
dx
f ( x( y ))
dy
0, else
x, 0 x 1 y dx 1
pdf of X : f ( x) ; for y 2 x, x( y ) and
,1 x 2
1 2 dy 2
2
0, else
y 1
,0 y2
pdf of Y : f ( y ) 2 2
1 1
,2 y4
2 2
HT 10
Lsw 2011/04/13 rev
Contact: lsw@9.cn
0, x <0
0, else 2
x, 0 x 1 x ,0 x 1
Since pdf of X : f ( x) P( X x) F ( x) 2
1 , 1 x 2 x ,1 x 2
2 2
1, x 2
0, y 0
2 0, else
y ,0 y 2 y
y ,0 y 2
Y 2 X : cdf of Y : F ( y ) P (Y y ) P ( X ) 8 And so f ( y ) 4
2 y ,2 y 4 1
4 ,2 y4
1, y 4 4
f ( x) 3 x 2 5 x f ( y ) 3 y 2 5 y
f ( x) P( X x)
dF ( x)
f ( x)
dx
HT 11
Lsw 2011/04/13 rev
Contact: lsw@9.cn
( x )2
1
If f ( x) e 2 2
for all x, we say X ~ N ( , 2 )
2
E ( X ) ; Var ( X ) 2
P( X m) f ( x) dx 1; 0
m
X ~ N (, 2 ) X ~ N (0,1)
P( X 13.6 | X ~ N (10,12.3))
13.6 10
P( Z )
12.3
HT 12
Lsw 2011/04/13 rev
Contact: lsw@9.cn
z 1.8814
45 1.8814 13.7 70.8
Denote X i as i th paper.
X1 X 2 X 10 ~ N (450,1876.9)
HT 13
Lsw 2011/04/13 rev
Contact: lsw@9.cn
n
n ! 2 n ( )n
e
x2 n 1
x 1: ln(1 x) x where y x np
2 (n(1 p) y)(np y)
( x )2
1
n x
C p (1 p)
n x
e 2 2
2
x
Cxn p x (1 p)n x
P( X 58)
58
f ( x) dx
P( X 58)
HT 14
Lsw 2011/04/13 rev
Contact: lsw@9.cn
no. of success
proportion of success
no. of expts
p(1 p)
ps ~ N ( p, ) ps np 10
n
no. of success 2
p'
no. of success 4
HT 15
Lsw 2011/04/13 rev
Contact: lsw@9.cn
0.5
n
0.03 0.97
See that ps ~ N (0.03, )
500
0.5
0.04 0.03
a ) P( ps 0.04) P( Z 500 ) 0.88095
0.03 0.97
500
0.5
0.05 0.03
b) P( ps 0.05) P( Z 500 ) 6.38 103
0.03 0.97
500
x 0.5 0.5
p
n n
HT 16
Lsw 2011/04/13 rev
Contact: lsw@9.cn
Central moment : n E (( X )n )
E( X )
2 E (( X )2 )
Var ( X ) sd
( X )3
1 E( )
3
median
6
mode
2
4
old def : 2
4
4
current def : 2 3
4
HT 17
Lsw 2011/04/13 rev
Contact: lsw@9.cn
n
( X i )
define X i 1
to estimate the population mean
n
n
now, E ( X )
n
X GM n X1 X 2 X n
HT 18
Lsw 2011/04/13 rev
Contact: lsw@9.cn
WLOG, set 1
Let S 2
(X i X )2
n
For any two x1 and x2 ,
E[( x1 x2 ) 2 ] Var ( x1 x2 ) [ E ( x1 x2 )]2
Var ( x1 ) Var ( x2 ) 2
Note that ( xi x j ) 2 ( xi 2 2 xi x j x j 2 )
i j i j
2n xi 2( xi ) 2n S
2 2 2 2
i i
1 1
But E ( S 2 ) E{
2n 2
( x x ) } n
i j
i j
2
2
E[
all pairs
( xi x j ) 2 ]
i j
1 n 1
2
2 C2n 1 2
n n
Sˆ 2
( Xi X ) 2
n 1
n
sample sd sd
n 1
n
n 1
X
X i
HT 19
Lsw 2011/04/13 rev
Contact: lsw@9.cn
2
MSE ( X ) E (( X ) 2 ) 2 2 2 E ( X )
1
Var ( X ) 2 (Var ( X 1 ) Var ( X 2 ) Var ( X n ))
n
2
n
X ~ N (, 2 )
X ~ N ( , 2.90172 )
X i
X i
n
HT 20
Lsw 2011/04/13 rev
Contact: lsw@9.cn
X
i
i ~ N ( , n 2 )
2
X ~ N ( , )
n
2
n
2 2
[ 1.96 , 1.96 ]
n n
2 2
[ X 1.96 , X 1.96 ]
n n
2 2
X 1.96 X 1.96
n n
1.96 2.9017 1.96 2.9017
[18.6 ,18.6 ] [16.7, 20.5]
9 9
2 1.96
n
HT 21
Lsw 2011/04/13 rev
Contact: lsw@9.cn
1.96 0.5 102
n
p(1 p) p(1 p)
95% CI :[ p 1.96 , p 1.96 ]
n n
P( X k ) P( X k )
HT 22
Lsw 2011/04/13 rev
Contact: lsw@9.cn
H0
H 0 : p 0.5
H1 : p 0.5
HT 23
Lsw 2011/04/13 rev
Contact: lsw@9.cn
P(type I error ) P(consecutively 10 H / T | p 0.5) ( )10 2 1.953 103
2
HT 24
Lsw 2011/04/13 rev
Contact: lsw@9.cn
X
z
H 0 : 100; H1 : 100
HT 25
Lsw 2011/04/13 rev
Contact: lsw@9.cn
202
Under H 0 , X ~ N (100, )
60
From the sample, X 102.6
Under 5% sig. level , reject H 0 if test statistic z 1.645
102.6 100
test statistic z 1.0070 1.645
202
60
H1 : 100
Under 5% sig. level , accept H 0 as we are not evident enough to show they are more intelligent
HT 26
Lsw 2011/04/13 rev
Contact: lsw@9.cn
HT 27
Lsw 2011/04/13 rev
Contact: lsw@9.cn
HT 28
Lsw 2011/04/13 rev
Contact: lsw@9.cn
39.5 30
P(type I error ) P( Z ) 1.91%
21
39.5 50
P(type II error ) P( Z ) 1.79%
25
HT 29