• We are pleased to announce that the winner of our Feedback Prize Draw for the Winter 2024-25 session and winning £150 of gift vouchers is Zhao Liang Tay. Congratulations to Zhao Liang. If you fancy winning £150 worth of gift vouchers (from a major UK store) for the Summer 2025 exam sitting for just a few minutes of your time throughout the session, please see our website at https://www.acted.co.uk/further-info.html?pat=feedback#feedback-prize for more information on how you can make sure your name is included in the draw at the end of the session.
  • Please be advised that the SP1, SP5 and SP7 X1 deadline is the 14th July and not the 17th June as first stated. Please accept out apologies for any confusion caused.

CS1B 201909 1iv)

singingmyblues

Active Member
The question asks us to comment on the difference between confidence intervals, created in a bootstrap vs parametric way. Why would you say the bootstrap CI is smaller is because the distribution of X is not normal (the examiner report says this)? I think it can be because the bootstrap is using a bigger sample of 10000 (the bootstrapped sample created using replicate) whereas the t.test sample is just length(x)
 
another question in 201909
3iv) I seem to get different results running

set.seed(2019)
y = 0*(1:1000) # generate a vector of size 1000
for (i in 1:1000){
y = sum(rexp(15, 2))
}

and
set.seed(2019)

# Parameters
n <- 15
lambda <- 2
B <- 1000

# Generate Bootstrap samples
bootstrap_samples_Y <- replicate(B, sum(sample(rexp(n, lambda), replace = TRUE)))
 
Back
Top