Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

Like this presentation? Why not share!

- Data Mining:Concepts and Techniques... by Salah Amean 11753 views
- Thesis. by Katherine Joy Mar... 11970 views
- Hypothesis by Michael Gezae 181098 views
- Test of hypothesis by vikramlawand 67889 views
- Hypothesis testing ppt final by piyushdhaker 75792 views
- Research hypothesis by Joitiba College o... 45414 views

No Downloads

Total views

3,615

On SlideShare

0

From Embeds

0

Number of Embeds

38

Shares

0

Downloads

217

Comments

0

Likes

1

No embeds

No notes for slide

- 1. Chapter 10 Hypothesis Tests Using a Single Sample
- 2. BASICS <ul><li>In statistics, a hypothesis is a statement about a population characteristic. </li></ul>
- 3. FORMAL STRUCTURE <ul><li>Hypothesis Tests are based on an reductio ad absurdum form of argument. </li></ul><ul><li>Specifically, we make an assumption and then attempt to show that assumption leads to an absurdity or contradiction, hence the assumption is wrong. </li></ul>
- 4. FORMAL STRUCTURE <ul><li>The null hypothesis, denoted H 0 is a statement or claim about a population characteristic that is initially assumed to be true. </li></ul><ul><li>The null hypothesis is so named because it is the “starting point” for the investigation. The phrase “there is no difference” is often used in its interpretation. </li></ul>
- 5. FORMAL STRUCTURE <ul><li>The alternate hypothesis , denoted by H a is the competing claim. </li></ul><ul><li>The alternate hypothesis is a statement about the same population characteristic that is used in the null hypothesis. </li></ul><ul><li>Generally, the alternate hypothesis is a statement that specifies that the population has a value different, in some way, from the value given in the null hypothesis. </li></ul>
- 6. FORMAL STRUCTURE <ul><li>Rejection of the null hypothesis will imply the acceptance of this alternative hypothesis. </li></ul><ul><li>Assume H 0 is true and attempt to show this leads to an absurdity, hence H 0 is false and H a is true. </li></ul>
- 7. FORMAL STRUCTURE <ul><li>Typically one assumes the null hypothesis to be true and then one of the following conclusions are drawn. </li></ul><ul><ul><li>Reject H 0 </li></ul></ul><ul><ul><ul><li>Equivalent to saying that H a is correct or true </li></ul></ul></ul><ul><ul><li>Fail to reject H 0 </li></ul></ul><ul><ul><ul><li>Equivalent to saying that we have failed to show a statistically significant deviation from the claim of the null hypothesis </li></ul></ul></ul><ul><ul><ul><li>This is not the same as saying that the null hypothesis is true. </li></ul></ul></ul>
- 8. AN ANALOGY <ul><li>The Statistical Hypothesis Testing process can be compared very closely with a judicial trial. </li></ul><ul><ul><li>Assume a defendant is innocent (H 0 ) </li></ul></ul><ul><ul><li>Present evidence to show guilt </li></ul></ul><ul><ul><li>Try to prove guilt beyond a reasonable doubt (H a ) </li></ul></ul>
- 9. AN ANALOGY <ul><li>Two Hypotheses are then created. </li></ul><ul><ul><li>H 0 : Innocent </li></ul></ul><ul><ul><li>H a : Not Innocent (Guilt) </li></ul></ul>
- 10. Examples of Hypotheses <ul><li>You would like to determine if the diameters of the ball bearings you produce have a mean of 6.5 cm. </li></ul><ul><ul><li>H 0 : µ = 6.5 </li></ul></ul><ul><ul><li>H a : µ ≠ 6.5 </li></ul></ul><ul><ul><li>(Two-sided alternative) </li></ul></ul>
- 11. <ul><li>The students entering into the math program used to have a mean SAT quantitative score of 525. Are the current students poorer (as measured by the SAT quantitative score)? </li></ul><ul><li>H 0 : µ = 525 </li></ul><ul><ul><li>(Really: µ </li></ul></ul><ul><li>H a : µ < 525 </li></ul><ul><ul><li>(One-sided alternative) </li></ul></ul>Examples of Hypotheses
- 12. <ul><li>Do the “16 ounce” cans of peaches canned and sold by DelMonte meet the claim on the label (on the average)? </li></ul><ul><li>H 0 : µ = 16 </li></ul><ul><ul><li>(Really: ≥ </li></ul></ul><ul><li>H a : µ < 16 </li></ul>Examples of Hypotheses Notice, the real concern would be selling the consumer less than 16 ounces of peaches.
- 13. <ul><li>Is the proportion of defective parts produced by a manufacturing process more than 5%? </li></ul><ul><li>H 0 : = 0.05 </li></ul><ul><ul><li>(Really, </li></ul></ul><ul><li>H a : > 0.05 </li></ul>Examples of Hypotheses
- 14. <ul><li>Do two brands of light bulb have the same mean lifetime? </li></ul><ul><li>H 0 : µ Brand A = µ Brand B </li></ul><ul><li>H a : µ Brand A µ Brand B </li></ul>Examples of Hypotheses
- 15. <ul><li>Do parts produced by two different milling machines have the same variability in diameters? </li></ul>Examples of Hypotheses or equivalently
- 16. Comments on Hypothesis Form <ul><li>The null hypothesis must contain the equal sign. </li></ul><ul><ul><li>This is absolutely necessary because the test requires the null hypothesis to be assumed to be true and the value attached to the equal sign is then the value assumed to be true and used in subsequent calculations. </li></ul></ul><ul><li>The alternate hypothesis should be what you are really attempting to show to be true. </li></ul><ul><ul><li>This is not always possible. </li></ul></ul>
- 17. Hypothesis Form <ul><li>The form of the null hypothesis is </li></ul><ul><li>H 0 : population characteristic = hypothesized value </li></ul><ul><li>where the hypothesized value is a specific number determined by the problem context. </li></ul><ul><li>The alternative (or alternate) hypothesis will have one of the following three forms: </li></ul><ul><li>H a : population characteristic > hypothesized value </li></ul><ul><li>H a : population characteristic < hypothesized value </li></ul><ul><li>H a : population characteristic hypothesized value </li></ul>
- 18. Caution <ul><li>When you set up a hypothesis test, the result is either </li></ul><ul><ul><li>Strong support for the alternate hypothesis (if the null hypothesis is rejected) </li></ul></ul><ul><ul><li>There is not sufficient evidence to refute the claim of the null hypothesis (you are stuck with it, because there is a lack of strong evidence against the null hypothesis. </li></ul></ul>
- 19. Error No Error No Error Type I Error Type II Error
- 20. Error Analogy <ul><li>Consider a medical test where the hypotheses are equivalent to </li></ul><ul><ul><li>H 0 : the patient has a specific disease </li></ul></ul><ul><ul><li>H a : the patient doesn’t have the disease </li></ul></ul><ul><li>Then, </li></ul><ul><ul><li>Type I error is equivalent to a false negative </li></ul></ul><ul><ul><li>(i.e., Saying the patient does not have the disease when in fact, he does.) </li></ul></ul><ul><ul><li>Type II error is equivalent to a false positive </li></ul></ul><ul><ul><li>(i.e., Saying the patient has the disease when, in fact, he does not.) </li></ul></ul>
- 21. More on Error <ul><li>The probability of a type I error is denoted by and is called the level of significance of the test. </li></ul><ul><ul><li>Thus, a test with = 0.01 is said to have a level of significance of 0.01 or to be a level 0.01 test. </li></ul></ul><ul><li>The probability of a type II error is denoted by . </li></ul>
- 22. Relationships Between and <ul><li>Generally, with everything else held constant, decreasing one type of error causes the other to increase. </li></ul><ul><li>The only way to decrease both types of error simultaneously is to increase the sample size. </li></ul><ul><li>No matter what decision is reached, there is always the risk of one of these errors. </li></ul>
- 23. Comment of Process <ul><li>Look at the consequences of type I and type II errors and then identify the largest that is tolerable for the problem. </li></ul><ul><li>Employ a test procedure that uses this maximum acceptable value of (rather than anything smaller) as the level of significance (because using a smaller increases ). </li></ul>
- 24. Test Statistic <ul><li>A test statistic is the function of sample data on which a conclusion to reject or fail to reject H 0 is based. </li></ul>
- 25. P-value <ul><li>The P-value (also called the observed significance level ) is a measure of inconsistency between the hypothesized value for a population characteristic and the observed sample. </li></ul><ul><li>The P-value is the probability, assuming that H 0 is true, of obtaining a test statistic value at least as inconsistent with H 0 as what actually resulted. </li></ul>
- 26. Decision Criteria <ul><li>A decision as to whether H 0 should be rejected results from comparing the P-value to the chosen : </li></ul><ul><ul><li>H 0 should be rejected if P-value </li></ul></ul><ul><ul><li>H 0 should not be rejected if P-value > </li></ul></ul>
- 27. Large Sample Hypothesis Test for a Single Proportion In terms of a standard normal random variable z, the approximate P-value for this test depends on the alternate hypothesis and is given for each of the possible alternate hypotheses on the next 3 slides. To test the hypothesis H 0 : = hypothesized proportion, compute the z statistic
- 28. Hypothesis Test Large Sample Test of Population Proportion
- 29. Hypothesis Test Large Sample Test of Population Proportion
- 30. Hypothesis Test Large Sample Test of Population Proportion
- 31. <ul><li>An insurance company states that the proportion of its claims that are settled within 30 days is 0.9. A consumer group thinks that the company drags its feet and takes longer to settle claims. To check these hypotheses, a simple random sample of 200 of the company’s claims was obtained and it was found that 160 of the claims were settled within 30 days. </li></ul>Hypothesis Test Example Large-Sample Test for a Population Proportion
- 32. Hypothesis Test Example 2 Single Proportion continued = proportion of the company’s claims that are settled within 30 days H 0 : = 0.9 H A : 0.9 The sample proportion is
- 33. Hypothesis Test Example 2 Single Proportion continued The probability of getting a result as strongly or more strongly in favor of the consumer group's claim (the alternate hypothesis H a ) if the company’s claim (H 0 ) was true is essentially 0. Clearly, this gives strong evidence in support of the alternate hypothesis (against the null hypothesis).
- 34. Hypothesis Test Example 2 Single Proportion continued We would say that we have strong support for the claim that the proportion of the insurance company’s claims that are settled within 30 days is less than 0.9. Some people would state that we have shown that the true proportion of the insurance company’s claims that are settled within 30 days is statistically significantly less than 0.9.
- 35. <ul><li>A county judge has agreed that he will give up his county judgeship and run for a state judgeship unless there is evidence at the 0.10 level that more then 25% of his party is in opposition. A SRS of 800 party members included 217 who opposed him. Please advise this judge. </li></ul>Hypothesis Test Example Single Proportion
- 36. Hypothesis Test Example Single Proportion continued = proportion of his party that is in opposition H 0 : = 0.25 H A : > 0.25 = 0.10 Note: hypothesized value = 0.25
- 37. Hypothesis Test Example Single Proportion continued <ul><li>At a level of significance of 0.10, there is sufficient evidence to support the claim that the true percentage of the party members that oppose him is more than 25%. </li></ul><ul><li>Under these circumstances, I would advise him not to run. </li></ul>
- 38. <ul><li>Describe (determine) the population characteristic about which hypotheses are to be tested. </li></ul><ul><li>State the null hypothesis H 0 . </li></ul><ul><li>State the alternate hypothesis H a . </li></ul><ul><li>Select the significance level for the test. </li></ul><ul><li>Display the test statistic to be used, with substitution of the hypothesized value identified in step 2 but without any computation at this point. </li></ul>Steps in a Hypothesis-Testing Analysis
- 39. Steps in a Hypothesis-Testing Analysis <ul><li>Check to make sure that any assumptions required for the test are reasonable. </li></ul><ul><li>Compute all quantities appearing in the test statistic and then the value of the test statistic itself. </li></ul><ul><li>Determine the P-value associated with the observed value of the test statistic </li></ul><ul><li>State the conclusion in the context of the problem, including the level of significance. </li></ul>
- 40. Hypothesis Test (Large samples) Single Sample Test of Population Mean In terms of a standard normal random variable z, the approximate P-value for this test depends on the alternate hypothesis and is given for each of the possible alternate hypotheses on the next 3 slides. To test the hypothesis H 0 : µ = hypothesized mean, compute the z statistic
- 41. Hypothesis Test Single Sample Test of Population Mean H 0 : µ = hypothesized mean H A : µ < hypothesized mean
- 42. Hypothesis Test Single Sample Test of Population Mean H 0 : µ = hypothesized mean H A : µ > hypothesized mean
- 43. Hypothesis Test Single Sample Test of Population Mean H 0 : µ = hypothesized mean H A : µ ≠ hypothesized mean
- 44. Reality Check For large values of n (>30) it is generally acceptable to use s to estimate , however, it is much more common to apply the t-distribution. It is not likely that one would know but not know , so calculating a z value using the formula would not be very realistic.
- 45. Hypothesis Test ( unknown) Single Sample Test of Population Mean The approximate P-value for this test is found using a t random variable with degrees of freedom df = n-1. The procedure is described in the next group of slides. To test the null hypothesis µ = hypothesized mean , when we may assume that the underlying distribution is normal or approximately normal, compute the t statistic
- 46. Hypothesis Test Single Sample Test of Population Mean H 0 : µ = hypothesized mean H A : µ < hypothesized mean
- 47. Hypothesis Test Single Sample Test of Population Mean H 0 : µ = hypothesized mean H A : µ > hypothesized mean
- 48. Hypothesis Test Single Sample Test of Population Mean H 0 : µ = hypothesized mean H A : µ ≠ hypothesized mean
- 49. Hypothesis Test ( unknown) Single Sample Test of Population Mean The t statistic can be used for all sample sizes, however, the smaller the sample, the more important the assumption that the underlying distribution is normal. Typically, when n >15 the underlying distribution need only be centrally weighted and may be somewhat skewed.
- 50. Tail areas for t curves
- 51. Tail areas for t curves
- 52. <ul><li>An manufacturer of a special bolt requires that this type of bolt have a mean shearing strength in excess of 110 lb. To determine if the manufacturer’s bolts meet the required standards a sample of 25 bolts was obtained and tested. The sample mean was 112.7 lb and the sample standard deviation was 9.62 lb. Use this information to perform an appropriate hypothesis test with a significance level of 0.05. </li></ul>Example of Hypothesis Test Single Sample Test of Population Mean continued
- 53. Example of Hypothesis Test Single Sample Test of Population Mean continued <ul><li> = the mean shearing strength of this specific type of bolt </li></ul><ul><li> he hypotheses to be tested are </li></ul><ul><ul><li>H 0 : = 110 lb </li></ul></ul><ul><ul><li>H a : 110 lb </li></ul></ul><ul><li>The significance level to be used for the test is = 0.05. </li></ul>The test statistic is
- 54. Example of Hypothesis Test Single Sample Test of Population Mean continued
- 55. Example of Hypothesis Test Single Sample Test of Population Mean conclusion Because P-value = 0.087 > 0.05 = we fail to reject H 0. At a level of significance of 0.05, there is insufficient evidence to conclude that the mean shearing strength of this brand of bolt exceeds 110 lbs.
- 56. Using the t table t = 1.4 n = 25 df = 24 Tail area = 0.087
- 57. Revisit the problem with =0.10 <ul><li>What would happen if the significance level of the test was 0.10 instead of 0.05? </li></ul>At the 0.10 level of significance there is sufficient evidence to conclude that the mean shearing strength of this brand of bolt exceeds 120 lbs. Now P-value = 0.087 < 0.10 = and we reject H 0 at the 0.10 level of significance and conclude
- 58. Comments continued <ul><li>Many people are bothered by the fact that different choices of lead to different conclusions. </li></ul><ul><li>This is nature of a process where you control the probability of being wrong when you select the level of significance. This reflects your willingness to accept a certain level of type I error. </li></ul>
- 59. Another Example <ul><li>A jeweler is planning on manufacturing gold charms. His design calls for a particular piece to contain 0.08 ounces of gold. The jeweler would like to know if the pieces that he makes contain (on the average) 0.08 ounces of gold. To test to see if the pieces contain 0.08 ounces of gold, he made a sample of 16 of these particular pieces and obtained the following data. </li></ul><ul><li>0.0773 0.0779 0.0756 0.0792 0.0777 </li></ul><ul><li>0.0713 0.0818 0.0802 0.0802 0.0785 0.0764 0.0806 0.0786 0.0776 0.0793 0.0755 </li></ul><ul><li>Use a level of significance of 0.01 to perform an appropriate hypothesis test. </li></ul>
- 60. Another Example <ul><li>The population characteristic being studied is = true mean gold content for this particular type of charm. </li></ul><ul><li>Null hypothesis: H 0 : µ = 0.08 oz </li></ul><ul><li>Alternate hypothesis: H a : µ 0.08 oz </li></ul><ul><li>Significance level: = 0.01 </li></ul><ul><li>Test statistic: </li></ul>
- 61. Another Example <ul><li>Minitab was used to create a normal plot along with a graphical display of the descriptive statistics for the sample data. </li></ul>
- 62. Another Example We can see that with the exception of one outlier, the data is reasonably symmetric and mound shaped in shape, indicating that the assumption that the population of amounts of gold for this particular charm can reasonably be expected to be normally distributed.
- 63. Another Example <ul><li>P-value: This is a two tailed test. Looking up in the table of tail areas for t curves, t = 3.2 with </li></ul><ul><li>df = 15 we see the table entry is 0.003 so </li></ul><ul><li>P-Value = 2(0.003) = 0.006 </li></ul>
- 64. Another Example <ul><li>Conclusion: </li></ul><ul><li>Since P-value = 0.006 0.01 = , we reject H 0 at the 0.01 level of significance. </li></ul><ul><li>At the 0.01 level of significance there is convincing evidence that the true mean gold content of this type of charm is not 0.08 ounces. </li></ul><ul><li>Actually when rejecting a null hypothesis for the alternative, a one tailed claim is supported. In this case, at the 0.01 level of significance, there is convincing evidence that the true mean gold content of this type of charm is less than 0.08 ounces. </li></ul>
- 65. Power and Probability of Type II Error <ul><li>The power of a test is the probability of rejecting the null hypothesis. </li></ul><ul><li>When H 0 is false, the power is the probability that the null hypothesis is rejected. Specifically, power = 1 – . </li></ul>
- 66. Effects of Various Factors on Power <ul><li>The larger the size of the discrepancy between the hypothesized value and the true value of the population characteristic, the higher the power. </li></ul><ul><li>The larger the significance level, , the higher the power of the test. </li></ul><ul><li>The larger the sample size, the higher the power of the test. </li></ul>
- 67. Some Comments <ul><li>Calculating (hence power) depends on knowing the true value of the population characteristic being tested. Since the true value is not known, generally, one calculates for a number of possible “true” values of the characteristic under study and then sketches a power curve. </li></ul>
- 68. Example (based on z-curve) <ul><li>Consider the earlier example where we tested H 0 : µ = 110 vs. H a : µ > 110 and furthermore, suppose the true standard deviation of the bolts was actually 10 lbs. </li></ul>
- 69. Example (based on z-curve)
- 70. Example (based on z-curve)

No public clipboards found for this slide

Be the first to comment