
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

μ ˆL = ¯x − zα/ 2 · σ/
n, μˆU = ¯x + zα/ 2 · σ/
n.
n
n, where s is the sample standard deviation.
Continuing Exercise 6.25, construct 98% confidence in- terval. Example 7.4. Response time ∼ N (μ, σ^2 ), σ = 25. Find the sample size n that ensures 95% CI with a width of
Example 7.6. Alternating current (AC) voltage data
data(xmp07.06) attach(xmp07.06) str(xmp07.06) ‘data.frame’:48 obs. of 1 variable: $ C1: int 62 50 53 57 ... boxplot(C1) mean(C1) [1] 54. sd(C1)
40 45 50
55
60 65
mean(C1)-qnorm(0.975)sd(C1)/sqrt(length(C1)) [1] 53. mean(C1)+qnorm(0.975)sd(C1)/sqrt(length(C1)) [1] 56.
Ex. Toss n = 100 biased coins with P (H) = p. Sup- pose you observe 38 heads. Construct 95% CI of p.
X<-rbinom(100,1,0.4) X [1] 1 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 [17] 0 0 1 1 0 1 0 1 1 0 1 0 1 0 1 0 [33] 1 1 0 0 0 0 1 0 1 0 0 0 0 0 1 0 [49] 0 1 0 0 0 0 1 1 0 1 0 1 1 0 0 1 [65] 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 [81] 1 0 1 0 0 1 1 0 0 0 1 0 0 1 1 1 [97] 0 1 1 0 sd(X) [1] 0. sqrt(0.38(1-0.38)/(100-1)) [1] 0. 0.38+1.960.049/sqrt(100) [1] 0. 0.38-1.96*0.049/sqrt(100) [1] 0.
Example 7.8., Exercise 7.13., 7.19., 7.25. In the above coin tossing example, check if X¯ is MLE.