Topic 6: Confidence intervals Flashcards
What are confidence intervals (3)
-Confidence intervals give a range of values for the true population parameter, together with a measure of confidence/likelihood that the range contains the true value
-For unknown population parameter θ, based on sample data we find two values a and b such that P(a<θ<b) = 1 - α
-We then say with 100(1-α)% confidence that θ lies in the range a to b
How can we make a 95% confidence interval for the standard normal distribution (8,1)
-Take X~N(0, 12)
-We know P(-1.96<Z<1.96) = 0.95
-X̄ = Σx/n ~ N(μ, σ2/n)
-Z = (X̄ - μ)/(√σ2/n) ~ N(0, 12)
-P(-1.96 < (X̄ - μ)/(√σ2/n) < 1.96) = 0.95
-P(-1.96(√σ2/n) < X̄ - μ <1.96(√σ2/n)) = 0.95
-P(-1.96(√σ2/n) < X̄ - μ <1.96(√σ2/n)) = 0.95
-P(X̄+1.96(√σ2/n) > μ > X̄ - 1.96(√σ2/n) = 0.95
-μ ∈ [X̄ +- 1.96(√σ2/n)] with 95% confidence
What is the formula for the confidence interval of a single mean with a normal distribution, unknown mean but known variance (2)
-μ ∈ [sample mean +- critical value x standard error of sample mean]
-μ ∈ [X̄ +- (Za/2)((√σ2/n))]
What is the width of the confidence interval, and what does it depend on (1, 3)
-The width = the critical value x standard error of sample mean
Depends on:
-The amount of confidence (90, 95 or 99), a higher interval being wider
-Uncertainty in underlying distribution (σ), higher σ = wider
-Number of observations, higher n = less wide
What is the formula for the confidence interval of a mean with a not normal distribution, unknown mean, known population variance, and n > 25 (1)
-μ ∈ [X̄ +- (Za/2)((√σ2/n))
What is the formula for the confidence interval of a mean with a not normal distribution, unknown mean, unknown population variance, and n > 25 (1)
-μ ∈ [X̄ +- (Za/2)((√S2/n))
What is the formula for the confidence interval of a mean with a normal distribution, unknown mean and unknown population variance (1)
-μ ∈ [X̄ +- (ta/2n-1)((√S2/n))
What is the formula for the confidence interval of a mean with a bernoulli distribution, unknown mean and unknown population variance (1)
-μ ∈ [p +- (Za/2)(√(p(1-p)/n))]
What is the formula for a difference in means confidence interval with normal distributions, unknown means and known population variance (1)
-μ1 - μ2 ∈ [(x̄1 - x̄2 ± (zα/2)(√((σ21/n1) + (σ22/n2))]
What is the formula for a difference in means confidence interval with not normal distributions, unknown means and known population variance, with n>25 (1)
-μ1 - μ2 ∈ [(x̄1 - x̄2 ± (zα/2)(√((σ21/n1) + (σ22/n2))]
What is the formula for a difference in means confidence interval with not normal distributions, unknown means and unknown population variance, with n>25 (1)
-μ1 - μ2 ∈ [(x̄1 - x̄2 ± (zα/2)(√((S21/n1) + (S22/n2))]
What is the formula for a difference in means confidence interval with bernoulli distributions with n>25 (1)
-μ1 - μ2 ∈ [(p1 - p2 ± (zα/2)(√((p1(1 - p1)/n1) + (p2(1 - p2)/n2))]
What is the formula for a difference in means confidence interval with normal distributions, unknown means and unknown but equal population variance (2)
-μ1 - μ2 ∈ [(x̄1 - x̄2 ± (tn1 + n2 - 2, α/2)(√((S20/n1) + (S20/n2))]
-s20 = ((n1 - 1)s21 + (n2 - 1)s22)/(n1 + n2 - 2)
What is the formula for a difference in means confidence interval with normal distributions, unknown means and unknown but unequal population variance (2)
-μ1 - μ2 ∈ [(x̄1 - x̄2 ± (tDoF, α/2</sub>)(√((S21/n1) + (S22/n2))]
- DoF = [(s21/n1) + (s22/n2)]2/(((s21/n1)2/(n1-1)) + ((s22/n2)2/(n2-1)))
What is the expected value and variance of D = X̄1 - X̄2 for matched pairs (2)
-E(D) = µ1 - µ2 = µd
-V(D) = σ21 + σ22 - 2σ12 = σ2d
How do we work out the mean difference and sample variance estimator for matched pairs (3)
-Define the difference as d1 = x11 - x12, …, dn = xn1 - xn2
-Calculate đ = ∑di/n
-Calculate s2d = (∑di - đ)2/(n-1)
What is the formula for a matched pairs difference in means confidence interval (1)
µd ∈ [đ ± tα/2n-1(√S2/n)
What condition do we need to create a confidence interval for the variance of a distribution (1)
-X must be normally distributed
How can we set up a confidence interval ()
S2