Lesson 21 Comparing Two Groups: Means - PowerPoint PPT Presentation

1 / 42
About This Presentation
Title:

Lesson 21 Comparing Two Groups: Means

Description:

Could there be a lurking variable that influences this association? ... We need to measure potential lurking variables and use them in the statistical analysis ... – PowerPoint PPT presentation

Number of Views:205
Avg rating:3.0/5.0
Slides: 43
Provided by: katem152
Category:

less

Transcript and Presenter's Notes

Title: Lesson 21 Comparing Two Groups: Means


1
Lesson 21Comparing Two Groups Means
  • Learn .
  • How to Compare Two Groups On a Quantitative
    Outcome Using Confidence Intervals and
    Significance Tests

2
Section 9.2
  • Quantitative Response How Can We Compare Two
    Means?

3
Comparing Means
  • We can compare two groups on a quantitative
    response variable by comparing their means

4
Independent Samples
  • The observations in one sample are independent of
    those in the other sample
  • Example Randomized experiments that randomly
    allocate subjects to two treatments
  • Example An observational study that separates
    subjects into groups according to their value for
    an explanatory variable

5
Example Teenagers Hooked on Nicotine
  • A 30-month study
  • Evaluated the degree of addiction that teenagers
    form to nicotine
  • 332 students who had used nicotine were evaluated
  • The response variable was constructed using a
    questionnaire called the Hooked on Nicotine
    Checklist (HONC)

6
Example Teenagers Hooked on Nicotine
  • The HONC score is the total number of questions
    to which a student answered yes during the
    study
  • The higher the score, the more hooked on nicotine
    a student is judged to be

7
Example Teenagers Hooked on Nicotine
  • The study considered explanatory variables, such
    as gender, that might be associated with the HONC
    score

8
Example Teenagers Hooked on Nicotine
  • How can we compare the sample HONC scores for
    females and males?
  • We estimate (µ1 - µ2) by (x1 - x2)
  • 2.8 1.6 1.2
  • On average, females answered yes to about one
    more question on the HONC scale than males did

9
Example Teenagers Hooked on Nicotine
  • To make an inference about the difference between
    population means, (µ1 µ2), we need to learn
    about the variability of the sampling
    distribution of

10
Standard Error for Comparing Two Means
  • The difference, , is obtained from
    sample data. It will vary from sample to sample.
  • This variation is the standard error of the
    sampling distribution of

11
Confidence Interval for the Difference between
Two Population Means
  • A 95 CI
  • Software provides the t-score with right-tail
    probability of 0.025

12
Confidence Interval for the Difference between
Two Population Means
  • This method assumes
  • Independent random samples from the two groups
  • An approximately normal population distribution
    for each group
  • this is mainly important for small sample sizes,
    and even then the method is robust to violations
    of this assumption

13
Example Nicotine How Much More Addicted Are
Smokers than Ex-Smokers?
  • Data as summarized by HONC scores for the two
    groups
  • Smokers x1 5.9, s1 3.3, n1 75
  • Ex-smokersx2 1.0, s2 2.3, n2 257

14
Example Nicotine How Much More Addicted Are
Smokers than Ex-Smokers?
  • Were the sample data for the two groups
    approximately normal?
  • Most likely not for Group 2 (based on the sample
    statistics) x2 1.0, s2 2.3)
  • Since the sample sizes are large, this lack of
    normality is not a problem

15
Example Nicotine How Much More Addicted Are
Smokers than Ex-Smokers?
  • 95 CI for (µ1- µ2)
  • We can infer that the population mean for the
    smokers is between 4.1 higher and 5.7 higher than
    for the ex-smokers

16
How Can We Interpret a Confidence Interval for a
Difference of Means?
  • Check whether 0 falls in the interval
  • When it does, 0 is a plausible value for (µ1
    µ2), meaning that it is possible that µ1 µ2
  • A confidence interval for (µ1 µ2) that contains
    only positive numbers suggests that (µ1 µ2) is
    positive
  • We then infer that µ1 is larger than µ2

17
How Can We Interpret a Confidence Interval for a
Difference of Means?
  • A confidence interval for (µ1 µ2) that contains
    only negative numbers suggests that (µ1 µ2) is
    negative
  • We then infer that µ1 is smaller than µ2
  • Which group is labeled 1 and which is labeled
    2 is arbitrary

18
Significance Tests Comparing Population Means
  • 1. Assumptions
  • Quantitative response variable for two groups
  • Independent random samples

19
Significance Tests Comparing Population Means
  • Assumptions (continued)
  • Approximately normal population distributions for
    each group
  • This is mainly important for small sample sizes,
    and even then the two-sided test is robust to
    violations of this assumption

20
Significance Tests Comparing Population Means
  • 2. Hypotheses
  • The null hypothesis is the hypothesis of no
    difference or no effect
  • H0 (µ1- µ2) 0

