1 / 41

Test of Hypotheses: Two Sample.

Test of Hypotheses: Two Sample. Outlines: Inference on the difference in means of two normal distributions, variance known Inference on the difference in means of two normal distributions, variance unknown Paired t-test Inference on the variances of two normal distributions

troy-curtis
Download Presentation

Test of Hypotheses: Two Sample.

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. Test of Hypotheses: Two Sample. Outlines: • Inference on the difference in means of two normal distributions, variance known • Inference on the difference in means of two normal distributions, variance unknown • Paired t-test • Inference on the variances of two normal distributions • Inference on the two population proportions

  2. Hypothesis testing • Engineers and scientist are often interested in comparing two difference conditions to determine whether either conditions produce a significant effect on the response. • Condition => Treatment • Cause and effect relationship: the difference in treatments resulted in the difference in response.

  3. Case I • Inference on the difference in means of two normal distributions, variance known • Hypothesis • Test Statistic • We should reject H0 if

  4. Case I • Ex. A product developer is interested in reducing the drying time of a primer paint. Two formulations (old, new) of the paint are tested. The sd of drying time is 8 mins. Ten specimens are paint with formulation 1, and another 10 specimens are painted with formulation 2; the 20 specimens are paint in random order. The two sample average drying times are • What conclusion can be drawn about the effectiveness of the new ingredient, using =0.05 • Parameter of interest is the difference in mean drying time, • =0.05 • Test statistic , • reject H0 if • Calculate Z0 = 2.52 • Conclusion : since , we reject H0 at 0.05 significance level. Adding new ingredient to the paint significantly reduces the drying time.

  5. Case I • Sample size • Using Operating Characteristic Curve (OC Curve) If the value of , we can use the formula to calculate the value of n1 when n2 is fixed, n=n1=n2

  6. Case I • Sample Size formulas

  7. Case I • Confidence Interval The error in estimating µ1-µ2 by will be less than E at 100(1- )% confidence. The required sample size from each population is

  8. Case I • Ex. Tensile strength tests were performed on two different grades of aluminum spars. From past experience with the spar manufacturing process and testing procedure, the standard deviations of the tensile strengths are assumed to be known. The data obtained are as follows: • Find a 90% confidence interval on the difference in mean strength µ1-µ2

  9. Case I.I • We can use the concept of Case I for the cases that we don’t know exactly about the population distribution (may be not normal distribution) and the number of sample size are large. (n1, n2 >=40)

  10. Case II.I • Inference on the difference in means of two normal distributions, variance unknown • Case 1: • Hypothesis • Test Statistic • We should reject H0 if Pooled Estimator of variance

  11. Case II.I • Ex. Two catalysts are being analyzed to determine how they affect the mean yield of a chemical process. Specifically, catalyst 1 is currently in use, but catalyst 2 is acceptable. Since catalyst 2 is cheaper, it should be adopted, providing it does not change the process yield. A test is run in the pilot plant and results in the data shown in Table. Is there any difference between the mean yields? Use =0.05, and assume equal variances.

  12. Case II.I • Parameter of interest: µ1 and µ2, the mean process yield using C1, and C2 • H0: µ1-µ2=0 or H0: µ1=µ2 , H1: µ1≠µ2 • =0.05 • Test statistic is • Reject H0 if • Calculate t0; • Conclusion H0 cannot be rejected. At the 0.05 level of significant, we do not have a strong evidence to conclude that C2 results in a mean yield differ from C1

  13. Case II.II • Inference on the difference in means of two normal distributions, variance unknown • Case 2: • Hypothesis • Test Statistic • We should reject H0 if Degree of freedom

  14. Case II.II • Ex. Arsenic concentration in public drinking water supplies is a potential health risk. An article in the Arizona Republic reported drinking water arsenic concentration in parts per billion (ppb) for 10 metropolitan Phoenix communities and 10 communities in rural Arizona.

  15. Case II.II

  16. Case II.II • Parameter of interest: µ1 and µ2, the mean arsenic concentration of two regions • H0: µ1-µ2=0 or H0: µ1=µ2 , H1: µ1≠µ2 • =0.05 • Test statistic: • We should reject H0 if • Compute t0

  17. Case II.II 7. Conclusion: t0<t0.025,13, we reject H0. There is evidence to conclude that the mean arsenic concentration in the drinking water in rural Arizona is differ from the mean arsenic concentration in metropolitan Phoenix. Furthermore, the mean arsenic is higher in rural of Arizona. P value is approximate P=0.016

  18. Case II • Sample size can be approximated by OC curves • Only for the case that 1= 2 • Where and • Ex.

  19. Case III: Paired t- test • A special case of the two-sample t-test. This test is used when the observations on the two populations of interest are collected in pairs. • Each pair of observations is taken under homogeneous condition. • Ex. We are interested in comparing two different types of tips for a hardness-testing machine. Tip1 Tip2 Tip1 Tip2 Pair t-test Comparing the depth of the depression caused by the tips Sheet Metal 2 sample test

  20. Case III: Paired t-test • Paired t-test • Hypothesis • Test Statistic • We should reject H0 if

  21. Case III: Paired t-test • Ex. An article in the journal of Strain Analysis compares several methods for predicting the shear strength for steel plate girders. Data for two of these methods, Karlsruhe and Lehigh procedures, when applied to nine specific girders are shown in table. We wish to determine whether there is any difference between the two methods.

  22. Case III: Paired t-test • Parameter of interest: the difference in mean shear strength between the two methods µD=µ1-µ2 • H0: µD=0, H1: µD≠0 • =0.05 • Test statistic: • We should reject H0 if • Calculate t0 • T0 =6.08>2.306, we conclude that the strength prediction methods yield different results. Specifically, the data indicate that the Karlsruhe method procedures, on the average, higher strength predictions than does the Lehigh method. P value for t0 = 6.08 is P=0.0003

  23. Case III: Paired t-test • Confidence Interval

  24. Case III: Paired t-test • Ex

  25. Inference on the variance two normal distribution • Hypothesis • Test Statistic • We should reject H0 if

  26. Inference on the variance two normal distribution • Ex

  27. Inference on the variance two normal distribution

  28. Inference on the variance two normal distribution • Sample size: can be approximated by OC curve • Only for the case that n1=n2=n • Where • Ex

  29. Inference on the variance two normal distribution • Confidence Interval on the ratio of two variances

  30. Inference on the variance two normal distribution Ex.

  31. Inference on the variance two normal distribution

  32. Test on two population proportion • Hypothesis • Test Statistic • We should reject H0 if

  33. Test on two population proportion Ex.

  34. Test on two population proportion

  35. Test on two population proportion • Type II error

  36. Test on two population proportion • Sample size • For one sided, replace /2 by 

  37. Test on two population proportion • Confidence Interval on the difference in Population proportions

  38. Test on two population proportion • Ex

  39. Test on two population proportion

  40. Homework • Using Minitab program to find the conclusion of these problems. • An article in solid state technology describes an experiment to determine the effect of the C2F6 flow rate on the uniformly of the etch on a silicon wafer used in integrated circuit manufacturing. Data for two flow rate are as follows: • Does the C2F6 flow rate affect average etch uniformity? Use =0.05 • What is the P-value for the test in a) • Does the C2F6 flow rate affect the variability in etch uniformity? Use =0.05 • Draws box plots to assist in the interpretation of the data from this etch uniformity.

  41. Homework 2. A computer scientist is investigating the usefulness of two different design languages in improving programming task. Twelve expert programmers, familiar with both languages, are asked to code a standard function in both language, and the time (in minutes) is recorded. The data follow: • Is the assumption that the difference in coding time is normally distributed reasonable? • Find P-value for the test in a) • Find a 95% confidence interval on the difference in mean coding times. Is there any indication that one design language is preferable?

More Related