11 The price of one share of stock in the Pilsdorff Beer Company (see Exercise 8.2.12) is given by Yn on the nth day of the year. Finn observes that the differences Xn = Yn+1 − Yn appear to be independent random variables with a common distribution having mean μ = 0 and variance = 1/4. If Y1 = 100, estimate the probability that Y365 is (a) <= 100. (b) <= 110. (c) <= 120.

y<-rnorm(364,0,.5)
x<-100+sum(y)
x2<-100 + sum(rnorm(364,0,.5))

hist(y)

mymat<-matrix(rep(0,10000),nrow=10000)
for (i in 1:10000) {mymat[i,1]=(100 + sum(rnorm(364,0,.5)))}
hist(mymat)

dim(mymat)
## [1] 10000     1
mean(mymat)
## [1] 99.95398
sd(mymat)
## [1] 9.557374
#View(mymat)

Normal approx P(Y365>=100)=.5 P(Y365>=110) P((110-100)/9>=110)=

Probability of x>110: 0.13326
Probability of x>120: 0.013134

  1. Calculate the expected value and variance of the binomial distribution using the moment generating function.