1 Section 8.5 Testing a claim about a mean (σ unknown) Objective For a population with mean µ (with σ unknown), use a sample to test a claim about the mean. Testing a mean (when σ known) uses the t-distribution
2 Notation
3 (1) The population standard deviation σ is unknown (2) One or both of the following: Requirements The population is normally distributed or The sample size n > 30
4 Test Statistic Denoted t (as in t-score) since the test uses the t-distribution.
5 People have died in boat accidents because an obsolete estimate of the mean weight (of lb.) was used. A random sample of n = 40 men yielded the mean x = lb. and standard deviation s = lb. Do not assume the population standard deviation is known. Test the claim that men have a mean weight greater than lb. using 90% confidence. What we know: µ 0 = n = 40 x = s = Claim: µ > using α = 0.1 Note: Conditions for performing test are satisfied since n >30 Example 1
6 What we know: µ 0 = n = 40 x = s = Claim: µ > using α = 0.1 H 0 : µ = H 1 : µ > right-tailed test Initial Conclusion: Since t in critical region, Reject H 0 Final Conclusion: Accept the claim that the mean weight is greater than lb. t in critical region (df = 39) Using Critical Regions Example 1 t α = t = Test statistic: Critical value:
7 Stat → T statistics → One sample → with summary Calculating P-value for a Mean (σ unknown)
8 Then hit Next Enter the Sample mean (x) Sample std. dev. (s) Sample size (n) Calculating P-value for a Mean (σ unknown)
9 Then hit Calculate Select Hypothesis Test Enter the Null:mean (µ 0 ) Select Alternative (“ ”, or “≠”) Calculating P-value for a Mean (σ unknown)
10 Test statistic (t) P-value Calculating P-value for a Mean (σ unknown) The resulting table shows both the test statistic (t) and the P-value Initial Conclusion Since P-value < α (α = 0.1), reject H 0 Final Conclusion Accept the claim the mean weight greater than Ib
11 Using StatCrunch Using the P-value Example 1 Stat → T statistics→ One sample → With summary Null: proportion= Alternative Sample mean: Sample std. dev.: Sample size: ● Hypothesis Test > P-value = What we know: µ 0 = n = 40 x = s = Claim: µ > using α = 0.1 Initial Conclusion: Since P-value < α, Reject H 0 Final Conclusion: Accept the claim that the mean weight is greater than lb. H 0 : µ = H 1 : µ > 166.3
12 P-Values A useful interpretation of the P-value: it is observed level of significance Thus, the value 1 – P-value is interpreted as observed level of confidence Recall: “Confidence Level” = 1 – “Significance Level” Note: Only useful if we reject H 0 If H 0 accepted, the observed significance and confidence are not useful.
13 P-Values From Example 1: P-value = – P-value = Thus, we can say conclude the following: The claim holds under significance. or equivalently… We are 92.93% confident the claim holds
14 Loaded Die When a fair die (with equally likely outcomes 1-6) is rolled many times, the mean valued rolled should be 3.5 Your suspicious a die being used at a casino is loaded (that is, it’s mean is a value other than 3.5) You record the values for 100 rolls and end up with a mean of 3.87 and standard deviation 1.31 Using a confidence level of 99%, does the claim that the dice are loaded? What we know: µ 0 = 3.5 n = 100 x = 3.87 s = 1.31 Claim: µ ≠ 3.5 using α = 0.01 Note: Conditions for performing test are satisfied since n >30 Example 2
15 H 0 : µ = 3.5 H 1 : µ ≠ 3.5 What we know: µ 0 = 3.5 n = 100 x = 3.87 s = 1.31 Claim: µ ≠ 3.5 using α = 0.01 two-tailed test Example 2 t in critical region (df = 99) Test statistic: Critical value: z = z α = z α = Using Critical Regions Initial Conclusion: Since P-value < α, Reject H 0 Final Conclusion: Accept the claim the die is loaded.
16 Using StatCrunch Using the P-value Example 2 Null: proportion= Alternative Sample mean: Sample std. dev.: Sample size: ● Hypothesis Test ≠ P-value = Initial Conclusion: Since P-value < α, Reject H 0 Final Conclusion: Accept the claim the die is loaded. H 0 : µ = 3.5 H 1 : µ ≠ 3.5 What we know: µ 0 = 3.5 n = 100 x = 3.87 s = 1.31 Claim: µ ≠ 3.5 using α = 0.01 We are 99.43% confidence the die are loaded Stat → T statistics→ One sample → With summary
17
18 Section 8.6 Testing a claim about a standard deviation Objective For a population with standard deviation σ, use a sample too test a claim about the standard deviation. Tests of a standard deviation use the 2 -distribution
19 Notation
20 Notation
21 (1) The sample is a simple random sample (2) The population is normally distributed Very strict condition!!! Requirements
22 Test Statistic Denoted 2 (as in 2 -score) since the test uses the 2 -distribution. nSample size sSample standard deviation σ 0 Claimed standard deviation
23 Critical Values Right-tailed test“>“ Needs one critical value (right tail) Use StatCrunch: Chi-Squared Calculator
24 Critical Values Left-tailed test“<” Needs one critical value (left tail) Use StatCrunch: Chi-Squared Calculator
25 Critical Values Two-tailed test“≠“ Needs two critical values (right and left tail) Use StatCrunch: Chi-Squared Calculator
26 Statisics Test Scores Tests scores in the author’s previous statistic classes have followed a normal distribution with a standard deviation equal to His current class has 27 tests scores with a standard deviation of 9.3. Use a 0.01 significance level to test the claim that this class has less variation than the past classes. Example 1 What we know: σ 0 = 14.1 n = 27 s = 9.3 Claim: σ < 14.1 using α = 0.01 Note: Test conditions are satisfied since population is normally distributed Problem 14, pg 449
27 What we know: σ 0 = 14.1 n = 27 s = 9.3 Claim: σ < 14.1 using α = 0.01 H 0 : σ = 14.1 H 1 : σ < 14.1 Left-tailed Using Critical Regions Example 1 2 in critical region (df = 26) Initial Conclusion: Since 2 in critical region, Reject H 0 Final Conclusion: Accept the claim that the new class has less variance than the past classes 2 2 L Test statistic: Critical value:
28 Calculating P-value for a Variance Stat → Variance → One sample → with summary
29 Then hit Next Enter the Sample variance (s 2 ) Sample size (n) Calculating P-value for a Variance s 2 = = NOTE: Must use Variance
30 Then hit Calculate Select Hypothesis Test Enter the Null:variance (σ 0 2 ) Select Alternative (“ ”, or “≠”) Calculating P-value for a Variance σ 0 2 = =
31 Test statistic ( 2 ) P-value The resulting table shows both the test statistic ( 2 ) and the P-value Calculating P-value for a Variance
32 What we know: σ 0 = 14.1 n = 27 s = 9.3 Claim: σ < 14.1 using α = 0.01 Using Critical Regions Example 1 Using StatCrunch Initial Conclusion: Since P-value < α (α = 0.01), Reject H 0 Final Conclusion: Accept the claim that the new class has less variance than the past classes We are 99.44% confident the claim holds Stat → Variance → One sample → With summary Null: proportion= Alternative Sample variance: Sample size: < ● Hypothesis Test P-value = s 2 = σ 0 2 = H 0 : σ 2 = H 1 : σ 2 <
33 BMI for Miss America Listed below are body mass indexes (BMI) for recent Miss America winners. In the 1920s and 1930s, distribution of the BMIs formed a normal distribution with a standard deviation of Use a 0.01 significance level to test the claim that recent Miss America winners appear to have variation that is different from that of the 1920s and 1930s. Example 2 What we know: σ 0 = 1.34 n = 10 s = Claim: σ ≠ 1.34 using α = 0.01 Note: Test conditions are satisfied since population is normally distributed Problem 17, pg Using StatCrunch: s =
34 Using Critical Regions Example 2 2 not in critical region (df = 26) Test statistic: Critical values: 2 2 R 2 L Initial Conclusion: Since 2 not in critical region, Accept H 0 Final Conclusion: Reject the claim recent winners have a different variations than in the 20s and 30s Since H 0 accepted, the observed significance isn’t useful. What we know: σ 0 = 1.34 n = 10 s = Claim: σ ≠ 1.34 using α = 0.01 H 0 : σ = 1.34 H 1 : σ ≠ 1.34 two-tailed
35 Using P-value Example 2 Using StatCrunch Null: proportion= Alternative Sample variance: Sample size: < ● Hypothesis Test P-value = Initial Conclusion: Since P-value ≥ α (α = 0.01), Accept H 0 Final Conclusion: Reject the claim recent winners have a different variations than in the 20s and 30s Since H 0 accepted, the observed significance isn’t useful. s 2 = σ 0 2 = What we know: σ 0 = 1.34 n = 10 s = Claim: σ ≠ 1.34 using α = 0.01 H 0 : σ 2 = H 1 : σ 2 < Stat → Variance → One sample → With summary