Stat 104 – Lecture 27 Chapter 8 Quantitative variable Population Parameters: Population μ Sample σ known. Sample Mean y 1 Chapter 8 • Sampling from a population that follows a Normal Model, μ , σ . ⎛⎜ σ ⎞⎟ to y + z * ⎛⎜ σ ⎞⎟ ⎝ n⎠ ⎝ n⎠ y−μ z= ⎛⎜ σ ⎞⎟ , Table Z ⇒ P - value ⎝ n⎠ y − z* 2 Chapter 9, Sections 1, 2 Quantitative variable Population Parameters: unknown, σ μ Population Sample Sample Mean, y 3 1 Stat 104 – Lecture 27 Unknown, σ • If we do not know the value of the population standard deviation we cannot use the methods from Chapter 8. 4 Unknown, σ • We can use the sample standard deviation, s, as an estimate of the population standard deviation, σ . 5 Unknown, σ • We can NOT continue to use the standard normal distribution or Table Z. • Why? 6 2 Stat 104 – Lecture 27 7 8 95% Confidence? • Simulation illustrating repeating the procedure. • http://statweb.calpoly.edu/chance/ applets/ConfSim/ConfSim.html 9 3 Stat 104 – Lecture 27 10 Chapter 9, Sections 1, 2 • Confidence Interval for μ . ⎛ s ⎞ ⎛ s ⎞ y − t* ⎜ ⎟ to y + t * ⎜ ⎟ ⎝ n⎠ ⎝ n⎠ • t* found in Table T, df = n – 1 11 Chapter 9, Sections 1, 2 • Test statistic. t= y−μ , Table T s n ⎛⎜ ⎞⎟ ⎝ ⎠ ⇒ P - value 12 4 Stat 104 – Lecture 27 Example • What is the mean alcohol content of beer? • A random sample of 10 beers is taken and the alcohol content (%) is measured. 13 Example • We do not know the value of the population standard deviation,σ , for the population of all beers. 14 Sample Data – Alcohol (%) Molson Canadian 5.19 Heineken Dark 5.17 Michelob Dark 4.76 O’Keefe Canadian 4.96 Big Barrel Lager 4.32 Olympia Lager 4.78 Hamm’s 4.53 Miller Draft 4.85 Tsingtao 4.79 Guinness Stout 4.27 15 5 Stat 104 – Lecture 27 Sample Summary • Sample size: – n = 10 • Sample mean: – y = 4.762 • Sample standard deviation: – s = 0.314 16 Confidence Interval for μ s ⎞ ⎛ s ⎞ ⎟ to y + t * ⎜ ⎟ ⎝ n⎠ ⎝ n⎠ df = n − 1 ⎛ y − t* ⎜ 17 Inference for μ • Do NOT use Table Z! Table Z • Use Table T instead! 18 6 Stat 104 – Lecture 27 19 95% Confidence Interval • y = 4.762 • n = 10 • s = 0.314 • t* = 2.262 20 Calculation ⎛ y − t* ⎜ ⎝ s ⎞ ⎛ s ⎞ ⎟ to y + t * ⎜ ⎟ n⎠ ⎝ n⎠ ⎛ 0.314 ⎞ ⎟ ⎝ 10 ⎠ 4.762 − 2.262⎜ ⎛ 0.314 ⎞ ⎟ ⎝ 10 ⎠ to 4.762 + 2.262⎜ 4.762 − 0.225 to 4.762 + 0.225 4.537 to 4.987 21 7