1 / 25

Lesson 10 - R

Lesson 10 - R. Summary of Hypothesis Testing. Objectives. Review Hypothesis Testing. Hypothesis Testing. The process of hypothesis testing is very similar across the testing of different parameters The major steps in hypothesis testing are

Download Presentation

Lesson 10 - R

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lesson 10 - R Summary of Hypothesis Testing

  2. Objectives • Review Hypothesis Testing

  3. Hypothesis Testing • The process of hypothesis testing is very similar across the testing of different parameters • The major steps in hypothesis testing are • Formulate the appropriate null and alternative hypotheses • Calculate the test statistic • Determine the appropriate critical value(s) • Reach the reject / do not reject conclusions

  4. Similarities in hypothesis test processes

  5. Chapter 10 – Section 1 If a researcher wishes to test a claim that the average weight of a white rhinoceros is 5,000 lbs, then she should state a null hypothesis of • H1: Average weight = 5,000 pounds • H0: Average weight = 5,000 pounds • H0: Average weight ≠ 5,000 pounds • H0 + H1: Average weight = 5,000 pounds

  6. Chapter 10 – Section 1 If the hypotheses for a test are H0: μ = 20 seconds H1: μ < 20 seconds then an example of a Type I error occurs when • μ = 20 seconds and we did not reject H0 • μ = 15 seconds and we rejected H0 • μ = 25 seconds and we did not reject H0 • μ = 20 seconds and we rejected H0

  7. Chapter 10 – Section 2 The classical approach rejects the null hypothesis H0: μ = 20 when • The sample mean is far (too many standard deviations) from 20 • The sample mean is not equal to 20 • The sample mean is close (too few standard deviations) to 20 • The sample mean is equal to 20

  8. Chapter 10 – Section 2 In the P-value approach, relatively small values of the P-value correspond to situations where • The classical approach does not apply • The null hypothesis H0 must be accepted • The null hypothesis H0 must be rejected • The probability of obtaining such a sample mean is relatively small

  9. Chapter 10 – Section 3 When the population standard deviation σ is not known, then we should perform hypothesis tests using • The alternative hypothesis • The t-distribution • The normal distribution • The Type II Error

  10. Chapter 10 – Section 3 In testing a claim regarding a population mean with σ is unknown, we • May use only the classical approach with thet-distribution • May use only the P-value approach with thet-distribution • May use either the classical approach or the P-value approach with the t-distribution • May use either standard normal distribution with the t-distribution

  11. Chapter 10 – Section 4 A possible null hypothesis for testing a claim regarding a population proportion is • H0: Mean Weight of Dogs = 20 kgs • H0: Standard Deviation of Weight of Dogs = 8 kgs • H0: Proportion of Dogs Weighs 30 kgs • H0: Proportion of Dogs that weigh < 30 kgs = 0.30

  12. Chapter 10 – Section 4 Tests of a claim about a population proportion use • The normal model, or the binomial probability distribution if the sampling distribution is not normal • Always the normal model • Always the Type II model • The t-distribution, or the sampling distribution if the sample size is too small

  13. Chapter 10 – Section 5 The test of a claim about a population standard deviation uses the • Normal distribution • The t-distribution • The chi-square distribution • All of the above

  14. Chapter 10 – Section 5 If a sample size n is 65, then a test of a claim about a population standard deviation uses • A normal distribution with mean 65 • A normal distribution with standard deviation 64 • A chi-square distribution with 65 degrees of freedom • A chi-square distribution with 64 degrees of freedom

  15. Chapter 10 – Section 6 To determine the appropriate hypothesis test to perform, we should • Consider which P-value we wish to obtain • Consider which type of parameter we are analyzing • Consider whether the null hypothesis is known or unknown • All of the above

  16. Chapter 10 – Section 7 If the hypotheses for a test are H0: μ = 20 seconds H1: μ < 20 seconds then an example of a Type II error occurs when • μ = 25 seconds and we did not reject H0 • μ = 15 seconds and we rejected H0 • μ = 15 seconds and we did not reject H0 • μ = 20 seconds and we rejected H0

  17. Chapter 10 – Section 7 A large power for a test occurs when • The Type II error β is small • The probability of failing to reject the null hypothesis, when the alternative hypothesis is true, is small • Distinguishing between the null hypothesis and the alternative hypothesis is relatively clear with the data • All of the above

  18. ^ p - p Z0 = ---------- p(1-p) -------- n Hypothesis Testing H0: The status quo, what was done before, what we are trying to disprove H1: The new item, the new study results Test Statistics: Critical Values: (left, two, right tailed tests) Zc = Zα, 1-α/2, 1-α; tc = tα, 1-α/2, 1-α/n-1; χ²c = χ²1-α, 1-α/2, α/n-1 Conclusion: If Zc < Z0, tc < t0, p < α, or χ²c < χ²0 then Reject H0 Otherwise we Fail to Reject (FTR) Test μσ unknown Test σ x - μ Z0 = ---------- σ / √n n s² χ²0 = -------- σ² x - μ t0 = ---------- s / √n Test μσ known Test population prop

  19. Qα Hypothesis Testing Methods • Classical • More standard deviations away from mean • P-Value • Probability of getting a more extreme value • Confidence Interval • Within the interval Q0 FTR Rej H0 Q0 FTR Rej H0 FTR Rej H0 Rej H0 LB UB

  20. Requirements to Check • Mean, σ Known • Simple Random Sample (SRS) • Normal distribution • Mean, σ unknown • SRS • No outliers and “normality” (normality plot) • Population Proportion • SRS • n(p)(1-p) ≥ 10 (allows normal estimation of binomial) • n ≤ 0.05N (keeps it from being hypergeometric) • Variance or Standard Deviation • SRS • Normal distribution

  21. Hypothesis Test – Mean, σ Known USAA Auto Insurance data base show the average miles driven is 12,200. A local rep, Sam, believes the residents of southwestern Virginia drive more. He obtains a sample of 35 drivers whose average was 12,895.9. Using USAA’s database σ = 3800 miles. Test his claim at the α = 0.01 level. H0:μ0 = 12,200 (drivers in southwestern VA drive the same as elsewhere) H1:μ0 > 12,200 (drivers in southwestern VA drive more than elsewhere) x-bar = 12,895.9 μ0 = 12,200 σ = 3800 n = 35 α = 0.01 X-bar – μ Z0 = --------------- = 1.083 and p = 0.13931 (from calculator) σ / √n Critical Values: Zc = 2.326 Confidence Interval (CI) [11241, 14550] Conclusion: Since Z0 < Zc (μ0 in CI or p > α), we fail to reject H0 and conclude that we don’t have sufficient evidence to say SWVA drivers drive more.

  22. Hypothesis Test – Mean, σ Unknown A high school principal believes that the new attendance policy has reduced the average number of tardies among the habitual tardy students. He samples 40 of his habitual tardy students and determines that their average tardies was 16.8 with a standard deviation of 4.7. He wants you to test at the α = 0.1 level to see if the average number of tardies was less than the historic mean of 18.1. H0:μ0 = 18.1 (habitual tardiness remained the same) H1:μ0 < 18.1 (habitual tardiness decreased) x-bar = 16.8 μ0 = 18.1 σ = 4.7 n = 40 α = 0.1 X-bar – μ t0 = --------------- = -1.7493 and p = 0.04405 (from calculator) s / √n Critical Values: tc = -1.304 Confidence Interval (CI) [15.548, 18.052] Conclusion: Since t0 < tc (μ0 out of CI or p < α), we reject H0 and conclude that the habitual tardiness has decreased.

  23. Hypothesis Test – Population Proportion In the 1990’s 65% of students at Virginia Tech thought that lying was unethical. In a poll conduct last May in a simple random sample of 1005 Virginia Tech students, 704 responded that lying was unethical. Is there evidence to indicate that the percentage of students who believe that lying is unethical has increased at the α = 0.05 level. H0:p0 = 0.65 (% who thought lying was unethical behavior is the same) H1:p0 > 0.65 (% who thought lying was unethical behaviorhas increased) p0 = 0.65 x = 704 n = 1005 α = 0.05 p-hat – p0 Z0 = --------------- = 3.356 and p = 0.0004 (from calculator) √p0(1-p0)/n Critical Values: Zc = -1.304 Confidence Interval (CI) [0.672, 0.728] Conclusion: Since Z0 > Zc (p0 out of CI or p < α), we reject H0 and conclude that the percentage who believe lying is unethical has increased.

  24. Hypothesis Test – Population Variance A snack bag of plain M&M’s has a mean number of M&M’s of 21. The quality control people at M&M-Mars have published data on the internet the claims the standard deviation of the number of M&Ms to be under 0.75. A Stats class samples 11 snack bags of plain M*Ms and determines that the standard deviation was 0.6404. Their teacher wants to know if their sample standard deviation is smaller than the advertised at the α = 0.05 level H0:σ0 = 0.75 (the standard deviation of M&Ms in snack bags is the same) H1:σ0 < 0.75 (the standard deviation of M&Ms in snack bags has decreased) σ0 = 0.75 s = 0.6404 n = 11 α = 0.05 n s² χ²0 = --------------- = 7.291 (by hand) p-value = 0.302 (by χ²cdf) σ²0 Critical Values:χ²c = 3.940 Confidence Interval: NA Conclusion: Since χ0 > χc (or p > α), we fail to reject H0 and conclude that there is insufficient evidence that σ in plain M&M snack bags has decreased.

  25. Summary and Homework • Summary • We can test whether sample data supports a hypothesis claim about a population mean, proportion, or standard deviation • We can use any one of three methods • The classical method • The P-Value method • The Confidence Interval method • The commonality between the three methods is that they calculate a criterion for rejecting or not rejecting the test statistic • Homework • pg 511-513; 1, 2, 3, 7, 8, 12, 13, 14, 15, 17, 20, 37

More Related