Homework 7 Due March 28 Suppose X1, X2, ... Xn are independent random variables. X_i = Bernoulli( p_i = 0.4 ) for odd i X_i = Bernoulli( p_i = 0.6 ) for even i Show that exp{ 1/(n sqrt n) [\sum_{i=1}^n ( X_i - p_i )]^2 } converge to a limit in probability as n go to infinity. (what is the limit?) ============================================================================== cauchy.mle <- function(x, maxiter=10, eps=1e-8, itertrace=FALSE, maxattempts=100){ # initialize parameter vector f <- p <- c(NA,NA) p[1] <- median(x) p[2] <- IQR(x)/2 n <- length(x) # calculate log-likelihood at initial parameter estimates ll = n*log(p[2]) - n*log(pi) - sum(log(p[2]^2 + (x-p[1])^2)) # initialize matrix of second derivatives D = matrix(ncol=2, nrow=2) iter=0 while (iter