Docsity

Inference for Two-Sample Design with Categorical & Quantitative Variables - Prof. Nancy M., Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
(C) 2007 Nancy Pfenning
Elementary Statistics: Looking at the Big Picture 1
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture
Lecture 29
Categorical & Quantitative Variable
Inference in Two-Sample Design
Sampling Distribution o f Difference between M eans
2-sample t Statistic for Hypothesis Test
Test with Software or b y Hand
2-sample Confidence I nterval
Pooled 2-sample t P rocedures
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29.2
Looking Back: Review
4 Stages of Statistics
Data Production (discuss ed in Lectures 1-4)
Displaying and Summari zing (Lectures 5-12)
Probability (discussed in Lectures 13-20)
Statistical Inference
1 categorical (discussed in Le ctures 21-23)
1 quantitative (discussed in Le ctures 24-27)
cat and quan: paired, 2-samp le, several-sample
2 categorical
2 quantitative
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29.3
Inference Methods for CQ (Review)
Paired: reduces to 1-sample t (already covered)
Focused on mean of diff erences
Two-Sample: 2-sample t (similar to 1-sample t)
Focus on difference between means
Several-Sample: need new distribution (F)
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29.4
Display & Summary, 2-Sample Design (Review)
Display: Side-by-side boxplots:
One boxplot for ea ch categorical group
Both share same quantita tive scale
Summarize: Compare
Five Number Summaries (looking at boxplots)
Means and Standard Dev iations
Looking Ahead: Infere nce for population relatio nship
will focus on means and standard deviations.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Inference for Two-Sample Design with Categorical & Quantitative Variables - Prof. Nancy M. and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture

Lecture 29

Categorical & Quantitative Variable

Inference in Two-Sample Design

