Академический Документы
Профессиональный Документы
Культура Документы
Lecture 25
Jun 2, 2010
(Last one, yeah!!!)
Difference between Two Means: Two
Independent Samples
• Goal: compare the means of two populations :
– whether they are different (two-sided test); or
– whether one is larger than another (one-sided test)
• Data for this comparison
– a random sample of size n1 from population A with
mean μ1 and variance σ12
– a random sample of size n2 from population B with
mean μ2 and variance σ22
• The hypotheses of interest
H0: μ1 – μ2 = 0 versus Ha: μ1 – μ2 ‡0
(one-sided: Ha: μ1 – μ2 >0 or Ha: μ1 – μ2 <0)
(we will not do one sided)
Testing The Difference
Between Two Means
• Test statistic :
H 0 : µ1 − µ 2 = 0 versus
H a : one of the three alternativ es
x1 − x2
Test statistic : z =
s12 s22
+
n1 n2
with critical value and/or p - values
based on the standard normal distributi on.
( )
note : if σ 1 (σ 2 ) is known, the true value should be used in place of s1 s2
Example: Diary Intake
• Is there any Avg Daily Men Women
Intakes
difference in average
Sample size 50 50
daily intakes of dairy
products by men and Sample mean 756 762
women ? Use α = 0.05.
Sample Std Dev 35 30
Example: Diary Intake
(Cont.)
• p-value approach:
Basic Concept
--Population and sample: whole vs. part
--Parameter vs. statistics
--Statistical inferences: estimation & testing
Sampling:
--Simple Random Sampling: all possible samples of
the same size are equally likely
--Sampling Distribution of a Statistic
Part III: Estimation and
Testing (Cont.)
Sampling Distribution of Sample Mean & sample
proportion
--Mean and standard error
--CLT: sum/mean of independent, identical random
variables has an approximate normal distribution
Point Estimation
--unbiasedness: mean of estimator=parameter
--error in estimation: SE—standard deviation of
the estimator
--margin of error: 1.96XSE
Part III: Estimation and
Testing (Cont.)
point estimation
--mean and proportion: sample mean and sample
proportion
--difference between two means and two
proportions
• Interval estimation
--confidence coefficient 1-α
--construction and interpretation
--confidence intervals for mean and proportion
and differences
Part III: Estimation and
Testing (Cont.)
Hypothesis testing
--null and alternatives
--test statistics, p-values and rejection region
--two types of errors
--significance level α—maximum allowable type one
error rate of a testing procedure
--making conclusions: reject null or not
Part III: Estimation and
Testing (Cont.)
Test statistic z: standardize the point estimator
under the null and then use standard normal table
-- critical value approach vs. p-value approach
--interpretation and reports
For
--population mean
–-difference between two means
(we did not cover:
-- one-side tests
--population proportion
--difference between two proportions)