21
Significance Tests Comparing Population Means
  • 2. Hypotheses (continued)
  • The alternative hypothesis
  • Ha (µ1- µ2) ? 0 (two-sided test)
  • Ha (µ1- µ2) lt 0 (one-sided test)
  • Ha (µ1- µ2) gt 0 (one-sided test)

22
Significance Tests Comparing Population Means
  • 3. The test statistic is

23
Significance Tests Comparing Population Means
  • 4. P-value Probability obtained from the
    standard normal table
  • 5. Conclusion Smaller P-values give stronger
    evidence against H0 and supporting Ha

24
Example Does Cell Phone Use While Driving
Impair Reaction Times?
  • Experiment
  • 64 college students
  • 32 were randomly assigned to the cell phone group
  • 32 to the control group

25
Example Does Cell Phone Use While Driving
Impair Reaction Times?
  • Experiment (continued)
  • Students used a machine that simulated driving
    situations
  • At irregular periods a target flashed red or
    green
  • Participants were instructed to press a brake
    button as soon as possible when they detected a
    red light

26
Example Does Cell Phone Use While Driving
Impair Reaction Times?
  • For each subject, the experiment analyzed their
    mean response time over all the trials
  • Averaged over all trials and subjects, the mean
    response time for the cell-phone group was 585.2
    milliseconds
  • The mean response time for the control group was
    533.7 milliseconds

27
Example Does Cell Phone Use While Driving
Impair Reaction Times?
  • Data

28
Example Does Cell Phone Use While Driving
Impair Reaction Times?
  • Test the hypotheses
  • H0 (µ1- µ2) 0
  • vs.
  • Ha (µ1- µ2) ? 0
  • using a significance level of 0.05

29
Example Does Cell Phone Use While Driving
Impair Reaction Times?
30
Example Does Cell Phone Use While Driving
Impair Reaction Times?
  • Conclusion
  • The P-value is less than 0.05, so we can reject
    H0
  • There is enough evidence to conclude that the
    population mean response times differ between the
    cell phone and control groups
  • The sample means suggest that the population mean
    is higher for the cell phone group

31
Example Does Cell Phone Use While Driving
Impair Reaction Times?
  • What do the box plots tell us?
  • There is an extreme outlier for the cell phone
    group
  • It is a good idea to make sure the results of the
    analysis arent affected too strongly by that
    single observation
  • Delete the extreme outlier and redo the analysis
  • In this example, the t-statistic changes only
    slightly

32
Example Does Cell Phone Use While Driving
Impair Reaction Times?
  • Insight
  • In practice, you should not delete outliers from
    a data set without sufficient cause (i.e., if it
    seems the observation was incorrectly recorded)
  • It is however, a good idea to check for
    sensitivity of an analysis to an outlier
  • If the results change much, it means that the
    inference including the outlier is on shaky ground

33
Section 9.5
  • How Can We Adjust for Effects of Other Variables?

34
A Practically Significant Difference
  • When we find a practically significant difference
    between two groups, can we identify a reason for
    the difference?
  • Warning An association may be due to a lurking
    variable not measured in the study

35
Example Is TV Watching Associated with
Aggressive Behavior?
  • In a previous example, we saw that teenagers who
    watch more TV have a tendency later in life to
    commit more aggressive acts
  • Could there be a lurking variable that influences
    this association?

36
Example Is TV Watching Associated with
Aggressive Behavior?
  • Perhaps teenagers who watch more TV tend to
    attain lower educational levels and perhaps lower
    education tends to be associated with higher
    levels of aggression

37
Example Is TV Watching Associated with
Aggressive Behavior?
  • We need to measure potential lurking variables
    and use them in the statistical analysis
  • If we thought that education was a potential
    lurking variable we would what to measure it

38
Example Is TV Watching Associated with
Aggressive Behavior?
39
Example Is TV Watching Associated with
Aggressive Behavior?
  • This analysis uses three variables
  • Response variable Whether the subject has
    committed aggressive acts
  • Explanatory variable Level of TV watching
  • Control variable Educational level

40
Control Variable
  • A control variable is a variable that is held
    constant in a multivariate analysis (more than
    two variables)

41
Can An Association Be Explained by a Third
Variable?
  • Treat the third variable as a control variable
  • Conduct the ordinary bivariate analysis while
    holding that control variable constant at fixed
    values
  • Whatever association occurs cannot be due to
    effect of the control variable

42
Example Is TV Watching Associated with
Aggressive Behavior?
  • At each educational level, the percentage
    committing an aggressive act is higher for those
    who watched more TV
  • For this hypothetical data, the association
    observed between TV watching and aggressive acts
    was not because of education
Write a Comment
User Comments (0)
About PowerShow.com