Starting from:

$30

MA331-Assignment 2 Solved

Problem 1. Assume that N ∼B(n,p), a Binomial distribution with number of trials n and probability of success p. Set p = 0.4.

(i)       For n = 20,30,50,75,100, accurately compute P(N ≤ 8.25) by using R function.

(ii)     For n = 20,30,50,75,100, approximate P(N ≤ 8.25) by using Laplace theorem.

(iii)   Evaluate and scatter plot errors of all approximations of (ii), i.e., the absolute difference between the accurate computation and the Laplace approximation.

(iv)    What do you perceive based on the scatter plot of errors in (iii).

Problem 2. Check the instruction of R commands ‘plot(density(x))’. Generate a SRS of size n for the population X ∼N(2,32), and evaluate the samples of

                                        ,            ,            ,

respectively. Then, based on the corresponding samples, plot estimated density curves of  and , respectively, and also make the scatter plot of .

(i)     For n = 20, simulate  and  for 100 times.

(ii)   For n = 30, simulate  and  for 100 times.

(iii)  For n = 50, simulate  and  for 100 times. (iv) For n = 75, simulate  and  for 100 times.

(v)      Based on the plots of  and  in (i) - (iv) describe your findings on probability distributions of  and , respectively.

(vi)    Based on the scatter plots of  in (i) - (iv) describe your findings on the statistical association between  and .

Problem 3. Show that E[N] = np for N ∼B(n,p).

Problem 4. Show that E[T] = 0 for T ∼Tn.

More products