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
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.
Case I
Inference on the difference in means of two normal distributions, variance known Hypothesis 1 : 1 2 0 H Test Statistic
Z0 =
2 12 2 + n1 n2
H 0 : 1 2 = 0
X1 X 2 0
or
Z 0 < Z / 2
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 x1 = 121, another 10 specimens are painted with formulation 2; the 20 specimensx2 = 112 are paint in random order. The two sample average drying times are What conclusion can be drawn about the effectiveness of the new 1 2 ingredient, using =0.05 H 0 : 1 2 = 0, H1 : 1 > 2 Parameter of interest is the difference in mean drying time, =0.05
Z0 = X1 X 2 0
1. 2. 1. 1.
+ n1 n2
2 1
2 2
2. 3. 4.
Conclusion : since , we reject H0 at 0.05 significance level. Adding new ingredient to the paint significantly reduces the drying time.
Case I
Sample size
| 0 |
2 12 + 2
n=n1=n2
If the value of n2 , we can use the formula to calculate the value n1 of n1 when n2 is fixed, 2 2
n=
1 + 2 2 12 / n1 + 2 / n2
Case I
Case I
Confidence Interval
The error in estimating 1-2 by x1 x2 will be less than E at 100(1- )% confidence. The required sample size from each population is
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. n1 = 10data obtained=are 2as74.5, 2 = 1.5 The , x1 = 87.6, 1 = 1, n2 12, x = follows: Find a 90% confidence interval on the difference in mean strength 1-2
Case I.I
We can use the concept of Case I for the cases that we dont know exactly about the population distribution (may be not normal distribution) and the number of sample size are large. (n1, n2 >=40)
Case II.I
Inference on the difference in means of two normal distributions, variance unknown 2 2 Case 1: 1 = 2 = Hypothesis H 0 : 1 2 = 0
H1 : 1 2 0
Test Statistic
X X 2 0 T0 = 1 1 1 Sp + n1 n2
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.
Case II.I
1. 2. 1. 1.
Parameter of interest: 1 and 2, the mean process yield using C1, and C2 H0: 1-2=0 or H0: 1=2 , H1: 12 =0.05 Test statistic Reject H0 if Calculate t0;
T0 = X1 X 2 0 is S p 1 + 1 n1 n2
2 ,Sp = 2 (n1 1) S12 + (n2 1) S 2 n1 + n2 2
2. 3.
4.
Case II.II
Inference on the difference in means of two normal distributions, variance unknown 2 2 Case 2: 1 2 Hypothesis H 0 : 1 2 = 0
H1 : 1 2 0
X1 X 2 0 S1 S 2 + n1 n2
Degree of freedom
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.
Case II.II
2 12 2
Case II.II
1.
Parameter of interest: 1 and 2, the mean arsenic concentration of two regions H0: 1-2=0 or H0: 1=2 , H1: 12 =0.05
T Test statistic:=
* 0
2. 1. 1.
X1 X 2 0 S1 S 2 + n1 n2
2.
or t0 < t0.025,
3.
Compute t0
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
Case II
Sample size can be approximated by OC curves Only for the case that 1= 2
d Where = | 0 | 2
n and= 2n 1
*
Ex.
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
Pair t-test Tip1 Tip2
Sheet Metal
2 sample test
H 0 : D = 0 H1 : D 0
Test Statistic
T0 =
D 0 SD n
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.
Parameter of interest: the difference in mean shear strength between the two methods D=1-2 H0: D=0, H1: D0 =0.05
D 0 Test statistic: S D n T0 =
2. 1. 1. 2. 3.
0.2739 0 = 6.08 9
4.
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
Confidence Interval
Ex
Hypothesis Test
H 0 : 1 = 2 H1 : 1 2
S12 Statistic F0 = 2 S2
1 ,u ,v =
Ex
Sample size: can be approximated by OC curve Only forthe case that n1=n2=n = Where Ex
2
1
Hypothesis
H 0 : p1 = p2 H1 : p1 p2 P P2 1 X + X2 ,P = 1 n1 + n2 1 1 P (1 P)( + ) n1 n2
Z0 Test Statistic =
or
z0 < z / 2
Type II error
Sample size
Ex
Homework
1.
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 observation as follows: C2F6
flow rate 1 125 200 2.7 4.6 2 4.6 3.4 3 2.6 2.9 4 3.0 3.5 5 3.2 4.1 6 3.8 5.1
a) b) c)
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.
d)
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:
a)
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?
b) c)