Description:
For mean of known standard deviation:
A confidence interval for a Population mean μ , is an interval of values between two limits, togegether with a percentage indicating our confidence that μ lies in that interval
For Z = σ / n X ˉ n − μ
P ( − a ≤ Z ≤ a ) = α → P ( Z ≤ a ) = 1 − 2 α + α = z 2 α
α is the area under graph between 2 limits while z α /2 is the upper limit
C I = { x ˉ n − z 2 α n σ ≤ μ ≤ x ˉ n + z 2 α n σ }
The width is then 2 × z 2 α n σ
For mean of unknown sd:
For difference of two variables:
Difference random variable of 2 variables
For known σ
C I ( α ) = x ˉ 1 − x ˉ 2 ± z α /2 n 1 σ 1 2 + n 2 σ 2 2
For unknown σ
C I ( α ) = x ˉ 1 − x ˉ 2 ± t α /2 n 1 s 1 2 + n 2 s 2 2
With df = n 1 − 1 1 ( n 1 s 1 2 ) 2 + n 2 − 1 1 ( n 2 s 2 2 ) 2 ( n 1 s 1 2 + n 2 s 2 2 ) 2
Round down for more conversative interval estimation