Professional Documents
Culture Documents
(d) With n=5, explicitly list the elements in the event {Y = 3}.
Answer: n different
P coins are tossed and Xi = is the score for coin i.
Furthermore, Y = ni=1 Xi = Number of heads
2. Suppose that two fair, standard dice are tossed and the sequence of
scores (X1 , X2 ) recorded. Let Y = X1 + X2 , denote the sum of the
scores, U = min(X1 , X2 ), the minimum score, and V = max(X1 , X2 )
the maximum score.
k 1 2 3 4 5 6
(c) 11 9 7 5 3 1
P(U=k) 36 36 36 36 36 36
k 1 2 3 4 5 6
(d) 1 3 5 7 9 11
P(V=k) 36 36 36 36 36 36
1 2
(e) P (i, i) = 36
,i = 1, 2, 3, 4, 5, 6 and P (i, j) = 36
,i < j = 2, 3, 4, 5, 6
###################################################################
# S u p p ose t h a t two f a i r , s t a n d a r d d i c e a r e t o s s e d and t h e s e q u e n c e
# o f s c o r e s ( X 1 , X 2 ) a r e r e c o r d e d . L et Y=X 1+X 2 , d e n o t e t h e sum
# o f t h e s c o r e s , U=min ( X 1 , X 2 ) , t h e minimum s c o r e , and
# V=max ( X 1 , X 2 ) t h e maximum s c o r e .
#
# f i l e : p r o b r v r o l l i n g d i c e .R
###################################################################
library ( gtools )
library ( tidyverse )
# a ) Find t h e p r o b a b i l i t y d e n s i t y f u n c t i o n o f ( X 1 , X 2 ) .
# expand . g r i d ( ) c r e a t e a d a t a fr am e fr om a l l c o m b i n a t i o n s o f t h e
# s u p p l i e d v e c t o r s or f a c t o r s .
d e n s i t y . X1 . X2 <−
p e r m u t a t i o n s ( n = 6 , r = 2 , v = 1 : 6 , r e p e a t s . a l l o w e d = TRUE) %>%
a s t i b b l e ( ) %>%
mutate ( p r ob = 1 / 3 6 )
# b ) Find t h e p r o b a b i l i t y d e n s i t y function o f Y.
d e n s i t y . Y <− d e n s i t y . X1 . X2 %>%
mutate (Y = V1+V2 ) %>%
g r o u p b y (Y) %>%
mutate ( p r ob . Y = sum ( p r ob ) ) %>%
s e l e c t (Y, p r ob . Y) %>%
unique ( )
# c ) Find t h e p r o b a b i l i t y d e n s i t y function o f U.
d e n s i t y . U <− d e n s i t y . X1 . X2 %>%
r o w w i s e ( ) %>%
mutate (U = min ( V1 , V2 ) ) %>%
g r o u p b y (U) %>%
mutate ( p r ob . U = sum ( p r ob ) ) %>%
s e l e c t (U, p r ob . U) %>%
unique ( )
# d ) Find t h e p r o b a b i l i t y d e n s i t y function o f V.
d e n s i t y . V <− d e n s i t y . X1 . X2 %>%
r o w w i s e ( ) %>%
mutate (V = max ( V1 , V2 ) ) %>%
g r o u p b y (V) %>%
mutate ( p r ob . V = sum ( p r ob ) ) %>%
s e l e c t (V, p r ob . V) %>%
unique ( )
# e ) Find t h e p r o b a b i l i t y d e n s i t y f u n c t i o n o f (U, V ) .
d e n s i t y .UV <− d e n s i t y . X1 . X2 %>%
r o w w i s e ( ) %>%
mutate (UV = p a s t e ( min ( V1 , V2 ) , max ( V1 , V2 ) ) ) %>%
g r o u p b y (UV) %>%
mutate ( p r ob .UV = sum ( p r ob ) ) %>%
s e l e c t (UV, p r ob .UV) %>%
unique ( )
# c ) Find t h e p r o b a b i l i t y d e n s i t y f u n c t i o n o f U .
# a p p l y ( ) r e t u r n s a v e c t o r o r a r r a y o r l i s t o f v a l u e s o b t a i n e d by
# a p p l y i n g a f u n c t i o n t o m a r g i n s o f an a r r a y o r m a t r i x .
u <− a p p l y ( x1 x2 , 1 , min )
u d e n s <− t a b l e ( u ) / 3 6
u dens
# e ) Find t h e p r o b a b i l i t y d e n s i t y f u n c t i o n of (U, V ) .
uv <− c b i n d ( x1 x2 , u , v )
uv
#
u v d e n s <− t a b l e ( uv [ , 3 ] , uv [ , 4 ] ) / 3 6
uv dens
Consider an urn with 100 balls, where are 30 balls of them are red. 20
balls are randomly drawn and let X be the number of red drawn balls.
(a) Determine the distribution of X if the balls are drawn with resp.
without replacement.
(b) Plot the density of X.
(c) Generate a sample of size 20 of values of X.
(d) Compute P (5 < X < 15).
(e) Determine the 25% quantile, the median and the 75% quantile of
X.
Answer:
# w i t h r e p l a c e m e n t : X ˜ B( n =20 ,p = 0 . 3 )
# p l ot of the d en si t y
k <− 0 : 2 0
p l o t ( k , dbinom ( k , 2 0 , 0 . 3 ) , t y p e = ”h ” , main =”B( n =20 ,p = 0 . 3 ” , x l a b =”x ” ,
y l a b =” d e n s i t y ” )
# sam p l e o f s i z e 20
rbinom ( n =20 , s i z e = 2 0 , p r ob = 0 . 3 )
# P( 5 < X < 1 5 )
sum ( dbinom ( 6 : 1 4 , s i z e = 2 0 , p r ob = 0 . 3 ) )
pbinom ( 1 4 , s i z e = 2 0 , p r ob = 0 . 3 ) − pbinom ( 5 , s i z e = 2 0 , p r ob = 0 . 3 )
# quantile
qbinom ( c ( 0 . 2 5 , 0 . 5 , 0 . 7 5 ) , s i z e = 2 0 , p r ob = 0 . 3 )
# p l ot of the d en si t y
k <− 0 : 2 0
p l o t ( k , d h yp er ( k ,m=30 ,n=70 , k = 20) , t y p e = ”h ” , main =”H( n =20 ,M=30 ,N=100” ,
x l a b =”x ” , y l a b =” d e n s i t y ” )
# sam p l e o f s i z e 20
r h y p e r ( 2 0 ,m=30 ,n=70 , k=20)
# P( 5 < X < 2 0 )
sum ( d h yp er ( 6 : 1 4 ,m=30 ,n=70 , k = 20) )
p h yp er ( 1 4 ,m=30 ,n=70 , k=20) − p h yp er ( 5 ,m=30 ,n =70 ,k =20)
# quantile
qh yp er ( c ( 0 . 2 5 , 0 . 5 , 0 . 7 5 ) ,m=30 ,n =70 ,k =20)
Thus, we get
p0 · (0 − 1) + p1 · (2 − 1) + p2 · (3 − 1) + p3 · (4 − 1) = n · p − p0 =
3
3 · 16 − p0 = 21 − 56 = −0.0787
######################################################
library ( tidyverse )
# c r e a t e a t i b b l e w i t h t h e d i f f e r e n t ou t com es and t h e i r
# probabilities
R <−
tibble (
k =0:3
)
R <−
R %>%
mutate ( p r ob=c h o o s e ( 3 , k ) ∗ ( 1 / 6 ) ∗ ∗ k ∗ ( 5/6) ∗∗ ( 3 − k ) ) %>%
mutate ( r = i f e l s e ( k==0,−1,−1+1+k ) )
R
# expected value
e x p r <− sum (R [ , 2 ] ∗ R [ , 3 ] )
exp r
Increasing the number of tickets with the same ratio of rivets, second
and firts prizes we get
fp sp riv pa-worepl pa-wrepl pb-worepl pb-wrepl pc-worepl pc-wrepl
1 4 15 0.0677 0.0879 0.0406 0.0338 0.0880 0.0791
6 24 90 0.0853 0.0879 0.0348 0.0338 0.0804 0.0791
11 44 165 0.0865 0.0879 0.0343 0.0338 0.0798 0.0791
16 64 240 0.0870 0.0879 0.0341 0.0338 0.0796 0.0791
21 84 315 0.0872 0.0879 0.0340 0.0338 0.0795 0.0791
26 104 390 0.0873 0.0879 0.0340 0.0338 0.0794 0.0791
31 124 465 0.0874 0.0879 0.0340 0.0338 0.0794 0.0791
36 144 540 0.0875 0.0879 0.0339 0.0338 0.0793 0.0791
41 164 615 0.0875 0.0879 0.0339 0.0338 0.0793 0.0791
46 184 690 0.0876 0.0879 0.0339 0.0338 0.0793 0.0791
51 204 765 0.0876 0.0879 0.0339 0.0338 0.0793 0.0791
Mention that the results in case of drawing ticktes with replacement do
not not depend on the total number of tickets, since the ratios rivets,
second and first prizes are identical. Furthermore mention that the
results without replacement tends to the resuls with replacement.
####################################################################
# C o n s i d e r a l o t t e r y o f 20 t i c k e t s . Among t h e t i c k e t s t h e r e
# a r e a f i r s t p r i z e , 4 s e c o n d p r i z e s and 15 r i v e t s . 5 t i c k e t s
# a r e drawn fr om t h e l o t t e r y drum . D et er m i n e t h e p r o b a b i l i t y t h a t
# a ) 2 r i v e t s h ave b een drawn .
# b ) 2 r i v e t s , 2 s e c o n d p r i z e s and t h e f i r s t p r i z e wer e drawn .
# c ) The 5 t h l o t drawn i s t h e f i r s t l o t wh i ch i s n ot a r i v e t .
# C a l c u l a t e t h e p r o b a b i l i t i e s i f t h e l o t s a r e drawn w i t h r e p l a c e m e n t .
# What r e s u l t s w i l l be o b t a i n e d i f t h e number o f l o t s i n t h e drum i s
# i n c r e a s e d ( with equ al p r o p o r t i o n s o f f i r s t p r i z e s , second p r i z e s
# and r i v e t s ) ?
#
# f i l e : p r o b r v r i v e t .R
#####################################################################
library ( tidyverse )
f p <− 1
sp <− 4
r i v <− 15
n <− 5
# without replacement
# b) g e ne r a l is e d hypergeometric d i s t r i b u t i o n
pb <− c h o o s e ( r i v , 2 ) ∗ c h o o s e ( sp , 2 ) ∗ c h o o s e ( fp , 1 ) /
c h o o s e ( r i v+f p+sp , n )
pb
# c ) geometric d i s t r i b u t i o n
pc <− ( c h o o s e ( r i v , n − 1)/ c h o o s e ( f p+sp+r i v , n − 1)) ∗
( f p+sp ) / ( f p+sp+r i v −(n − 1))
pc
# r e s u l t s w i t h and w i t h o u t r e p l a c e m e n t f o r i n c r e a s i n g
# number o f t i c k e t s b u t c o n s t a n t p r o p o r t i o n o f t h e
# prizes
r e s u l t s <−
tibble (
m = s e q ( fr om =1 , t o =55 , by = 5) ,
f p = m,
sp = 4 ∗m,
r i v = 15 ∗m,
p a w o r e p l = d h yp er ( 2 , r i v , f p+sp , 5 ) ,
p a w r e p l = dbinom ( 2 , 5 , r i v / ( r i v+f p+sp ) ) ,
p b w o r e p l = c h o o s e ( r i v , 2 ) ∗ c h o o s e ( sp , 2 ) ∗ c h o o s e ( fp , 1 ) /
c h o o s e ( r i v+f p+sp , 1+ 2+ 2) ,
p b w r e p l = f a c t o r i a l (1+2+2)/
( f a c t o r i a l (2)∗ f a c t o r i a l (2)∗ f a c t o r i a l (1 ))∗
( r i v / ( r i v+f p+sp ) ) ˆ 2 ∗ ( sp / ( r i v+f p+sp ) ) ˆ 2 ∗
( f p / ( r i v+f p+sp ) ) ˆ 1 ,
p c w o r e p l = ( c h o o s e ( r i v , 5 − 1) / c h o o s e ( f p+sp+r i v , 5 − 1 ) ) ∗
( f p+sp ) / ( f p+sp+r i v − (5 − 1)) ,
p c w r e p l = dgeom ( 5 − 1 , ( f p+sp ) / ( f p+sp+r i v ) )
)
results
1 1 1
3 4 3 4 3 4
Answer:
1 connection between node i and node j is ok
A: With vij =
0 connection between node i and node j is defect
and P (vij = 1) = α for every i, j we define the probability space
The diagram shows that P (network A is ok) < P (network B is ok) <
P (network C is ok) for every α ∈ (0, 1).
###########################################################
# C o n s i d e r a n et wor k o f 3 com p u t er s . A n e t w o r k s f a i l s i f a t
# l e a s t on e com p u t er i s i s o l a t e d . The e v e n t s t h a t a c o n n e c t i o n
# f a i l s a r e i n d e p e n d e n t and t h e p r o b a b i l i t y t o f a i l i s 1− a l p h a .
# Compare t h e t o p o l o g i e s A, B and C w i t h r e s p e c t t o t h e i r
# reliabilities .
# L et PA, PB and PC t h e p r o b a b i l i t i e s t h a t t h e n et wor k i s ok
# and a l p h a t h e p r o b a b i l i t y t h a t on e c o n n e c t i o n i s ok .
#
# f i l e : p r o b r v n e t w o r k r e l i a b i l i t y .R
############################################################
library ( tidyverse )
a l p h a <− 0 . 9
# r e l i a b i l i t i e s of the t o p o l o g i e s
PA <− f u n c t i o n ( a l p h a ) {
r e t u r n ( alpha ˆ3)
}
PB <− f u n c t i o n ( a l p h a ) {
r e t u r n ( a l p h a ˆ3 ∗ (2 − a l p h a ) ˆ 3 )
}
PC <− f u n c t i o n ( a l p h a ) {
r e t u r n ( 1 6 ∗ a l p h a ˆ3 ∗ (1 − a l p h a )ˆ3+15 ∗ a l p h a ˆ4 ∗ (1 − a l p h a )ˆ2+
6 ∗ a l p h a ˆ5 ∗ (1 − a l p h a )+ a l p h a ˆ 6 )
}
(a) Generate a dataframe with the columns n and pn and find the
minimum n with pn ≥ 0.99
dis < −
tibble( n=seq(1,4000), p=1-phyper(2,500,3500,n)) min(which(dis$p >=0.99))
You will n=64. If you buy 64 tickets you must pay 64 · 1.5 = 96
Euro but you will get a return of 3 · 142 = 426 Euro with a
probability of 0.99.
The total value of all prizes is 500 · 142 = 71000 Euro. If all tickets
are sold the company will get 400 · 1.5 = 6000 Euro. Certainly the
company have not paid the regular prize for all prizes.
(b) dis %>%
filter(n <= 75) %>%
ggplot(mapping=aes(x=n,y=p))+
geom point()+
geom abline(slope = 0, intercept = 0.99)
0.75
0.50
p
0.25
0.00
0 20 40 60
n
(a) Find the probability that the job requires more than 30 minutes.
(b) Given that the job is not finished after 30 minutes, find the prob-
ability that the job will require more than 15 additional minutes.
Answer:
R 60
(a) f (x) = 1
b−a
= 1
60−15
= 1
45
i.e. 1
30 45
dx = 1
45
· [x]60
30 =
30
45
= 2
3
(b) X = total working time and we become
60 1 1
·[x]60 15
R
P (X>45) dx
P (X > 45|X > 30) = P (X>30)
= R45
60
45
1 = 45
30
45
= 45
30 = 0.5
30 45 dx 45 45
(a) From
2 2
2
x3 4c
Z Z
2 2
1= cx(2 − x)dx = c (2x − x )dx = c(x − ) =
0 0 3 0 3
we get c=0.75.
(b) If 0 ≤ x ≤ 2 we have
x
x
Z
F (x) = 0.75 u(2 − u)du = 0.75x2 (1 − ) ⇒
0 3
0 0≤x
x 2
F (x) = 0.75x (1 − 3 ) 0 < x ≤ 2
1 2<x
(c)
9 1 1 1 11
P (0.5 < X ≤ 1.5) = F (1.5)−f (0.5) = 0.75( (1− )− (1− )) =
4 2 4 6 16
(d)
2
2
2x3 x4
Z
2
E(X) = 0.75 x (2 − x)dx = 0.75 ( − ) = 1
0 3 4 0
Z 2 2
2 3 x4 x5
E(X ) = 0.75 x (2 − x)dx = 0.75 ( − ) = 1.2 ⇒
0 2 5 0
V ar(X) = E(X ) − (E(X))2 = 1.2 − 1 = 0.2
2
Normal Distributions
1. R offers a number of functions for calculating with normal distributions.
Call them up in the RStudio Help area with the keyword Normal and
familiarize yourself with them.
R has four in built functions to generate normal distribution.
# The f u n c t i o n dnorm ( ) g i v e s h e i g h t o f t h e p r o b a b i l i t y d e n s i t y
# a t e a c h p o i n t f o r a g i v e n mean and s t a n d a r d d e v i a t i o n . Apply
# t h i s f u n c t i o n t o c r e a t e a p l o t t h e d e n s i t y o f t h e n or m al
# d i s t r i b u t i o n w i t h mean 2 . 5 and s t a n d a r d d e v i a t i o n 1 . 5 .
x <− s e q ( − 10 , 1 0 , by = . 1 )
y <− dnorm ( x , mean = 2 . 5 , sd = 1 . 5 )
p l o t (x , y , type = ” l ”)
# pnorm ( ) g i v e s t h e p r o b a b i l i t y o f a n o r m a l l y d i s t r i b u t e d random
# v a r i a b l e t o be l e s s t h a t t h e v a l u e o f a g i v e n number ( c u m u l a t i v e
# d i s t r i b u t i o n f u n c t i o n ) . Apply t h i s f u n c t i o n t o c r e a t e a p l o t o f
# t h e n or m al d i s t r i b u t i o n f u n c t i o n w i t h mean 2 . 5 and s t a n d a r d
# deviation 1. 5.
x <− s e q ( − 10 , 10 , by = . 1 )
y <− pnorm ( x , mean = 2 . 5 , sd = 1 . 5 )
p l o t (x , y , type = ” l ”)
p l o t (x , y , type = ” l ”)
# a ) P e t e r a r r i v e s b e f o r e P au l
p <− pnorm ( 0 , m1−m2 , s q r t ( s 1 ˆ2+ s 2 ˆ 2 ) )
p
# b ) b ot h men a r r i v e w i t h i n 3 m i n u t e s o f noon
p <− ( pnorm ( 12+ 3/60 , m1 , s 1 ) − pnorm ( 12 − 3/60 , m1 , s 1 ) ) ∗
( pnorm ( 12+ 3/60 , m2 , s 2 ) − pnorm ( 12 − 3/60 , m2 , s 2 ) )
p
mu m <− 1.2
sigma m <− 0 . 3
mu p <− 0.6
sigma p <− 0 . 2
(a) Calculate the expectation and the variation of the number of de-
fect machines in a lot of 1000 randomly chosen machines.
(b) The producer is thinking about guaranteeing that not more than
110 machines are defect i such a lot. With which approximate
probability can this guarantee promise be kept?
(c) Each defect machine provokes an extra cost of 100 euro. The
producer considers to buy a better module C (at a higher price)
but with an error rate of is 1%.
How high can the additional cost for each machine for module
C be, in order to say that it is (according to the expectation)
profitable to buy the more expensive module C?
Answer:
# a ) C a l c u l a t e t h e e x p e c t a t i o n and t h e v a r i a t i o n o f t h e number o f
# d e f e c t m ach i n es i n a l o t o f 1000 r an d om l y c h o s e n m ach i n es .
n <− 1000
pa <− 0 . 0 1
pb <− 0 . 0 1
pc <− 0 . 0 5
pcp <− 0 . 0 2
# p r ob . o f no e r r o r
p n o e r r o r <− (1 − pa ) ∗ (1 − pb ) ∗ (1 − pc ) ∗ (1 − pcp )
# expected value
e x p n d e f <− n ∗ (1 − p n o e r r o r )
# variance
v a r n d e f <− n ∗ (1 − p n o e r r o r ) ∗ p n o e r r o r
p no error ; exp n def ; var n def
# b ) The p r o d u c e r i s t h i n k i n g ab ou t g u a r a n t e e i n g t h a t n ot more
# t h an 110 m ach i n es a r e d e f e c t i n su ch a l o t . With wh i ch a p p r o x i m a t e
# p r o b a b i l i t y can t h i s g u a r a n t e e p r o m i s e be k e p t ?
pbinom ( 1 1 0 , n ,1 − p n o e r r o r ) # 0 . 9 9 3 6 7 8 2
# a p p r o x i m a t i o n by a n or m al d i s t r i b u t i o n
# without c o n t i n u i t y c o r r e c t i o n
pnorm ( 1 1 0 , mean=e x p n d e f , sd =( v a r n d e f ) ˆ 0 . 5 ) # 0 . 9 9 4 0 4 2 9
# with c o n t i n u i t y c o r r e c t i o n
pnorm ( 1 1 0 . 5 , mean=e x p n d e f , sd =( v a r n d e f ) ˆ 0 . 5 ) # 0 . 9 9 4 9 2 4 2
3. An airline knows that over the long run, 90% of passengers who reserve
seats show up for their flight. On a particular flight with 300 seats, the
airline accepts 324 reservations.
Answer: Let n be the number of flight tickets, which are sold, and
let Yi = 1, if the person having flight ticket i shows up, and otherwise
Yi = 0, 1 ≤ i ≤ n.
Yi are Bernoulli-distributed stochastic variables with P (Yi = 0) = 0.1 =
1 − P (Yi = 1) for all 1 ≤ i ≤ n.
Let Sn = ni=1 Yi be the number of passengers showing up. We assume
P
that the passengers show up independent of each other. In this case
we have E[Sn ] = n · E[Y1 ] und V ar(Sn ) = n · V ar(Y1) with E[Y1 ] =
300.5 − n · 0.9
√
u0.99 =
0.09 · n
0.09 · u0.99 · n = 300.52 − 2 · 0.9 · 300.5 · n + 0.92 · n2
2
# a ) Assuming t h a t p a s s e n g e r s show up i n d e p e n d e n t l y o f e a c h o t h e r ,
# what i s t h e c h a n c e t h a t a p a s s e n g e r w i t h a r e s e r v a t i o n do n ot
# get a seat ?
n <− 3 2 4 ; p <− 0 . 9
# exact value
p e x <− 1− pbinom ( 3 0 0 . 5 , n , p )
p ex
# ap p r ox . v a l u e
m <− n ∗ p ; s <− s q r t ( n ∗ p ∗ (1 − p ) )
p ap p <− 1−pnorm ( 3 0 0 . 5 ,m, s )
p ap p
# e x a c t bound
n <− s e q ( 3 0 1 , 3 5 0 , 1 )
p e x <− pbinom ( 3 0 0 , n , p )
o e x <− n [ max ( wh i ch ( p e x >= 0 . 9 9 ) ) ]
o ex
# ap p r ox . bound
m <− n ∗ p ; s <− s q r t ( n ∗ p ∗ (1 − p ) )
p ap p <− pnorm ( 3 0 0 . 5 ,m, s )
o ap p <− n [ max ( wh i ch ( p ap p >= 0 . 9 9 ) ) ]
o ap p
# a l t e r n a t i v e s o l u t i o n : s o l v i n g the equation
# ( 3 0 0 . 5 − p ∗ n ) ˆ 2 = p ∗ (1 − p ) ∗ u ˆ2 0 . 9 9 ∗ n
# q u a d r a t i c e q u a t i o n : n ˆ2 + a ∗ n +b =0
# s o l u t i o n w i t h o u t s o l v i n g t h e ab ove e q u a t i o n
library ( tidyverse )
tibble (
n = 300:324 ,
p = 1− pbinom ( 3 0 0 , s i z e = n , p r ob = 0 . 9 ) ,
p . app = 1−pnorm ( 3 0 0 . 5 , mean = n ∗ 0 . 6 , sd = s q r t ( n ∗ 0 . 9 ∗ 0 . 1 ) )
) %>% f i l t e r ( p >= 0 . 0 1 ) %>% f i l t e r ( n == min ( n ) ) # n < 3 2 1 ! !
p0 <− 0 . 2
p1 <− 0 . 7
p2 <− 0 . 1
n <− 1000
# expected values
EX <− 0 ∗ p0 + 1 ∗ p1 + 2 ∗ p2
EX2 <− 0ˆ2 ∗ p0 + 1ˆ2 ∗ p1 + 2ˆ2 ∗ p2
# variance
VarX <− EX2 − (EX) ˆ 2
EX
VarX
# 99% q u a n t i l e
qnorm ( 0 . 9 9 , n ∗EX, ( n ∗ VarX ) ˆ 0 . 5 ) # 9 3 9 . 6 1 6 3