Call Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night Enjoy
Confidence intervals: Types and calculations
1. Confidence Intervals: types and calculation
Dr. S. A. Rizwan, M.D.
Public Health Specialist
SBCM, Joint Program – Riyadh
Ministry of Health, Kingdom of Saudi Arabia
2. Learning objectives
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Describe the various situations for calculating CI
• Apply the formula for calculating different situations
3. Introduction
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Confidence intervals can be calculated for a number of statistics
• They all follow the general format
• The differences lie in the formula for standard error
10. CI for a single mean: example
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Example: find CI when sample mean =10.2, sd =10.1, N=1055,
confidence level =95%.
• z is derived from the 95% value: what value of z leaves 95% in the middle
and 2.5 % on each end of a distribution?
• For p = .975, z = 1.96
• The standard error is s/SQRT(n) = 10.1/SQRT(1055) = 0.31
• Upper limit 10.2 + 1.96*0.31 = 10.80
• Lower limit 10.2 – 1.96*0.31 = 9.59
• Hence, the confidence interval is 9.59 to 10.81
11. CI for a single mean: work out
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• We look at a study of 200 males versus 200
females mean SAT scores. The mean SAT score
for females is 1180 with a standard deviation of
5 and for males, the mean SAT score is 1160
with a standard deviation of 6.
• Form a 95% confidence interval for the mean
SAT score for females and males
12. CI for a single mean: work out
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Variable Obs Mean Std. Err. [95% Conf. Interval]
Females 200 1180 0.35 1179.30 1180.69
Variable Obs Mean Std. Err. [95% Conf. Interval]
Males 200 1160 0.42 1159.16 1160.83
13. CI for a single proportion: work out
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• A study was done on the proportion of
males and females who participate in
athletics. 480 females and 530 males
participated in the study, where 170
females and 208 males participated in
athletics
• Form a 95% CI for each of the proportion of
female and male athletes?
14. CI for a single proportion: work out
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Variable Obs Mean Std. Err. [95% Conf. Interval]
Females 480 0.354 0.0218 0.3113 0.3987
Variable Obs Mean Std. Err. [95% Conf. Interval]
Males 530 0.392 0.0212 0.3506 0.4354
15. CI for a difference in 2 means
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• The table below summarizes data
n=3539 participants attending the 7th
examination of the Offspring cohort in
the Framingham Heart Study.
• Calculate the difference in mean systolic
blood pressures between men and
women, and 95% confidence interval
for the difference in means.
19. CI for a difference in 2 proportions
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• The following table contains data on
prevalent CVD among participants who
were currently non-smokers and those
who were current smokers in the
Framingham Offspring Study.
• Calculate the difference in prevalent
CVD between smokers and non-
smokers and a 95% CI confidence
interval for the difference.
23. CI for other point estimates
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Small sample size (<30)
• Matched data
• Odds ratio
• Risk ratio
• Hazard ratio
• Regression coefficient
• Many other statistics
24. Advanced learning
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• The methods of calculating CI may differ
depending on the formula used for a given point
estimate and hence the CI may differ
• Most of the time CI and p values agree in a
comparative situation, but sometimes they
don’t
• In some situations CI may not be symmetrical
• What are prediction intervals and uncertainty
intervals?
25. Take home messages
Demystifying statistics! – Lecture 10 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Confidence interval is one of the corner stones of statistical inference
• Each point estimate from a sample requires a confidence interval
• Remember the general format of CI
• Remember the correct interpretation of CI for the given situation