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 σ 2 = 1/4. If Y1 = 100, estimate the probability that Y365 is
mean <- 0
variance <- 1/4
std_dev <- sqrt(variance)
n <- 364
x <- 0/sqrt(n)
a = pnorm(x, mean, std_dev, lower.tail = FALSE)
paste("If Y1 is 100, the probability that Y365 is ≥ 100 is", a)
## [1] "If Y1 is 100, the probability that Y365 is ≥ 100 is 0.5"
x <- 10/sqrt(n)
b = pnorm(x, mean, std_dev, lower.tail = FALSE)
paste("If Y1 is 100, the probability that Y365 is ≥ 110 is",b)
## [1] "If Y1 is 100, the probability that Y365 is ≥ 110 is 0.147253696840055"
x <- 20/sqrt(n)
c = pnorm(x, mean, std_dev, lower.tail = FALSE)
paste("If Y1 is 100, the probability that Y365 is ≥ 120 is",c)
## [1] "If Y1 is 100, the probability that Y365 is ≥ 120 is 0.0180158431091168"
M(t) = [(1-p)+(pe)^t]^n.
M’(t) = n(pet)[(1-p)+pe^t](n-1)
Expected value: M’(0) = np
M”(t) = n(n-p)(pet)2[(1-p)+pe^t](n-2)+n(pet)[(1-p)+pe^t]^(n-1)
variance: M”(0) = n(n-1)p^2+np
σ^2 = M”(0)-[M’(0)]^2
= np(1-p)
M(t) = λ/(λ-t)
M’(t) = λ/((λ-t)^2)
Expected Value: M’(0) = 1/λ
M”(t) = 2λ/((λ-t)^3)
M”(0) = 2/(λ^2)
σ^2 = 2/(λ^2)- (1/λ)^2
= (1/λ)^2