Presentation on theme: "Inference and Confidence Intervals. Outline Inferring a population mean: Constructing confidence intervals Examining the difference between two means."— Presentation transcript:
Inference and Confidence Intervals
Outline Inferring a population mean: Constructing confidence intervals Examining the difference between two means for the same person Confidence intervals for the difference between groups Confidence intervals for medians Summary
Constructing Confidence Intervals Population μ (pronounced mu) Estimate with sample mean ( ), the plug-in principle But with sampling error. Estimating the region which will usually include the population mean. t 0.05 is usually about 2, but you need to look it up the t table. Need to know df. df = n - 1 for this test. Here = 93.
Example: Newton's (1998) Hostility Data The mean on arrival for the 94 prisoners was 28.3 with a standard deviation of 8.0. df = n-1 so 93, or about 90 for the t table
t distribution with df = 93 and 2.5% in each tail
What does having 95% CI of 28.3 ± 1.6 mean? We expect that about 95% of the time when a confidence interval is made that the population mean (μ) will be within the interval created. This allows us to be fairly confident that the confidence interval we calculate contains the population mean. It is not that there is a 95% probability that μ is within the interval. This is a tricky concept. Confidence intervals are a fundamental tool for the frequentist statistician. In the long run, you should be right (i.e., μ with the interval) about 95% of the time.
Plotting the precision of the estimate (confidence intervals) and the spread of the distribution (standard deviations). Both are in units of the original variable (here in years).
Examining the Difference between Two Means for the Same Person Difference in means ± t 0.05 times standard error Standard error of difference using estimate of the standard deviation of the difference. Just calculate a variable for the difference, and perform the calculations as you did before.
Brewed Awakenings Table 5.1 Data from 10 participants comparing how much they like two different types of coffee. FRESHi INSTANTiDIFFi DIFFi - (DIFFi - ) Sum Mean * * This 1.56 is not the actual mean. It is the variance of the variable DIFFi, the sum of squares divided by the number of cases minus one (14/9). We calculated it this way because it can be used in later calculations. ________________________________________________________________________