Sampling Distribution of Difference between Means 2-sample t Statistic for Hypothesis Test Test with Software or by Hand 2-sample Confidence Interval Pooled 2-sample t Procedures (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 2

Looking Back: Review

4 Stages of Statistics  Data Production (discussed in Lectures 1-4)  Displaying and Summarizing (Lectures 5-12)  Probability (discussed in Lectures 13-20)  Statistical Inference  1 categorical (discussed in Lectures 21-23)  1 quantitative (discussed in Lectures 24-27)  cat and quan: paired, 2-sample, several-sample  2 categorical  2 quantitative (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 3

Inference Methods for CQ (Review)

 Paired: reduces to 1-sample t (already covered)  Focused on mean of differences  Two-Sample: 2-sample t (similar to 1-sample t )  Focus on difference between means  Several-Sample: need new distribution ( F ) (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 4

Display & Summary, 2-Sample Design (Review)

Display: Side-by-side boxplots:  One boxplot for each categorical group  Both share same quantitative scale  Summarize: Compare  Five Number Summaries (looking at boxplots)  Means and Standard Deviations Looking Ahead: Inference for population relationship will focus on means and standard deviations.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 5

Notation

 Sample Sizes

 Sample

 Means  Standard deviations

 Population

 Means  Standard deviations (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 6

Two-Sample Inference

Inference about  Test: Is it zero? (Suggests categorical explanatory variable does not impact quantitative response)  C.I.: If diff , how different are pop means? Looking Back: Estimated with ; established the center, spread, and shape of relative to. Now estimate with … (Probability background) as R.V., has what center, spread and shape? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 7

Two-Sample Inference

Inference about  Test: Is it zero? (Suggests categorical explanatory variable does not impact quantitative response)  C.I.: If diff , how different are pop means? Estimate with … (Probability background) As R.V., has  Center:Spread:Shape: mean (if samples are unbiased) s.d. (if independent) (if sample means are normal) normal (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 8

Two-Sample Inference

Note: claiming that the difference between population means is zero (or not) is equivalent to claiming the population means are equal (or not).

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 13

What Makes Two-Sample t Large

Two-sample t statistic

large in absolute value if…

 far from

 Sample sizes large

 Standard deviations small

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 14

Example: Sample Means’ Effect on P-Value

Background : A two-sample t statistic has been computed to test  Question: How does the size of the difference between sample means affect the P -value, in terms of area under the two-sample t curve? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 16

Example: Sample Means’ Effect on P-Value

Background : A two-sample t statistic has been computed to test  Response: If the difference is not large, the P -value is ________. (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 18

Example: Sample Means’ Effect on P-Value

Background : A two-sample t statistic has been computed to test  Response: As the difference becomes large, the P -value becomes ______.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 19

Example: Sample S.D.s’ Effect on P-Value

Background : Boxplots with could appear as on left or right, depending on s.d.s.  Question: For which scenario does the difference between means appear more significant? Context: sample mean monthly pay (in $1000s) for females ($3000) vs. males ($4000). (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 21

Example: Sample S.D.s’ Effect on P-Value

Background : Boxplots with could appear as on left or right, depending on s.d.s.  Response: Difference between means appears more significant on _______: smaller s.d.s (less spread)_______overlap Context: sample mean monthly pay (in $1000s) for females ($3000) vs. males ($4000). (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 22

Example: Sample S.D.s’ Effect on Conclusion

Background : Boxplots with could appear as on left or right, depending on s.d.s.  Question: For which scenario are we more likely to reject? Context: sample mean monthly pay (in $1000s) for females ($3000) vs. males ($4000). (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 24

Example: Sample S.D.s’ Effect on Conclusion

Background : Boxplots with could appear as on left or right, depending on s.d.s.  Response: Scenario on _______: smaller s.d.s larger two-sample t smaller P -value rejecting is __________ Context: sample mean monthly pay (in $1000s) for females ($3000) vs. males ($4000).

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 31

Example: Two-Sample t by Hand

Background : Students’ age and sex summaries: 281 females: mean 20.28 sd 3.34; 163 males: mean 20.53 sd 1.  Question: Are students’ sex and age related? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 33

Example: Two-Sample t by Hand

Background : Students’ age and sex summaries: 281 females: mean 20.28 sd 3.34; 163 males: mean 20.53 sd 1.  Response: Testing for relationship same as testing

. : ___________ vs. : __________ Standardized diff between sample mean ages is Samples are large2-sample t about same as z. | t| just under 1 P -val for 2-sided just over ____ Small? ___evidence that sex&age are related? __ (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 35

Example: Two-Sample t by Hand

Note: Software output consistent with results by hand. Samples are large2-sample t about same as z. | t| just under 1 P -val for 2-sided just over ___ (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 36

Two-Sample Confidence Interval

Confidence interval for diff between population

means is

 Multiplier from two-sample t distribution  Multiplier smaller for lower confidence  Multiplier smaller for larger df If samples are large, multiplier for 95% confidence is 2, as for z distribution.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 37

Example: Two-Sample Confidence Interval

Background : Students’ age and sex summaries: 281 females: mean 20.28 sd 3.34; 163 males: mean 20.53 sd 1.  Question: What interval should contain difference between population mean ages? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 39

Example: Two-Sample Confidence Interval

Background : Students’ age and sex summaries: 281 females: mean 20.28 sd 3.34; 163 males: mean 20.53 sd 1.  Response: For this large a sample size, 2-sample t multiplier same as z multiplier, 2 : We’re 95% sure that females are between ___ years younger and __ years older than males, on average. Thus, _____ is a plausible age difference, consistent with test not rejecting Ho. (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 40

Example: Interpreting Confidence Interval

Background : A 95% confidence interval for difference between population mean hts, in inches , females minus males, is (-6.4, -5.3).  Question: What does the interval tell us? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 42

Example: Interpreting Confidence Interval

Background : A 95% confidence interval for difference between population mean hts, in inches , females minus males, is (-6.4, -5.3).  Response: We’re 95% sure that, on average, females are shorter by ___ to ___ inches. We would reject the null hypothesis of equal population means.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L29. 49

Example: Checking Rule for Pooled t

Background : Consider use of pooled t procedure.  Response: We check if larger s.d. is more than twice smaller in each case.  ____, so pooled t ______.  ____, so pooled t ______. (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L19. 50

Lecture Summary

(Inference for Cat & Quan; Two-Sample)

 Inference for 2-sample design  Notation  Test  Confidence interval  Sampling distribution of diff between means  2-sample t statistic (role of diff between sample means, standard deviation sizes, sample sizes)  Test with software or by hand  Confidence interval  Pooled 2-sample t procedures