1(a)
[-1, 1, 1, -1, 1, -1, -1, 1, -1, 1]
1(b)
1(c)
1(d)
-0.9998980354788313
From above, slope=alpha=m~-1 n^alpha~n^(-1)=1/n As n increases, n^alpha would decrease. Therefore, Var(xn) would decrease as n increasing.
1(e)
The unit of p(x) is 1/unit of x, since probability is unitless. When extract a probability from a histogram, the probability is determined as the area under the histogram. i.e, probability is the integral of p(x)dx over the the range x to x+dx. Therefore, if the bin width is small, we can estimate the probability by multiplying p(x) by the bin width.
1(f)
[-0.4963010218548479, -0.29011031405560334, -0.22169278303762308, -0.16300232749320492, -0.14743793925178444, -0.15190401505662637, -0.20406998918610064, -0.3101820955413864, -0.4711636779239784, -0.6909377285890048]
Question 2
2a:
This plot is consistent with the histograms obtained in 1(b).The peak becomes sharper as n becomes larger, while the peak location stays constant.