程序代写代做 data structure go html flex C graph data mining algorithm Hive ER case study Excel DNA game Bayesian The Statistical Sleuth

The Statistical Sleuth
A Course in Methods of Data Analysis
THIRD EDITION
Fred L. Ramsey
Oregon State University
Daniel W. Schafer
Oregon State University
Australia  Canada  Mexico  Singapore  Spain  United Kingdom  United States
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

This is an electronic version of the print textbook. Due to electronic rights restrictions, some third party content may be suppressed. Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. The publisher reserves the right to remove content from this title at any time if subsequent rights restrictions require it. For valuable information on pricing, previous editions, changes to current editions, and alternate formats, please visit www.cengage.com/highered to search by
ISBN#, author, title, or keyword for materials in your areas of interest.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

The Statistical Sleuth: A Course in Methods of Data Analysis, Third Edition
Fred L. Ramsey, Daniel W. Schafer
Publisher: Richard Stratton
Senior Sponsoring Editor: Molly Taylor
Assistant Editor: Shaylin Walsh Hogan
Editorial Assistant: Alexander Gontar
Associate Media Editor: Andrew Coppola
Senior Marketing Manager: Barb Bartoszek
Marketing Assistant: Lindsy M Lettre
Marketing Communications Manager: Mary Anne Payumo
Manufacturing Planner: Doug Bertke
Rights Acquisitions Specialist: Shalice Shah-Caldwell
Design Direction, Production Management, and Composition: PreMediaGlobal
Cover Image: © Pali Rao/iStockphoto.com
© 2013, 2002 Brooks/Cole, Cengage Learning
ALL RIGHTS RESERVED. No part of this work covered by the copyright herein may be reproduced, transmitted, stored, or used in any form or by any means graphic, electronic, or mechanical, including but not limited to photocopying, recording, scanning, digitizing, taping, Web distribution, information networks, or information storage and retrieval systems, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the publisher.
Library of Congress Control Number: 2012931469
Student Edition:
ISBN-13: 978-1-133-49067-8 ISBN-10: 1-133-49067-0
Brooks/Cole
20 Channel Center Street Boston, MA 02210
USA
Cengage Learning is a leading provider of customized learning solutions with office locations around the globe, including Singapore, the United Kingdom, Australia, Mexico, Brazil and Japan. Locate your local office at international.cengage.com/region
Cengage Learning products are represented in Canada by Nelson Education, Ltd. For your course and learning solutions, visit www.cengage.com
Purchase any of our products at your local college store or at our preferred online store www.cengagebrain.com
Instructors: Please visit login.cengage.com and log in to access instructor-specific resources.
All Displays in this edition are owned by Cengage Learning. © 2013 Cengage Learning
For product information and technology assistance, contact us at
Cengage Learning Customer & Sales Support, 1-800-354-9706
For permission to use material from this text or product, submit all requests online at www.cengage.com/permissions. Further permissions questions can be emailed to permissionrequest@cengage.com
Printed in the United States of America 1 2 3 4 5 6 7 16 15 14 13 12
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Dedications
To influential teachers Don Truax and Bob Buehler—F.L.R To Jeannie, Banner, and Casey—D.S.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 1
1.1 1.2
1.3 1.4 1.5
1.6 1.7
CHAPTER 2
Contents
Preface
Drawing Statistical Conclusions
xx 1
iv
2.1
2.2
Case Studies 29
2.1.1 Evidence Supporting Darwin’s Theory of Natural Selection—An Obser-
vational Study 29
2.1.2 Anatomical Abnormalities Associated with Schizophrenia—An Obser-
vational Study 31
One-Sample t-Tools and the Paired t-Test 32
2.2.1 The Sampling Distribution of a Sample Average 32
Case Studies 2
1.1.1 Motivation and Creativity—A Randomized Experiment
1.1.2 Sex Discrimination in Employment—An Observational Study
Statistical Inference and Study Design 5
1.2.1 Causal Inference 5
1.2.2 Inference to Populations 7
1.2.3 Statistical Inference and Chance Mechanisms 8
Measuring Uncertainty in Randomized Experiments 10
1.3.1 A Probability Model for Randomized Experiments 10
1.3.2 A Test for Treatment Effect in the Creativity Study 11
Measuring Uncertainty in Observational Studies 14
1.4.1 A Probability Model for Random Sampling 14
1.4.2 Testing for a Difference in the Sex Discrimination Study 15
Related Issues 16
1.5.1 Graphical Methods 16
1.5.2 Standard Statistical Terminology 19
1.5.3 Randomization of Experimental Units to Treatments
1.5.4 Selecting a Simple Random Sample from a Population
1.5.5 On Being Representative 22
Summary 22
Exercises 22
Conceptual Exercises 22 Computational Exercises 24
Data Problems 25
Answers to Conceptual Exercises 26
Inference Using t -Distributions
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
21 21
2
4
28

2.3
2.4 2.5
2.6 2.7
CHAPTER 3
3.1
3.2
3.3
3.4 3.5
3.6
3.7 3.8
2.2.2 The Standard Error of an Average in Random Sampling 34
2.2.3 The t-Ratio Based on a Sample Average 35
2.2.4 Unraveling the t-Ratio 36
A t-Ratio for Two-Sample Inference 38
2.3.1 Sampling Distribution of the Difference Between Two Independent Sample Averages 39
2.3.2 Standard Error for the Difference of Two Averages 40
2.3.3 Confidence Interval for the Difference Between Population Means
2.3.4 Testing a Hypothesis About the Difference Between Means 43
2.3.5 The Mechanics of p-Value Computation 45
Inferences in a Two-Treatment Randomized Experiment 45
2.4.1 Approximate Uncertainty Measures for Randomized Experiments Related Issues 47
2.5.1 Interpretation of p-Values 47
2.5.2 An Example of Confidence Intervals 49
2.5.3 The Rejection Region Approach to Hypothesis Testing
Summary 51
Exercises 51
Conceptual Exercises 51 Computational Exercises 52
Data Problems 54
Answers to Conceptual Exercises 56
A Closer Look at Assumptions
42
46
Contents
v
Case Studies 59
3.1.1 Cloud Seeding to Increase Rainfall—A Randomized Experiment
3.1.2 Effects of Agent Orange on Troops in Vietnam—An Observational
59
Study 60
Robustness of the Two-Sample t-Tools 62
3.2.1 The Meaning of Robustness 62
3.2.2 Robustness Against Departures from Normality 62
3.2.3 Robustness Against Differing Standard Deviations 64
3.2.4 Robustness Against Departures from Independence 65
Resistance of the Two-Sample t-Tools 66
3.3.1 Outliers and Resistance 66
3.3.2 Resistance of t-Tools 67
Practical Strategies for the Two-Sample Problem 67 Transformations of the Data 69
3.5.1 The Logarithmic Transformation 69
3.5.2 Interpretation After a Log Transformation 71
3.5.3 Other Transformations for Positive Measurements 74
Related Issues 75
3.6.1 Prefer Graphical Methods over Formal Tests for Model Adequacy 75
3.6.2 Robustness and Transformation for Paired t-Tools 76
3.6.3 Example—Schizophrenia 76
Summary 76
Exercises 77
Conceptual Exercises 77 Computational Exercises 79
Data Problems 82
Answers to Conceptual Exercises 84
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
50
58

vi
Contents
CHAPTER 4
4.1 4.2
4.3
4.4 4.5
4.6 4.7
CHAPTER 5
5.1 5.2
5.3 5.4 5.5 5.6
Alternativestothet-Tools 85
Case Studies 86
4.1.1 Space Shuttle O-Ring Failures—An Observational Study 86
4.1.2 Cognitive Load Theory in Teaching—A Randomized Experiment 87
The Rank-Sum Test 88
4.2.1 The Rank Transformation 89
4.2.2 The Rank-Sum Statistic 90
4.2.3 Finding a p -Value by Normal Approximation 90
4.2.4 A Confidence Interval Based on the Rank-Sum Test 94
Other Alternatives for Two Independent Samples 95
4.3.1 Permutation Tests 95
4.3.2 The Welch t-Test for Comparing Two Normal Populations with Unequal
Spreads 97 Alternatives for Paired Data 99
4.4.1 The Sign Test 99
4.4.2 The Wilcoxon Signed-Rank Test 100
Related Issues 102
4.5.1 Practical and Statistical Significance 102
4.5.2 The Presentation of Statistical Findings 103
4.5.3 Levene’s (Median) Test for Equality of Two Variances
4.5.4 Survey Sampling 104
Summary 105
Exercises 106
Conceptual Exercises 106 Computational Exercises 106
Data Problems 109
Answers to Conceptual Exercises 111
Comparisons Among Several Samples
103
Case Studies 114
5.1.1 Diet Restriction and Longevity—A Randomized Experiment
5.1.2 The Spock Conspiracy Trial—An Observational Study 117
Comparing Any Two of the Several Means 119
5.2.1 An Ideal Model for Several-Sample Comparisons 119
5.2.2 The Pooled Estimate of the Standard Deviation 120
5.2.3 t-Tests and Confidence Intervals for Differences of Means 120
The One-Way Analysis of Variance F-Test 121
114
5.3.1
5.3.2
More
5.4.1
5.4.2
Robustness and Model Checking 130
5.5.1 Robustness to Assumptions 130
5.5.2 Diagnostics Using Residuals 131
Related Issues 133
5.6.1 Further Illustration of the Different Sources of Variability 133
5.6.2 Kruskal–Wallis Nonparametric Analysis of Variance 136
5.6.3 Random Effects 137
5.6.4 Separate Confidence Intervals and Significant Differences 139
The Extra-Sum-of-Squares Principle 122
The Analysis of Variance Table for One-Way Classification 126 Applications of the Extra-Sum-of-Squares F-Test 127
Example: Testing Equality in a Subset of Groups 127
Summary of ANOVA Tests Involving More Than Two Models 129
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
113

5.7 5.8
CHAPTER 6
6.1
6.2
6.3 6.4
6.5
6.6 6.7
CHAPTER 7
7.1 7.2 7.3
Summary 140
Exercises 141
Conceptual Exercises 141 Computational Exercises 142
Data Problems 146
Answers to Conceptual Exercises 147
Linear Combinations and Multiple Comparisons of Means
Case Studies 150
6.1.1 Discrimination Against the Handicapped—A Randomized
149
Contents
vii
Experiment 150
6.1.2 Pre-Existing Preferences of Fish—A Randomized Experiment Inferences About Linear Combinations of Group Means 152
6.2.1 Linear Combinations of Group Means 152
6.2.2 Inferences About Linear Combinations of Group Means 154
6.2.3 Specific Linear Combinations 155
Simultaneous Inferences 159
Some Multiple Comparison Procedures 161
6.4.1 Tukey–Kramer Procedure and the Studentized Range Distributions
161
6.4.2 Dunnett’s Procedure 162
6.4.3 Scheff ́e’s Procedure 162
6.4.4 Other Multiple Comparisons Procedures 162
6.4.5 Multiple Comparisons in the Handicap Study 164
6.4.6 Choosing a Multiple Comparisons Procedure 165
Related Issues 165
6.5.1 Reasoning Fallacies Associated with Statistical Hypothesis Testing and
p-Values 165
6.5.2 Example of a Hypothesis Based on How the Data Turned Out
165
6.5.3 Is Choosing a Transformation a Form of Data Snooping? Summary 169
Exercises 170
Conceptual Exercises 170
Computational Exercises 171
Data Problems 173
Answers to Conceptual Exercises 175
Simple Linear Regression: A Model for the Mean
Case Studies 177
7.1.1 The Big Bang—An Observational Study 177
7.1.2 Meat Processing and pH—A Randomized Experiment
The Simple Linear Regression Model 180
7.2.1 Regression Terminology 180
7.2.2 Interpolation and Extrapolation 181
Least Squares Regression Estimation 183
7.3.1 Fitted Values and Residuals 183
7.3.2 Least Squares Estimators 184
7.3.3 Sampling Distributions of the Least Squares Estimators
7.3.4 Estimation of  from Residuals 184
7.3.5 Standard Errors 186
169
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
179
184
151
176

viii
Contents
7.4
7.5
7.6 7.7
CHAPTER 8
8.1
8.2 8.3
8.4 8.5
8.6
8.7 8.8
CHAPTER 9
9.1
Inferential Tools 188
7.4.1 Tests and Confidence Intervals for Slope and Intercept 188
7.4.2 Describing the Distribution of the Response Variable at Some Value of
the Explanatory Variable 189
7.4.3 Prediction of a Future Response 191
7.4.4 Calibration: Estimating the X That Results in Y = Y0 192
Related Issues 194
7.5.1 Historical Notes About Regression 194
7.5.2 Differing Terminology 196
7.5.3 Causation 196
7.5.4 Correlation 196
7.5.5 Planning an Experiment: Replication 197
Summary 197
Exercises 198
Conceptual Exercises 198 Computational Exercises 199
Data Problems 202
Answers to Conceptual Exercises 206
A Closer Look at Assumptions for Simple Linear Regression
207
208
Case Studies 208
8.1.1 Island Area and Number of Species—An Observational Study
8.1.2 Breakdown Times for Insulating Fluid Under Different Voltages—A
Controlled Experiment 209 Robustness of Least Squares Inferences 211 Graphical Tools for Model Assessment 213
8.3.1 Scatterplot of the Response Variable Versus the Explanatory Variable
213
8.3.2 Scatterplots of Residuals Versus Fitted Values 215
Interpretation After Log Transformations 216 Assessment of Fit Using the Analysis of Variance 218
8.5.1 Three Models for the Population Means 218
8.5.2 The Analysis of Variance Table Associated with Simple Regression 218
8.5.3 The Lack-of-Fit F-Test 220
8.5.4 A Composite Analysis of Variance Table 220
Related Issues 222
8.6.1 R-Squared: The Proportion of Variation Explained 222
8.6.2 Simple Linear Regression or One-Way Analysis of Variance?
8.6.3 Other Residual Plots for Special Situations
224
8.6.4 Planning an Experiment: Balance Summary 226
Exercises 227
Conceptual Exercises 227 Computational Exercises 229
225
Data Problems 231
Answers to Conceptual Exercises
Multiple Regression
235
Case Studies 238
9.1.1 Effects of Light on Meadowfoam Flowering—A Randomized Experiment
238
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
223
237

9.2 9.3
9.4 9.5
9.6
9.7 9.8
CHAPTER 10
10.1
10.2
10.3
10.4
9.1.2 Why Do Some Mammals Have Large Brains for Their Size?—An Observational Study 239
Regression Coefficients 242
9.2.1 The Multiple Linear Regression Model 242
9.2.2 Interpretation of Regression Coefficients
Specially Constructed Explanatory Variables 246
9.3.1 A Squared Term for Curvature 246
9.3.2 An Indicator Variable to Distinguish Between Two Groups 247
9.3.3 Sets of Indicator Variables for Categorical Explanatory Variables with
Contents ix
243
More Than Two Categories 249
9.3.4 A Product Term for Interaction 250
9.3.5 A Shorthand Notation for Model Description 252
A Strategy for Data Analysis 253
Graphical Methods for Data Exploration and Presentation
9.5.1 A Matrix of Pairwise Scatterplots 254
9.5.2 Coded Scatterplots 257
9.5.3 Jittered Scatterplots 257
9.5.4 Trellis Graphs 257
Related Issues 258
9.6.1 Computer Output 258
9.6.2 Factorial Treatment Arrangement 259
Summary 260
Exercises 261
Conceptual Exercises 261 Computational Exercises 263
Data Problems 267
Answers to Conceptual Exercises 269
Inferential Tools for Multiple Regression
254
Case Studies 272
10.1.1 Galileo’s Data on the Motion of Falling Bodies—A Controlled
Experiment 272
10.1.2 The Energy Costs of Echolocation by Bats—An Observational Study
273
Inferences About Regression Coefficients 275
10.2.1 Least Squares Estimates and Standard Errors 276
10.2.2 Tests and Confidence Intervals for Single Coefficients 277
10.2.3 Tests and Confidence Intervals for Linear Combinations of Coefficients
280
10.2.4 Prediction 283
Extra-Sums-of-Squares F-Tests 284
10.3.1 Comparing Sizes of Residuals in Hierarchical Models 285
10.3.2 F-Test for the Joint Significance of Several Terms 285
10.3.3 The Analysis of Variance Table 287
Related Issues 289
10.4.1 Further Notes on the R-Squared Statistic 289
10.4.2 Improving Galileo’s Design with Replication 292
10.4.3 Variance Formulas for Linear Combinations of Regression Coefficients
293
10.4.4 Further Notes About Polynomial Regression 295
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
271

x
Contents
10.5 10.6
CHAPTER 11
11.1
11.2 11.3 11.4
11.5 11.6
11.7 11.8
CHAPTER 12
12.1 12.2
12.3
310
10.4.5 Finding Where the Mean Response Is at Its Maximum in Quadratic Regression 295
10.4.6 The Principle of Occam’s Razor
10.4.7 Informal Tests in Model Fitting
Summary 296 Exercises 297
Conceptual Exercises 297 Computational Exercises 299
Data Problems 304
Answers to Conceptual Exercises 309
Model Checking and Refinement
296 296
Case Studies 311
11.1.1 Alcohol Metabolism in Men and Women—An Observational Study 311
11.1.2 The Blood–Brain Barrier—A Controlled Experiment 313
Residual Plots 316
A Strategy for Dealing with Influential Observations 319 Case-Influence Statistics 322
11.4.1 Leverages for Flagging Cases with Unusual Explanatory Variable Values
322
11.4.2 Studentized Residuals for Flagging Outliers 325
11.4.3 Cook’s Distances for Flagging Influential Cases 325
11.4.4 A Strategy for Using Case Influence Statistics 326
Refining the Model 328
11.5.1 Testing Terms 328
11.5.2 Partial Residual Plots 329
Related Issues 334
11.6.1 Weighted Regression for Certain Types of Nonconstant Variance 334
11.6.2 The Delta Method 335
11.6.3 Measurement Errors in Explanatory Variables
Summary 337
Exercises 338
Conceptual Exercises 338 Computational Exercises 339
Data Problems 342
Answers to Conceptual Exercises 343
335
Case Studies 346
12.1.1 State Average SAT Scores—An Observational Study 346
12.1.2 Sex Discrimination in Employment—An Observational Study
Specific Issues Relating to Many Explanatory Variables 352
12.2.1 Objectives 352
12.2.2 Loss of Precision 354
12.2.3 A Strategy for Dealing with Many Explanatory Variables 355
Sequential Variable-Selection Techniques 357
12.3.1 Forward Selection 358
12.3.2 Backward Elimination 358
12.3.3 Stepwise Regression 358
12.3.4 Sequential Variable-Selection with the SAT Data 359
12.3.5 Compounded Uncertainty in Stepwise Procedures 361
Strategies for Variable Selection
345
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
348

12.4
12.5 12.6 12.7
12.8 12.9
CHAPTER 13
13.1 13.2
13.3
Model Selection Among All Subsets 361
12.4.1 The Cp Statistic and Cp Plot 362
12.4.2 Akaike and Bayesian Information Criteria
Posterior Beliefs About Different Models 365 Analysis of the Sex Discrimination Data 366 Related Issues 370
12.7.1 The Trouble with Interpreting Significance when Explanatory Variables
Are Correlated 370
12.7.2 Regression for Adjustment and Ranking 371
12.7.3 Saturated Second-Order Models 372
12.7.4 Cross Validation 373
Summary 374
Exercises 375
Conceptual Exercises 375 Computational Exercises 376
Data Problems 378
Answers to Conceptual Exercises 382
The Analysis of Variance for Two-Way Classifications
13.4
13.5
13.6
Contents
xi
Case Studies 385
13.1.1 Intertidal Seaweed Grazers—A Randomized Experiment
13.1.2 The Pygmalion Effect—A Randomized Experiment 387
Additive and Nonadditive Models for Two-Way Tables 389
13.2.1 The Additive Model 389
13.2.2 The Saturated, Nonadditive Model 391
13.2.3 A Strategy for Analyzing Two-Way Tables with Several Observations
per Cell 392
13.2.4 The Analysis of Variance F-Test for Additivity 392
Analysis of the Seaweed Grazer Data 393
13.3.1 Initial Assessment of Additivity, Outliers, and the Need for
Transformation 393
13.3.2 The Analysis of Variance Table from the Fit to the Saturated Model
395
13.3.3 The Analysis of Variance Table for the Fit to the Additive Model 396
13.3.4 Answers to Specific Questions of Interest Using Linear Combinations
398
13.3.5 Answers to Specific Questions of Interest Using Multiple Regression with
Indicator Variables 401
Analysis of the Pygmalion Data 402
13.4.1 Initial Exploration and Check on Additive Model 402
13.4.2 Answering the Question of Interest with Regression 405
13.4.3 A Closer Look at the Regression Estimate of Treatment Effect 405
13.4.4 The p-Value in the Randomization Distribution 407
Related Issues 408
13.5.1 Additivity and Nonadditivities 408
13.5.2 Orthogonal Contrasts 411
13.5.3 Randomized Blocks and Paired-t Analyses 411
13.5.4 Should Insignificant Block Effects Be Eliminated from the Model? 411
13.5.5 Multiple Comparisons 411
13.5.6 An Alternate Parameterization for the Additive Model 412
Summary 413
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
364
385
384

xii
Contents
13.7
CHAPTER 14
14.1
14.2
14.3 14.4
14.5
14.6 14.7
CHAPTER 15
15.1 15.2
15.3 15.4
Exercises 414
Conceptual Exercises 414 Computational Exercises 415
Data Problems 417
Answers to Conceptual Exercises 419
Multifactor Studies Without Replication 420
Case Studies 421
14.1.1 Chimpanzees Learning Sign Language—A Controlled Experiment 421
14.1.2 Effects of Ozone in Conjunction with Sulfur Dioxide and Water Stress
on Soybean Yield—A Randomized Experiment 422 Strategies for Analyzing Tables with One Observation per Cell 425 14.2.1 Rationale for Designs with One Observation per Cell 425
14.2.2 Strategy for Data Analysis in the Absence of Replicates Analysis of the Chimpanzee Learning Times Study 427 Analysis of the Soybean Data 432
14.4.1 Exploratory Analysis 433
426
436
14.4.2 Answering Questions of Interest with the Fitted Models Related Issues 439
14.5.1 Random Effects Models 439
14.5.2 Nested Classifications in the Analysis of Variance
14.5.3 Further Rationale for One Observation per Cell
14.5.4 Uniformity Trials 442
Summary 443
Exercises 443
Conceptual Exercises 443 Computational Exercises 444 Data Problems 445
Answers to Conceptual Exercises 448
Adjustment for Serial Correlation
Case Studies 450
15.1.1 Logging Practices and Water Quality—An Observational Study 450
15.1.2 Measuring Global Warming—An Observational Study 451
Comparing the Means of Two Time Series 452
15.2.1 Serial Correlation and Its Effect on the Average of a Time Series 453
15.2.2 The Standard Error of an Average in a Serially Correlated Time Series
453
15.2.3 Estimating the First Serial Correlation Coefficient 456
15.2.4 Pooling Estimates and Comparing Means of Two Independent Time
Series with the Same First Serial Correlation 457
Regression After Transformation in the AR(1) Model 458
15.3.1 The Serial Correlation Coefficient Based on Regression Residuals 458
15.3.2 Regression with Filtered Variables 459
Determining If Serial Correlation Is Present 461
15.4.1 An Easy, Large-Sample Test for Serial Correlation 461
15.4.2 The Nonparametric Runs Test 462
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
439 440
449

15.5
15.6
15.7 15.8
CHAPTER 16
16.1 16.2
16.3
16.4
16.5
Diagnostic Procedures for Judging the Adequacy of the AR(1) Model
463
16.6
Case Studies 477
16.1.1 Sites of Short- and Long-Term Memory—A Controlled Experiment 477
16.1.2 Oat Bran and Cholesterol—A Randomized Crossover Experiment 478
Tools and Strategies for Analyzing Repeated Measures 479
16.2.1 Types of Repeated Measures Studies 481
16.2.2 Profile Plots for Graphical Exploration 482
16.2.3 Strategies for Analyzing Repeated Measures 482
Comparing the Means of Bivariate Responses in Two Groups 485
16.3.1 Summary Statistics for Bivariate Responses 485
16.3.2 Pooled Variability Estimates 487
16.3.3 Hotelling’s T 2 Statistic 488
16.3.4 Checking on Assumptions 490
16.3.5 Confidence Ellipses and Individual Confidence Intervals for Differences
in Bivariate Means 491
One-Sample Analysis with Bivariate Responses 493
16.4.1 Treatment Differences in the Oat Bran Study 493
16.4.2 Summary Statistics for a Single Sample of Bivariate Responses 494
16.4.3 Hotelling’s T2 Test That the Means of a Bivariate Response Are Both
Zero 494
16.4.4 Checking on Assumptions 497
Related Issues 497
16.5.1 Two-Sample Analysis with More Than Two Responses 497
16.5.2 One-Sample Analysis with More Than Two Responses 498
16.5.3 Multivariate Regression and Multivariate Analysis of Variance
(MANOVA) 498
16.5.4 Planned and Unplanned Summaries of Multivariate Measurements as
Response Variables 499
16.5.5 Planning an Experiment: Benefits of Repeated Measurements 499
16.5.6 Notes Concerning Correlation 500
16.5.7 Star Plots for Multivariate Responses 502
16.5.8 Controlling False Discovery Rate in Large Families of Hypothesis
Tests 502
Summary 505
Contents
xiii
15.5.1 When Is a Transformation of a Time Series Indicated?
15.5.2 The Partial Autocorrelation Function (PACF) 464
15.5.3 Bayesian Information Criterion 467
Related Issues 467
15.6.1 Time Series Analysis Is a Large-Sample Game 467
15.6.2 The Autocorrelation Function 468
15.6.3 Time Series Without a Time Series Package 468
15.6.4 Negative Serial Correlation 468
Summary 468
Exercises 469
Conceptual Exercises 469 Computational Exercises 470
Data Problems 472
Answers to Conceptual Exercises 475
Repeated Measures and Other Multivariate Responses
464
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
476

xiv
Contents
16.7
CHAPTER 17
17.1
17.2 17.3
17.4
17.5
17.6 17.7
CHAPTER 18
18.1
18.2
Exercises 506
Conceptual Exercises 506 Computational Exercises 507
Data Problems 510
Answers to Conceptual Exercises 513
Exploratory Tools for Summarizing Multivariate Responses
Case Studies 515
17.1.1 Magnetic Force on Rods in Printers—A Controlled Experiment
17.1.2 Love and Marriage—An Observational Study 517
Linear Combinations of Variables 519
Principal Components Analysis
17.3.1 The PCA Train 521
17.3.2 Principal Components 521
17.3.3 Variables Suggested by PCA 524
17.3.4 Scatterplots in Principal Component Space 526
17.3.5 The Factor Analysis Model and Principal Components Analysis
17.3.6 PCA Usage 527
514
515
527
521
Canonical Correlations Analysis 528
17.4.1 Canonical Variables 528
17.4.2 Variables Suggested by CCA 530
17.4.3 Love and Marriage Example 530
Introduction to Other Multivariate Tools 531
17.5.1 Discriminant Function Analysis (DFA) 532
17.5.2 Cluster Analysis 532
17.5.3 Multidimensional Scaling 534
17.5.4 Correspondence Analysis 534
17.5.5 PCA and Empirical Orthogonal Functions (EOFs)
Summary 539
Exercises 541
Conceptual Exercises 541 Computational Exercises 543
Data Problems 544
Answers to Conceptual Exercises 548
Comparisons of Proportions or Odds
536
Case Studies 550
18.1.1 Obesity and Heart Disease—An Observational Study 550
18.1.2 Vitamin C and the Common Cold—A Randomized Experiment
18.1.3 Smoking and Lung Cancer—A Retrospective Observational Study
Inferences for the Difference of Two Proportions 553
18.2.1 The Sampling Distribution of a Sample Proportion 553
18.2.2 Sampling Distribution for the Difference Between Two Sample
Proportions 555
18.2.3 Inferences About the Difference Between Two Population
Proportions 557
549
551 552
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.3
18.4
18.5 18.6
CHAPTER 19
19.1
19.2
19.3
19.4
19.5
19.6
19.7 19.8
Inference About the Ratio of Two Odds 559
18.3.1 A Problem with the Difference Between Proportions 559
18.3.2 Odds 559
18.3.3 The Ratio of Two Odds 560
18.3.4 Sampling Distribution of the Log of the Estimated Odds Ratio
Inference from Retrospective Studies 563
18.4.1 Retrospective Studies 563
18.4.2 Why the Odds Ratio Is the Only Appropriate Parameter If the Sampling
Is Retrospective 564
Summary 565
Exercises 566
Conceptual Exercises 566 Computational Exercises 568
Data Problems 570
Answers to Conceptual Exercises 571
More Tools for Tables of Counts 572
Case Studies 573
19.1.1 Sex Role Stereotypes and Personnel Decisions—A Randomized
Experiment 573
19.1.2 Death Penalty and Race of Murder Victim—An Observational
Study 574
Population Models for 2  2 Tables of Counts 575
19.2.1 Hypotheses of Homogeneity and of Independence 575
19.2.2 Sampling Schemes Leading to 2  2 Tables 576
19.2.3 Testable Hypotheses and Estimable Parameters 578
The Chi-Squared Test 579
19.3.1 The Pearson Chi-Squared Test for Goodness of Fit 579
19.3.2 Chi-Squared Test of Independence in a 2  2 Table 580
19.3.3 Equivalence of Several Tests for 2  2 Tables 580
Fisher’s Exact Test: The Randomization (Permutation) Test for 2  2 Tables 582
19.4.1 The Randomization Distribution of the Difference in Sample
Proportions 582
19.4.2 The Hypergeometric Formula for One-Sided p-Values 584
19.4.3 Fisher’s Exact Test for Observational Studies 584
19.4.4 Fisher’s Exact Test Versus Other Tests 585
Combining Results from Several Tables with Equal Odds Ratios 586
19.5.1 The Mantel–Haenszel Excess 586
19.5.2 The Mantel–Haenszel Test for Equal Odds in Several 2  2 Tables 588
19.5.3 Estimate of the Common Odds Ratio 589
Related Issues 590
19.6.1 r  c Tables of Counts 590
19.6.2 Higher-Dimensional Tables of Counts 591
Summary 591
Exercises 592
Conceptual Exercises 592 Computational Exercises 594
Data Problems 596
Answers to Conceptual Exercises 598
Contents
xv
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
561

xvi
Contents
CHAPTER 20
20.1
20.2 20.3
20.4 20.5
20.6 20.7
20.8 20.9
CHAPTER 21
21.1
21.2 21.3
21.4 21.5
21.6
Logistic Regression for Binary Response Variables
Case Studies 602
20.1.1 Survival in the Donner Party—An Observational Study 602
20.1.2 Birdkeeping and Lung Cancer—A Retrospective Observational
601
Study 602
The Logistic Regression Model 604
20.2.1 Logistic Regression as a Generalized Linear Model 606
20.2.2 Interpretation of Coefficients 608
Estimation of Logistic Regression Coefficients 609
20.3.1 Maximum Likelihood Parameter Estimation 609
20.3.2 Tests and Confidence Intervals for Single Coefficients
The Drop-in-Deviance Test 614
Strategies for Data Analysis Using Logistic Regression 617 20.5.1 Exploratory Analysis 617
Analyses of Case Studies 618
20.6.1 Analysis of Donner Party Data 618
20.6.2 Analysis of Birdkeeping and Lung Cancer Data
Related Issues 622
20.7.1 Matched Case–Control Studies 622
20.7.2 Probit Regression 623
20.7.3 Discriminant Analysis Using Logistic Regression
20.7.4 Monte Carlo Methods 623
Summary 625
Exercises 626
Conceptual Exercises 626 Computational Exercises 627
Data Problems 629
Answers to Conceptual Exercises 632
Logistic Regression for Binomial Counts
Case Studies 635
21.1.1 Island Size and Bird Extinctions—An Observational Study 635
21.1.2 Moth Coloration and Natural Selection—A Randomized
Experiment 637
Logistic Regression for Binomial Responses 639
21.2.1 Binomial Responses 639
21.2.2 The Logistic Regression Model for Binomial Responses 640
Model Assessment 640
21.3.1 Scatterplot of Empirical Logits Versus an Explanatory Variable
21.3.2 Examination of Residuals 641
21.3.3 The Deviance Goodness-of-Fit Test 642
Inferences About Logistic Regression Coefficients 644
21.4.1 Wald’s Tests and Confidence Intervals for Single Coefficients 644
21.4.2 The Drop-in-Deviance Test 645
Extra-Binomial Variation 646
21.5.1 Extra-Binomial Variation and the Logistic Regression Model 647
21.5.2 Checking for Extra-Binomial Variation 647
21.5.3 Quasi-Likelihood Inference when Extra-Binomial Variation
Is Present 648
Analysis of Moth Predation Data 650
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
619
623
612
640
634

21.7
21.8 21.9
CHAPTER 22
22.1
22.2
22.3
22.4 22.5
22.6
22.7 22.8
CHAPTER 23
23.1 23.2
Related Issues 654
21.7.1 Why the Deviance Changes when Binary Observations
Are Grouped 654
21.7.2 Logistic Models for Multilevel Categorical Responses
21.7.3 The Maximum Likelihood Principle 656
21.7.4 Bayesian Inference 660
21.7.5 Generalized Estimating Equations 663
Summary 664
Exercises 665
Conceptual Exercises 665 Computational Exercises 666
Data Problems 667
Answers to Conceptual Exercises 671
Log-Linear Regression for Poisson Counts
655
Contents
xvii
Case Studies 673
22.1.1 Age and Mating Success of Male Elephants—An Observational
Study 673
22.1.2 Characteristics Associated with Salamander Habitat 674 Log-Linear Regression for Poisson Responses 676
22.2.1 Poisson Responses 676
22.2.2 The Poisson Log-Linear Model 677
22.2.3 Estimation by Maximum Likelihood 679
Model Assessment 679
22.3.1 Scatterplot of Logged Counts Versus an Explanatory Variable 22.3.2 Residuals 679
22.3.3 The Deviance Goodness-of-Fit Test 680
22.3.4 The Pearson Chi-Squared Goodness-of-Fit Test 682 Inferences About Log-Linear Regression Coefficients 682
22.4.1 Wald’s Test and Confidence Interval for Single Coefficients 683
22.4.2 The Drop-in-Deviance Test 683
Extra-Poisson Variation and the Log-Linear Model 684
22.5.1 Extra-Poisson Variation 684
22.5.2 Checking for Extra-Poisson Variation 685
22.5.3 Inferences when Extra-Poisson Variation Is Present 686
Related Issues 688
22.6.1 Log-Linear Models for Testing Independence in Tables of Counts 688
22.6.2 Poisson Counts from Varying Effort
690
22.6.3 Negative Binomial Regression Summary 692
Exercises 693
Conceptual Exercises 693 Computational Exercises 694
691
Data Problems 695
Answers to Conceptual Exercises
Elements of Research Design
697
Case Study 700
23.1.1 Biological Control of a Noxious Weed—A Randomized Experiment 700 Considerations in Forming Research Objectives 700
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
679
672
699

xviii
Contents
23.4 23.5
23.6
23.7 23.8 23.9
CHAPTER 24
24.1 24.2 24.3
23.5.1
23.5.2
23.5.3
Steps in
23.6.1
23.6.2
23.6.3
23.6.4
23.6.5
23.6.6
23.6.7
23.6.8
Related Issue—A Factor of 4 719 Summary 720
23.3
Research Design Tool Kit 701
23.3.1 Controls and Placebos 701
23.3.2 Blinding 702
23.3.3 Blocking 702
23.3.4 Stratification 703
23.3.5 Covariates 703
23.3.6 Randomization 703
23.3.7 Random Sampling 704
23.3.8 Replication 704
23.3.9 Balance 704
Design Choices That Affect Accuracy and Precision 705
23.4.1 Attaching Desired Precision to Practical Significance 705
23.4.2 How to Improve a Confidence Interval 706
Choosing a Sample Size 708
Studies with a Numerical Response 708
Studies Comparing Two Proportions 709
Sample Size for Estimating a Regression Coefficient 710 Designing a Study 711
Stating the Objective 711
Determining the Scope of Inference 712
Understanding the System 713
Deciding How to Measure a Response 713
Listing Factors That Can Affect the Response 714 Planning the Conduct of the Experiment 715
Outlining the Statistical Analysis 716
Determining the Sample Size 716
Exercises 720
Conceptual Exercises 720
Study Designs for Discussion 721 Computational Exercises 722
Design Problems 723
Answers to Conceptual Exercises 723
Factorial Treatment Arrangements and Blocking Designs
Case Study 726
24.1.1 Amphibian Crisis Linked to Ultraviolet—A Randomized
Experiment 726 Treatments 727
24.2.1 Choosing Treatment Levels 727
24.2.2 The Rationale for Several Factors 728
Factorial Arrangement of Treatment Levels 729
24.3.1 Definition and Terminology for a Factorial Arrangement
24.3.2 The 22 Factorial Structure 729
24.3.3 The 23 Factorial Structure 732
24.3.4 The 32 Factorial Structure 734
24.3.5 Higher-Order Factorial Arrangements 737
725
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
729

Contents
xix
24.4 Blocking 739
24.4.1 Randomized Blocks 739
24.4.2 Latin Square Blocking
24.4.3 Split-Plot Designs 742
24.5 Summary 743
24.6 Exercises 744
Conceptual Exercises 744
Computational Exercises 745 Data Problems 746
Answers to Conceptual Exercises
APPENDIX Bibliography Index
742
747
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
748 751

Preface
This book is written for those who need to use statistical methods to analyze data from experiments and observational studies and who need to commu- nicate the results to others. It is intended as a text for graduate students who are preparing to design, implement, analyze, and report their research. The students must have some knowledge of basic statistical concepts such as means, standard deviations, histograms, the normal and t-distributions, but they need not be familiar with calculus or matrix algebra. All should have access to a statistical software package and a moderately powerful computer.
TO THE STUDENT
xx
Statistics is like grout—the word feels decidedly unpleasant in the mouth, but it describes something essential for holding a mosaic in place. Statistics is a common bond supporting all other sciences. It provides standards of empirical proof and a language for communicating scientific results. Statistical sleuthing is the process of using statistical tools to answer questions of interest. It includes devising exper- iments to unearth hidden truths, describing real data using tools based on ideal mathematical models, answering the questions of interest efficiently, verifying that the tools are appropriate, and snooping around to see if there is anything more to be learned. The Statistical Sleuth will show you how this all comes about.
Case Studies
The Statistical Sleuth is organized around case studies, which begin each chapter and are used throughout to illustrate how the statistical tools operate. A small section entitled Statistical Conclusions accompanies each case study, demonstrating how to communicate statistical findings for a research publication. You should realize that the methods upon which the findings are based will be foreign to you upon first reading. After the chapter has been read, you should return to the studies and consider carefully how the chapter’s methods have been used to answer the questions posed by the researchers.
Examine each case study carefully for its structural design. Ask yourself why the study was structured in the way it was. The studies will not only illustrate analytical techniques; most also present exemplary structures for your own studies.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

To the Instructor xxi
Mathematical Level
The emphasis of this book is on the practical use of statistical methods. The correct practical use of statistical tools requires some understanding of the mathematical foundation for the tools. Sometimes algebra or elementary mathematical statistics are the best device for communicating the motivation. In general, however, the level of mathematics required to follow this book is not high.
What will you learn?
Do not expect to learn all that you will need to make you an experienced analyst. You will improve your understanding of statistical reasoning and of measures of uncertainty. You will learn how to translate mountains of computer output into short summary statements that communicate the results in a language common to all scientists. You will also learn a fairly large array of statistical tools that will be useful for a wide range of problems. But there are many more tools that are not covered in this book and many lessons that can only be gained through experience. At some point you may need to seek the help of a professional statistician. Then, at least, you will know the language, the general tools, and the spirit of statistical data analysis, which will make communication with a statistician more effective and beneficial.
Resources
Visit the Sleuth Web page or access course materials and companion resources at www.cengagebrain.com. At the cengagebrain.com home page, search for the ISBN of your title (from the back of your book) using the search box at the top of the page. This will take you to the product page where free companion resources can be found. Or go to www.StatisticalSleuth.com for answers to selected exercises, updates, and links to other sites: http://www.statisticalsleuth.com.
TO THE INSTRUCTOR
Level of Sophistication
The level of sophistication for this text is high when it comes to models and methods needed to analyze data and interpret results, but low when it comes to mathemat- ics. Our foremost concern is that future researchers learn proper approaches for conducting the statistical aspects of their research. To this end, mathematics is neither sought out nor avoided.
Case Studies
Most chapters begin with two case studies for motivation and demonstration. Mak- ing these studies a central feature forces us to consider applied statistics more seriously than if we simply provided a data set to demonstrate a particular tool. It compels us to maintain a question-driven approach to the analysis of data.
The case studies are also our tool for exciting students. We cannot successfully teach them if they are not genuinely interested. We have tried to find a variety of interesting real data sets where the statistical analysis provides useful answers to
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

xxii Preface
questions of interest. In some cases, we found descriptions and summary statistics that made excellent examples, but we were unable to obtain the raw data. We have still used some of them, however, by generating data to match the summary statistics. To identify these cases, we use the phrase “based on a real study.”
Although we have made the data problems central, limitations of space prevent us from including all the graphical displays and the different analyses we would like to present. We encourage the instructor to go into more depth in showing computer output, graphical displays, and alternative analyses.
The Starting Point
At first glance, the first four chapters of The Statistical Sleuth appear to rehash the topics of one-sample and two-sample analysis, which are covered in introductory courses. This is not the case. These chapters are intended as a model for how topics in the rest of the book are treated. The chapters provide a detailed examination of material to which students have already been exposed, and an introduction to a philosophy of learning and using statistics.
Material Covered
The Statistical Sleuth’s principal tool is regression analysis. We have added several topics that are not ordinarily covered in a regression text: (1) Generalized linear models, including logistic and log-linear regression. This important tool enables researchers to analyze a wide range of problems that have until recently been ana- lyzed with inappropriate tools (ANOVA) or with appropriate but difficult tools (contingency table chi-squares). We stress the parallels between generalized linear model regression and ordinary regression. With calculations provided by statisti- cal software, this tool has become entirely understandable and extremely valuable. (2) Repeated measures. Whereas there is a great tendency for researchers to turn to a statistical computer packaged function that has “repeated measures” in the title, we feel there needs to be more guidance on a strategy for considering such data analysis. Chapters 16 and 17 respectively emphasize question-driven and data- driven reduction of dimensionality. (3) Serial correlation. Although a full treatment of time series analysis is beyond the scope of this book, by adjusting and filtering for the first-order autoregression we provide tools that expand the usefulness of regression technology to problems involving serial correlation.
Our decisions regarding coverage reflect the kinds of problems graduate researchers typically encounter. The topics chosen arise repeatedly in the campus- wide consulting service operated by Oregon State University’s Department of Statistics for faculty and graduate students. By offering a textbook with these topics, we hope to relieve the pressure on departments to offer separate courses in categorical data analysis, in multivariate analysis, and in time series analysis for nonstatistics majors, or to enroll nonstatistics majors in classes designed primarily for statistics majors.
Possible Paths Through the Chapters
The Statistical Sleuth was designed for a three-quarter sequence covering eight
chapters each term. Typically not all the material is covered, and we have provided
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Acknowledgments xxiii
a number of optional topics in a section titled Related Issues at the end of most chapters. The book may also be used for a two-semester class in its entirety. For a one-semester or two-quarter class, we recommend the following sequence: conclu- sions and interpretations (1–4), several sample problems (5–6), simple linear regres- sion (7–8), multiple regression (9–12), two-way analysis of variance (13–14), and logistic regression (20–21). There is room to mix and match to meet specific needs.
The Statistical Sleuth covers regression prior to two-way analysis of variance, in contrast with the more traditional presentation of two-way ANOVA directly after one-way ANOVA. Our reasoning here is that regression tools applied to the two-way situation are easier to interpret. They are also less subject to misunderstandings arising from imbalance in the experimental or sampling design. Experimental design chapters (23–24) appear at the end of the book. In truth, design issues are discussed throughout the text as they apply to the case studies. Topics such as replication, blocking, factorial treatment structures, and randomization appear repeatedly. So the actual chapters on design organize and summarize the issues. We also believe it is difficult to design an experiment without an understanding of the applicable analytic tools.
Web Site
To access additional course materials and companion resources, please visit www.cengagebrain.com. At the cengagebrain.com home page, search for the ISBN of your title (from the back cover of your book) using the search box at the top of the page. This will take you to the product page where free companion resources can be found. Or go to www.StatisticalSleuth.com.
Statistical Computer Programs
A computer and a packaged statistical computer program are essential companions for The Statistical Sleuth. Many good packages are available. Unfortunately, they differ considerably in their style, language, and output. Some instruction about the particular software package must accompany your instruction for using the statistical tools in this book. The student’s statistical analysis, however, should be guided by good statistical strategy, and not by the package, which is just a means for accomplishing the end. The data sets presented as case studies and as exercises are available online at www.cengagebrain.com.
ACKNOWLEDGMENTS
We take pleasure in expressing our gratitude to those who have helped us with this project. We are especially indebted to those who taught from earlier ver- sions of this book. Helen Berg (mayor of Corvallis), Ginny Lesser (Oregon State University), Loretta Thielman (University of Wisconsin—Stout), and Peter Thiel- man (University of Wisconsin—Stout) all cheerfully endured mistakes and made valuable suggestions for improvements. Thanks also to other colleagues who read drafts and provided suggestions, including Rick Rossi, Mike Scott, and Jeannie Sifneos.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

xxiv Preface
We are very grateful for the use of the facilities at the Department of Statistics at Oregon State University, and the supportive cooperation of the chairman, Jus- tus Seely, and the assistance of Genevieve Downing. Our views of statistics have benefited from fruitful discussions with our colleagues in the Statistics Department.
A portion of the early work on the book was conducted while Dan Schafer was on sabbatical leave at The University of Western Australia. The Mathematics Department there supplied facilities for which we are grateful. Special thanks go to Ian James, currently at Murdoch University in Perth.
A very enjoyable aspect of this project for us has been the discovery of modern scientific applications we have found while searching for case studies. We have gained inspiration from the many scientists who know good questions to ask in their research and whose scientific creativity is spurred by a genuine interest in finding the answers.
Very special thanks go to the students of Statistics 511–513 classes at Oregon State University. Their maturity and collective knowledge about scientific subjects have made the course a pleasure to teach. We have been driven by a desire to provide them with tools and strategies they may use to become the scientists that inspire us in the future.
We were guided through production by the staff at Hearthside Publishing Services, Anne Seitz and Laura Horowitz.
Finally, we wish to express our gratitude to the following reviewers: Andrew Barron, Yale University; Darl Bien, University of Denver; Phil Everson, Swarth- more University; Mauro Gasparini, Purdue University; Joseph Glaz, University of Connecticut; Mark Kaiser, Iowa State University; Frank Martin, University of Minnesota; Michael Martin, Australian National University; David Mathiason, Rochester Institute of Technology; Julia Norton, California State University— Hayward; John Rawlings, North Carolina State University; Larry Ringer, Texas A&M University; Bruce Schaalje, Brigham Young University; Joseph Schafer, Pennsylvania State University; Kirk Steinhorst, University of Idaho; Loretta Thielman, University of Wisconsin—Stout; Bruce Trumbo, California State University—Hayward; and John Wasik, North Carolina State University.
Third Edition Notes
We dropped the statistical tables at the end of the book—it was time for them to go. We’ve added approximately 70 new data problems for exercises, as well as new sec- tions on the Dunnett multiple comparison procedure, reasoning fallacies associated with statistical hypothesis testing, control of false discovery rates for large families of hypothesis tests, Monte Carlo methods, negative binomial regression, and gener- alized estimating equations. We are grateful to the following individuals for helpful comments and suggestions used in this revision: Scott Freeman, Eugene Gallagher, Alix Gitelman, Megan Higgs, Elizabeth Housworth, Martin Jones, William Kitto, Tim Leonard, Virginia Lesser, Lisa Madsen, Xiao Li Meng, Paul Murtaugh, Roger Pinkham, Berwin Turlach, Edward Whitney, and Captain William M. Wilder.
Fred Ramsey Daniel Schafer
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 1 Drawing Statistical
Conclusions
Statistical sleuthing means carefully examining data to answer questions of interest. This book is about the process of statistical sleuthing, including strategies and tools for answering questions of interest and guidelines for interpreting and communicating results.
This chapter is about interpreting statistical results—a process crucially linked to study design. The setting for this and the next three chapters is the two-sample problem, where it is convenient to illustrate concepts and strategies employed in all statistical analysis.
An answer to a question is accompanied by a statistical measure of uncertainty, which is based on a probability model. When that probability model is based on a chance mechanism—like the flipping of coins to decide which subjects get which treatment or the drawing of lottery tickets to decide which members of a popula- tion get selected in a sample—measures of uncertainty and the inferences drawn from them are formally justified. Often, however, chance mechanisms are invented as conceptual frameworks for drawing statistical conclusions. For understanding and communicating statistical conclusions it is important to understand whether a chance mechanism was used and, if so, whether it was used for sample selection, group allocation, or both.
1
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

2
Chapter 1 Drawing Statistical Conclusions
1.1
CASE STUDIES
DISPLAY 1.1
1.1.1
Motivation and Creativity—A Randomized Experiment
Do grading systems promote creativity in students? Do ranking systems and incentive awards increase productivity among employees? Do rewards and praise stimulate children to learn? Although reward systems are deeply embedded in schools and in the workplace, a growing body of evidence suggests that rewards may operate in precisely the opposite way from what is intended.
A remarkable demonstration of this phenomenon was provided by psychologist Teresa Amabile in an experiment concerning the effects of intrinsic and extrinsic motivation on creativity. Subjects with considerable experience in creative writing were randomly assigned to one of two treatment groups: 24 of the subjects were placed in the “intrinsic” treatment group, and 23 in the “extrinsic” treatment group, as indicated in Display 1.1. The “intrinsic” group completed the questionnaire at the top of Display 1.2. The questionnaire, which involved ranking intrinsic reasons for writing, was intended as a device to establish a thought pattern concerning intrinsic motivation—doing something because doing it brings satisfaction. The “extrinsic” group completed the questionnaire at the bottom of Display 1.2, which was used as a device to get this group thinking about extrinsic motivation—doing something because a reward is associated with its completion.
Creativity scores in two motivation groups, and their summary statistics
Intrinsic group Extrinsic group
After completing the questionnaire, all subjects were asked to write a poem in the Haiku style about “laughter.” All poems were submitted to 12 poets, who evaluated them on a 40-point scale of creativity, based on their own subjective views. Judges were not told about the study’s purpose. The average ratings given by the 12 judges are shown for each of the study subjects in Display 1.1. (Data based
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

1.1 Case Studies 3
DISPLAY 1.2 Questionnaires given creative writers, to rank intrinsic and extrinsic reasons for writing
INSTRUCTIONS: Please rank the following list of reasons for writing, in order of personal importance to you (1 = highest, 7 = lowest).
You get a lot of pleasure out of reading something good that you have written. You enjoy the opportunity for self-expression.
You achieve new insights through your writing.
You derive satisfaction from expressing yourself clearly and eloquently.
You feel relaxed when writing.
You like to play with words.
You enjoy becoming involved with ideas, characters, events, and images in your writing.
List of extrinsic List of intrinsic reasons for writing. reasons for writing.
INSTRUCTIONS: Please rank the following list of reasons for writing, in order of personal importance to you (1 = highest, 7 = lowest).
You realize that, with the introduction of dozens of magazines every year, the market for free-lance writing is constantly expanding.
You want your writing teachers to be favorably impressed with your writing talent. You have heard of cases where one best-selling novel or collection of poems has made
the author financially secure.
You enjoy public recognition of your work.
You know that many of the best jobs available require good writing skills.
You know that writing ability is one of the major criteria for acceptance into graduate
school.
Your teachers and parents have encouraged you to go into writing.
on the study in T. Amabile, “Motivation and Creativity: Effects of Motivational Orientation on Creative Writers,” Journal of Personality and Social Psychology 48(2) (1985): 393–99.) Is there any evidence that creativity scores tend to be affected by the type of motivation (intrinsic or extrinsic) induced by the questionnaires?
Statistical Conclusion
This experiment provides strong evidence that receiving the “intrinsic” rather than the “extrinsic” questionnaire caused students in this study to score higher on poem creativity (two-sided p-value D 0.005 from a two-sample t-test as an approximation to a randomization test). The estimated treatment effect—the increase in score attributed to the “intrinsic” questionnaire—is 4.1 points (95% confidence interval: 1.3 to 7.0 points) on a 0–40-point scale.
Note: The statistical conclusions associated with the case studies in each chap- ter use tools and, in some cases, terms that are introduced later. You should read the conclusions initially to appreciate the scientific statements that can be
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

4
Chapter 1 Drawing Statistical Conclusions
DISPLAY 1.3
1.1.2
drawn from the chapter’s tools, without worrying about the parts you don’t under- stand, and then return to them again after reading the chapter for a more complete understanding.
Scope of Inference
Since this was a randomized experiment, one may infer that the difference in cre- ativity scores was caused by the difference in motivational questionnaires. Because the subjects were not selected randomly from any population, extending this infer- ence to any other group is speculative. This deficiency, however, is minor; the causal conclusion is strong even if it applies only to the recruited subjects.
Sex Discrimination in Employment—An Observational Study
Did a bank discriminatorily pay higher starting salaries to men than to women? The data in Display 1.3 are the beginning salaries for all 32 male and all 61 female skilled, entry-level clerical employees hired by the bank between 1969 and 1977. (Data from a file made public by the defense and described by H. V. Roberts, “Harris Trust and Savings Bank: An Analysis of Employee Compensation” (1979), Report 7946, Center for Mathematical Studies in Business and Economics, University of Chicago Graduate School of Business.)
Starting salaries ($U.S.) for 32 male and 61 female clerical hires at a bank
Males Females
Statistical Conclusion
As evident in Display 1.4, the data provide convincing evidence that the male mean is larger than the female mean (one-sided p-value < 0.00001 from a two- sample t-test). The male mean exceeds the female mean by an estimated $818 (95% confidence interval: $560 to $1,076). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.2 Statistical Inference and Study Design 5 DISPLAY 1.4 Histograms for male and female starting salaries Males Females $4,000 $5,000 $6,000 $7,000 $8,000 Starting Salary ($U.S.) Scope of Inference Although there is convincing evidence that the males, as a group, received larger starting salaries than the females, the statistics alone cannot address whether this difference is attributable to sex discrimination. The evidence is consistent with discrimination, but other possible explanations cannot be ruled out; for example, the males may have had more years of previous experience. 1.2 STATISTICAL INFERENCE AND STUDY DESIGN The inferences one may draw from any study depend crucially on the study’s design. Two distinct forms of inference—causal inference and inference to populations—can be justified by the proper use of random mechanisms. 1.2.1 Causal Inference In a randomized experiment, the investigator controls the assignment of experimental units to groups and uses a chance mechanism (like the flip of a coin) to make the assignment. The motivation and creativity study is a randomized experiment, because a random mechanism was used to assign the study subjects to the two motivation groups. In an observational study, the group status of the subjects is established beyond the control of the investigator. The sex discrimination study is Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 6 Chapter 1 Drawing Statistical Conclusions observational because the group status (sex of the employee) was, obviously, not decided by the investigator. Causal Conclusions and Confounding Variables Can statistical analysis alone be used to establish causal relationships? The answer is simple and concise: In a rough sense, randomization ensures that subjects with different, and pos- sibly relevant, features are mixed up between the two groups. Surely some of the subjects in the motivation and creativity experiment were naturally more creative than others. In view of the randomization, however, there is no reason to expect that they would be placed disproportionately in the intrinsic motivation group, since every subject had the same chance of being placed in that group. There is, of course, a chance that the randomization—the particular result of the ran- dom assignment—turned out by chance in such a way that the intrinsic motivation group received many more of the naturally creative writers. This chance, however, is incorporated into the statistical tools that are used to express uncertainty. In an observational study, it is impossible to draw a causal conclusion from the statistical analysis alone. One cannot rule out the possibility that confounding variables are responsible for group differences in the measured outcome. In fact, the males in the sex discrimination example generally did have more years of education than the females; and this, not sex, may have been responsible for the disparity in starting salaries. Thus, the effect of sex cannot be separated from—it is confounded with—the effect of education. Tools exist for comparing male and female salaries after accounting for the effect of education (see Chapter 9), and these help clarify matters to some extent. Other confounding variables, however, may not be recognized or measured, and these consequently cannot be accounted for in the analysis. Therefore, it may be possible to conclude that males tend to get larger starting salaries than females, even after accounting for years of education, and yet still not be possible to conclude, from the statistics alone, that this happens because they are males. Do Observational Studies Have Value? Is there any role at all for observational data in serious scientific inquiry? The following points indicate that the answer is yes. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Statistical inferences of cause-and-effect relationships can be drawn from random- ized experiments, but not from observational studies. A confounding variable is related both to group membership and to the outcome. Its presence makes it hard to establish the outcome as being a direct consequence of group membership. 1.2 Statistical Inference and Study Design 7 1. Establishing causation is not always the goal. A study was conducted on 10 American men of Chinese descent and 10 American men of European descent to examine the effect of a blood-pressure-reducing drug. The result—that the men of Chinese ancestry tended to exhibit a different response to the drug—does not prove that being of Chinese descent is responsible for the difference. Diets, for example, may differ in the two groups and may be responsible for the different sensitivities. Nevertheless the study does provide important information for doctors prescribing the drug to people from these populations. 2. Establishing causation may be done in other ways. Although statistical methods cannot eliminate the possibility of confounding factors, there may be strong theo- retical reasons for doing so. Radiation biologists counted chromosomal aberrations in a sample of Japanese atomic bomb survivors who received radiation from the blast, and compared these to counts on individuals who were far enough from the blast not to have received any radiation. Although the data are observational, the researchers are certain that higher counts in the radiation group can only be due to the radiation, and the data can therefore be used to estimate the dose–response relationship between radiation and chromosomal aberration. 3. Analysis of observational data may lend evidence toward causal theories and suggest the direction of future research. Many observational studies indicated an association between smoking and lung cancer, but causation was accepted only after decades of observational studies, experimental studies on laboratory animals, and a scientific theory for the carcinogenic mechanism of smoking. Although observational studies are undoubtedly useful, the inappropriate prac- tice of claiming or implying cause-and-effect relationships from them—sometimes in subtle ways—is widespread. 1.2.2 Inference to Populations A second distinction between study designs relates to how units are selected. In a random sampling study, units are selected by the investigator from a well- defined population. All units in the population have a chance of being selected, and the investigator employs a chance mechanism (like a lottery) to determine actual selection. Neither of the case studies in Section 1.1 used random sampling. In con- trast, the study units often are self-selected. The subjects of the creativity study volunteered their participation. The decision to volunteer can have a strong rela- tionship with the outcome (creativity score), and this precludes the subjects from representing a broader population. Again, the inferential situation is straightforward: Random sampling ensures that all subpopulations are represented in the sample in roughly the same mix as in the overall population. Again, random selection Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Inferences to populations can be drawn from random sampling studies, but not otherwise. 8 Chapter 1 Drawing Statistical Conclusions A simple random sample of size n from a population is a subset of the population consisting of n members selected in such a way that every subset of size n is afforded the same chance of being selected. 1.2.3 has a chance of producing nonrepresentative samples, but the statistical inference procedures incorporate measures of uncertainty that describe that chance. Simple Random Sampling The most basic form of random sampling is simple random sampling. A typical method assigns each member of the population a computer-generated random number. When both lists are re-ordered according to increasing values of the random numbers, the sample of population members appears at the top of the list. Most statistical programs can do this automatically with a “sample” command. Statistical Inference and Chance Mechanisms Statistical analysis is used to make statements from available data in answer to questions of interest about some broader context than the study at hand. No such statement about the broader context can be made with absolute certainty, so every statement includes some measure of uncertainty. In statistical analysis, uncertainty is explained by means of chance models, which relate the available data to the broader context. These ideas are expressed in the following definitions: The probability models are associated with the chance mechanisms used to select units from a population or to assign units to treatment groups. They enable the investigator to calculate measures of uncertainty to accompany inferential conclusions. When a chance mechanism has been used in the study, uncertainty measures accompanying the researcher’s inferences are backed by a bona fide probability struc- ture that exactly describes the study. Often, however, units do not arise from random sampling of real populations; instead, the available units are self-selected or are the result of a haphazard selection procedure. For randomized experiments, this may be no problem, since cause-and-effect conclusions can be drawn regard- ing the effects on the particular units selected (as in the motivation and creativity study). These conclusions can be quite strong, even if the observed pattern cannot be inferred to hold in some general population. For observational studies, the lack of truly random samples is more worrisome, because making an inference about some larger population is usually the goal. It may be possible to pretend that the An inference is a conclusion that patterns in the data are present in some broader context. A statistical inference is an inference justified by a probability model linking the data to the broader context. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.2 Statistical Inference and Study Design 9 units are as representative as a random sample, but the potential for bias from haphazard or convenience selection remains a serious concern. Example Researchers measured the lead content in teeth and the intelligence quotient (IQ) test scores for all 3,229 children attending first and second grades in the period between 1975 and 1978 in Chelsea and Somerville, Massachusetts. The IQ scores for those with low lead concentrations were found to be significantly higher than for those with high lead concentrations. What can be inferred? There is no random sample. In a strict sense, the statistical results apply only to the children actually measured; any extrapolation of the pattern to other children comes from supposing that the relationship between lead and IQ is similar for others. This is not neces- sarily a bad assumption. The point is that extending the inference to other children is surely open to question. Statistical Inferences Based on Chance Mechanisms Four situations are exhibited in Display 1.5, along with the types of inference that may be drawn in each. In observational studies, obtaining random samples from the populations of interest is often impractical or impossible, and inference based on Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 1.5 Statistical inferences permitted by study designs Allocation of Units to Groups By Randomization Not by Randomization A random sample is selected from one population; units are then randomly assigned to different treatment groups. Inferences to the populations can be drawn A group of study units is found; units are then randomly assigned to treatment groups. Causal inferences can be drawn Random samples are selected from existing distinct populations. Collections of available units from distinct groups are examined. Selection of Units Not at Random At Random 10 Chapter 1 Drawing Statistical Conclusions 1.3 assumed models may be better than no inference at all. In controlled experiments, however, there is no excuse for avoiding randomization. MEASURING UNCERTAINTY IN RANDOMIZED EXPERIMENTS DISPLAY 1.6 Randomized experiment with two treatment groups 1.3.1 The critical element in understanding statistical measures of uncertainity is visual- izing hypothetical replications of a study under different realizations of the chance mechanism used for sample selection or group assignment. This section describes the probability model for randomized experiments and illustrates how a measure of uncertainty is calculated to express the evidence for a treatment difference in the creativity study. A Probability Model for Randomized Experiments A schematic diagram for the creativity study (Display 1.6) is typical of a randomized experiment. The chance mechanism for randomizing units to treatment groups ensures that every subset of 24 subjects gets the same chance of becoming the intrinsic group. For example, 23 red and 24 black cards could be shuffled and dealt, one to each subject. Subjects are treated according to their assigned group, and the different treatments change their responses. Subjects Recruited Random Allocation to Group n=23 n=24 Apply Treatment 1 Apply Treatment 2 Data Creativity Scores An Additive Treatment Effect Model Let Y denote the creativity score that a subject would receive after exposure to the extrinsic questionnaire. A general model for the experiment would assert that this same subject would receive a different creativity score, Y, after exposure to the intrinsic questionnaire. An additive treatment effect model postulates that Y  D Y C ı. The treatment effect, ı, is a parameter—an unknown constant that describes a key feature in the model for answering questions of interest. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.3 Measuring Uncertainty in Randomized Experiments 11 1.3.2 A Test for Treatment Effect in the Creativity Study This section illustrates a statistical inference arising from the additive treatment effect model for the creativity study. The question concerns whether the treatment effect is real. The p-value will be introduced as a measure of uncertainty associated with the answer. Null and Alternative Hypotheses Questions of interest are translated into questions about parameters in probability models. This usually involves some simplification—such as the assumption that the intrinsic questionnaire adds the same amount to anyone’s creativity score—but the expression of a question in terms of a single parameter crystallizes the situation into one where powerful statistical tools can be applied. In the creativity study, the question “Is there a treatment effect?” becomes a question about whether the parameter ı has a nonzero value. The statement that ı D 0 is called the null hypothesis, while a proposition that ı 6D 0 is an alternative hypothesis. In general, the null hypothesis is the one that specifies a simpler state of affairs; typically—as in this case—an absence of an effect. A Test Statistic A statistic is a numerical quantity calculated from data, like the average creativity score in the intrinsic group. A test statistic is a statistic used to measure the plausi- bility of an alternative hypothesis relative to a null hypothesis. For the hypothesis that ı equals zero, the test statistic is the difference in averages, Y 2 􏰀 Y 1. Its value should be “close to” zero if the null hypothesis is true and “far from” zero if the alternative hypothesis is true. The value of this test statistic for the creativity scores is 4.14. Is this “close to” or “far from” zero? The answer to that question comes from what is known about how the test statistic might have turned out in other randomization outcomes if there were no effect of the treatments. Randomization Distribution of the Test Statistic If the questionnaires had no effect on creativity, the subjects would have received exactly the same creativity scores regardless of the group to which they were assigned. Therefore, it is possible to determine what test statistic values would have occurred had the randomization process turned out differently. Display 1.7 has an example. The first column lists the creativity scores of all 47 participants in the study. The second column lists the groups to which they were assigned. The third column lists another possible way that the group assignments could have turned out. With that grouping, the difference in averages is 2.07. It is conceptually possible to calculate Y 2 􏰀 Y 1 for every possible outcome of the randomization process (if there is no treatment effect). A histogram of all these values describes the randomization distribution of Y 2 􏰀 Y 1 if the null hypothesis is true. The number of possible outcomes of the random assignment is prohibitively large in this example—there are 1:6  1013 different groupings, which would take a computer capable of one million assignments per second half a year to complete. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12 Chapter 1 Drawing Statistical Conclusions DISPLAY 1.7 A different group assignment for the creativity study, and a different result Creativity Actual Another score grouping grouping Creativity Actual Another score grouping grouping Averages from actual grouping Averages from another grouping Group Intrinsic (2) Extrinsic (1) Average 19.88 15.74 Difference 4.14 Group Group 1 Group 2 Average Difference 18.87 2.07 16.80 Display 1.8, however, shows an estimate of the randomization distribution, obtained as the histogram of the values of Y 2 􏰀 Y 1 from 500,000 random regroupings of the numbers. Display 1.8 suggests several things. First, it appears just as likely that test statistics will be negative as positive. Second, the majority of values fall in the range from 􏰀3:0 to C3:0. Third, only 1,335 of the 500,000 (0.27%) random regroupings produced test statistics as large as 4.14. This last point indicates that 4.14 is a value corresponding to an unusually uneven randomization outcome, if the null hypothesis is correct. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.3 Measuring Uncertainty in Randomized Experiments 13 DISPLAY 1.8 Histogram of differences between group averages, from 500,000 regroupings of the creativity study data – 4.14 4.14 –5 –4 –3 –2 –1 0 1 2 3 4 5 Difference Between Sample Averages The p-Value of the Test Because the observed test statistic is improbably large under the null hypothesis, one is led to believe that the null hypothesis is wrong, that the treatment—not the randomization—caused the big difference. That conclusion could be incorrect, however, because the randomization is capable of producing such an extreme. The chance of its doing so is called the (observed) p-value. In a randomized experiment the p-value is the probability that randomization alone leads to a test statistic as extreme as or more extreme than the one observed. The smaller the p-value, the more unlikely it is that chance assignment is responsible for the discrepancy between groups, and the greater the evidence that the null hypothesis is incorrect. A general definition appears in Chapter 2. Since 1,335 of the 500,000 regroupings produced differences as large or larger than the observed difference, the p-value for this study is estimated from the simu- lation to be 1;335=500;000 D 0:00267. This is a one-sided p-value (for the alternative hypothesis that ı > 0) because it counted as extremes only those outcomes with test statistics as large as or larger than the observed one. Statistics that are smaller than 􏰀4:14 may provide equally strong evidence against the null hypothesis, favoring the
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

14 Chapter 1 Drawing Statistical Conclusions
alternative hypothesis that ı < 0. If those (1,302 of them) are included, the result is a two-sided p-value of 2;637=500;000 D 0:005274, which would be appropriate for the two-sided alternative hypothesis that ı 6D 0. Computing p-Values from Randomized Experiments There are several methods for obtaining p-values in a randomized experiment. An enumeration of all possible regroupings of the data would represent all the ways that the data could turn out in all possible randomizations, absent any treatment effect. This would determine the answer exactly, but it is often overburdensome—as the creativity study illustrates. A second method, used previously, is to estimate the p-value by simulating a large number of randomizations and to find the proportion of these that produce a test statistic at least as extreme as the observed one. The most common method is to approximate the randomization distribution with a mathematical curve, based on certain assumptions about the distribution of the measurements and the form of the test statistic. This approach is given formally in Chapter 2 along with a related discussion of confidence intervals for treatment effects. 1.4 MEASURING UNCERTAINTY IN OBSERVATIONAL STUDIES The p-value from the randomization test is a probability statement that is tied directly to the chance mechanism used to assign subjects to treatment groups. For observational studies there is no such chance mechanism for group assignment, so the thinking about statistical inference has to be different. Two approaches for observational studies are discussed here. Section 1.4.1 introduces a probability model that connects the distribution of a test statistic to a chance mechanism for sample selection (which, remember, is something quite different from group assignment). In the sex discrimination study, however, the subjects were not selected randomly from any populations and, in fact, constitute the entire populations of males and females in their particular job category. Section 1.4.2 applies the same “regrouping” idea that led to the random- ization test in order to say whether the salaries in the two groups differed more than would be expected from a random assignment of salaries to employees. Since this approach is tied to a fictitious model and not a bona fide probability model stemming from an actual chance mechanism, the inference is substantially weaker than the one from the randomized experiment. This is such an important distinc- tion that the test goes by a different name—the permutation test—even though the calculations are identical to those of the randomization test. 1.4.1 A Probability Model for Random Sampling Display 1.9 depicts random sampling from two populations. A chance mechanism, such as a lottery, selects a subset of n1 units from population 1 in such a way that all subsets of size n1 have the same chance of selection. The mechanism is used Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.4 Measuring Uncertainty in Observational Studies 15 DISPLAY 1.9 Random sampling study with two populations Population 1 Data Population 2 Random Sampling n1 Random Sampling n2 again to select a random sample of size n2 from population 2. The samples are drawn independently; that is, the particular sample drawn from one population does not influence the process of selection from the other. Questions of interest in sampling studies center on how features of the popula- tions differ. In many cases, the difference between the populations can be described by the difference between their means. If the means of populations 1 and 2 are 1 and 2, respectively, then 2 􏰀 1 becomes the single parameter for answer- ing the questions of interest. Inferences and uncertainty measures are based on the difference, Y 2 􏰀 Y 1, between sample averages, which estimates the difference in population means. As in Display 1.8, a sampling distribution for the statistic Y 2 􏰀 Y 1 is represented by a histogram of all values for the statistic from all possible samples that can be drawn from the two populations. The p-value for testing a hypothesis and the confidence intervals for estimating the parameter follow from an understanding of the sampling distribution. Full exposition appears in Chapter 2. 1.4.2 Testing for a Difference in the Sex Discrimination Study In the sex discrimination study, there is no interest in the starting salaries of some larger population of individuals who were never hired, so a random sampling model is not relevant. Similarly, it makes no sense to view the sex of these individuals as randomly assigned. Neither the random sampling nor the randomized experiment model applies. Any interpretation that supports a statistical analysis must be based on a fictitious chance model. One fictitious probability model for examining the difference between the aver- age starting salary given to males and the average starting salary given to females assumes the employer assigned the set of starting salaries to the employees at ran- dom. That is, the employer shuffled a set of cards, each having one of the starting salaries written on it, and dealt them out. With this model, the investigator may ask whether the observed difference is a likely outcome. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 16 Chapter 1 Drawing Statistical Conclusions Permutation Distribution of a Test Statistic The collection of differences in averages from all possible assignments of starting salaries to individuals makes up the permutation distribution of the test statistic for this model. There are 8:7  1024 outcomes, so the million-a-second computer would now struggle along for about 275 million years. Shortcuts are available, however. It is not difficult to approximate the actual permutation distribution of a statistic by random regroupings of the data, as illustrated for the randomization distribution in the creativity study in Display 1.8. In addition, the easier-to-use t-tools, which will be introduced in Chapter 2, often provide very good approximations to the permutation distribution inferences. That approach was used to draw the statistical conclusion reported in Section 1.1.2. The p-value for comparing male and female distributions was less than 0.00001, indicating that the difference between male and female salaries was greater than what can reasonably be explained by chance. It is calculated using the t-tools (see Chapter 2), which provide a close approximation. Scope of the Inferences Inferences from fictitious models must be stated carefully. What the statistical argument shows is that the employer did not assign starting salaries at random— which was known at the outset. The strength of the argument comes from the demonstration that the actual assignment differs substantially from the expected outcome in one model where salary assignment is sex-blind. 1.5 RELATED ISSUES 1.5.1 Graphical Methods This text relies heavily on the use of graphical methods for making decisions regard- ing the choice of statistical models. This section briefly reviews some important tools for displaying sets of numbers. Relative Frequency Histograms Histograms, like those in Display 1.4, are standard tools for displaying the general characteristics of a data set. Looking at the display, one should conclude that the central male starting salary is around $6,000, that the central female starting salary is around $5,200, that the two distributions have about the same spread— most salaries are within about $1,000 of the centers—that both shapes appear reasonably symmetric, but that there is one male starting salary that appears very high in relation to the rest of the male salaries. A histogram is a graph where the horizontal axis displays ranges for the measurement and the vertical axis displays the relative frequency per unit of measurement. Relative frequency is therefore depicted by area. Other features are of less concern. Choices of the number of ranges (bins) and their boundaries can have some influence on the final picture. However, a Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.5 Related Issues 17 histogram is ordinarily used to show broad features, not exquisite detail, and the broad features will be apparent with many choices. Stem-and-Leaf Diagrams A stem-and-leaf diagram is a cross between a graph and a table. It is used to get a quick idea of the distribution of a set of measurements with pencil and paper or to present a set of numbers in a report. Display 1.10 shows stem-and-leaf diagrams for the two sets of creativity scores. The digits in each observation are separated into a stem and a leaf. Each number in a set is represented in the diagram by its leaf on the same line as its stem. All possible stem values are listed in increasing order from top to bottom, whether or not there are observations with those stems. At each stem, all corresponding leaves are listed, in increasing order. Outliers may require a break in the string of stems. The stem-and-leaf diagrams show the centers, spreads, and shapes of distribu- tions in the same way histograms do. Their advantages include exact depiction of each number, ease of determining the median and quartiles of each set, and ease of construction. Disadvantages include difficulty in comparing distributions when the numbers of observations in data sets are very different and severe clutter with large data sets. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 1.10 Back-to-back stem-and-leaf diagrams for the creativity study data Creativity Scores Extrinsic 40 5 Group 1 67 n = 23 8 Average = 15.74 9 SD = 5.25 9 10 8 11 30 12 009 13 6 The median 8 14 is17.2, the 0 15 12th smallest 8 16 6 observation. 5422 17 25 775 18 2 52 19 138 7 20 356 2 21 36 1 22 126 23 1 0 24 03 25 26 7 27 28 29 7 30 Intrinsic Group n = 24 Average = 19.88 SD = 4.44 The median is 20.4, halfway between the 12th and 13th smallest observations. Leaves are ordered at each stem. The stem of 29.7. The leaf of 29.7. Legend: 29 7 represents 29.7 18 Chapter 1 Drawing Statistical Conclusions Finding the Median from a Stem-and-Leaf Diagram Because stem-and-leaf diagrams show the order of numbers in a set, they offer a convenient presentation for locating the median of the data. At least half the values in the data are greater than or equal to the median; at least half are less than or equal to it. A median is found by the “.n C 1/=2” rule: calculate k D .n C 1/=2; if k is an integer, the median is the kth smallest observation; if k is halfway between two integers, the median is halfway between the corresponding observations (see Display 1.10). Box Plots A box plot, or box-and-whisker plot, is a graphical display that represents the mid- dle 50% of a group of measurements by a box and highlights various features of the upper and lower 25% by other symbols. The box represents the body of the distribution of numbers, and the whiskers represent its tails. The graph gives an uncluttered view of the center, the spread, and the skewness of the distribution and indicates the presence of unusually small (or large) outlying values. Box plots are particularly useful for comparing several samples side by side. Unlike stem-and-leaf diagrams, box plots are not typically drawn by hand, but by a statistical computing program. Most box plots use the interquartile range (IQR) to distinguish distant values from those close to the body of the distribution. The IQR is the difference between the upper and lower quartiles—the range of the middle 50% of the data. Display 1.11 shows a box plot of gross domestic product (GDP) per capita in 228 countries. (See Exercise 16.) The lower quartile is $2,875 per year and the upper quartile is $22,250. The median income is marked by a line through the box at $9,300 per year. Whiskers extend from the box out through all values that are within 1.5 IQRs of the box. Observations that are more than 1.5 IQRs away from the box are far enough from the main body of data that they are indicated separately by dots. Observations more than 3 IQRs from the box are quite distant from the main body of data and are prominently marked, as in Display 1.11, and often named. The difference in the distributions of starting salaries for men and women is shown by placing box plots side by side, as in Display 1.12. One can see at a glance that the middle starting salaries for men were about $750 higher than for women, that the ranges of starting salaries were about the same for men and for women, and that the single starting salary of $8,100 is unusually large. Notes 1. Box-plotting routines are widely available in statistical computing packages. The definitions of quartiles, extreme points, and very extreme points, however, may differ slightly among packages. 2. The choices of 1.5 and 3 IQRs are arbitrary but useful cutoffs for highlighting observations distant and quite distant from the main body. 3. The width of the box is chosen simply with a view toward making the box look nice; it does not represent any aspect of the data. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.5 Related Issues 19 DISPLAY 1.11 150 100 50 0 Box plot of per capita GDP for 228 countries in 2010 ($U.S.) Very extreme points more than 3 box lengths from the box Extreme points more than 1.5 box lengths from the box The largest value not more than 1.5 box lengths from the box Upper quartile Median Lower quartile The smallest value not more than 1.5 box lengths from the box Qatar Liechtenstein Luxembourg n = 228 4. For presentation in a journal, it is common to define the box plot so that the whiskers extend to the 10th and 90th percentiles of the sample. This is easier to explain to readers who might be unfamiliar with box plots. 5. The data sets in Display 1.13 show a variety of different kinds of distributions. Box plots are matched with histograms of the same data sets. 6. Some statistical computer packages draw horizontal box plots. 1.5.2 Standard Statistical Terminology A parameter is an unknown numerical value describing a feature of a probability model. Parameters are indicated by Greek letters. A statistic is any quantity that can be calculated from the observed data. Statistics are represented by Roman letter symbols. An estimate is a statistic used as a guess for the value of a parameter. The notation for the estimate of a parameter  is the parameter symbol with a hat on Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Gross Domestic Product per Capita (1,000 $U.S.) 20 Chapter 1 Drawing Statistical Conclusions DISPLAY 1.12 Side-by-side box plots for the starting salary data $8,000 $7,000 $6,000 $5,000 $4,000 Females Males n = 32 n = 61 DISPLAY 1.13 Histograms and box plots for 100 observations from four distributions Nor mal Long- tailed Short-tailed Skewed it, O. Remember that the estimate can be calculated, but the parameter remains unknown. The Statistical Sleuth uses the word mean when referring to an average calculated over an entire population. A mean is therefore a parameter. When referring to the average in a sample—which is both a statistic and an estimate of the population Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Starting Salary ($U.S.) 1.5 Related Issues 21 mean—the Statistical Sleuth uses the word average. Standard notation uses  for the mean and Y for an average. The standard deviation of a set of numbers Y1; : : : ; Yn is defined as vu u Xn ! , t .Yi 􏰀Y/2 iD1 .n􏰀1/: The symbol for a population standard deviation is ; for a sample standard devi- ation, the symbol is s. The standard deviation is a measure of spread, interpreted as the typical distance between a single number and the set’s average. 1.5.3 Randomization of Experimental Units to Treatments Experimental units are the human or animal subjects, plots of land, samples of material, or other entities that are assigned to treatment groups in an experiment and to which a treatment is applied. In some cases, the experimental units are groups of individuals, such as classrooms of students that are assigned, as a class, to receive one of several teaching methods; the classrooms—not the students—are the experimental units in this case. In the creativity example, the experimental units were the 47 people. The treatments applied to them were the motivation questionnaires. In a two-treatment randomized experiment, all available experimental units have the same chance of being placed in group 1. Drawing cards from a thoroughly shuffled deck of red and black cards is one method. Tables of random numbers or computer-generated random numbers may also be used. These have the advantage that the randomization can be documented and checked against certain patterns. Most statistical computer programs have routines that generate random num- bers. To use such a list for randomly assigning units to two experimental groups, first list the units (in any order). Then generate a series of random numbers, assign- ing them down the list to the units. Reorder the list so that the random numbers are listed by increasing order, keeping each subject matched with its random num- ber. Then assign the subjects with the smallest random numbers (at the top of the reordered list) to treatment 1 and those with the largest random numbers (at the bottom) to treatment 2. Ties in the random numbers can be broken by generating additional random numbers. 1.5.4 Selecting a Simple Random Sample from a Population A simple random sample (of size n) is a subset of a population obtained by a proce- dure giving all sets of n distinct items in the population an equal chance of being chosen. To accomplish this in practice requires a frame: a numbered list of all the subjects. If a population of 20,000 members is so listed, an integer from 1 to 20,000 is associated with each. If a random sample of 100 is desired, it is only necessary to generate 100 distinct random integers such that each of the integers 1 through 20,000 has an equal chance of being selected. This can be accomplished with a statistical computer program. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 22 Chapter 1 Drawing Statistical Conclusions 1.5.5 Other Random Sampling Procedures A commonly used method for selecting a sample of 100 from the list of 20,000 is to pick a single random start from the positions 1 to 200 and then to select every 200th subject going down the frame. This is called systematic random sampling. Another method is to group the frame into 200 blocks of 100 consecutive subjects each and to select one of the blocks at random. This is called random cluster sampling. In sampling units such as lakes of different sizes, it is sometimes useful to allow larger units to have higher probabilities of being sampled than smaller units. This constitutes variable probability sampling. These and other random sampling schemes can be useful, but they differ from simple random sampling in fundamental ways. On Being Representative Random samples and randomized experiments are representative in the same sense that flipping a coin to see who takes out the garbage is fair. Flipping is always fair before the coin hits the table, but the outcome is always unfair to the loser. In the same way, close examination of the results of randomization or random sampling can usually expose ways in which the chosen sample is not representative. The key, however, is not to abandon the procedure when its result is suspect. Uncertainty about representativeness will be incorporated into the statistical analysis itself. If randomization were abandoned, there would be no way to express uncertainty accurately. 1.6 SUMMARY Cause-and-effect relationships can be inferred from randomized experiments but not from observational studies. The problem with observational studies is that confounding variables—identifiable or not—may be responsible for observed differ- ences. Randomized experiments eliminate this problem by ensuring that differences between groups (other than those of the assigned treatments) are due to chance alone. Statistical measures of uncertainty account for this chance. Statistically, the statements that generalize sample results to more general contexts are based on a probability model. When the model corresponds to the planned use of randomization or random sampling, it provides a firm basis for drawing inferences. The probability model may also be a fiction, created for the purposes of assessing uncertainty. Results from fictitious probability models must be viewed with skepticism. 1.7 EXERCISES Conceptual Exercises 1. Creativity Study. In the motivation and creativity experiment, the poems were given to the judges in random order. Why was that important? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.7 Exercises 23 2. Sex Discrimination Study. Explain why it is difficult to prove sex discrimination (that males in a company receive higher starting salaries because they are males) even if it has occurred. 3. A study found that individuals who lived in houses with more than two bathrooms tended to have higher blood pressure than individuals who lived in houses with two or fewer bathrooms. (a) Can cause and effect be inferred from this? (b) What confounding variables may be responsible for the difference? 4. A researcher performed a comparative experiment on laboratory rats. Rats were assigned to group 1 haphazardly by pulling them out of the cage without thinking about which one to select. Should others question the claim that this was as good as a randomized experiment? 5. In 1930 an experiment was conducted on 20,000 school children in England. Teachers were responsible for randomly assigning their students to a treatment group—to receive 3 pint of milk 4 each day—or to a control group—to receive no milk supplement. Weights and heights were measured before and after the four-month experiment. The study found that children receiving milk gained more weight during the study period. On further investigation, it was also found that the controls were heavier and taller than the treatment group before the milk treatment began (more so than could be attributed to chance). What is the likely explanation and the implication concerning the validity of the experiment? 6. Ten marijuana users, aged 14 to 16, were drawn from patients enrolled in a drug abuse program and compared to nine drug-free volunteers of the same age group. Neuropsychological tests for short-term memory were given, and the marijuana group average was found to be significantly lower than the control group average. The marijuana group was held drug-free for the next six weeks, at which time a similar test was given with essentially the same result. The researchers concluded that marijuana use caused adolescents to have short-term memory deficits that continue for at least six weeks after the last use of marijuana. (a) Can a genuine causal relationship be established from this study? (b) Can the results be generalized to other 14- to 16-year-olds? (c) What are some potential confounding factors? 7. Suppose that random samples of Caucasian-American and Chinese-American individuals are obtained from patient records of doctors participating in a study to compare blood pressures of the two populations. Suppose that the individuals selected are asked whether they want to participate and that some decline. The study is conducted only on those that volunteer to participate, and a compar- ison of the distributions of blood pressures is conducted. Where does this study fit in Display 1.5? What assumption would be necessary to allow inferences to be made to the sampled populations? 8. More people get colds during cold weather than during warm weather. Does that prove that cold temperatures cause people to get colds? What is a potential confounding factor? 9. A study showed that children who watch more than two hours of television each day tend to have higher cholesterol levels than children who watch less than two hours of television each day. Can you think of any use for the result of this study? 10. What is the difference between a randomized experiment and a random sample? 11. A number of volunteers were randomly assigned to one of two groups, one of which received daily doses of vitamin C and one of which received daily placebos (without any active ingredient). It was found that the rate of colds was lower in the vitamin C group than in the placebo group. It became evident, however, that many of the subjects in the vitamin C group correctly guessed that they were receiving vitamin C rather than placebo, because of the taste. Can it still be said that the difference in treatments is what caused the difference in cold rates? 12. Fish Oil and Blood Pressure. Researchers used 7 red and 7 black playing cards to randomly assign 14 volunteer males with high blood pressure to one of two diets for four weeks: a fish oil diet and a standard oil diet. The reductions in diastolic blood pressure are shown in Display 1.14. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 24 Chapter 1 Drawing Statistical Conclusions DISPLAY 1.14 Reductions in diastolic blood pressure (mm of mercury) for 14 men after 4 weeks of a special diet containing fish oil or a regular, nonfish oil (Based on a study by H. R. Knapp and G. A. FitzGerald, “The Antihypertensive Effects of Fish Oil,” New England Journal of Medicine 320 (1989): 1037–43.) Why might the results of this study be important, even though the volunteers do not constitute a random sample from any population? 13. Why does a stem-and-leaf diagram require less space than an ordinary table? 14. What governs the width of a box plot? 15. What general features are evident in a box plot of data from a normal distribution? from a skewed distribution? from a short-tailed distribution? from a long-tailed distribution? Computational Exercises 16. Gross Domestic Product (GDP) per Capita. The data file ex0116 contains the gross domes- tic product per capita for 228 countries—the data used to construct the box plot in Display 1.11. (a) Make a box plot of the per capita GDPs with a statistical computer program. Include a y-axis label (for example, “Gross Domestic Product per Capita in $U.S.”). (b) In what ways, if any, is the display from your software different from Display 1.11? (c) Use a statistical computer program to draw a histogram of the per capita GDPs. Include an x-axis label. Use the program’s default bin width. Report that bin width. (d) The program’s default bin width for histograms is not necessarily the best choice. If it’s possible with your statistical computer program, redraw the histogram of part (c) using bin widths of $5,000. (Data from Central Intelligence Agency, “Country Comparison: GDP — per capita (PPP),” The World Factbook, June 24, 2011 https://www.cia.gov/library/publications/the- world-factbook/rankorder/2004rank.html (June 30, 2011).) 17. Seven students volunteered for a comparison of study guides for an advanced course in math- ematics. They were randomly assigned, four to study guide A and three to study guide B. All were instructed to study independently. Following a two-day study period, all students were given an examination about the material covered by the guides, with the following results: Study Guide A scores: 68; 77; 82; 85 Study Guide B scores: 53; 64; 71 Perform a randomization test by listing all possible ways that these students could have been random- ized to two groups. There are 35 ways. For each outcome, calculate the difference between sample averages. Finally, calculate the two-sided p-value for the observed outcome. 18. Using the creativity study data (Section 1.1.1) and a computer, assign a set of random numbers to the 47 subjects. Order the entire data set by increasing values of the random numbers, and divide the subjects into group 1 with the 24 lowest random numbers and group 2 with the 23 highest. Compute the difference in averages. Repeat this process five times, using different sets of random numbers. Did you get any differences larger than the one actually observed (4.14)? 19. Write down the names and ages of 10 people. Using coin flips, divide them into two groups, as if for a randomized experiment. Did one group tend to get many of the older subjects? Was there any way to predict which group would have a higher average age in advance of the coin flips? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1.7 Exercises 25 20. Repeat Exercise 19 using a randomization mechanism that ensures that each group will end up with exactly five people. 21. Read the methods and design sections of five published studies in your own field of specializa- tion. (a) Categorize each according to Display 1.5. (b) Now read the conclusions sections. Determine whether inferential statements are limited to or go beyond the scope allowed in Display 1.5. 22. Draw back-to-back stem-and-leaf diagrams of the creativity scores for the two motivation groups in Display 1.1 (by hand). 23. Use the computer to draw side-by-side box plots for the creativity scores in Display 1.1. 24. Using the stem-and-leaf diagrams from Exercise 22, compute the median, lower quartile, and upper quartile for each of the motivation groups. Identify these on the box plots from Exercise 23. Using a ruler, measure the length of the box (the IQR) for each group, and make horizontal lines at 1.5 IQRs above and below each box and at 3 IQRs above and below the box. Are there any extreme points in either group? Are there any very extreme points in either group? 25. The following are zinc concentrations (in mg/ml) in the blood for two groups of rats. Group A received a dietary supplement of calcium, and group B did not. Researchers are interested in variations in zinc level as a side effect of dietary supplementation of calcium. Group A: 1:31 1:45 1:12 1:16 1:30 1:50 1:20 1:22 1:42 1:14 1:23 1:59 1:11 1:10 1:53 1:52 1:17 1:49 1:62 1:29 Group B: 1:13 1:71 1:39 1:15 1:33 1:00 1:03 1:68 1:76 1:55 1:34 1:47 1:74 1:74 1:19 1:15 1:20 1:59 1:47 (a) Make a back-to-back stem-and-leaf diagram (by hand) for these measurements. (b) Use the computer to draw side-by-side box plots. Data Problems 26. Environmental Voting of Democrats and Republicans in the U.S. House of Representa- tives. Each year, the League of Conservation Voters (LCV) identifies legislative votes taken in each house of the U.S. Congress—votes that are highly influential in establishing policy and action on environmental problems. The LCV then publishes whether each member of Congress cast a pro- environment or an anti-environment vote. Display 1.15 shows these votes during the years 2005, 2006, and 2007 for members of the House of Representatives. Evaluate the evidence supporting party differences in the percentage of pro-environment votes. Write a brief report of your conclusion, including a graphical display and summary statistics. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 1.15 Number of pro- and anti-environment votes in 2005, 2006, and 2007, according to the League of Conservation Voters, of Republican (R) and Democratic (D) members of the U.S. House of Representatives; and the total percentage of their votes that were deemed pro-environment; first 5 of 492 rows State Representative Party Pro05 Anti05 Pro06 Anti06 Pro07 Anti07 PctPro Alabama Alabama Alabama Alabama Alabama Bonner Everett Rogers Aderholt Cramer R 2 R 0 R 1 R 0 D 5 16 3 18 1 17 2 18 0 13 4 9 2 11 2 10 3 12 2 7 14 18 14.0 18 6.0 17 12.0 18 4.0 6 46.9 26 Chapter 1 Drawing Statistical Conclusions 27. Environmental Voting of Democrats and Republicans in the U.S. Senate. Display 1.16 shows the first five rows of a data set with pro- and anti-environment votes (according to the League of Conservation Voters; see Exercise 26) during 2005, 2006, and 2007, cast by U.S. senators. Evaluate the evidence supporting party differences in the percentage of pro-environment votes. Write a brief report of your conclusion, and include a graphical display and summary statistics. Answers to Conceptual Exercises 1. If one of the two treatment groups had their poems judged first, then the effect of motivation treatment would be confounded with time effects in the judges’ marking of creativity scores. Judges are influenced by memories of previous cases. They may also discern a change in average quality, which could alter their expectations. 2. Statistically, the distributions of male and female starting salaries may be compared after adjust- ing for possible confounding variables. Since the data are necessarily observational, a difference in distribution cannot be linked to a specific cause. Once more, for emphasis: The best possible sta- tistical analysis using the best possible data cannot establish causation in an observational study, but observational data are the only data likely to be available for discrimination cases. If, therefore, courts required plaintiffs to produce scientifically defensible proof of discrimination in order to pre- vail, defendants would win all discrimination cases by definition. As a result, some courts that wish to give weight to statistical information in discrimination cases adopt rules of evidence that allow proof to be established negatively—by the lack of an adequate rebuttal. 3. (a) No. (b) Wealth and richness of diet. 4. Yes. First of all, there is the possibility that the rats that were easier to get out of the cage are different from the others—bigger, less mobile, perhaps. Second, even if there is no obvious reason why the rats in the two groups might be different, that does not ensure they are not. Researchers must maintain skepticism about the conclusions in light of the uncertainty. With proper randomization, which is easy to carry out, there would be no doubt. 5. Teachers apparently gave the milk to the students they thought would most benefit from it. As a consequence, the results of the experiment were not valid. 6. (a) No. In this observational study, it is possible that the drug users were different from the nonusers in ways other than drug use. (b) No, because the samples are volunteers, not random samples. (c) Happiness of the child, stability of family, success of child in school. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Number of pro- and anti-environment votes in 2005, 2006, and 2007, according to the League DISPLAY 1.16 of Conservation Voters, of Republican (R) and Democratic (D) members of the U.S. Senate; and the total percentage of their votes that were deemed pro-environment; first 5 of 112 rows State Alabama Alabama Alaska Alaska Arizona Senator Session Shelby Murkowski Stevens Kyle Party Pro05 Anti05 Pro06 Anti06 Pro07 Anti07 PctPro R 1 R 1 R 2 R 1 R 1 18 0 19 0 17 1 19 1 19 2 7 2 7 1 6 6 6 4 5 2 13 7.3 14 4.8 9 22.0 11 14.3 13 11.9 1.7 Exercises 27 7. It is an observational study. The population that is randomly sampled is the population of consenting subjects. To draw inference to all subjects requires the assumption that the response is unrelated to the reasons for consent. 8. No. The amount of time people spend indoors. 9. It may be possible for doctors to identify children who are likely to have high cholesterol by asking about their television watching habits. This requires no causative link. It is a minor use, however, and there is apparently no other. 10. In a randomized experiment a random mechanism is used to allocate the available subjects to treatment groups. In a random sample a random mechanism is used to select subjects from the populations of interest. 11. Yes, sort of. The treatment difference caused the different responses, but the actual “treatment” received in the vitamin C group was both a daily dose of vitamin C and knowledge that it was vitamin C. It’s possible that the second aspect of this treatment is what was responsible for the difference. Researchers must make sure that the two groups are treated as similarly as possible in all respects, except for the specific agent under comparison. 12. The conclusion that the fish oil diet causes a reduction in blood pressure for these volunteers is a strong and useful one, even if it formally applies only to these particular individuals. 13. The leading digit or digits (the stems) are listed only once. 14. The width of the box is chosen to make the overall picture pleasing to the eye. It does not represent anything. For side-by-side box plots, the widths of the two boxes should be equal. 15. Normal: Median line in the middle of the box; equal whiskers; few if any extreme points; no very extreme points. Skewed: extreme points in one direction only; very extreme points possible, but few; long whisker on side of extreme points and short whisker (if any) on other side; median line closer to short whisker than to long one. Short-tailed: Like normal with no extreme points and very short whiskers. Long-tailed: Like normal (roughly symmetric) with extreme points strung out in both tails; some very extreme points possible. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 2 Inference Using t-Distributions The first of the case studies in this chapter illustrates the structure of two independent samples and the second illustrates the structure of a single sample of pairs. This chapter has the dual purposes of detailing the infer- ential tools for these important structures and emphasizing the conceptual basis of confidence intervals and p-values based on the t-distribution more generally. These “t-tools” are useful in regression and analysis of variance structures that will be taken up in subsequent chapters, but their main features can be conveyed in the relatively simple setting of a two-group comparison. The tools are derived under random sampling models when populations are normally distributed. As will be seen, the resulting tools also find application as approximations to randomization tests. Furthermore, as described in Chapter 3, they often work quite well even when the populations are not normal. 28 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 2.1 Case Studies 29 2.1 CASE STUDIES 2.1.1 Evidence Supporting Darwin’s Theory of Natural Selection—An Observational Study In the search for evidence supporting Charles Darwin’s theory of natural selec- tion, Karl Pearson (1857–1936) made a simple yet profound contribution to human reasoning. Pearson was encouraged by Darwin’s cousin, Francis Galton, to use mathematical analysis of numerical characteristics of animals to find evidence of species adaptation. Darwin had observed, for example, that beaks of various finch species in the Gal ́apagos Islands differed in ways that seemed well suited to sur- vival in their respective environments, but he had no direct evidence that the beak characteristics actually evolved to adapt to their environments. In thinking about the use of mathematics, Pearson puzzled over how to show that a numerical charac- teristic, such as beak size, differs in populations before and after an environmental disturbance if, in fact, the characteristic is variable among individuals within each population. His profound contribution was to articulate that the scientific ques- tions could be addressed through a comparison of population distributions of the characteristic. Even if two populations of finches showed considerable overlap in beak sizes, he argued, a demonstration that the population distributions differed would suffice as evidence of a species difference. Although Pearson never found the evidence he was looking for, his insights and investigations into methodology for comparing population distributions had a major impact on the development of modern statistics. In the 1980s, biologists Peter and Rosemary Grant and colleagues found what Pearson had been looking for. Over the course of 30 years, the Grants’ research team caught and measured all the birds from more than 20 generations of finches on the Gal ́apagos island of Daphne Major. In one of those years, 1977, a severe drought caused vegetation to wither, and the only remaining food source was a large, tough seed, which the finches ordinarily ignored. Were the birds with larger and stronger beaks for opening these tough seeds more likely to survive that year and did they tend to pass this characteristic to their offspring? The Grants measured beak depths (height of the beak at its base) of all 751 Daphne Major finches the year before the drought (1976) and all 89 finches captured the year after the drought (1978). Display 2.1 shows side-by-side stem-and-leaf dia- grams comparing the 89 post-drought finch bill depths with an equal-sized random sample of the pre-drought bill depths. (For the full set of 1976 finches, see Exercise 2.18.) Is there evidence of a difference between the population distributions of beak depths in 1976 and 1978? (The data were read from a histogram in P. Grant, 1986, Ecology and Evolution of Darwin’s Finches, Princeton University Press, Princeton, N.J.) Statistical Conclusion These data provide overwhelming evidence that the mean beak depth increased from 1976 to 1978 (one-sided p-value < 0.00001 from a two-sample t-test). The Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 30 Chapter 2 Inference Using t-Distributions DISPLAY 2.1 Beak depths (mm) of Darwin finches on Daphne Major in 1976, pre-drought, and 1978, post- drought 1978 (post-drought) mean was estimated to exceed the 1976 (pre-drought) mean by 0.67 mm (95% confidence interval: 0.38 mm to 0.96 mm). Scope of Inference Since this was an observational study, a causal conclusion—that the drought caused a change in the mean beak size—does not follow directly from the statistical evi- dence of a difference in the means. A lack of alternative explanations, though, might make biologists reasonably confident in the speculation that natural selec- tion in response to the drought is responsible for the change. The Grants measured every finch in the 1976 and 1978 populations. Even though the entire populations were measured, a two-sample t-test is appropriate for showing that the difference in the two populations is greater than can be explained by chance. A more serious problem, though, is that the population in 1978 likely includes birds that were also in the 1976 population or offspring of birds in the 1976 population. If so, the assumption of independence of the two samples would be violated. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 2.2 Pair # 2.1.2 Anatomical Abnormalities Associated with Schizophrenia—An Observational Study Are any physiological indicators associated with schizophrenia? Early studies, based largely on postmortem analysis, suggest that the sizes of certain areas of the brain may be different in persons afflicted with schizophrenia than in others. Confound- ing variables in these studies, however, clouded the issue considerably. In a 1990 article, researchers reported the results of a study that controlled for genetic and socioeconomic differences by examining 15 pairs of monozygotic twins, where one of the twins was schizophrenic and the other was not. The twins were located through an intensive search throughout Canada and the United States. (Data from R. L. Suddath et al., “Anatomical Abnormalities in the Brains of Monozygotic Twins Discordant for Schizophrenia,” New England Journal of Medicine 322(12) (1990): 789–93.) The researchers used magnetic resonance imaging to measure the volumes (in cm3) of several regions and subregions inside the twins’ brains. Display 2.2 presents data based on the reported summary statistics from one subregion, the left hippocampus. What is the magnitude of the difference in volumes of the left hippocampus between the unaffected and the affected individuals? Can the observed difference be attributed to chance? Summary of Statistical Analysis There is substantial evidence that the mean difference in left hippocampus vol- umes between schizophrenic individuals and their nonschizophrenic twins is nonzero (two-sided p-value D 0:006, from a paired t-test). It is estimated that the mean Differences in volumes (cm3) of left hippocampus in 15 sets of monozygotic twins where one twin is affected by schizophrenia Unaffected Affected Difference Differences 2.1 Case Studies 31 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 32 Chapter 2 Inference Using t-Distributions volume is 0.20cm3 smaller for those with schizophrenia (about 11% smaller). A 95% confidence interval for the difference is from 0.07 to 0.33cm3. Scope of Inference These twins were not randomly selected from general populations of schizophrenic and nonschizophrenic individuals. Tempting as it is to draw inferences to these wider populations, such inferences must be based on an assumption that these individuals are as representative as random samples are. Furthermore, the study is observational, so no causal connection between left hippocampus volume and schizophrenia can be established from the statistics alone. In fact, the researchers had no theories about whether the abnormalities preceded the disease or resulted from it. 2.2 ONE-SAMPLE t-TOOLS AND THE PAIRED t-TEST The schizophrenia study used a paired t-test, in which measurements taken on paired subjects are reduced to a single set of differences for analysis. This section develops the single population methods for drawing inferences about the population mean from a random sample and at the same time introduces key concepts such as sampling distributions, standard errors, Z-ratios, and t-ratios. 2.2.1 The Sampling Distribution of a Sample Average A random sample is drawn from a population with the objective of learning about the population’s mean. Suppose the average of that sample is written on a piece of paper, which is placed in a box. Then suppose this process is repeated for every one of the equally likely samples that could be drawn. Then the distribution of all the numbers in the box is the sampling distribution of the average. Display 2.3 illustrates a sampling distribution in the conceptual framework of the schizophrenia study. There is an assumed population of twins in which one of the twins has schizophrenia and the other does not. For each set of twins, Y represents the difference between the left hippocampus volumes of the unaffected and the affected twin. The 15 observed differences are assumed to be a random sample from this population. To examine whether there is a structural difference between volumes, one calculates the average of the 15 measurements, Y D 0:20 cm3 , as an estimate of the population mean . Although only the one sample is actually taken, it is important to think about replicating the study—repeatedly collecting 15 sets of twins and repeatedly calcu- lating the average difference. The value of the average varies from sample to sample, and a histogram of its values represents its sampling distribution. Because, in this case, there is only one average with which to estimate a pop- ulation mean, it would seem difficult to learn anything about the characteristics of the sampling distribution. Some illuminating facts about the sampling distri- bution of an average, however, come from statistical theory. If a population has Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 2.3 The sampling distribution of the sample average Differences Differences -2 -19 -0 Average: 0.199 SD:0.238 n: 15 -2 -1x -0xx Average: Y SD: s n:15 2.2 One-Sample t-Tools and the Paired t-Test 33 Population (of twins discordant on schizophrenia) Population Distribution Volume difference (cm3) Random sample Actual Data Other random samples 0 23479 1 0139 2 3 33x 4 0 4 xx 5 09 5 x 676 77 mean  and standard deviation , then—as illustrated in Display 2.4—the mean of the sampling distribution of the average is also , the standard deviation of the sampling distribution is =pn, and the shape of the sampling distribution is more nearly normal than is the shape of the population distribution. The last fact comes from the important Central Limit Theorem. The standard deviation in the sampling distribution of an average, denoted by SD.Y /, is the typical size of (Y 􏰀 ), the error in using Y as an estimate of . This standard deviation gets smaller as the sample size increases. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 0 xx 1 xxxx 2 xx Sampling Distribution of the Average Volume difference (cm3) 34 Chapter 2 Inference Using t-Distributions Relationship between the population distribution and the sampling distribution of the average in random sampling DISPLAY 2.4 Population Distribution Sampling Distribution of the Average Center The sampling distribution is centered on the population mean. 3 Shape The shape of the sampling distribution will be more nearly normal than the shape of the population distribution. 1 2 Spread Sample averages are closer to the mean than single values; the sampling distribution has SD(Y) = n 2.2.2 The Standard Error of an Average in Random Sampling The standard error of any statistic is an estimate of the standard deviation in its sampling distribution. It is therefore the best guess about the likely size of the difference between a statistic used to estimate a parameter and the parameter itself. Standard errors are ordinarily calculated by substituting estimates of variability parameters into the formulas of sampling distribution standard deviations. Associated with every standard error is a measure of the amount of information used to estimate variability, called its degrees of freedom, denoted d.f. Degrees of freedom are measured in units of “equivalent numbers of independent observations.” Further information to explain degrees of freedom, more generally, will be provided in future chapters. Standard Error for a Sample Average The formula for the standard deviation of the average in a sample of size n is =pn, so if s is the sample standard deviation, the standard error for the average is Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 2.2 One-Sample t-Tools and the Paired t-Test 35 s SE.Y/D pn; d:f:D.n􏰀1/: The degrees of freedom in a single sample standard deviation are always one less than the sample size. In the schizophrenia study, the average difference between volumes of unaf- fected and affected twins is 0.199cm3, and the sample standard deviation of the differences is 0.238 cm3. The standard error of the average is therefore 0.062cm3, with 14 degrees of freedom. From this, one makes a preliminary judgment that the population difference is likely to be near the sample estimate, 0.199cm3, but that the sample estimate is likely to be somewhere in the neighborhood of 0.062 cm3 off the mark. 2.2.3 The t-Ratio Based on a Sample Average The ratio of an estimate’s error to the anticipated size of its error provides a convenient basis for drawing inferences about the parameter in question. The Z-Ratio For any parameter and its sample estimate, its Z-ratio is defined as Z D (Estimate–Parameter)/SD(Estimate). If the sampling distribution of the estimate is normal, then the sampling distribution of Z is standard normal, where the mean is 0 and the standard deviation is 1. The known percentiles of the standard nor- mal distribution permit an understanding of the likely values of the Z-ratio, even though its value in any single case will not be known. From a computer program with normal percentiles, for example, it can be found that for 95% of all sam- ples the Z-ratio will fall in the interval 􏰀1.96 to 1.96. If the standard deviation of the estimate is known, this permits an understanding of the likely size of the estimation error. Consequently, useful statements can be made about the amount of uncertainty with which questions about the parameter can be resolved. The t-Ratio When, as is usually the case, the standard deviation of an estimate is unknown, it is natural to replace its value in the Z-ratio with the estimate’s standard error. The result is the t-ratio, Associated with this t-ratio are the same degrees of freedom associated with the standard error of the estimate. The t-ratio does not have a standard normal Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. t-ratio D .Estimate 􏰀 Parameter/ SE.Estimate/ 36 Chapter 2 Inference Using t-Distributions 2.2.4 distribution, because there is extra variability due to estimating the standard devi- ation. The fewer the degrees of freedom, the greater is this extra variability. Under some conditions, however, the sampling distribution of the t-ratio is known. If Y is the average in a random sample of size n from a normally distributed population, the sampling distribution of its t-ratio is described by a Student’s t-distribution on n 􏰀 1 degrees of freedom. The mathematical formula for the t-distributions was guessed by W. S. Gossett, a scientist who worked at the Guin- ness Brewery in the early 1900s and who published under the pseudonym “Student.” The formula was proved to be correct by R. A. Fisher in 1925. Histograms for t-distributions are symmetric about zero. For large degrees of freedom (about 30 or more), t-distributions differ very little from the standard nor- mal. For smaller degrees of freedom, they have longer tails than normal. Percentiles of t-distributions are available in statistical computer programs and some pocket calculators. Unraveling the t-Ratio The average difference between hippocampus volumes for the 15 sets of twins in the schizophrenia study is 0.199cm3, and its standard error is 0.0615cm3, based on 14 degrees of freedom. The t-ratio is therefore (0.199 􏰀)/0.0615, where  is the mean difference in the population of twins. If it can be assumed that the population distribution is normally distributed, then this t-ratio has a value typical of one drawn at random from a t-distribution with 14 degrees of freedom. A picture of this distribution is shown in Display 2.5. This distribution indicates the likely values for the t-ratio, which in turn may be used to indicate plausible values of . The Paired t-Test for No Difference For example, consider the question “Is it plausible, based on the data, that  could be zero?” If  were zero, that would imply that the t-ratio was t -ratio (if  is zero) D .0:199 􏰀 0/=0:0615 D 3:236: Display 2.5, however, shows that 3.236 is an unusually large value to have come from the t-distribution. More precisely, only 0.003 (i.e., 0.3%) of all random samples from a population in which  D 0 lead to values of the t-ratio as large as or larger than 3.236. (This value comes from a calculator or from a statistical computer program.) The proportion of random samples that yield t-ratios that are as far or farther from 0 than 3.236 in either direction is 0.006 (double the 0.003). So here are your choices: (a)  ¤ 0; or (b)  D 0 and the random sampling resulted in a particularly nonrepresentative sample. You cannot prove that  ¤ 0, but you may infer it from the rarity of the converse. This type of reasoning is the conceptual basis for testing a hypothesis about a parameter, and the measure 0.006 is the (two-sided) p-value based on the t-distribution. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 2.2 One-Sample t-Tools and the Paired t-Test 37 DISPLAY 2.5 Student’s t-distribution on 14 degrees of freedom A percentage represents how frequently t-ratios are less than a certain value. A percentile is a t-ratio having a specific percentage of the distribution below it. 5% of the t-ratios are smaller than –1.761. Percentages are shown as areas under the curve. –3 –2 –1 0 +1 +2 +3 – 2.624 Percentiles Percentages 1 –2.145 –1.761 –1.345 2.5 5 10 0 50 +1.345 +1.761 90 95 +2.145 +2.624 97.5 99 A 95% Confidence Interval for the Mean Consider also the question “What are plausible values for , based on the data?” This can be answered by unraveling the t-ratio in a slightly different way. Display 2.5 shows that the most typical t-ratios are near zero, with 95% of the most likely values being between 􏰀2.145 and C2.145. If this sample produces one of these 95% most likely t-ratios, then 􏰀2:145 < .0:199 􏰀 /=0:0615 < C2:145; in which case  is between 0.067 and 0.331cm3. The interval from 0.067 to 0.331 is a 95% confidence interval for . The Intepretation of a Confidence Interval A 95% confidence interval will contain the parameter if the t -ratio from the observed data happens to be one of those in the middle 95% of the sampling distribution. Since 95% of all possible pairs of samples lead to such t-ratios, the procedure of constructing a 95% confidence interval is successful in capturing the parameter of interest in 95% of its applications. It is impossible to say whether it is successful or not in any particular application. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 38 Chapter 2 Inference Using t-Distributions DISPLAY 2.6 Calculations for the paired t -test and 95% confidence interval for the schizophrenia study SUMMARY STATISTICS 1 2 Compute differences. Obtain their average. Y, and standard deviation, s. Yi is the difference between the left hippocampus volumes in twin i (i = 1, ... , 15), unaffected twin minus schizophrenic twin. Sample average: Y = 0.199 cm3 Sample standard deviation: s = 0.238 cm3; 14 d.f. Compute the standard error of the average: SE (Y ) = s/√n with its d.f.=n–1 SE(Y ) = 0.238/√15 = 0.0615 cm3 PAIRED t-TEST FOR THE HYPOTHESIS OF NO DIFFERENCE IN MEAN VOLUMES 3 4 Compute the t-statistic: t = (Y – 0)/SE(Y) t-statistic = 0.199/0.0615 = 3.236; 14 d.f. two-sided p -value = 0.006 (from tabulated t-distribution with 14 d.f.) Find the p-value (two-sided here) as the proportion of t-ratios in a tn–1 distribution as or more extreme than the t-statistic 95% CONFIDENCE INTERVAL FOR THE MEAN VOLUME DIFFERENCE 5 6 The confidence interval: Y ± tn–1(0.975) × SE(Y) Find the 97.5th percentile, tn–1 (0.975), in the t-distribution with n – 1 d.f. t14(0.975) = 2.145 (from tabulated t-distribution with 14 d.f.) 0.199 ± 2.145 × 0.0615 ⇒ 0.067 cm3 to 0.331 cm3 2.3 A summary of the calculations for the paired t-test and confidence interval for the schizophrenia study are provided in Display 2.6. A t-RATIO FOR TWO-SAMPLE INFERENCE The preceding discussions provide a conceptual basis for the development of infer- ential tools based on the t-distributions. This section repeats the discussions more formally, for the structure of independent samples from two normally distributed populations. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 2.3 A t-Ratio for Two-Sample Inference 39 2.3.1 Sampling Distribution of the Difference Between Two Independent Sample Averages DISPLAY 2.7 The goal is to draw conclusions about the difference in two population means from the difference in two sample averages. The latter is variable—its value depends on the particular samples that happened to have been selected—and therefore leads to an uncertain conclusion. Fortunately, mathematical theory about the sampling distribution of the difference in averages can be used to simultaneously convey the uncertain conclusion along with an indication of its uncertainty. Display 2.7 lists the main mathematical results. The top panel shows histograms representing the two unknown population distributions and the bottom panel shows the sampling distribution for the difference in averages, meaning the probability distribution of possible values of the difference in averages that would emerge from (hypothetical) repeated sampling from the two populations. Although only a single sample is selected from each population in practice, mathematical theory based on simple random sampling reveals some useful facts about the sampling distribution, which are indicated in bubbles 1, 2, and 3. Facts about the sampling distribution of the difference of averages from two independent random samples (from statistical theory) Post-drought (1978) Population Distributions Beak depth (mm) Pre-drought (1976) Beak depth (mm) Shape The shape of the sampling distribution will be more nearly normal than the shape of the population distributions. 1 1 2 2 3 Sampling Distribution of the Difference Between Averages 1 2 – 1 2 Spread The sampling distribution has Center The sampling distribution is centered on the difference between population means. SD(Y2 – Y1) = 2 2 1 + 2 n1 n 2 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 40 Chapter 2 Inference Using t-Distributions 2.3.2 The mathematical theory reveals that the shape of the sampling distribution is approximately normal and that the adequacy of the approximation improves with increasing sample sizes. It also provides a formula for the standard deviation of the sampling distribution, as shown in bubble 3 of Display 2.7. This formula isn’t directly useable because it depends on the unknown population standard deviations. As in the one-sample problem, though, an estimate is obtained by replacing the unknown ’s in the formula by estimates. As before, the resulting estimated standard deviation of the sampling distribution is called a standard error. Standard Error for the Difference of Two Averages Statisticians have devised two methods for estimating the standard deviation in the sampling distribution of the difference between two averages. Some prefer an “unequal SD” method in which the two SDs are estimated independently from the two samples. This method will be presented in Chapter 4. Others prefer an “equal SD” method in which the two SDs are assumed equal and a single estimate of the common value is made by pooling information from the two samples. This book focuses on the latter method because it is a fundamental starting point for learning about the more sophisticated tools of regression and analysis of variance, which follow in later chapters. So assume in the following that the two populations have equal standard deviations: 1 D 2 D . Pooled Standard Deviation for Two Independent Samples If the two populations have the same standard deviation, , then the sample stan- dard deviations, s1 and s2, are independent estimates of it. A single estimate combines the two, and such a combination is formed by averaging on the variance scale. An average is not quite right, though, since the sample variance from a larger sample should be taken more seriously than a sample variance from a smaller one. A weighted average is in order, and the best single estimate of 2 is the weighted average in which the individual sample variances are weighted by their degrees of freedom. The square root of this is called the pooled estimate of standard deviation, sp , or, alternatively, the pooled SD: The number of degrees of freedom associated with this estimate is the sum of degrees of freedom from the individual estimates: .n1 􏰀 1/ C .n2 􏰀 1/ D n1 C n2 􏰀 2. Standard Error for the Difference A formula for the standard deviation of the difference between averages appears in bubble 2 of Display 2.7. If the two populations have equal standard deviations, the formula simplifies. The following shows the simplified formula with the common s.n1 􏰀1/s12 C.n2 􏰀1/s2 sp D .n1 Cn2 􏰀2/ ; d:f:Dn1 Cn2 􏰀2: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 2.8 standard deviation replaced by the pooled estimate of it. This is the standard error for the difference in sample averages. SE.Y2􏰀Y1/Dsps1 C 1: n1 n2 Display 2.8 shows the standard error calculations from the summary statistics of the two groups of finch beak depths, resulting in a value of 0.1459 mm from 176 degrees of freedom. The standard error may be interpreted as an estimate of the typical size of the deviation of Y 2 􏰀 Y 1 from the population quantity of interest, 2 􏰀 1. This suggests that the observed difference in averages, 0.6685 mm, might depart by about 0.1459 mm from the quantity of interest. In this way, the standard error can help researchers describe the uncertainty in the uncertain conclusion from their estimate. Even better communication of the uncertainty, though, is accomplished with p-values and confidence intervals. Calculation of the pooled estimate of SD and the standard error for the difference between two sample averages; finch beak data 2.3 A t-Ratio for Two-Sample Inference 41 1 2 Summary Statistics Group n 1: Pre-drought 89 2: Post-drought 89 Average (mm) 9.4697 10.1382 Sample SD (mm) 1.0353 0.9065 The Pooled SD sp = = (89 – 1)(1.0353)2 + (89 – 1)(0.9065)2 (89 + 89 – 2) 166.6358 176 These are the degrees of freedom associated with the pooled SD. This is the pooled variance. Answer Answer sp = 0.9468 = 0.9730 mm 3 The Standard Error SE(Y2 – Y1) = = 0.1459 mm 0.9730 1 + 1 89 89 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 42 Chapter 2 Inference Using t-Distributions 2.3.3 Confidence Interval for the Difference Between Population Means Inferences about the difference between population means arise from the consider- ation of a t-ratio, as in Section 2.2.3. The parameter of interest is 2 􏰀 1. Its estimate is Y 2 􏰀 Y 1 . The standard error comes from the previous section, and it has n1 C n2 􏰀 2 degrees of freedom. In this case the t-ratio is Œ.Y2 􏰀Y1/􏰀 .2 􏰀 1//SE.Y 2 􏰀 Y 1/. If the populations are normally distributed, this t-ratio has a t -distribution with n1 C n2 􏰀 2 degrees of freedom. ForthefinchbeakdataY2􏰀Y1 D0:6685mm,SE.Y2􏰀Y1/D0:1459mm,and the t-ratio has a sampling distribution described by a t-distribution on 176 degrees of freedom. A statement about the likely values for the t-ratio from this distribution can be translated into a statement about the plausible values for 2 􏰀 1. A computer program that provides percentiles of t-distributions will reveal that 95% of values in a t-distribution with 176 degrees of freedom will fall between 􏰀1:9735 and C1:9735. A 95% confidence interval can be obtained by supposing that the actual t-ratio is one of these 95% in the center. The extreme t-ratios, 􏰀1.9735 and C1.9735, are now used to find corresponding endpoints for an interval on the parameter. Setting 􏰀1:9735 < 0:6685 􏰀 .2 􏰀 1/ < 1:9735 0:1459 and solving for the parameter value yields the two interval endpoints: 0:3807 mm < 2 􏰀 1 < 0:9564 mm. The preceding interval will contain 2 􏰀 1 if the t-ratio for the observed samples is one of those 95% central ones, but not otherwise. The terminology “95% confidence” means that the procedure of constructing a 95% confidence interval is successful in 95% of its applications. It’s successful in the 95% of applications for which chance deals a t-ratio from the central part of the t-distribution. The Mechanics of Confidence Interval Construction A confidence interval with confidence level 100.1 􏰀 ̨/% is the following: This formula requires that a quantity be subtracted from Y 2 􏰀 Y 1 to get the lower endpoint and that the same quantity be added to Y 2 􏰀Y 1 to get the upper endpoint. The symbol tdf.1􏰀 ̨=2/ represents the 100.1􏰀 ̨=2/th percentile of the t-distribution on d.f. degrees of freedom. For example, t176(0.975) represents the 97.5th percentile in the t-distribution with 176 degrees of freedom (which is 1.9735). It may seem strange that the 97.5th percentile is desired in the calculation of a 95% confidence interval, but the 2.5th and the 97.5th percentiles are the ones that divide the middle 100.1 􏰀 ̨/% Confidence Limits for the Difference Between Means: .Y2 􏰀Y1/ ̇tdf.1􏰀 ̨=2/SE.Y2 􏰀Y1/: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 2.3 A t-Ratio for Two-Sample Inference 43 DISPLAY 2.9 Construction of a 95% confidence interval for the difference between the mean beak depths in 1978 and 1976 Group n 1: Pre-drought 89 2: Post-drought 89 Average (mm) 9.4697 10.1382 SD (mm) 1.0353 0.9065 From Display 2.8 From tables of the t-distribution with 176 degrees of freedom 10.1382 − 9.4697 = 0.6685 mm SE 0.1459 mm 89 + 89 − 2 = 176 t176(0.975) = 1.9735 Half-width = (1.9735)(0.1459) = 0.2879 Lower 95% confidence limit = 0.6685 − 0.2879 = 0.3807 mm Upper 95% confidence limit = 0.6685 + 0.2879 = 0.9564 mm 95% of the distribution from the rest; and the 2.5th percentile is always the negative of the 97.5th. Display 2.9 summarizes the solution for the finch beak data. Factors Affecting the Width of a Confidence Interval There is a trade-off between the level of confidence and the width of the confidence interval. The level of confidence can be specified to be large by the user (and a high confidence level is good), but only at the expense of having a wider interval (which is bad, since the interval is less specific in answering the question of interest). If the consequences of not capturing the parameter are severe, then it might be wise to use 99% confidence intervals, even though they will be wider and, therefore, less informative. If the consequences of not capturing the parameter are minor, then a 90% interval might be a good choice. Although somewhat arbitrary, a confidence level of 95% is a conventional choice for balancing the trade-off between level of confidence and interval width. The only way to decrease the interval width without decreasing the level of confidence (or similarly to increase the level of confidence without increasing width) is to get more data or, if possible, to reduce the size of . If a guess or initial estimate of  is available, it is possible to determine the sample size needed to get a confidence interval of a certain width. This is discussed in Chapter 23. 2.3.4 Testing a Hypothesis About the Difference Between Means To test a hypothesized value for a parameter, a t-statistic is formed in the same way as the t-ratio, but supposing the hypothesis is true. The t-distribution permits an evalution of whether the t-statistic is a likely value for a t-ratio and, hence, whether the hypothesis is reasonable. The t-statistic for the difference in means is Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 44 Chapter 2 Inference Using t-Distributions t-statistic D .Y 2 􏰀 Y 1 / 􏰀 ŒHypothesized value for .2 􏰀 1 / : SE.Y2 􏰀Y1/ This t-statistic tells how many standard errors the estimate is away from the hypothesized parameter. Its sign tells whether the estimate is above the hypothe- sized value (C) or below it (􏰀). The p-value, used as a measure of the credibility of the hypothesis, is the proportion of all possible t-ratios that are as far or farther from zero than is the t -statistic. The p-value may be based on a probability model induced by random assignment in a randomized experiment (Section 1.3.2) or on a probability model induced by random sampling from populations, as here. If the p-value is small, then either the hypothesis is correct—and the sample happened to be one of those rare ones that produce such an unusual t-ratio—or the hypothesis is incorrect. Although it is impossible to know which of these two possibilities is true, the p-value indicates the probability of the first of these results and, therefore, provides a measure of credibility for that interpretation. The smaller the p-value, the stronger is the evidence that the hypothesis is incorrect. A large p-value implies that the study is not capable of excluding the null hypothesis as a possible explanation for how the data turned out. A possible wording in this case is “the data are consistent with the hypothesis being true.” It is wrong to conclude that the null hypothesis is true. One-Sided and Two-Sided p -Values In the finch beak example the t-statistic for testing the hypothesis of “no difference” in population means is 4.583. The proportion of t-ratios that are as far or farther from zero than 4.583 is found from the percentiles of the t176 distribution. The proportion of t-ratios greater than or equal to 4.583 is miniscule, < 0:00001. The t-ratios as far or farther from zero than 4.583 are those less than or equal to 􏰀4.583 and those greater than or equal to 4.583, and this proportion is twice the proportion greater than 4.583 (because t-distributions are symmetric), but still miniscule. The proportion of t-ratios farther from zero in one specified direction is referred to as a one-sided p-value. The proportion of t-ratios farther from zero than the t-statistic, either positively or negatively, is a two-sided p-value. The choice of one-sided or two-sided depends on how specifically the researcher wishes to declare the alternatives to the hypothesis of equal means. In the finch beak study, the Grants surmised that the response of the species to the sole availability Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. The p-value for a t-test is the probability of obtaining a t-ratio as extreme or more extreme than the t-statistic in its evidence against the null hypothesis, if the null hypothesis is correct. 2.4 Inferences in a Two-Treatment Randomized Experiment 45 of large, tough seeds would not merely be a change in mean beak sizes but more specifically a tendency toward larger beak sizes. If their intention is to report a conclusion about the evidence that the mean beak size increased, regardless of how the data actually turn out, then a one-sided p-value is in order. Much has been made of whether to report one-sided or two-sided p-values. There are some situations where a one-sided p-value is appropriate, some where a two-sided p-value is appropriate, and many where it is not at all clear which is appropriate. Since the two provide equivalent measures of evidence against the hypothesis of equal means (that is, the two-sided p-value is simply twice the one- sided p-value), the distinction is not terribly important; a reader may convert one to other. There is only one absolute when it comes to reporting: always report whether the p-value is one- or two-sided. 2.3.5 The Mechanics of p-Value Computation The steps required to compute a p-value for the test of the hypothesis that 2 􏰀 1 D D (a specified value, like 0) are as follows. 1. Compute the estimate, Y 2 􏰀 Y 1 , its standard error, and the degrees of freedom. 2. Computethet-statistic:tDŒ.Y2􏰀Y1/􏰀D=SE.Y2􏰀Y1/. 3. Determine the proportion, P , of t -ratios that are less than the t -statistic, using a statistical computer program with t-distribution percentiles with the appropriate degrees of freedom. 4. Determine the p-value based on the proportion, P, and the alternatives of interest. (a) For one-sided alternatives of the form 2 􏰀1 > D, t-ratios larger than t are more extreme, so the one-sided p-value is 1 􏰀 P . (b) For the one- sided alternatives of the form 2 􏰀 1 < D, t-ratios smaller than t are more extreme, so the one-sided p-value is P. (c) For two-sided alternatives of the form 2 􏰀 1 ¤ D, t-ratios that are larger in magnitude than t are more extreme, so the two-sided p-value is 2P if P < 0:5 or 2.1 􏰀 P/ if P > 0:5.
5. Report the hypothesis, the p-value, and whether it is one- or two-sided.
An illustration of this procedure for the finch beak data is shown in Display 2.10.
2.4 INFERENCES IN A TWO-TREATMENT RANDOMIZED EXPERIMENT
Probability models for randomized experiments (Section 1.3.1) are spawned by the chance mechanisms used to assign subjects to treatment groups. Probability models for random sampling (Section 1.4.1) are spawned by the chance mechanisms used to select units from real, finite populations. Chapter 2 has thus far discussed infer- ence procedures whose motivation stems from considerations of random sampling from populations that are conceptual, infinite, and normally distributed. While there seems to be a considerable difference between the situations, it turns out that the t-distribution uncertainty measures discussed in this chapter are useful approximations to both the randomization and the random sampling uncertainty measures for a wide range of problems. The practical consequence is that t-tools
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

46
Chapter 2 Inference Using t-Distributions
DISPLAY 2.10
The t -test for the hypothesis that the post-drought and pre-drought beak depth means are equal
Group n
1: Pre-drought 89 2: Post-drought 89
Average (mm)
9.4697 10.1382
SD (mm)
1.0353 0.9065
4.583
10.1382 − 9.4697 = 0.6685 mm SE 0.1459 mm
89 + 89 − 2 = 176
From Display 2.8
0.6685 0.1459
0.999996
One-sided p-value = 0.000004
From tables of the t-distribution with 176 degrees of freedom:
2.4.1
are used for many situations that do not conform to the strict model upon which the t-tools are based, including data from randomized experiments. Conclusions from randomized experiments, however, are phrased in the language of treatment effects and causation, rather than differences in population means and association.
Approximate Uncertainty Measures for Randomized Experiments
Although theoretically motivated by random samples from normal populations, the two-sample t-test can also be applied to data from a two-group randomized experiment. Reconsideration of the creativity study (Section 1.1.1) illustrates the procedure. In the intrinsic group, the average of 24 scores is 19.88, and the SD is 4.44. In the extrinsic group, the average of 23 scores is 15.74, and the SD is 5.25. The pooled estimate of the standard deviation is 4.85, and the standard error for the difference between averages is 1.42 with 45 degrees of freedom. The difference between average scores is 4.14 points.
Hypothesis Test of No Treatment Effect
The t-statistic, t D .4:14 􏰀 0/=1:42 D 2:92, can be used to test the hypothesis of no treatment effect in exactly the same way it would be used to test equal population means from two random samples. The probability in a t-distribution on 45 degrees of freedom to the right of 2.92 is 0.0027, so the one-sided p-value for the alternative of a positive difference is 0.0027, and the two-sided p-value is 0.0054. The conclusion is phrased in terms of the additive treatment effect model: “This experiment provides strong evidence that receiving the intrinsic questionnaire caused a higher creativity score (one-sided p-value D 0.0027).”
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

2.5 Related Issues 47
Confidence Interval for a Treatment Effect
Construction of a confidence interval for an additive treatment effect ı is precisely the same as for the difference between population means, 2 􏰀 1. The 97.5th percentile in the t-distribution with 45 degrees of freedom is 2.014, so the interval half-width is .2:014/.1:42/ D 2:85. The interval runs from 4:14 􏰀 2:85 D 1:29 to 4:14 C 2:85 D 6:99 points.
Compare this construction with one based on the randomization procedure itself (Section 1.3). The randomization-based procedure relies on a relationship between testing and confidence intervals: Any hypothesized parameter value should be included or excluded from a 100.1 􏰀 ̨/% confidence interval according to whether its test yields a two-sided p-value that is greater than or less than ̨. Accordingly, to construct a 95% confidence interval for the treatment effect ı, include only those values of ı which, when tested, have two-sided p-values greater than 0.05.
To determine whether ı D 5 should be included in a 95% confidence interval, one must consider the randomization model for ı D 5. If this is the correct value, subtracting 5 from the scores of all persons in the intrinsic group reconstructs the scores they would have had if placed in the extrinsic group. Now all 47 scores are homogeneous, so a randomization test should conclude there is no difference. Perform the randomization test. If the two-sided p-value exceeds (or equals) 0.05, include 5 in the interval. Otherwise, leave it out. That settles the issue for ı D 5, but the limits of the interval must be found by repeating this process to find the smallest and largest ı for which the two-sided p-value is greater than or equal to 0.05.
Approximation of the Randomization Distribution
of the t-Statistic
The t-based p-values and confidence intervals are only approximations to the cor- rect p-values and confidence intervals from randomization distributions. To see how good the approximation is in the creativity study, the analysis of Chapter 1 was modified by considering the randomization distribution of the t-statistic rather than the difference in sample averages. A histogram of the t-statistics from 500,000 random regroupings appears in Display 2.11, along with the approx- imating t-distribution. The observed t-statistic (2.92) was exceeded by only 1,298 of the 500,000 random regroupings, giving an estimated one-sided p-value of 1;298=500;000 D 0:0026. The approximation based on the t-distribution (0.0027) is quite good.
2.5 RELATED ISSUES
2.5.1 Interpretation of p-Values
A small p-value like 0.005 means either that the null hypothesis is correct—and the randomization or random sampling led by chance to a rare outcome where the t-ratio is quite far from zero—or that the hypothesis is incorrect. The smaller the p-value, the greater is the evidence that the second explanation is the correct one.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

48 Chapter 2 Inference Using t-Distributions
DISPLAY 2.11
A histogram of t -statistics from 500,000 random regroupings of the creativity study data with an approximating t-distribution curve, demonstrating that the easier-to-use t-tools can give very good approximations to randomization test inferences, even through they are derived for a quite different model—random samples from two normal populations
Student’s t-distribution with
45 degrees of freedom
–4 –3 –2 –1 0 1 2 3 4
Value of the t-statistic
DISPLAY 2.12
Interpreting the size of a p-value p-Value
0 .01
Convincing Moderate
.05 .10
Suggestive, but inconclusive
1
No
Is there evidence of a difference?
How small is small? It is difficult and unwise to decide on absolute cutoff points for believability to be applied in all situations. Display 2.12 represents a starting point for interpreting p-values.
P-values can be comprehended by comparing them to events whose probabil- ities are more familiar. For example, at what point does a person flipping a series
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

2.5 Related Issues 49
of heads begin to doubt that the coin is fair? It is not terribly unlikely to get four heads in a row. The probability of doing so with a fair coin is 0.0625. At five heads in a row one might start to get a bit curious. The chance of this, if the coin is fair, is 0.03125. When the sixth toss is also heads, one may start to question the integrity of the coin, even though it is possible that a fair coin could turn up heads six times in a row (with probability 0.015625). Ten heads in a row is convincing evidence that the coin is not of standard issue. The probability of this event, if the chance of heads were in fact one-half, is 0.0009766.
It is tempting to think of a p-value as the probability of the null hypothesis being correct, but this interpretation is technically incorrect and potentially mis- leading. The hypothesis is or is not correct, and there is no probability associated with that. The probability arises from the uncertainty in the data. So the best technical description is the precise definition (see Section 2.3.4), clumsy as it may sound.
2.5.2 An Example of Confidence Intervals
In 1915 Albert Einstein published four papers in the proceedings of the Prussian Academy of Sciences laying the foundations of general relativity and describing some of its consequences. A paper establishing the field equation for gravity pre- dicted that the arc of deflection of light passing the sun would be twice the angle predicted by Newton’s gravity theory. Half the predicted deflection comes directly from Newton’s calculations, and the other half comes from the curvature of space near the sun relative to space far away. This is represented by the equation
 D .1=2/.1 C /1:75; d
where  is the deflection of light, d is the distance of the closest approach of the ray to the sun (in solar radii), and is the parameter describing space curvature.
The parameter , which is predicted by Einstein’s general relativity theory to be 1 and by Newtonian physics to be 0, was estimated in 1919 by British astronomers during a total solar eclipse. Since then, measurements have been repeated many times, under various measurement conditions. The efforts are summarized in Dis- play 2.13. (Data from C. M. Will, “General Relativity at 75: How Right Was Einstein?” Science 250 (November 9, 1990): 770–75.)
The confidence intervals around the estimates in Display 2.13 reflect uncertainty due to measurement errors. (The actual confidence levels are not given and are not important for this illustration.) After the first relatively crude attempts to measure
, little improvement was made until the late 1960s and the discovery of quasars. Measurements of light from quasar groups passing near the sun led to dramatic improvement in accuracy, as evident in the narrower intervals with later years.
A Note About the Accumulation of Evidence
This example shows that theories must withstand continual challenges from skep- tical scientists. The essence of scientific theory is the ability to predict future
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

50
Chapter 2 Inference Using t-Distributions
DISPLAY 2.13
1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0
General relativity value
Estimates and confidence intervals for , the deflection of light around the sun, from 20 experiments
Newtonian value
1920 1950 1970 1985
Year of Experiment
2.5.3
outcomes. Experimental results are typically uncertain. So the fact that some inter- vals fail to include the value D 1 is not taken to disprove general relativity, but neither would it prove general relativity right if all the intervals did include D 1. When a theory’s predictions are consistently denied by a series of experiments— such as the Newtonian prediction of D 0 in this example—scientists agree that the theory is not adequate.
The Rejection Region Approach to Hypothesis Testing
Not long ago, statisticians took a rejection region approach to testing hypotheses. A significance level of 0.05, say, was selected in advance, and a p-value less than 0.05 called for rejecting the hypothesis at the significance level 0.05; otherwise, the hypothesis was accepted, or more correctly, not rejected. Thus p-values of 0.048 and 0.0001 both lead to rejection at the 0.05 level, even though they supply vastly different degrees of evidence. On the other hand, p-values of 0.049 and 0.051 lead to different conclusions even though they provide virtually identical evidence against the hypothesis. Although important for leading to advances in the theory of statistics, the rejection region approach has largely been discarded for practical applications and p-values are reported instead. P-values give the reader more information for judging the significance of findings.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

2.7 Exercises 51
2.6 SUMMARY
Many research questions can be formulated as comparisons of two population dis- tributions. Comparison of the distributions’ centers effectively summarizes the difference between the parameters of interest when the populations have the same variation and general shape. This chapter concentrated on the difference in means, 2 􏰀 1, which is estimated by the difference in sample averages.
The statistical problem is to assess the uncertainty associated with the differ- ence between the estimate (the difference in sample averages) and the parameter (the difference in population means). The sampling distribution of an estimate is the key to understanding the uncertainty. It is represented as a histogram of values of the estimate for every possible sample that could have been selected.
Often with fairly large samples, a sampling distribution has a normal shape. A normal sampling distribution is specified by its mean and its standard deviation. When the populations have common standard deviation  the difference in sample averages has a sampling distribution with mean 2 􏰀 1 and standard deviation
s 1 C 1 : n1 n2
This could be used to describe uncertainty except that it involves the unknown — the common standard deviation in the two populations. In practice,  is replaced by its best estimate from the data—the pooled standard deviation, sp, having n1 C n2 􏰀 2 degrees of freedom. The estimated standard deviation of the sampling distribution is called the standard error.
The standard error alone, however, does not entirely describe the uncertainty in an estimate. More precise statements can be made by using the t-ratio, which has a Student’s t-distribution as its sampling distribution (if the ideal normal model applies). This leads directly to confidence intervals and p-values as statistical tools for answering the questions of interest. The confidence interval provides a range of likely values for the parameter, and the confidence level is interpreted as the frequency with which the interval construction procedure gives the right answer. For testing whether a particular hypothesized number could be the unknown parameter, the t-statistic is formed by substituting the hypothesized value for the true value in the t-ratio. The p-value is the chance of getting as extreme or more extreme t-ratios than the t-statistic, and it is interpreted as a measure of the credibility of the hypothesized value.
2.7 EXERCISES
Conceptual Exercises
1. Finch Beak Data. Explain why the finch beak study is considered an observational study.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

52 Chapter 2 Inference Using t-Distributions
2. For comparing two population means when the population distributions have the same standard deviation, the standard deviation is sometimes referred to as a nuisance parameter. Explain why it might be considered a nuisance.
3. True or false? If a sample size is large, then the shape of a histogram of the sample will be approximately normal, even if the population distribution is not normal.
4. True or false? If a sample size is large, then the shape of the sampling distribution of the average will be approximately normal, even if the population distribution is not normal.
5. Explain the relative merits of 90% and 99% levels of confidence.
6. What is wrong with the hypothesis that Y 2 􏰀 Y 1 is 0?
7. In a study of the effects of marijuana use during pregnancy, measurements on babies of mothers
who used marijuana during pregnancy were compared to measurements on babies of mothers who did not. (Data from B. Zuckerman et al., “Effects of Maternal Marijuana and Cocaine Use on Fetal Growth,” New England Journal of Medicine 320(12) (March 1989): 762–68.) A 95% confidence interval for the difference in mean head circumference (nonuse minus use) was 0.61 to 1.19 cm. What can be said from this statement about a p-value for the hypothesis that the mean difference is zero?
8. Suppose the following statement is made in a statistical summary: “A comparison of breathing capacities of individuals in households with low nitrogen dioxide levels and individuals in house- holds with high nitrogen dioxide levels indicated that there is no difference in the means (two-sided p-value D 0:24/.” What is wrong with this statement?
9. What is the difference between (a) the mean of Y and the mean of Y ? (b) the standard deviation of Y and the standard deviation of Y ? (c) the standard deviation of Y and the standard error of Y ? (d) a t-ratio and a t-statistic?
10. Consider blood pressure levels for populations of young women using birth control pills and young women not using birth control pills. A comparison of these two populations through an observational study might be consistent with the theory that the pill elevates blood pressure levels. What tool is appropriate for addressing whether there is a difference between these two populations? What tool is appropriate for addressing the likely size of the difference?
11. The data in Display 2.14 are survival times (in days) of guinea pigs that were randomly assigned either to a control group or to a treatment group that received a dose of tubercle bacilli. (Data from K. Doksum, “Empirical Probability Plots and Statistical Inference for Nonlinear Models in the Two- Sample Case,” Annals of Statistics 2(1974): 267–77.) (a) Why might the additive treatment effect model (introduced in Section 1.3.1) be inappropriate for these data? (b) Why might the ideal normal model with equal spread be an inadequate approximation?
Computational Exercises
12. Marijuana Use During Pregnancy. For the birth weights of babies in two groups, one born of mothers who used marijuana during pregnancy and the other born of mothers who did not (see Exercise 7), the difference in sample averages (nonuser mothers minus user mothers) was 280 grams, and the standard error of the difference was 46.66 grams with 1,095 degrees of freedom. From this information, provide the following: (a) a 95% confidence interval for 2 􏰀 1 , (b) a 90% confidence interval for 2 􏰀 1, and (c) the two-sided p-value for a test of the hypothesis that 2 􏰀 1 D 0.
13. Fish Oil and Blood Pressure. Reconsider the changes in blood pressures for men placed on a fish oil diet and for men placed on a regular oil diet, from Chapter 1, Exercise 12. Do the following steps to compare the treatments.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 2.14
Lifetimes of guinea pigs in two treatment groups
2.7 Exercises 53
14.
(a) Compute the averages and the sample standard deviations for each group separately.
(b) Compute the pooled estimate of standard deviation using the formula in Section 2.3.2.
(c) Compute SE.Y 2 􏰀 Y 1/ using the formula in Section 2.3.2.
(d) What are the degrees of freedom associated with the pooled estimate of standard deviation?
What is the 97.5th percentile of the t-distribution with this many degrees of freedom?
(e) Construct a 95% confidence interval for 2 􏰀 1 using the formula in Section 2.3.3.
(f) Compute the t-statistic for testing equality as shown in Section 2.3.5.
(g) Find the one-sided p-value (as evidence that the fish oil diet resulted in greater reduction of blood pressure) by comparing the t-statistic in (f) to the percentiles of the appro- priate t-distribution (by reading the appropriate percentile from a computer program or
calculator).
Fish Oil and Blood Pressure. Find the 95% confidence interval and one-sided p-value asked for in Exercise 13(e) and (g) but use a statistical computer package to do so.
15. Auto Exhaust and Lead Concentration in Blood. Researchers took independent random samples from two populations of police officers and measured the level of lead concentration in their blood. The sample of 126 police officers subjected to constant inhalation of automobile exhaust fumes in downtown Cairo had an average blood level concentration of 29.2 g/dl and an SD of 7.5 g/dl; a control sample of 50 police officers from the Cairo suburb of Abbasia, with no history of exposure, had an average blood level concentration of 18.2 g/dl and an SD of 5.8 g/dl. (Data from A.-A. M. Kamal, S. E. Eldamaty, and R. Faris, “Blood Lead Level of Cairo Traffic Policemen,” Science of the Total Environment 105(1991): 165–70.) Is there convincing evidence of a difference in the population averages?
16. Motivation and Creativity. Verify the statements made in the summary of statistical findings for the Motivation and Creativity Data (Section 1.1.1) by analyzing the data on the computer.
17. Sex Discrimination. Verify the statements made in the summary of statistical findings for the Sex Discrimination Data (Section 1.1.2) by analyzing the data on the computer.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

54 Chapter 2 Inference Using t-Distributions
18. The Grants’ Finch Complete Beak Data. The data file ex0218 contains the beak depths (in mm) of all 751 finches captured by Peter and Rosemary Grant in 1976 and all 89 finches captured in 1978 (as described in Section 2.1.1). Use a statistical computer program for parts a–d: (a) Draw side- by-side box plots of the two groups of beak depths. (b) Use the two-sample t -test on these data to find the one-sided p-value for a test of the hypothesis of no difference in means against the alternative that the mean in 1978 is larger. (c) What is the two-sided p-value from the t-test? (d) Provide an estimate and a 95% confidence interval for the amount by which the 1978 mean exceeds the 1976 mean. (e) What is it about the finches in the two populations that might make you question the validity of the independence assumption upon which the two-sample t-test is derived?
19. Fish Oil and Blood Pressure. Reconsider the fish oil and blood pressure data of Chapter 1, Exercise 12. Since the measurements are the reductions in blood pressure for each man, it is of interest to know whether the mean reduction is zero for each group. For the regular oil diet group do the following:
(a) Compute the average and the sample standard deviation. What are the degrees of freedom associated with the sample standard deviation, s2? p
(b) Compute the standard error for the average from this group: SE.Y 2/ D s2= n2.
(c) Construct a 95% confidence interval for 2 as Y 2 C td .:975/SE.Y 2/, where d is the
degrees of freedom associated with s2.
(d) For the hypothesis that 2 is zero, construct the t-statistic Y 2=SE.Y 2/. Find the two-sided
p-value as the proportion of values from a td -distribution farther from 0 than this value.
Fish Oil and Blood Pressure (One-Sample Analysis). Repeat Exercise 19 for the group of men who were given the fish oil diet and then answer these questions: Is there any evidence that the mean reduction for this group is different from zero? What is the typical reduction in blood pressure expected from this type of diet (for individuals like these men)? Provide a 95% confidence interval.
Data Problems
21. Bumpus Natural Selection Data. In 1899, biologist Hermon Bumpus presented as evidence of natural selection a comparison of numerical characteristics of moribund house sparrows that were collected after an uncommonly severe winter storm and which had either perished or survived as a result of their injuries. Display 2.15 shows the length of the humerus (arm bone) in inches for 59 of these sparrows, grouped according to whether they survived or perished. Analyze these data to summarize the evidence that the distribution of humerus lengths differs in the two populations. Write a brief paragraph of statistical conclusion, using the ones in Section 2.1 as a guide, including a
20.
DISPLAY 2.15
Humerus lengths of moribund male house sparrows measured by Hermon Bumpus, grouped according to survival status
Humerus Lengths (inches) of 35 Males That Survived
0.687, 0.703, 0.709, 0.715, 0.721, 0.723, 0.723, 0.726, 0.728, 0.728, 0.728, 0.729, 0.730, 0.730, 0.733, 0.733, 0.735, 0.736, 0.739, 0.741, 0.741, 0.741, 0.741, 0.743, 0.749, 0.751, 0.752, 0.752, 0.755, 0.756, 0.766, 0.767, 0.769, 0.770, 0.780
Humerus Lengths (inches) of 24 Males That Perished
0.659, 0.689, 0.702, 0.703, 0.709, 0.713, 0.720, 0.720, 0.726, 0.726, 0.729, 0.731, 0.736, 0.737, 0.738, 0.738, 0.739, 0.743, 0.744, 0.745, 0.752, 0.752, 0.754, 0.765
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

2.7 Exercises 55
graphical display, a conclusion about the degree of evidence of a difference, and a conclusion about the size of the difference in distributions.
22. Male and Female Intelligence. Males and females tend to exhibit different types of intelli- gence. Although there is substantial variability between individuals of the same gender, males on average tend to perform better at navigational and spatial tasks, and females tend to perform better at verbal fluency and memory tasks. This is not a controversial conclusion. Some researchers, however, ask whether males and females differ, on average, in their overall intelligence, and that is controver- sial because any single intelligence measure must rely on premises about the types of intelligence that are important. Even if researchers don’t make a subjective judgment about a type of intelligence being tested, they are constrained by the available tools for measuring intelligence. Mathematical knowledge is easy to test, for example, but wisdom, creativity, practical knowledge, and social skill are not.
Display 2.16 shows the first five rows of a data set with several intelligence test scores for random samples of 1,306 American men and 1,278 American women between the ages of 16 and 24 in 1981. The column labeled AFQT shows the percentile scores on the Armed Forces Qualifying Test, which is designed for evaluating the suitability of military recruits but which is also used by researchers as a general intelligence test. The AFQT score is a combination of scores from four component tests: word knowledge, paragraph comprehension, arithmetic reasoning, and mathematical knowledge. The data set represented in Display 2.16 includes each individual’s score on these components. (The overall AFQT score reported here, officially called AFQT89, is based on a nontrivial combination of the component scores)
Analyze the data to summarize the evidence of differences in male and female distributions of AFQT scores. Do they differ? By how much do they differ? Also answer these two questions for each of the four component test scores. Write a statistical report that includes graphical displays and statistical conclusions (like those in the case studies of Section 2.1), and a section of details upon which the conclusions were based (such as a listing of the computer output showing the results of two-sample t-tests and confidence intervals).
Notes about the data: Although these are random samples of American men and women between the ages of 16 and 24 in 1981, they are not simple random samples. The data come from the National Longitudinal Study of Youth (NLSY), which used variable probability sampling (see Section 1.5.4). To estimate the means of the larger populations, more advanced techniques are appropriate. For comparing male and female distributions, the naive approach based on random sampling is not likely to be misleading. These data come from the National Longitudinal Survey of Youth, U.S. Bureau of Labor Statistics, http://www.bls.gov/nls/home.htm (May 8, 2008). Rows with missing values of variables, including variables used in related problems in other chapters, have been omitted.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 2.16
Armed Forces Qualifying Test (AFQT) score percentile and component test scores in arithmetic reasoning, word knowledge, paragraph comprehension, and mathematical knowledge, for 1,278 women and 1,306 men in 1981; first 5 of 2,584 rows
Gender
male female male female female
Arith Word
19 27 23 34 30 35 30 35 13 30
Parag Math AFQT
14 14 70.3 11 20 60.4 14 25 98.3 13 21 84.7 11 12 44.5

56 Chapter 2 Inference Using t-Distributions
23. Speed Limits and Traffic Fatalities. The National Highway System Designation Act was signed into law in the United States on November 28, 1995. Among other things, the act abolished the federal mandate of 55-mile-per-hour maximum speed limits on roads in the United States and permitted states to establish their own limits. Of the 50 states (plus the District of Columbia), 32 increased their speed limits either at the beginning of 1996 or sometime during 1996. Shown in Display 2.17 are the percentage changes in interstate highway traffic fatalities from 1995 to 1996. What evidence is there that the percentage change was greater in states that increased their speed limits? How much of a difference is there? Write a brief statistical report detailing the answers to these questions. (Data from “Report to Congress: The Effect of Increased Speed Limits in the Post-NMSL Era,” National Highway Traffic Safety Administration, February, 1998; available in the reports library at http://www-fars.nhtsa.dot.gov/.)
DISPLAY 2.17
Number of traffic fatalities in 50 U.S. states and the District of Columbia, and status of speed limit change in the state (retained 55 mph limit or increased speed limit); first 5 of 51 rows
State Fatalities1995
Alabama 1114 Alaska 87 Arizona 1035 Arkansas 631 California 4192
Fatalities1996 PctChange
SpeedLimit
1146 2.87 Inc 81 26.9 Ret 994 23.96 Inc 615 22.54 Inc 3989 24.84 Inc
Answers to Conceptual Exercises
1. The birds were observed to be in the 1976 or 1978 groups, not assigned by the researchers.
2. There is rarely any direct interest in the standard deviation, but it must be estimated in order to
clear up the picture regarding means.
3. False.
4. True.
5. There is more confidence that a 99% interval contains the parameter of interest, but the extra
confidence comes at the price of the interval being larger and therefore less informative about specific likely values.
6. The hypothesis must be about the population means. A hypothesis must be about the value of an unknown parameter. The value of a statistic will be known when the data are collected and analyzed.
7. It is less than 0.05.
8. The statement implies that the null hypothesis is accepted as true. It should be worded as, for
example, the data are consistent with the hypothesis that there is no difference. (This issue is partly one of semantics, but it is still important to understand the distinction being made.)
9. (a) The mean of Y is the mean in the population of all individual measurements, and the mean of Y is the mean of the sampling distribution of the sample mean. With random sampling, the two have the same value .
(b) The standard deviation of Y is the standard deviation among all observations in the popula- tion, and the standard deviation of Y is the standard deviation in the sampling distribution
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

2.7 Exercises 57
10.
of the sample average. The two are related, but not the same: if the standard deviation of Y p
is denoted by , then the standard deviation of Y is = n.
(c) The standard error is an estimate of the standard deviation in the sampling distribution,
obtained by replacing the unknown population standard deviation in the formula by the
known sample standard deviation.
(d) The t-ratio is the ratio of the difference between the estimate and the parameter to the
standard error of the estimate. It involves the parameter, so you do not generally know what it is. The t-statistic is a trial value of the t-ratio, obtained when a hypothesized value of the parameter is used in place of the actual value.
A p-value. A confidence interval.
11. (a) Because the spread of the stem-and-leaf plot is larger for the control group than for the treatment group, it does not appear that the effect of treatment was simply to add a certain number of days onto the lives of every guinea pig. It may have added days for those that would not have lived long anyway, and subtracted days from those that would have lived a long time. (b) The equal variation assumption does not appear to be appropriate.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 3 A Closer Look
at Assumptions
58
Although statistical computer programs faithfully supply confidence inter- vals and p-values whenever asked, the human data analyst must consider whether the assumptions on which use of the tools is based are met, at least approximately. In this regard, an important distinction exists between the math- ematical assumptions on which use of t-tools is exactly justified and the broader conditions under which such tools work quite well.
The mathematical assumptions—such as those of the model for two indepen- dent samples from normal populations with the same standard deviation—are never strictly met in practice, nor do they have to be. The two-sample t-tools are often valid even if the population distributions are nonnormal or the standard deviations are unequal. An understanding of the broader conditions, provided by advanced statistical theory and computer simulation, is needed to evaluate the appropriate- ness of the tools for a particular problem. After checking the actual conditions with graphical displays of the data, the data analyst may decide to use the standard tools, use them but apply the label “approximate” to the inferences, or choose an alternative approach.
An effective alternative is to apply the standard tools after transforming the data. A transformation is useful if the tools are appropriate for the conditions of the transformed data and if the questions of interest are answerable on the new scale. A particularly important transformation is the logarithm, which permits a convenient description of a multiplicative effect.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

3.1 Case Studies 59
3.1 CASE STUDIES
3.1.1 Cloud Seeding to Increase
Rainfall—A Randomized Experiment
The data in Display 3.1 were collected in southern Florida between 1968 and 1972 to test a hypothesis that massive injection of silver iodide into cumulus clouds can lead to increased rainfall. (Data from J. Simpson, A. Olsen, and J. Eden, “A Bayesian Analysis of a Multiplicative Treatment Effect in Weather Modification,” Technometrics 17 (1975): 161–66.)
DISPLAY 3.1 Rainfall (acre-feet) for days with and without cloud seeding Rainfall from Unseeded Days (n = 26)
1,202.6 830.1 87.0 81.2 26.0 24.4
372.4 345.5 68.5 47.3 21.4 17.3
147.8 95.0 28.6 26.3
Rainfall from Seeded Days (n = 26)
321.2 244.3 163.0
41.1 36.6 29.0
11.5 4.9 4.9 1.0
2,745.6 274.7 115.3
1,697.1 274.7 92.4
1,656.4 978.0 255.0 242.5 40.6 32.7
703.4 489.1 430.0 200.7 198.6 129.6
334.1 302.8
119.0 118.3 31.4 17.5 7.7 4.1
On each of 52 days that were deemed suitable for cloud seeding, a random mechanism was used to decide whether to seed the target cloud on that day or to leave it unseeded as a control. An airplane flew through the cloud in both cases, since the experimenters and the pilot were themselves unaware of whether on any particular day the seeding mechanism in the plane was loaded or not (that is, they were blind to the treatment). Precipitation was measured as the total rain volume falling from the cloud base following the airplane seeding run, as measured by radar. Did cloud seeding have an effect on rainfall in this experiment? If so, how much?
Box plots of the data in Display 3.2(a) indicate that the rainfall tended to be larger on the seeded days. Both distributions were quite skewed, and more variability occurred in the seeded group than in the control group. The box plots in Display 3.2(b) are drawn from the same data, but on the scale of the natural logarithm of the rainfall measurements. On this scale, the measurements appear to have symmetric distributions, and the variation seems nearly the same.
Statistical Conclusion
It is estimated that the volume of rainfall on days when clouds were seeded was 3.1 times as large as when not seeded. A 95% confidence interval for this multiplicative effect is 1.3 times to 7.7 times. Since randomization was used to determine whether any particular suitable day was seeded or not, it is safe to interpret this as evidence that the seeding caused the larger rainfall amount.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

60
Chapter 3 A Closer Look at Assumptions
DISPLAY 3.2
Box plots of rainfall amounts on original and transformed scales
2,500 2,000 1,500 1,000
500 0
(a) On the acre-feet scale
Both groups look skewed
The group with the higher center also has larger spread.
8
Unseeded Seeded
1,000 7 6
(b) On the scale of the natural logarithm of acre-feet
No skewness on this scale
Logarithm ofRainfall
Two groups have about the same spread.
100
10
5 4 3 2 1
10
Unseeded Seeded
3.1.2
Effects of Agent Orange on
Troops in Vietnam—An Observational Study
Many Vietnam veterans are concerned that their health may have been affected by exposure to Agent Orange, a herbicide sprayed in South Vietnam between 1962 and 1970. The particularly worrisome component of Agent Orange is a dioxin called TCDD, which in high doses is known to be associated with certain cancers. Studies have shown that high levels of this dioxin can be detected 20 or more years after
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Rainfall (acre-feet) Rainfall (acre-feet)

3.1 Case Studies 61
heavy exposure to Agent Orange. Consequently, as part of a series of studies, researchers from the Centers for Disease Control compared the current (1987) dioxin levels in living Vietnam veterans to the dioxin levels in veterans who did not serve in Vietnam.
The 646 Vietnam veterans in the study were a sample of U.S. Army combat personnel who served in Vietnam during 1967 and 1968, in the areas that were most heavily treated with Agent Orange. The 97 non–Vietnam veterans entered the Army between 1965 and 1971 and served only in the United States or Germany. Neither sample was randomly selected.
Blood samples from each veteran were analyzed for the presence of dioxin. Box plots of the observed levels are shown in Display 3.3. (Data from a graphical display in Centers for Disease Control Veterans Health Studies, “Serum 2,3,7,8- Tetrachlorodibenzo-p-dioxin Levels in U.S. Army Vietnam-era Veterans,” Journal of the American Medical Association 260 (September 2, 1988): 1249–54.) The question of interest is whether the distribution of dioxin levels tends to be higher for the Vietnam veterans than for the non–Vietnam veterans.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 3.3
Box plots of 1987 dioxin concentrations in 646 Vietnam veterans and 97 veterans who did not serve in Vietnam
45
40
35
30
25
20
15
10
5 0
Vietnam
veterans (n = 646)
Other veterans (n = 97)
Dioxin Concentration in Parts per Trillion

62 Chapter 3 A Closer Look at Assumptions
Statistical Conclusion
These data provide no evidence that the mean dioxin level in surviving Vietnam combat troops is greater than that for non–Vietnam veterans (one-sided p-value D 0:40, from a two–sample t-test). A 95% confidence interval for the difference in population means is 􏰀0:48 to 0.63 parts per trillion.
Scope of Inference
Since the samples were not random, inference to the populations is speculative. Participating veterans may not be representative of their respective groups. For example, nonparticipating Vietnam veterans may have failed to participate because of dioxin-related illnesses. If so, statistical statements about the populations of interest could be seriously biased. It should also be noted that many Vietnam vet- erans are frustrated and insulted by the prevalence of weak Agent Orange studies, like this one, which appear to address the Agent Orange problem but which actually skirt the main health issues.
3.2 ROBUSTNESS OF THE TWO-SAMPLE t-TOOLS
3.2.1 The Meaning of Robustness
The two-sample t-tools were used in the analyses of the Agent Orange study and the cloud seeding study, even though the actual conditions did not seem to match the ideal models upon which the tools are based. In the cloud seeding study, the t-tools were applied after taking the logarithms of the rainfalls. The t-tools could be used for the Agent Orange study, despite a lack of normality in the populations, because of the robustness of the t-tools against nonnormality.
Valid means that the uncertainty measures—the confidence levels and the p-values—are very nearly equal to the stated rates. For example, a procedure for obtaining a 95% confidence interval is valid if it is 95% successful in capturing the parameter. It is robust against nonnormality if it is roughly 95% successful with nonnormal populations.
Robustness of a tool must be evaluated separately for each assumption. The following sections detail the robustness of the two-sample t-tools against departures from the ideal assumptions of the normal, equal standard deviation model.
3.2.2 Robustness Against Departures from Normality
The Central Limit Theorem asserts that averages based on large samples have approx- imately normal sampling distributions, regardless of the shape of the population distribution. This suggests that underlying normality is not a serious issue, as long as sample sizes are reasonably large. The theorem provides only partial reassurance
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
A statistical procedure is robust to departures from a particular assumption if it is valid even when the assumption is not met.

3.2 Robustness of the Two-Sample t-Tools 63
of applicability with respect to t-tools. It states what the sampling distribution of an average should be, but it does not address the effects of estimating a population standard deviation. Many empirical investigations and related theory, however, con- firm that the t-tools remain reasonably valid in large samples, with many nonnormal populations.
How large is large enough? That depends on how nonnormal the population distributions are. Because distributions can differ from the normal in infinitely many ways, the question of sample size is difficult to answer. Statistical theory does say something fairly general about the relative effects of skewness and long-tailedness (kurtosis):
1. If the two populations have the same standard deviations and approximately the same shapes, and if the sample sizes are about equal, then the validity of the t-tools is affected moderately by long-tailedness and very little by skewness.
2. If the two populations have the same standard deviations and approximately the same shapes, but if the sample sizes are not approximately the same, then the validity of the t-tools is affected moderately by long-tailedness and substantially by skewness. The adverse effects diminish, however, with increasingly large sample sizes.
3. If the skewness in the two populations differs considerably, the tools can be very misleading with small and moderate sample sizes.
Computer simulations can clarify the role of sample sizes. To further investigate
the effect of nonnormality on 95% confidence intervals, a computer was instructed to generate samples from the nonnormal distributions shown in Display 3.4. For each pair of generated samples, it computed the 95% confidence interval for the difference in population means and recorded whether the interval actually cap- tured the true difference in population means. The actual percentage of successful intervals from 1,000 simulations is shown in Display 3.4 for each set of conditions examined. The purpose of the simulation is to identify combinations of sample sizes and nonnormally shaped distributions for which the confidence interval procedure has a success rate of nearly 95%. An actual success rate less than 95% is undesir- able because it means the intervals tend to be too short for the given confidence level and they therefore tend to exclude possible parameter values that shouldn’t be excluded. The corresponding hypothesis test, in this case, tends to produce more false claims about statistical significance than expected. An actual success rate greater than 95% is also undesirable because it means the intervals tend to be too long and include possible parameter values that shouldn’t be included. The corresponding hypothesis test, in this case, tends to miss statistically significant findings that it really should find.
Of the five distributions examined, only the long-tailed distribution appears to have success rates that are poor enough to cause potentially misleading statements—and even those are not too bad. This distribution can be recognized in practice by the presence of outliers. For the skewed distributions, however, the normality assumption does not appear to be a major concern even for small sample sizes, at least as long as the skewness is the same in the two populations and the sample sizes are roughly equal.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

64
Chapter 3 A Closer Look at Assumptions
DISPLAY 3.4
Percentage of 95% confidence intervals that are successful when the two populations are non- normal (but with same shape and SD, and equal sample sizes) (each percentage is based on 1,000 computer simulations)
Strongly Moderately Mildly skewed skewed skewed
Long- Short- tailed tailed
Sample size
5 95.5 95.4 95.2 10 95.5 95.4 95.2 25 95.3 95.3 95.1 50 95.1 95.3 95.1
100 94.8 95.3 95.0
98.3 94.5 98.3 94.6 98.2 94.9 98.1 95.2 98.0 95.6
3.2.3
Robustness Against Differing Standard Deviations
More serious problems may arise when the standard deviations of the two pop- ulations are substantially unequal. In this case, the pooled estimate of standard deviation does not estimate any population parameter and the standard error for- mula, which uses the pooled estimate of standard deviation, no longer estimates the standard deviation of the difference between sample averages. As a result, the t-ratio does not have a t-distribution.
Theory shows that the t-tools remain fairly valid when the standard deviations are unequal, as long as the sample sizes are roughly the same. For clarification, a computer was again instructed to generate pairs of samples, this time from two normal populations with different standard deviations, as shown in Display 3.5. It computed 95% confidence intervals for each pair of samples and recorded whether the resulting interval successfully captured the true difference in population means. The actual percentages successful are displayed.
Notice that the success rates for the rows with equal sample sizes (n1 D n2 D 10 and n1 D n2 D 100) are very nearly 95%. Thus, as suggested by theory, unequal population standard deviations have little effect on validity if the sample sizes are equal. For substantially different ’s and different n’s, however, the confidence intervals are unreliable. The worst situation is when the ratio of standard deviations is much different from 1 and the smaller sized sample is from the population with the larger standard deviation (as, for example, when n1 D 100, n2 D 400, and 2=1 D 1=4).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

3.2 Robustness of the Two-Sample t-Tools 65
DISPLAY 3.5
Percentage of successful 95% confidence intervals when the two populations have different standard deviations (but are normal) with possibly different sample sizes (each percentage is based on 1,000 computer simulations)
Population 2
n1 n2
10 10
10 20
10 40
100 100
100 200
100 400
Population 1
2/ 1=1/4 2/ 1=1/2 2/ 1=1 2/ 1=2 2/ 1=4
Success rates for 95% intervals
95.2 94.2 94.7 95.2 94.5 83.0 89.3 94.4 98.7 99.1 71.0 82.6 95.2 99.5 99.9 94.8 96.2 95.4 95.3 95.1 86.5 88.3 94.8 98.8 99.4 71.6 81.5 95.0 99.5 99.9
3.2.4 Robustness Against Departures from Independence Cluster Effects and Serial Effects
Whenever knowledge that one observation is, say, above average allows an improved guess about whether another observation will be above average, independence is lacking. The methods of Chapter 2 may be misleading in this case. Two types of dependence (lack of independence) commonly arise in practical problems.
The first is a cluster effect, which sometimes occurs when the data have been collected in subgroups. For example, 50 experimental animals may have been col- lected from 10 litters and then randomly assigned to one of two treatment groups. Since animals from the same litter may tend to be more similar in their responses than animals from different litters, it is likely that independence is lacking.
The other type of dependence commonly encountered is caused by a serial effect, in which measurements are taken over time and observations close together in time tend to be more similar (or perhaps more different) than observations collected
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

66 Chapter 3 A Closer Look at Assumptions
at distant time points. This can also occur if measurements are made at different locations, and measurements physically close to each other tend to be more similar than those farther apart. In the latter case the dependence pattern is called spatial correlation.
The Effects of Lack of Independence on the Validity of the t-Tools
When the independence assumptions are violated, the standard error of the dif- ference of averages is an inappropriate estimate of the standard deviation of the difference in averages. The t-ratio no longer has a t-distribution, and the t-tools may give misleading results. The seriousness of the consequences depends on the seriousness of the violation. It is generally unwise to use the t-tools directly if clus- ter or serial effects are suspected. Other methods that adjust for these effects are available (Chapters 9–15).
3.3 RESISTANCE OF THE TWO-SAMPLE t-TOOLS
Some practical suggestions will soon be provided for sizing up the actual conditions and choosing a course of action. The effect of outliers on the t-tools is discussed first, however, since decisions about how to deal with the outliers play an important role in the overall strategy.
3.3.1 Outliers and Resistance
An outlier is an observation judged to be far from its group average. The effect of outliers on the two-sample t-tools has partially been addressed in the discussion of robustness. In fact, it is evident from the theoretical results and the computer simulations in Display 3.4 that the p-values and confidence intervals may be unre- liable if the population distributions are long-tailed. Since long-tailed distributions are characterized by the presence of outliers in the sample, outliers should cause some concern.
Long-tailed population distributions are not the only explanation for outliers, however. The populations of interest may be normal but the sample may be con- taminated by one or more observations that do not come from the population of interest. Often it is philosophically difficult and practically irrelevant to distinguish between a natural long-tailed distribution and one that includes outliers that result from contamination, although in some cases the identification of clear contamina- tion may dictate an obvious course of action. For example, if it is discovered that one member of a sample from a population of 25- to 35-year-old women is, in fact, over 50 years old, she should be removed from the sample.
It is useful to know how sensitive a statistical procedure may be to one or two outlying observations. The notion of resistance addresses this issue:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
A statistical procedure is resistant if it does not change very much when a small part of the data changes, perhaps drastically.

3.4 Practical Strategies for the Two-Sample Problem 67
As an example, consider the hypothetical sample: 10, 20, 30, 50, 70. The sample average is 36, and the sample median is 30. Now change the 70 to 700, and what happens? The sample average becomes 162, but the sample median remains 30. The sample average is not a resistant statistic because it can be severely influenced by the change in a single observation. The median, however, is resistant.
Resistance is a desirable property. A resistant procedure is insensitive to out- liers. A nonresistant one, on the other hand, may be greatly influenced by one or two outlying observations.
3.3.2 Resistance of t-Tools
Since t-tools are based on averages, they are not resistant. A small portion of the data can potentially have a major influence on the results. In particular, one or two outliers can affect a confidence interval or change a p-value enough to completely alter a conclusion.
If the outlier is due to contamination from another population, it can lead to false impressions about the population of interest. If the outlier does come from the population of interest, which happens to be long-tailed, the outcome is still undesirable for the following reason. In statistics, the goal is to describe group characteristics. An estimate of the center of a distribution should represent the typical value. The estimate is a good one if it represents the typical values possessed by the great majority of subjects; it is a bad one if it represents a feature unique to one or two subjects. Furthermore, a conclusion that hinges on one or two data points must be viewed as quite fragile.
3.4 PRACTICAL STRATEGIES FOR THE TWO-SAMPLE PROBLEM
Armed with information about the broad set of conditions under which the t-tools work well and the effect of outliers, the challenge to the data analyst is to size up the actual conditions using the available data and evaluate the appropriateness of the t-tools. This involves thinking about possible cluster and serial effects; evaluat- ing the suitability of the t-tools by examining graphical displays; and considering alternatives.
In considering alternatives it is important to realize that even though the t-tools may still be valid when the ideal assumptions are not met, an alternative procedure that is more efficient (i.e., makes better use of the data) may be available. For example, another procedure may provide a narrower confidence interval.
Consider Serial and Cluster Effects
To detect lack of independence, carefully review the method by which the data were gathered. Were the subjects selected in distinct groups? Were different groups of subjects treated differently in a way that was unrelated to the primary treatment? Were different responses merely repeated measurements on the same subjects? Were observations taken at different but proximate times or locations? Affirmative answers to any of these questions suggest that independence may be lacking.
The principal remedy is to use a more sophisticated statistical tool. Identifiable clusters, which may be planned or unplanned, can be accounted for through analysis
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

68 Chapter 3 A Closer Look at Assumptions
of variance (Chapters 13 and 14) or possibly through regression analysis (Chapters 9–12). Serial effects require time series analysis, the topic of Chapter 15.
Evaluate the Suitability of the t-Tools
Side-by-side histograms or box plots of the two groups of data should be examined and departures from the ideal model should be considered in light of the robustness properties of the t-tools. It is important to realize that the conditions of interest, which are those of the populations, must be investigated through graphical displays of the samples.
If the conditions do not appear suitable for use of the t-tools, then some alterna- tive is necessary. A transformation should be considered if the graphical displays of the transformed data appear to be closer to the ideal conditions. (See Section 3.5.) Alternative tools for analyzing two independent samples are the rank-sum proce- dure, which is resistant and does not depend on normality (Section 4.2); other permutation tests (Section 4.3.1); and the Welch procedure for comparing normal populations that have unequal standard deviations (Section 4.3.2).
A Strategy for Dealing with Outliers
If investigation reveals that an outlying observation was recorded improperly or was the result of contamination from another population, the solution is to correct it if the right value is known or to leave it out. Often, however, there is no way to know how the outliers arose. Two statistical approaches for dealing with this situation exist. One is to employ a resistant statistical tool, in which case there is no compelling reason to ponder whether the offending observations are natural, the result of contamination, or simply blunders. (The rank-sum procedure in Section 4.2 is resistant.) The other approach is to adopt the careful examination strategy shown in Display 3.6. An important aspect of adopting this procedure is that an outlier does not get swept under the rug simply because it is different from the other observations. To warrant its removal, an explanation for why it is different must be established.
Example—Agent Orange
Box plots of dioxin levels in Vietnam and non–Vietnam veterans (Display 3.3) appear again in Display 3.7. The distributions have about the same shape and spread. Although the shape is not normal, the skewness is mild and unlikely to cause any problems with the t -test or the confidence interval. Two Vietnam veterans (#645 and #646) had considerably higher dioxin levels than the others.
From the results listed in Display 3.7 it is evident that the comparison of the two groups is changed very little by the removal of one or both of these outliers. Consequently, there is no need for further action. Even so, it is useful to see what else can be learned about these two, as indicated at the bottom of the display.
Notes
1. It is not useful to give a precise definition for an outlier. Subjective examination is the best policy. If there is any doubt about whether a particular observation deserves further examination, give it further examination.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

3.5
Transformations of the Data 69
DISPLAY 3.6
Examination strategy
Do these analyses give the same answer to the question of interest?
Statistical analysis INCLUDING the suspects
Statistical analysis EXCLUDING the suspects
YES
NO
Recording errors?
NO
Report results INCLUDING the suspects.
Examine suspects intensely.
YES
YES
Do suspects come from different populations?
Correct errors; start over.
Report results EXCLUDING the suspects; report the reason for exclusion.
NOT YES
Use resistant analysis (Ch. 4)
or report results of BOTH analyses.
2. 3.
It is not surprising that the outliers in the Agent Orange example have little effect, since the sample sizes are so large.
The apparent difference in the box plots may be due to the difference in sample sizes. If the population distributions are identical, more observations will appear in the extreme tails from a sample of size 646 than from a sample of size 97.
3.5 TRANSFORMATIONS OF THE DATA 3.5.1 The Logarithmic Transformation
The most useful transformation is the logarithm (log) for positive data. The com- mon scale for scientific work is the natural logarithm (ln), based on the number
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

70 Chapter 3 A Closer Look at Assumptions
DISPLAY 3.7
45
40
35
30
25
20
15
10
5 0
Outlier analysis for Agent Orange data: effect of outliers on the p-value, for equal population means
1
Obs. #646
Obs. #645
Identify outliers (subjectively, by visual examination).
2
Compute relevant statistical measure, with and without outliers.
One-sided p-value
With all observations: 0.40 Without #646: 0.48 Without #645, 646: 0.54
3
4
Since conclusion is not affected by the outliers, report analysis
with full data set.
But examine outliers carefully to see what else can be learned.
Veteran # 645: reported 180 days of indirect military exposure to herbicides. Veteran # 646: reported no exposure (military or civilian) to herbicides.
e D 2:71828:::: The logarithm of e is unity, denoted by log.e/ D 1. Also, the log of 1 is 0: log.1/ D 0. The general rule for using logarithms is that log.ex/ D x. Another choice is the common logarithm based on the number 10, rather than e. Common logs are defined by log10.10x/ D x. Unless otherwise stated, log in this book refers to the natural logarithm.
Recognizing the Need for a Log Transformation
The data themselves usually suggest the need for a log transformation. If the ratio of the largest to the smallest measurement in a group is greater than 10, then the data are probably more conveniently expressed on the log scale. Also, if the graphical displays of the two samples show them both to be skewed and if the group with the larger average also has the larger spread (see Display 3.2), the log transformation is likely to be a good choice.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

3.5 Transformations of the Data 71
DISPLAY 3.8
The logarithmic transformation used to arrive at favorable conditions for the two-sample t -analysis
+4 +3
Logarithm curve
Log(Y ) +2
+1
0
AFTER
1. No skew. 2. Same
spread.
BEFORE TRANSFORMATION
1. Both histograms are skewed.
2. The one with the larger center also has the
larger spread.
0 10 20 30 40 50 60 70 80 90 100
Measurement Scale (Y )
Display 3.8 illustrates the behavior of the log transformation. On the scale of measurement Y the two groups have skewed distributions with longer tails in the positive direction. The group with the larger center also has the larger spread. The measurements on the transformed scale have the same ordering, but small numbers get spread out more, while large numbers are squeezed more closely together. The overall result is that the two distributions on the transformed scale appear to be symmetric and have equal spread—just the right conditions for applying the t-tools.
3.5.2 Interpretation After a Log Transformation
For some measurements, the results of an analysis are appropriately presented on the transformed scale. Most users feel comfortable with the Richter scale for mea- suring earthquake strength, even though it is a logarithmic scale. Similarly, pH as a measure of acidity is the negative log of ion concentration. In other cases, however, it may be desirable to present the results on the original scale of measurement.
Randomized Experiment Model: Multiplicative Treatment Effect
If the randomized experiment model with additive treatment effect is thought to hold for the log-transformed data, then an experimental unit that would respond
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

72 Chapter 3 A Closer Look at Assumptions
to treatment 1 with a logged outcome of log.Y / would respond to treatment 2 with a logged outcome of log.Y / C ı. By taking antilogarithms of these two quantities, one finds that an experimental unit that would respond to treatment 1 with an outcome of Y would respond to treatment 2 with an outcome of Yeı. Thus, eı is the multiplicative treatment effect on the original scale of measurement. To test whether there is any treatment effect, one performs the usual t-test for the hypothesis that ı is zero with the log-transformed data. To describe the multiplicative treatment effect, one back-transforms the estimate of ı and the endpoints of the confidence interval for ı.
Example—Cloud Seeding
Display 3.2 shows that the log-transformed rainfalls have distributions that appear satisfactory for using the t-tools; so in Display 3.9 a full analysis is carried out on the log scale. Tests and confidence intervals are constructed in the usual way but on the transformed data. The estimate of the additive treatment effect on log rainfall is back-transformed to an estimate of the multiplicative effect of cloud seeding on rainfall.
Population Model: Estimating the Ratio of Population Medians
The t-tools applied to log-transformed data provide inferences about the difference in means of the logged measurements, which may be represented as MeanŒlog.Y2/􏰀 MeanŒlog.Y1/, where MeanŒlog.Y2/ symbolizes the mean of the logged values of population 2. A problem with interpretation on the original scale arises because the mean of the logged values is not the log of the mean. Taking the antilogarithm of the estimate of the mean on the log scale does not give an estimate of the mean on the original scale.
If, however, the log-transformed data have symmetric distributions, the following relationships hold:
MeanŒlog.Y / D MedianŒlog.Y / (and since the log preserves ordering)
MedianŒlog.Y / D logŒMedian.Y /;
where Median(Y ) represents the population median (the 50th percentile of the pop- ulation). In other words, the 50th percentile of the logged values is the log of the 50th percentile of the untransformed values. Putting these two equalities together,
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Interpretation After Log Transformation (Randomized Experiment)
Suppose Z D log .Y /. It is estimated that the response of an experimental unit to treatment 2 will be exp.Z2 􏰀 Z1/ times as large as its response to treatment 1.

DISPLAY 3.9
Two-sample t-analysis and statement of conclusions after logarithmic transformation—cloud seeding example
Y (acre-ft)
log (Y)
Y (acre-ft)
log (Y)
3.5 Transformations of the Data 73
Unseeded
Seeded
2 Use the two-sample t-tools on the log rainfall.
Difference in averages = 1.1436 (SE = 0.4495).
Test of the hypothesis of no effect of cloud seeding on log rainfall: one-sided p-value from two-sample t-test = 0.0070 (50 d.f.).
95% confidence interval for additive effect of cloud seeding on log rainfall: 0.2406 to 2.0467.
3 Back-transform estimate and confidence interval.
Estimate = e1.1436 = 3.1382
Lower confidence limit = e0.2406 = 1.2720. Upper confidence limit = e2.0467 = 7.7425.
4 State the conclusions on the original scale.
1 Transform the data.
Conclusion: There is convincing evidence that seeding increased rainfall (one-sided p-value = 0.0070). The volume of rainfall produced by a seeded cloud is estimated to be 3.14 times as large as the volume that would have been produced in the absence of seeding (95% confidence: 1.27 to 7.74 times).
it is evident that the antilogarithm of the mean of the log values is the median on the original scale of measurements.
If Z1 and Z2 are used to represent the averages of the logged values for samples 1 and 2, then Z2 􏰀Z1 estimates logŒMedian.Y2/􏰀logŒMedian.Y1/, and therefore
Z2 􏰀Z1 estimates logMedian.Y2/ Median.Y1 /
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

74
Chapter 3 A Closer Look at Assumptions
and, therefore,
exp.Z2 􏰀Z1/ estimates Median.Y2/: Median.Y1 /
Interpretation After Log Transformation (Observational Study)
It is estimated that the median for population 2 is exp.Z2 􏰀 Z1/ times as large as the median for population 1.
3.5.3
The point of this is that a very useful multiplicative interpretation emerges in terms of the ratio of population medians. This is doubly important because the median is a better measure of the center of a skewed distribution than the mean. The multiplicative nature of this relationship is captured with the following wording:
In addition, back-transforming the ends of a confidence interval constructed on the log scale produces a confidence interval for the ratio of medians.
Example (Sex Discrimination)
Although the analysis of the sex discrimination data of Section 1.1.2, was suit- able on the original scale of the untransformed salaries, graphical displays of the log-transformed salaries indicate that analysis would also be suitable on the log scale. The average male log salary minus the average female log salary is 0.147. Since e0:147 D 1:16, it is estimated that the median salary for males is 1.16 times as large as the median salary for females. Equivalently, the median salary for males is estimated to be 16% more than the median salary for females. Since a 95% confidence interval for the difference in means on the log scale is 0.100 to 0.194, a 95% confidence interval for the ratio of population median salaries is 1.11 to 1.21 (e0:100 to e0:194). With 95% confidence, it is estimated that the median salary for males is between 11% and 21% greater than the median salary for females.
Other Transformations for Positive Measurements
There are other useful transformations for positive measurements with skewed dis- tributions where the means and standard deviations differ between groups. The
square root transformation Y applies to data that are counts—counts of bacteria
clusters in a dish, counts of traffic accidents on a stretch of highway, counts of red
giants in a region of space—and to data that are measurements of area. The recip-
rocal transformation 1=Y applies to data that are waiting times—times to failure of
lightbulbs, times to recurrence for cancer patients treated with radiation, reaction
times to visual stimuli, and so on. The reciprocal of a time measurement can often
be interpreted directly as a rate or a speed. The arcsine square root transformation, p
arcsine. Y /, and the logit transformation, logŒY =.1 􏰀 Y /, apply when the mea- surements are proportions between zero and one—proportions of trees infested by
p
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

3.6 Related Issues 75
a wood-boring insect in experimental plots, proportions of weight lost as a side effect of leukemia therapy, proportions of winning lottery tickets in clusters of a certain size, and so forth.
Only the log transformation, however, gives such ease in converting inferences back to the original scale of measurement. One may estimate the difference in means
pp
of Y2 and Y1, but the square of this difference does not make much sense on the original scale.
Choosing a Transformation
Formal statistical methods are available for selecting a transformation. Neverthe- less, it is recommended here that a trial-and-error approach, with graphical analysis, be used instead. For positive data in need of a transformation, the logarithm should almost always be the first tried. If it is not satisfactory, the reciprocal or the square root transformations might be useful. Keep in mind that the primary goal is to establish a scale where the two groups have roughly the same spread. If several transformations are similar in their ability to accomplish this, think carefully about which one offers the most convenient interpretation.
Caveat About the Log Transformation
Situations arise where presenting results in terms of population medians is not sufficient. For example, the daily emissions of dioxin in the effluent from a paper mill have a very skewed distribution. An agency monitoring the emissions will be interested in estimating the total dioxin load released during, say, a year of operation. The total dioxin load would be the population mean times the population size, and therefore is estimated by the sample average times the population size. It cannot be estimated directly from the median, unless more specific assumptions are made.
3.6 RELATED ISSUES
3.6.1 Prefer Graphical Methods
Over Formal Tests for Model Adequacy
Formal tests for judging the adequacy of various assumptions exist. Tests for normality and tests for equal standard deviation are available in most statisti- cal computer programs, as are tests that determine whether an observation is an outlier. Despite their widespread availability and ease of use, these diagnostic tests are not very helpful for model checking. They reveal little about whether the data meet the broader conditions under which the tools work well. The fact that two populations are not exactly normal, for example, is irrelevant. Furthermore, the formal tests themselves are often not very robust against their own model assump- tions. Graphical displays are more informative, if less formal. They provide a good indication of whether or not the data are amenable to t-analysis and, if not, they often suggest a remedy.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

76
Chapter 3 A Closer Look at Assumptions
3.6.2
Robustness and Transformation for Paired t-Tools
The one-sample t-test, of which the paired t-test is a special case, assumes that the observations are independent of one another and come from a normally distributed population. P -values and confidence intervals remain valid for moderate and large sample sizes for nonnormal distributions. For smaller sample sizes skewness can be a problem. When cluster or serial effects are present (see Section 3.2.4), the t-tools may give misleading results. When the observations within each pair are positive, either an apparent multiplicative treatment effect (in an experiment) or a tendency for larger differences in pairs with larger average values suggests the use of a log transformation. The transformation is applied before taking the difference, which is equivalent to forming a ratio within each pair and performing a one- sample analysis on the logarithms of the ratios. If there are n pairs, let Zi D log.Y1i / 􏰀 log.Y2i ), which is the same as log.Y1i =Y2i /: In an observational study, exp(Z) is an estimate of the median of the ratios, Y1=Y2. (This is not the same as the ratio of the medians [see Exercise 20].) In a randomized, paired experiment, exp(Z) estimates a multiplicative treatment effect on the original scale. In both cases, the statistical work of testing and constructing a confidence interval is done on the log scale. The estimate and associated interval are transformed back to the original scale.
3.6.3 Example—Schizophrenia
In the schizophrenia example of Section 2.1.2, Zi represents the logarithm of the left hippocampus volume of the unaffected twin divided by the left hippocampus volume of the affected twin in pair i. The average of the 15 log ratios is 0.1285. A one-sample analysis gives a p-value of 0.0065 for the test that the mean is zero and a 95% confidence interval from 0.0423 to 0.2147 for the mean itself. Taking antilogarithms of the estimate and the endpoints of the confidence interval yields the following conclusion: It is estimated that the median of the unaffected-to-affected volume ratios is 1.137. A 95% confidence interval for the median ratio is from 1.043 to 1.239.
3.7 SUMMARY
Cloud Seeding and Rainfall Study
The box plots of the rainfalls for seeded and unseeded days reveal that the two dis- tributions of rainfall are skewed and that the distribution with the larger mean also has the larger variance. This is the situation where log-transformed data behave in accordance with the ideal model. A plot of the data after transformation con- firms the adequacy of the transformation. The two-sample t-test can be used as an approximation to the randomization test, and the difference in averages (of log rainfall) can be back-transformed to provide a statement about a multiplicative treatment effect. In the example, it is estimated that the rainfall is 3.1 times as much when a cloud is seeded as when it is left unseeded.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

3.8 Exercises 77
Since randomization is used, the statistical conclusion implies that the seeding causes the increase in rainfall. Since the decision about whether to seed clouds is determined (in this case) by a random mechanism, and since the airplane crew is blind to which treatment they are administering, human bias can have had little influence on the result.
Agent Orange Study
Graphical analysis focuses attention on the possibly undue influence of two outliers, but analyses with and without the outliers reveal no such influence, so the t-tools are used on the entire data set. The form of the sampling from the populations of living Vietnam veterans and of other veterans is a major concern in accepting the reliability of the statistical analysis. Protocols for obtaining the samples have not been discussed here, except to note that random sampling is not being used. Conclusions based on the two-sample t-test are supplied, along with the caveat that there may be biases due to the lack of random sampling.
3.8 EXERCISES
Conceptual Exercises
1. Cloud Seeding. What is the experimental unit in the cloud seeding experiment?
2. Cloud Seeding. Randomization in the cloud seeding experiment was crucial in assessing the
effect of cloud seeding on rainfall. Why?
3. Cloud Seeding. Why was it important that the airplane crew was unaware of whether seeding was conducted or not?
4. Cloud Seeding. Why would it be helpful to have the date of each observed rainfall?
5. Agent Orange. How would you respond to the comment that the box plots in Display 3.3
indicate that the dioxin levels in the Vietnam veterans tend to be larger since their values appear to be larger?
6. Agent Orange. (a) What course of action would you propose for the statistical analysis if it was learned that Vietnam veteran #646 (the largest observation in Display 3.6) worked for several years, after Vietnam, handling herbicides with dioxin? (b) What would you propose if this was learned instead for Vietnam veteran #645?
7. Agent Orange. If the statistical analysis had shown convincing evidence that the mean dioxin levels differed in Vietnam veterans and other veterans, could one conclude that serving in Vietnam was responsible for the difference?
8. Schizophrenia. In the schizophrenia study in Section 2.1.2, the observations in the two groups (schizophrenic and nonschizophrenic) are not independent since each subject is matched with a twin in the other group. Did the researchers make a mistake?
9. True or false? A statistical computer package will only print out a p-value or confidence interval if the conditions for its validity are met.
10. True or false? A sample histogram will have a normal distribution if the sample size is large enough.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

78 Chapter 3 A Closer Look at Assumptions
11. A woman who has just moved to a new job in a new town discovers two routes to drive from her home to work. The first Monday, she flips a coin, deciding to take route A if it comes up heads and to take route B if it is tails. The following Monday, she will take the other route. The first Tuesday, she flips the coin again with the same plan. And so on for the first week. At the end of two weeks, she has traveled both routes five times and can compare their average commuting times. Why should she not use the t-tools for two independent samples? What should she use?
12. In which ways are the t-tools more robust for larger sample sizes than for smaller ones (i.e., robust with respect to normality, equal SDs, and/or independence)?
13. Fish Oil. Why is a log transformation inappropriate for the fish oil data in Exercise 1.12?
14. Will an outlier from a contaminating population be more consequential in small samples or
large samples?
15. What would you suggest as an alternative estimate of the standard deviation of the difference in sample averages when it is clear that the two populations have different SDs? (Check the formula for the standard deviation of the sampling distribution of the difference in averages, in Display 2.6.)
16. A researcher has taken tissue cultures from 25 subjects. Each culture is divided in half, and a treatment is applied to one of the halves chosen at random. The other half is used as a control. After determining the percent change in the sizes of all culture sections, the researcher calculates the standard error for the treatment-minus-control difference using both the paired t -analysis and the two independent sample (Chapter 2) t-analysis. Finding that the paired t-analysis gives a slightly larger standard error (and gives only half the degrees of freedom), the researcher decides to use the results from the unpaired analysis. Is this legitimate?
17. Respiratory breathing capacity of individuals in houses with low levels of nitrogen dioxide was compared to the capacity of individuals in houses with high levels of nitrogen dioxide. From a sample of 200 houses of each type, breathing capacity was measured on 600 individuals from houses with low nitrogen dioxide and on 800 individuals from houses with high nitrogen dioxide. (a) What problem do you foresee in applying t-tools to these data? (b) Would comparing the average household breathing capacities avoid the problem?
18. Trauma and Metabolic Expenditure. The following data are metabolic expenditures for eight patients admitted to a hospital for reasons other than trauma and for seven patients admit- ted for multiple fractures (trauma). (Data from C. L. Long, et al., “Contribution of Skeletal Muscle Protein in Elevated Rates of Whole Body Protein Catabolism in Trauma Patients,” American Journal of Clinical Nutrition 34 (1981): 1087–93.)
Metabolic Expenditures (kcal/kg/day)
Nontraumapatients: 20.1 22.9 18.8 20.9 20.9 22.7 21.4 20.0 Traumapatients: 38.5 25.8 22.0 23.0 37.6 30.0 24.5
(a) Is the difference in averages resistant? (Hint: What happens if 20.0 is replaced by 200?) (b) Replacing each value with its rank, from the lowest to highest, in the combined sample
gives
Consider the average of the ranks for the trauma group minus the average of the ranks for the nontrauma group. Is this statistic resistant?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Metabolic Expenditures (kcal/kg/day)
Nontrauma patients: 3 9 1 4.5 4.5 8 6 2 Trauma patients: 15 12 7 10 14 13 11

3.8 Exercises 79
19. In each of the following data problems there is some potential violation of one of the independence assumptions. State whether there is a cluster effect or serial correlation, and whether the questionable assumption is the independence within groups or the independence between groups.
(a) Researchers interested in learning the effects of speed limits on traffic accidents recorded the number of accidents per year for each of 10 consecutive years on roads in a state with speed limits of 90 km/h. They also recorded the number of accidents for the next 7 years on the same roads after the speed limit had been increased to 110 km/hr. The two groups of measurements are the number of accidents per year for those years under study. (Notice that there is also a potential confounding variable here!)
(b) Researchers collected intelligence test scores on twins, one of whom was raised by the natural parents and one of whom was raised by foster parents. The data set consists of test scores for the two groups, boys raised by their natural parents and boys raised by foster parents.
(c) Researchers interested in investigating the effect of indoor pollution on respiratory health randomly select houses in a particular city. Each house is monitored for nitrogen dioxide concentration and categorized as being either high or low on the nitrogen dioxide scale. Each member of the household is measured for respiratory health in terms of breathing capacity. The data set consists of these measures of respiratory health for all individuals from houses with low nitrogen dioxide levels and all individuals from houses with high levels.
Computational Exercises
20. Means, Medians, Logs, Ratios. Consider the following tuitions and their natural logs for five colleges:
College
A B C D E
In-State
$1,000 $4,000 $5,000 $8,000
$40,000
Out-of-State
$ 3,000
$ 8,000 $ 30,000 $ 32,000 $ 40,000
Out/In Ratio
3 2 6 4 1
Log(In-State)
6.9078 8.2941 8.5172 8.9872
10.5966
Log(Out-of-State)
8.0064
8.9872 10.3090 10.3735 10.5966
(a) Find the average In-State tuition. Find the average log(In-State). Confirm that the log of the average is not the same as the average of the logs. (b) Find the median In-State tuition and the median of the logs of In-State tuitions. Verify that the log of the median is the same as the median of the logs. (c) Compute the median of the ratios. Compute the differences of logged tuitions—log(Out- of-State) minus log(In-State) and compute the median of these differences. Verify that the median of the differences (of log tuitions) is equal to the natural log of the median of ratios (aside from some minor rounding error).
21. Umpire Life Lengths. When an umpire collapsed and died soon after the beginning of the 1990 U.S. major league baseball season, there was speculation that the stress associated with that job poses a health risk. Researchers subsequently collected historical and current data on umpires to investigate their life expectancies (Cohen et al., “ Life Expectancy of Major League Baseball Umpires,” The Physician and Sportsmedicine, 28(5) (2000): 83–89). From an original list of 441 umpires, data were found for 227 who had died or had retired and were still living. Of these, dates of birth and death were available for 195. Display 3.10 shows several rows of a generated data set based on the study.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

80 Chapter 3 A Closer Look at Assumptions
DISPLAY 3.10
First 4 rows (of 227) from the umpire data set (Observed is the known lifetime for those umpires who had died by the time of the study [for whom Censored D 0] and the current age of those who had not yet died [for whom Censored D 1]; Expected is the expected life length—from actuarial life tables—for individuals who were alive at the time the person first became an umpire)
Observed life Censored Expected Umpire length (yr) (0 if dead) life length (yr)
. ..
(a) Use a t-test and confidence interval (possibly after transformation) to investigate whether umpires had smaller observed life lengths than expected, using only those with known life lengths (i.e., for whom Censored = 0)
(b) What are the potential consequences of ignoring those 214 of the 441 umpires on the original list for whom data was unavailable?
(c) What are the potential consequences of ignoring those 32 umpires in the data set who had not yet died at the time of the study? (See, for example, the survival analysis techniques in S. Anderson et al., Statistical Methods for Comparative Studies, New York: Wiley, 1980.)
Voltage and Insulating Fluid. Researchers examined the time in minutes before an insulating fluid lost its insulating property. The following data are the breakdown times for eight samples of the fluid, which had been randomly allocated to receive one of two voltages of electricity:
Times (min) at 26 kV: 5.79 1579.52 2323.70
Times (min) at 28 kV: 68.8 108.29 110.29 426.07 1067.60
(a) Form two new variables by taking the logarithms of the breakdown times: Y1 D log breakdown time at 26 kV and Y2 D log breakdown time at 28 kV.
(b) By hand, compute the difference in averages of the log-transformed data: Y 1 􏰀 Y 2 .
(c) Taketheantilogarithmoftheestimatein(b):exp.Y1􏰀Y2/.Whatdoesthisestimate?(See
the interpretation for the randomized experiment model in Section 3.5.2.)
(d) By hand, compute a 95% confidence interval for the difference in mean log breakdown
times. Take the antilogarithms of the endpoints and express the result in a sentence.
22.
Solar Radiation and Skin Cancer. The data in Display 3.11 are yearly skin cancer rates (cases per 100,000 people) in Connecticut, with a code identifying those years that came two years after higher than average sunspot activity and those years that came two years after lower than average sunspot activity. (Data from D. F. Andrews and A. M. Herzberg, Data, New York: Springer-Verlag, 1985.) (a) Is there any reason to suspect that using the two independent sample t-test to compare skin cancer rates in the two groups is inappropriate? (b) Draw scatterplots of skin cancer rates versus year, for each group separately. Are any problems indicated by this plot?
24. Sex Discrimination. With a statistical computer program, reanalyze the sex discrimination data in Display 1.3 but use the log transformation of the salaries. (a) Draw box plots. (b) Find a p-value for comparing the distributions of salaries. (c) Find a 95% confidence interval for the ratio of population medians. Write a sentence describing the finding.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
23.

3.8 Exercises 81
Partial listing of Connecticut skin cancer rates (per 100,000 people) from 1938 to 1972, with DISPLAY 3.11 solar code (1 if there was higher than average sunspot activity and 2 if there was lower than
average sunspot activity two years earlier)
Year Rate Code
.. .
DISPLAY 3.12
Proportions of pollen removed and visit durations (in seconds) by 35 bumblebee queens and 12 honeybee workers; partial listing.
Bee Type
1 queen
2 queen
3 queen
4 queen .. .
45 worker 46 worker 47 worker
Removed Duration
0.07 2 0.10 5 0.11 7 0.12 11
0.78 51 0.74 64 0.77 78
25. Agent Orange. With a statistical computer program, reanalyze the Agent Orange data of Dis- play 3.3 with and without the two largest dioxin levels in the Vietnam veterans group. Verify the one-sided p-values in bubble 2 of Display 3.7.
26. Agent Orange. With a statistical computer package, reanalyze the Agent Orange data of Display 3.3 after taking a log transformation. Since the data set contains zeros—for which the log is undefined—try the transformation log.dioxin C :5/. (a) Draw side-by-side box plots of the trans- formed variable. (b) Find a p-value from the t-test for comparing the two distributions. (c) Compute a 95% confidence interval for the difference in mean log measurements and interpret it on the origi- nal scale. (Note: Back-transforming does not provide an exact estimate of the ratio of medians since 0:5 was added to the dioxins, but it does provide an approximate one.)
27. Pollen Removal. As part of a study to investigate reproductive strategies in plants, biologists recorded the time spent at sources of pollen and the proportions of pollen removed by bumble- bee queens and honeybee workers pollinating a species of lily. (Data from L. D. Harder and J. D. Thompson, “Evolutionary Options for Maximizing Pollen Dispersal of Animal-pollinated Plants,” American Naturalist 133 (1989): 323–44.) Their data appear in Display 3.12.
(a) (i) Draw side-by-side box plots (or histograms) of the proportion of pollen removed by queens and workers. (ii) When the measurement is the proportion P of some amount, one useful transformation is logŒP =.1 􏰀 P /. This is the log of the ratio of the propor- tion removed to the proportion not removed. Draw side-by-side box plots or histograms on
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

82 Chapter 3 A Closer Look at Assumptions
this transformed scale. (iii) Test whether the distribution of proportions removed is the same
or different for the two groups, using the t-test on the transformed data.
(b) Draw side-by-side box plots of duration of visit on (i) the natural scale, (ii) the logarithmic scale, and (iii) the reciprocal scale. (iv) Which of the three scales seems most appropriate for use of the t-tools? (v) Compute a 95% confidence interval to describe the difference in means on the chosen scale. (vi) What are relative advantages of the three scales as far as interpretation goes? (vii) Based on your experience with this problem, comment on the
difficulty in assessing equality of population standard deviations from small samples.
Bumpus’s Data. Obtain p-values from the t-test to compare humerus lengths for sparrows that survived and those that perished (Exercise 2.21), with and without the smallest length in the perished group (length D 0:659 inch). Do the conclusions depend on this one observation? What action should be taken if they do?
29. Cloud Seeding—Multiplicative vs. Additive Effects. On the computer, create a variable con- taining the rainfall amounts for only the unseeded days. (a) Create four new variables by adding 100, 200, 300, and 400 to each of the unseeded day rainfall amounts. Display a set of five box plots to illustrate what one might expect if the effect of seeding were additive. (b) Create four additional vari- ables by multiplying each of the unseeded day rainfall amounts by 2, by 3, by 4, and by 5. Display a set of five box plots to illustrate what could be expected if the effect of seeding were multiplicative. (c) Which set of plots more closely resembles the actual data?
Data Problems
30. Education and Future Income. Display 3.13 shows the first five rows of a data set with annual incomes in 2005 of the subset of National Longitudinal Survey of Youth (NLSY79) subjects (described in Exercise 2.22) who had paying jobs in 2005 and who had completed either 12 or 16 years of education by the time of their interview in 2006. All the subjects in this sample were between 41 and 49 years of age in 2006. Analyze the data to describe the amount (or percent) by which the population distribution of incomes for those with 16 years of education exceeds the distribution for those with 12 years of education. (Note: The NLSY79 data set codes all incomes above $150,000 as $279,816. To make an exercise version that better matches the actual income distribution, those values have been replaced in the data set by computer-simulated values from a realistic distribution of incomes greater than $150,000.)
31. Education and Future Income II. The data file ex0331 contains a subset of the NLSY79 data set (see Exercise 30) with annual incomes of subjects with either 16 or more than 16 years of
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
28.
DISPLAY 3.13
Annual incomes in 2005 (in U.S. dollars) of 1,020 Americans who had 12 years of education and 406 who had 16 years of education by the time of their interview in 2006; ‘‘Subject’’ is a subject identification number; first 5 of 1,426 rows
Subject
Educ Income2005
2 12
6 16
7 12
13 16 21 16
5,500 65,000 19,000
8,000 253,043

DISPLAY 3.14
education. Analyze the data to describe the amount (or percent) by which the population distribution of incomes for those with more than 16 years of education exceeds the distribution for those with 16 years of education.
32. College Tuition. Display 3.14 shows the first five rows of a data set with 2011–2012 in-state and out-of-state tuitions for random samples of 25 private and 25 public, four-year colleges and universities in the United States. Analyze the data to describe (a) the extent to which out-of-state tuition is more expensive than in-state tuition in the population of public schools, (b) the extent to which private school in-state tuition is more expensive than public school in-state tuition, and (c) the extent to which private school out-of-state tuition is more expensive than public school out-of-state tuition. (Data sampled from College Board: http://www.collegeboard.com/student/ (11 July 2011).)
In-state and out-of-state tuitions for 25 public and 25 private colleges and universities in the United States; first 5 of 50 rows
3.8 Exercises 83
College
Albany State University Appalachian State University Argosy University: Nashville Brescia University
Central Connecticut State University
Type InState
OutofState
$17,048 $16,487 $19,596 $18,140 $18,679
Relative brain sizes, 1,000  (Brain weight/Body weight), for 96 species of mammals 1,000×(Brain weight/Body weight) for 51 species with average litter size<2 1,000×(Brain weight/Body weight) for 45 species with average litter size≥2 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 3.15 public public private private public $5,434 $5,175 $19,596 $18,140 $8,055 33. Brain Size and Litter Size. Display 3.15 shows relative brain weights (brain weight divided by body weight) for 51 species of mammal whose average litter size is less than 2 and for 45 species of mammal whose average litter size is greater than or equal to 2. (These are part of a larger data set considered in Section 9.1.2.) What evidence is there that brain sizes tend to be different for the two groups? How big of a difference is indicated? Include the appropriate statistical measures of uncertainty in carefully worded sentences to answer these questions. 84 Chapter 3 A Closer Look at Assumptions Answers to Conceptual Exercises 1. The target clouds on a day that was deemed suitable for seeding. 2. Uncontrollable confounding factors probably explain the variability in rainfall from clouds treated the same way. Randomization is needed to ensure that the confounding factors do not tend to be unevenly distributed in the two groups. 3. Blinding prevents the intentional or unintentional biases of the human investigators from having a chance to make a difference in the results. 4. There may be serial correlation. A plot of rainfall versus date could be used to check. 5. Larger values are to be expected by chance if the populations are the same, since the sample of Vietnam veterans is so much larger than the sample of non–Vietnam veterans. 6. (a) He would not be representative of the target population and should be removed from the data set for analysis. (b) Same thing. 7. No, not from the statistics alone since this is an observational study. It could be said, however, that the data are consistent with that theory. 8. No. The dependence is the result of matching and is desirable. The two-sample t-tools are not appropriate (but the paired t-tools are). 9. False. 10. False. An average from a sample will have a sampling distribution that will tend toward normal with large sample sizes, but the sample histogram should mirror the population distribution. As the sample size gets larger, the sample histogram should become a better approximation to the population histogram. 11. There is a cluster effect: the particular day of the week. She should use a paired-t analysis, as will be discussed in Chapter 4. 12. The t-test is robust in validity to departures from normality, especially as the sample size gets large. The robustness with respect to equal standard deviations does not depend much on what the sample sizes are, so long as they are reasonably equal. Sample size does not affect robustness with respect to independence. 13. You cannot take logarithms of negative numbers. 14. It will be more consequential in smaller samples; its effect gets washed out in large ones. 15. Replace the population SDs in the formula (Section 2.2.2) by individual sample SDs. 16. No. The paired analysis must be used, even though the inferences may not appear to be as precise. The unpaired analysis is inappropriate. 17. (a) Dependence of measurements on individuals in the same household (cluster effect). (b) Maybe. Getting a single measure for each household may be an easy way out of the depen- dence problem, but care should be used as these groups also tend to differ in the average number of persons per household. 18. (a) No. (b) Yes. 19. (a) Serial correlation both within and between groups. (Confounding variable is the time at which observations were made.) (b) Cluster effect between groups. (c) Cluster effect (members of the same household should be similar) within groups. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Alternatives to the t-Tools The t-tools have an extremely broad range of application, extending well beyond the strict confines of the ideal model because of robustness. They extend even further when the possibilities of transforming the data and dealing with outliers are taken into account. Nevertheless, situations arise where the t-tools cannot be applied, because the model assumptions of the t-test are grossly violated. For these situations, a host of other methods, based on different models, may be used. Some are presented in this chapter. Most notable are two distribution-free methods, based on models that do not specify any particular population distributions. The rank-sum test for two independent samples and the signed-rank test for a sample of pairs are useful alternatives, particularly when outliers may be present or when the sample sizes are too small to permit the assessment of distributional assumptions. 85 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 4 86 Chapter 4 Alternatives to the t-Tools 4.1 CASE STUDIES 4.1.1 Space Shuttle O-Ring Failures—An Observational Study On January 27, 1986, the night before the space shuttle Challenger exploded, engi- neers at the company that built the shuttle warned National Aeronautics and Space Administration (NASA) scientists that the shuttle should not be launched because of predicted cold weather. Fuel seal problems, which had been encountered in earlier flights, were suspected of being associated with low temperatures. It was argued, however, that the evidence was inconclusive. The decision was made to launch, even though the temperature at launch time was 29ıF. The data in Display 4.1 are the numbers of O-ring incidents on previous shut- tle flights, categorized into those launched at temperatures below 65ıF and those launched at temperatures above 65ıF. (Data from a graph in Richard P. Feynman, What Do You Care What Other People Think? (New York: W. W. Norton, 1988).) Is there a higher risk of O-ring incidents at lower launch temperatures? DISPLAY 4.1 Numbers of O-ring incidents on 24 space shuttle flights prior to the Challenger disaster Launch temperature Number of O-ring incidents Statistical Conclusion These date provide strong evidence that the number of O-ring incidents was asso- ciated with launch temperature in these 24 launches. It is highly unlikely that the observed difference of the groups is due to chance (one-sided p-value D 0:0099 from a permutation test on the t-statistic). Scope of Inference These observational data cannot be used to establish causality, nor is there any broader population of which they are a sample. But the association between tem- perature and O-ring failure in these particular 24 launches is consistent with the theory that lower temperatures impair the functioning of the O-rings. (At one point in public hearings into the causes of the disaster, Feynman asked for a glass of ice water, placed a small O-ring in it for a time, removed it, and then proceeded to demonstrate that the rubber failed to spring back to its original form.) (Note: Other techniques for dealing with count data are given in Chapter 22.) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.1 Case Studies 87 4.1.2 Cognitive Load Theory in Teaching—A Randomized Experiment Consider the following problem in coordinate geometry. Point A has coordinates .2; 1/, point B has .8; 3/, and point C has .4; 6/. What is the slope of the line that connects C to the midpoint between A and B? Presenting the solution as a worked problem, a conventional textbook shows a picture of the layout, gives a discussion in the text, and then provides the lines of algebraic manipulation leading to the right answer. (See Display 4.2.) Recent the- oretical developments in cognitive science suggest that splitting the presentation into the three distinct units of diagram, text, and algebra imposes a heavy, extra- neous cognitive load on the student. The requirement that the student organize and process the separate elements constitutes a cognitive load. The load is extra- neous because it is not essential to learning how to solve such problems—indeed, it impedes the learning process by placing heavy demands on cognitive resources that should be used to understand the essentials. In a test of this theory, researchers compared the effectiveness of conven- tional textbook worked examples to modified worked examples, which present the algebraic manipulations and explanation as part of the graphical display (see Display 4.3). (Data from J. Sweller, P. Chandler, P. Tierney, and M. Cooper, “Cognitive Load as a Factor in the Structuring of Technical Material,” Journal of Experimental Psychology General 119(2) (1990): 176–92.) Researchers selected 28 ninth-year students in Sydney, Australia, who had no previous exposure to coordinate geometry but did have adequate mathematics to deal with the problems given. The students were randomly assigned to one of Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 4.2 y Cognitive load experiment: conventional method of instruction (for finding the slope of the line that connects C to the midpoint between A and B ) C(4,6) Solution: The coordinates of N are: N = (2+8 , 1+3) 22 = (5,2) The slope of CN is: 2–6 m= 5–4 = –4 = –4 1 N A(2,1) B(8, 3) x In a conventional worked example, algebra and diagram are separated, giving students an extraneous cognitive load of having to assimilate the two. 88 Chapter 4 Alternatives to the t-Tools DISPLAY 4.3 y C(4,6) m = 2–6 = –4 = –4 2 5–4 1 B(8,3) 1 N=(2+8,1+3)= (5,2) 22 x A modified worked example integrates algebra and picture, allowing the student to more easily acquire a schema for solving such problems. Cognitive load experiment: modified method of instruction (for finding the slope of the line that connects C to the midpoint between A and B ) A(2,1) two self-study instructional groups, using conventional and modified instructional materials. The materials covered exactly the same problems, presented differently. Students were allowed as much time as they wished to study the material, but they were not allowed to ask questions. Following the instructional phase, all students were tested with a common examination over three problems of different difficulty. The data in Display 4.4, based on this study, are the number of seconds required to arrive at a solution to the moderately difficult problem. Both distributions in Display 4.4 are highly skewed. In addition, there were five students in the conventional (control) group who did not come to any solution in the five minutes allotted. Their solution times are considered censored—all that is known about them is that they exceed 300 seconds. It appears that the solu- tion times for the “modified instructional materials” group are generally shorter than for the conventional materials group. Is there sufficient evidence to draw this conclusion? Statistical Conclusions These data provide convincing evidence that a student could solve the problem more quickly if taught with the modified method than if taught with the conven- tional method (one-sided p-value D 0:0013, from the rank-sum test). The modified instructional materials shortened solution times by an estimated 129 seconds (95% confidence interval for an additive treatment effect: 58 to 159 seconds). 4.2 THE RANK-SUM TEST The rank-sum test is a resistant alternative to the two-sample t-test. It performs nearly as well as the t-test when the two populations are normal and considerably Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.2 The Rank-Sum Test 89 DISPLAY 4.4 Number of seconds to solution of a problem in coordinate geometry, for students instructed with conventional and modified materials 86 7530 7 00 8 Modified 9 10 (n = 14) 11 12 2 13 8 14 5 15 09 6 0 Conventional (n = 14) Five students did not complete the problem in the five-minute time allotment. 16 1 17 7 3 18 7 19 6 20 0 21 22 8 23 24 2 25 26 5 27 28 29 30 +++++ Legend: 26 5 represents 265 seconds. better when there are extreme outliers. Its drawbacks are that associated confidence intervals are not computed by most of the statistical computer packages and that it does not easily extend to more complicated situations. 4.2.1 The Rank Transformation Straightforward transformations of the data were used in Chapter 3 to obtain measurements on a scale where the normality and equal spread assumptions are approximately met. The rank-sum relies on a special kind of transformation that replaces each observation by its rank in the combined sample. It should be noted that this really is a different kind of transformation for two reasons: (1) A sin- gle transformed value depends on all the data. So the transformed rank of, say, Y D 63:925, may be one value in one problem but a very different value in another problem. (2) There is no reverse transformation, such as the antilog, available for ranks. The purpose behind using ranks is not to transform the data to approximate normality but to transform the data to a scale that eliminates the importance of the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 90 Chapter 4 Alternatives to the t-Tools 4.2.2 population distributions altogether. Notice that when the data values are replaced by their square roots or by their logarithms, the sample distributions change shape dramatically. The ranks from the transformed data, however, are identical to the ranks based on the untransformed data, so the shape of the distribution of mea- surements has no effect on the ranks. In addition, whether the largest observation in a data set is 300 seconds or 3,000 seconds does not affect its rank. In this respect, any statistic based on ranks is resistant to outliers. A feature of the rank-sum test that makes it an attractive choice for the cog- nitive load experiment is its ability to deal with censored observations, observations that are only known to be greater than (or possibly less than) some number. All that is known about the five students who did not complete the problem is that their solution times are greater than 300 seconds. For the rank-sum test it is enough to know that, in terms of ranks, they were tied for last. The Rank-Sum Statistic Calculation of the rank-sum test statistic for the cognitive load experiment is sum- marized in Display 4.5. The first four steps transform the data to their ranks in the combined sample: 1. List all observations from both samples in increasing order. 2. Identify which sample each observation came from. 3. Create a new column labeled “order,” as a straight sequence of numbers from 1 to .n1 C n2/. 4. Search for ties—that is, duplicated values—in the combined data set. The ranks for tied observations are taken to be the average of the orders for those cases. Two students tied at 80 seconds, for example. They finished sixth and seventh fastest. One cannot say which of the two deserves which order, so both are assigned the rank of .6 C 7/=2 D 6:5. The five students who took the full five minutes were the last five finishers, with orders 24, 25, 26, 27, and 28. So each is assigned rank .24 C 25 C 26 C 27 C 28/=5 D 26. Any observation that has a unique value gets its order as its rank. The test statistic, T , is the sum of all the ranks in one group, called “group 1.” Group 1 is conventionally the group with the smaller sample size (because that minimizes computation). The choice, however, is arbitrary. The impressive feature of the cognitive load experiment is that the early finish- ers were mostly the students who studied the modified instructional material. This is reflected in the test statistic by a low rank-sum .T D 137/ for that group. Finding a p -Value by Normal Approximation The rank-sum procedure is used to test the null hypothesis of no treatment effect from a two-treatment randomized experiment and also to test the null hypothe- sis of identical population distributions from two independent samples. If the null hypothesis is true in either case, then the sample of n1 ranks in group 1 is a ran- dom sample from the n1 C n2 available ranks. Both the randomization distribution and the sampling distribution of the rank-sum statistic, T , are represented by a 4.2.3 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 4.5 Rank-sum test statistic T for the cognitive load experiment 4.2 The Rank-Sum Test 91 1 List all observations from both samples in increasing order. Identify sample 2 membership of Write down an 3 increasing sequence for list order. Order Rank 4 Modify the orders, if necessary, by giving the average order to tied values. each value. Group histogram of the rank-sum statistics calculated for each possible regrouping of the n1 C n2 observations into samples of size n1 and n2. Because conversion to ranks avoids absurd distributional anomalies, the ran- domization distribution of T can be approximated accurately by a normal distribu- tion in most situations. The exceptions are when at least one sample is small—say under 5—or when large numbers of ties occur. The mean and variance of the permutation distribution, from statistical theory, are shown in Display 4.6. These facts may be used to evaluate whether the observed rank-sum statistic is unusually small or large. If there is no difference, then the Z-statistic Z-statistic D ŒT 􏰀 Mean.T /=SD.T / Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. T=137 5 Add the ranks from all observations in one group (M). 92 Chapter 4 Alternatives to the t-Tools DISPLAY 4.6 Facts about the randomization (or sampling) distribution of the rank-sum statistic—the sum of ranks in group 1—when there is no group difference 3 2 Spread SD(T) = s n1n2 Permutation distribution of the rank-sum (T) 1 Center Mean(T) = n1R Shape The shape of the sampling distribution will be approximately normal if the sample sizes are large (and not too many ties). Mean(T ) R (n1+n2) where R and sR are the average and the sample standard deviation, respectively, for the combined set of (n1 + n2) ranks. should be similar to a typical value from a standard normal distribution. A p-value is the proportion of values from a standard normal distribution that are more extreme than the observed Z-statistic. The calculations for the cognitive load data are shown in Display 4.7. The observed rank-sum statistic of 137 is smaller than the value of 203 that would be expected if there were no treatment effect. This disparity may be due to the luck involved in the random assignment, with better students placed in the modified instruction group, but the p-value indicates that only about one in a thousand ran- domizations would produce a disparity as great as or greater than the observed one, if there were no treatment effect. Such a small p-value provides fairly convincing evidence that a treatment effect explains the difference. Continuity Correction The statistic T can only take on integer values. Its distribution can be displayed as a histogram with a bar centered on each integer having a height equal to the probability that T equals that integer and a base extending from the integer minus one-half to the integer plus one-half. Thus the bar areas are the probabilities asso- ciated with each integer. Probabilities can also be approximated by the normal distribution, which is centered at Mean(T ) with a standard deviation of SD(T ). Using the normal distribution to approximate the probability that T is less than or equal to the integer k, one must realize that the desired area under the normal curve is the area less than or equal to k C 0:5 in the probability histogram. To get the best approximation, therefore, one must determine the normal distribution area less than or equal to k C 0:5. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.2 The Rank-Sum Test 93 DISPLAY 4.7 1 2 3 4 Finding the p-value with the normal approximation to the permutation distribution of the rank- sum statistic, using a continuity correction. Calculations for the cognitive load data are continued from Display 4.5 Calculate the average and sample standard deviation of the ranks from the combined sample (column 4 of Display 4.5). R = 14.5 sR = 8.2023 Compute the theoretical “null hypothesis” mean and standard deviation of T using the formulae in Display 4.6. Mean(T) = 14 × 14.5 = 203 SD(T) = 8.2023 14×14 = 21.7013 (14 + 14) Calculate the Z-statistic using a continuity correction. Z = (137.5 – 203) = –3.0183 21.7013 Find the p-value from a standard normal table. One-sided p-value = 0.0013 Continuity Correction The probability (shaded area) in the histogram for values is approximated by normal curve area (hatched) for values 7.5. 7 Similarly, the normal approximation to the probability that T is greater than or equal to an integer k is the area under the normal curve to the right of k 􏰀 0:5 (so that the entire bar above k is included). This adjustment to the normal approximation is called a continuity correction because it corrects the less accurate calculation that simply uses k. The calculations in Display 4.7 include this feature. Exact p -Values for the Rank-Sum Test The normal distribution is an easy and adequate approximation to the random- ization distribution for most problems. Troublesome situations arise where sample sizes are small or there are large numbers of ties. It is possible to compute the randomization distribution exactly using the tech- nique described in Section 1.3.2. Published tables with exact percentiles exist (see, for example, Pearson and Hartley 1972, p. 227), but they are only appropriate when Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5 6 7 8 9 10 11 12 13 94 Chapter 4 Alternatives to the t-Tools DISPLAY 4.8 4.2.4 there are no ties. Another drawback is that only a few percentiles are published for each combination of sample sizes, so that p-values can only be bracketed. Many statistical computer programs can compute the exact p-value from the permuta- tion distribution (if the sample sizes aren’t too large) or approximate it through repeated sampling from the permutation distribution. A Confidence Interval Based on the Rank-Sum Test A 95% confidence interval for any parameter can be constructed by including all hypothesized values that lead to two-sided p-values greater than or equal to 0.05. This relation between tests and confidence intervals can be exploited to obtain a confidence interval for an additive treatment effect ı in the cognitive load experiment. If Y is the time to solution for a student using the conventional study materials, the additive treatment effect model says that Y 􏰀 ı is the time to solution for the same student using the modified study materials. The rank-sum test in Display 4.7 indicates that 0 is not very likely as a value for ı. Could ı be, say, 50 seconds? If so, the completion times in the modified group plus 50 seconds should be a set of times that are similar to those for the conventional study materials group. This suggests a procedure: (1) add a hypothesized ı to all modified group times, (2) use the rank-sum test to decide whether the two resulting group differences can be explained by chance (in this case whether the two-sided p-value exceeds 0.05), and (3) determine—through trial and error—upper and lower limits on ı values satisfying the criterion. Display 4.8 illustrates the process with a series of proposed values for ı. By trial and error it was determined that all hypothesized values of ı between 58 and 159 seconds lead to two-sided p-values greater than 0.05. The 95% confidence interval for the reduction in test time due to the modified instructional method is 58 to 159 seconds. A point estimate for ı is the interval’s midpoint, 108 seconds. Using a rank-sum test to construct a confidence interval for an additive treatment effect (cognitive load study) Hypothesized effect (seconds) Two-sided p-value 0 0 0 0 0 0 0 0 0 Confidence interval inclusion? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. two-sided 4.3 Other Alternatives for Two Independent Samples 95 Notes About the Rank-Sum Procedure 1. Other names for the rank-sum test are the Wilcoxon test and the Mann– Whitney test. The different names refer to originators of different forms of the test statistic. To confuse the issue, there is also a Wilcoxon signed-rank test—which is something entirely different. 2. The rank-sum test is a nonparametric or distribution-free statistical tool, meaning there are no specific distributional assumptions required. 3. Although the t-test is more efficient when the populations are normal (it makes better use of the available data), the rank-sum test is not that much worse in the normal model, and is substantially better for many other situations, particularly for long-tailed distributions. 4. The theoretical mean of T in Display 4.6 can also be written as Mean.T / D n1.n1 Cn2 C1/=2. If there are no ties, the theoretical standard deviation in the permutation distribution of T is SD.T/Dpn1n2.n1 Cn2 C1/=12 The version in bubble 2 of Display 4.6 is correct whether there are ties or not. 5. In its application to the cognitive load problem, the confidence interval method described in Display 4.8 should be modified to reflect the truncation of solution times to 5 minutes. Thus, when the modified group’s times are shifted by a cer- tain hypothesized amount, any values exceeding 300 seconds should be replaced by 300 before performing the test. Such a modification makes no change in the lower limit of the confidence interval; but the upper limit changes from 159 to 189 seconds. 4.3 OTHER ALTERNATIVES FOR TWO INDEPENDENT SAMPLES 4.3.1 Permutation Tests A permutation test is any test that finds a p-value as the proportion of regroupings— of the observed n1 C n2 numbers into two groups of size n1 C n2—that lead to test statistics as extreme as the observed one. The test statistic may be the difference in group averages, a t-statistic, the sum of ranks in group 1, or any other choice to rep- resent group difference. Permutation tests were previously discussed in the context of interpretation. When used to analyze randomized experiments, for example, per- mutation tests are called randomization tests and provide statistical inferences tied to the chance mechanism in random assignment. For observational studies, they provide no inference to a broader context (except for the special case of the rank- sum test), but may nevertheless be useful for summarizing differences in the data at hand. In the cases so far discussed, the actual calculation of p-values and con- fidence intervals was based on an approximation to the permutation distribution. Sometimes there is no adequate approximation. In the O-ring study, for example, the exact rendering of the permutation test is the only method for calculating its p-value. The distribution of the numbers is so Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 96 Chapter 4 Alternatives to the t-Tools nonnormal that a t-distribution approximation is severely inadequate. No transfor- mation helps. The rank-sum test is inadequate because of the large number of ties: 17 of the 24 values are tied at zero. Even though the computational effort for direct calculation of the p-value is considerable, permutation calculations are important because they are always available and require no distributional assumptions or special conditions. The p-value is calculated using the following procedure: 1. Decide on a test statistic, and compute its value from the two samples. 2. List all regroupings of the n1 C n2 numbers into groups of size n1 and n2, and recompute the test statistic for each. 3. Count the number of regroupings that produce test statistics at least as extreme as the observed test statistic from step 1. 4. The p-value is the number found in step 3 divided by the total number of regroupings. In problems such as the O-ring study, the procedure can be accomplished by counting with combinatorics, that is, by using the combination numbers Cn,k D n.n􏰀1/.n􏰀kC1/: k.k 􏰀 1/    1 The number Cn,k—read as “n choose k”—is the number of different ways to choose k items from a list of n items. The total number of regroupings for a two-sample problem is Cn1Cn2;n1 . Combination numbers can also be used to count the number of regroupings that lead to test statistics as extreme or more extreme than the observed one, as now shown for the O-ring data. Step 1. The t-statistic was selected as the test statistic (although the difference in averages would be equally good). Its observed value is 3.888. Step 2. It is only necessary to determine which group 1 outcomes produce t-statistics that are as large as or larger than the 3.888 that came from the observed outcome, .1; 1; 1; 3/. After some calculation, it is found that the extreme regroupings are those whose group 1 outcomes are .1;1;2;3/, .1;1;1;3/, or .0;1;2;3/, with t-statistics 5.952, 3.888, and 3.888, respectively. Step 3. The total number of regroupings is C24;4 D 10;626. For a one-sided p-value it is necessary to count the number of regroupings that produce the outcomes in Step 2. Consider the outcome .1; 1; 2; 3/. To get such an outcome, the single 2 and the single 3 must be selected. However, there are five 1’s in the full sample, and the indicated outcome would occur with any of the C5;2 D 10 combinations of 1’s. This is illustrated in Display 4.9. Similarly, the number of regroupings with outcome .1;1;1;3/ is the number of ways to select three 1’s from the five available in the data set, to go with the obligatory 3. This is C5;3 D 10. Finally, a regrouping with outcome .0; 1; 2; 3/ can be formed by taking any one of the 17 0’s in combination with any one of the five 1’s, along with 2 and 3. The number of ways to do this is C17;1 C5;1 D 175 D 85. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 4.9 Counting method for regroupings that give extreme group 1 outcomes 17 zeros 5 ones Data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 1, 1, 1, 1, 1 2 3 Group 1 outcome: (1,1,2,3) (1,1,1,3) (0,1,2,3) A summary of the t-statistics calculated from all 10,626 rearrangements of the O-ring data into a Low group of size 4 and a High group of size 20 DISPLAY 4.10 4.3.2 Summing up, the number of regroupings that lead to t-statistics as large as or larger than the observed one is 10 C 10 C 85 D 105. Step 4. The one-sided p-value is 105=10;626 D 0:00988. This result and the full permutation distribution of the t-statistic appear in Display 4.10. Notes: The combinatorics method is especially useful if there are only a few regroupings that need to be counted, but it might be unmanageable if there are many. A computer can systematically enumerate the regroupings, calculate the test statistic for each, and compute the proportions that have a more extreme test statistic than the observed one. (An alternative is to approximate the p-value by the proportion of a random sample of all possible regroupings that have a test statis- tic more extreme than the observed one, as discussed for the discrimination study in Section 1.1.2.) The Welch t-Test for Comparing Two Normal Populations with Unequal Spreads Welch’s t-test employs the individual sample standard deviations as separate esti- mates of their respective population standard deviations, rather than pooling to 4.3 Other Alternatives for Two Independent Samples 97 Number of rearrangements with identical t-statistics t-statistic one-sided Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 0.00988 98 Chapter 4 Alternatives to the t-Tools obtain a single estimate of a population standard deviation. The result is a different formula for the standard error of the difference in averages: This becomes the denominator in the t-statistic for comparing the means of populations with different spreads. Even when the populations are normal, however, the exact sampling distribution of the Welch t-ratio is unknown. It can be approxi- mated by a t-distribution with d.f.W degrees of freedom, known as Satterthwaite’s approximation: s s 12 s 2 2 SEW.Y2􏰀Y1/D nCn: 12 d:f:W D ŒSEW.Y2􏰀Y1/4 ŒSE.Y 2/4 ŒSE.Y 1/4 .n2 􏰀1/ C .n1 􏰀1/ where s1 SE.Y 1/ D p s2 n and SE.Y2/Dp n: The t-test and confidence interval are computed exactly as with the two-sample t-test, except with the modified standard error and the approximate degrees of freedom (rounded down to an integer value). A Note About the Importance of the Equal-Spread Model If the two populations have the same shape and the same spread, then the difference in means is an entirely adequate summary of their difference. Any question of interest that requires a comparison of the two distributions can be re-expressed in terms of the single parameter 2 􏰀 1. If, on the other hand, the populations have different means and different standard deviations, then 2 􏰀 1 may be an inadequate summary. If lifetimes of brand A lightbulbs have a larger mean and a larger standard deviation than lifetimes of brand B lightbulbs, as shown in Display 4.11, then there is a higher proportion of long-life bulbs from brand A, but there may also be a higher proportion of short-life bulbs from brand A. A comparison of brands is not entirely resolved by a comparison of means. Although some statistical analysts find the unequal variance model more appealing for the two-sample problem, most of the standard methods for more complicated structures make use of a pooled estimate of variance. In that sense, the two-sample t-tools extend to more complicated situations more easily than does Welch’s t-test. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12 4.4 Alternatives for Paired Data 99 DISPLAY 4.11 The conceptual difficulty with comparing population means when population spreads are not the same On average, brand A bulbs last longer; but there is also a greater chance of early burnout with brand A. The question of which brand is better may be more complex than simply “Which mean is larger?” B Lifetimes of brand B lightbulbs Lifetimes of brand A lightbulbs A 4.4 ALTERNATIVES FOR PAIRED DATA Two resistant and distribution-free alternatives to the paired t-test are described here. The sign test is a tool for a quick analysis of paired data. If the sign test shows a substantial effect, that may be enough to resolve the answer to the question of interest. But it is not very efficient. If its results are inconclusive, the signed-rank test is a more powerful alternative. 4.4.1 The Sign Test The sign test is a quick, distribution-free test of the hypothesis that the mean differ- ence of a population of pairs is zero (for observational studies) or of the hypothesis that there is no treatment effect in a randomized paired experiment. It counts the number K of pairs where one group’s measurement exceeds the other’s. In the schizophrenia study (Section 2.1.2), the left hippocampus volume of the unaffected twin was larger than the left hippocampus volume of the affected twin for K D 14 out of the n D 15 twin pairs. If there were no systematic difference between affected and unaffected individuals, one would expect K to be near n=2, as both groups share equal chances for having the larger measurement. The sign test provides evidence against the null hypothesis whenever K is far from n=2. If the null hypothesis is true, the distribution of K is binomial, indexed by n D 15 trials and probability 0.5 of a positive difference in each trial. The chance of obtaining exactly k positive differences is given by Cn,k  .1=2/n (with Cn,k as defined in Section 4.3.1). The p-value is the sum of these chances for all values of k that are as far or farther from n=2 than is the observed value K. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 100 Chapter 4 Alternatives to the t-Tools 4.4.2 An approximation to the p-value comes from normal approximation to the binomial distribution. If the null hypothesis is true, then the Z-statistic K 􏰀 .n=2/ Z-statistic D pn=4 has approximately a standard normal distribution. A p-value is found as the propor- tion of a standard normal distribution that is farther from zero than the observed Z-statistic. The approximation can be improved with a continuity correction, by adding 1 to (or subtracting it from) the numerator of the Z-statistic, to make it 2 closer to zero. (Note: n is the number of observations with nonzero differences; we discard ties in using the sign test.) Example—Schizophrenia Since 14 of the 15 differences are positive, the exact one-sided p-value is the prob- ability that k is 14 plus the probability that k is 15. This is C15;14  .1=2/15 C C15;15  .1=2/15 D 15  .1=32;768/ C 1  .1=32;768/ D 0:00049. To illustrate the normal approximation, the Z-statistic with continuity correction is Œ14 􏰀 .15=2/ 􏰀 .1=2/ Z-statistic D p15=4 D 3:098; which produces an approximate one-sided p-value of 0.00097. The Wilcoxon Signed-Rank Test By retaining only the signs of the difference for each pair, the sign test completely obliterates the effects of outliers, but at the expense of losing potentially useful information about the relative magnitudes of the differences. The Wilcoxon signed- rank test uses the ranks of the magnitudes of the differences in addition to their signs. Since ranks are used, the procedure is resistant to outliers. Computation of the signed-rank statistic proceeds as follows. 1. Compute the difference in each of the n pairs. 2. Drop zeros from the list. 3. Order the absolute differences from smallest to largest and assign them their ranks 1; : : : ; n (or average rank for ties). 4. The signed-rank statistic, S, is the sum of the ranks from the pairs for which the difference is positive. The computation of S is illustrated in the schizophrenia data in Display 4.12, for the hypothesis that the mean difference is zero. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 4.12 Pair Signed-rank test statistic computations (schizophrenia study) Ordered Unaffected Affected Difference magnitude Order Rank + Ranks – Ranks 4.4 Alternatives for Paired Data 101 1 Ordertheabsolutedifferences and assign ranks to them. Exact p -Value 2 Signed-rank statistic = Sum of ranks for positive differences. An exact p-value for the signed-rank test is the proportion of all assignments of outcomes within each pair that lead to a test statistic as extreme as or more extreme than the one observed. Assignment refers to switching the group status but keep- ing the same observations within each pair. Within a single pair there are two possible assignments, so with n pairs there are a total of 2n possible assignments. The p-value is therefore the number of possible assignments that provide a sum of positive ranks as extreme as or more extreme than the observed one, divided by 2n. For the schizophrenia example, there are 15 pairs, so the labels “affected” and “unaffected” can be assigned to observations within pairs in 215 D 32;768 possible ways. The assignments that produce an S greater than or equal to 110.5 are those where the sum of the negative ranks is less than or equal to 9.5. By systematically examining the possible assignments with no negative ranks, one negative rank, two negative ranks, and so on, the following assignments (indi- cated by the ranks associated with a negative sign) are found to have a sum of negative ranks less than or equal to 9.5: (none), .1/, .2/, .3/, .4/, .5/, .6/, .7/, .8/, .9:5/, .9:5/, .1; 2/, .1; 3/, .1; 4/, .1; 5/, .1; 6/, .1; 7/, .1; 8/, .2; 3/, .2; 4/, .2; 5/, .2; 6/, .2;7/, .3;4/, .3;5/, .3;6/, .4;5/, .1;2;3/, .1;2;4/, .1;2;5/, .1;2;6/, .1;3;4/, .1;3;5/, and .2; 3; 4). There are 34 assignments with the sum of negative ranks less than or Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 102 Chapter 4 Alternatives to the t-Tools equal to 9.5, and hence 34 assignments with S greater than or equal to 110.5, so the exact one-sided p-value is 34=32;768 D 0:00104. Normal Approximation This method of directly counting more extreme cases in order to find the p-value can be replaced by tables or by computer-assisted counting. A normal approximation for convenient computation of an approximate p-value is available. The mean and standard deviation of S in its permutation distribution are Mean.S/ D n.n C 1/=4 and SD.S/ D Œn.n C 1/.2n C 1/=241=2: Comparing Z-statistic D ŒS 􏰀 Mean.S/=SD.S/, with a continuity correction, to a standard normal distribution gives a good approximation to the p-value for n  20. For the schizophrenia study, Mean.S/ D 60, SD.S/ D 17:61, so that Z-stat D 2:84. An approximate one-sided p-value is 0.00226. 4.5 RELATED ISSUES 4.5.1 Practical and Statistical Significance P-values indicate statistical significance, the extent to which a null hypothesis is contradicted by the data. This must be distinguished from practical significance, which describes the practical importance of the effect in question. A study may find a statistically significant increase in rainfall due to cloud seeding, but the amount of increase in rainfall, say 10%, may not be sufficient to justify the expense of seeding. A finding that annual male salaries tend to be $16.32 larger than female salaries, when annual incomes are on the order of $10,000, does not provide a strong indication of persistent discrimination, even if the dif- ference is statistically significant. A statistically significant reduction in time to complete a test problem may not be practically relevant if the reduction is only from 150 seconds to 147 seconds. These are issues of practical significance. They have little to do with statistics, but they are highly relevant to the interpretation of statistical analyses. It is important to understand the connection between sample size and statistical significance. If there is a difference in population means (no matter how practically insignificant), large enough samples should indicate the existence of a statistically significant difference. On the other hand, even if there is a practically significant difference in population means (that is, an important difference), a small sample size may fail to indicate the existence of a statistically significant difference between means. Three practical points deserve attention: 1. p-values are sample-size-dependent. 2. A result with a p-value of 0.08 can have more scientific relevance than one with a p-value of 0.001. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.5 Related Issues 103 3. Tests of hypotheses by themselves rarely convey the full significance of the results. They should be accompanied by confidence intervals to indicate the range of likely effects and to facilitate the assessment of practical significance. 4.5.2 The Presentation of Statistical Findings The Statistical Conclusions sections that accompany the case studies in this book are intended as models for communicating results. The following are some general recommendations. 1. State the conclusions as they apply to the question of interest and avoid statis- tical jargon and symbols, except to include appropriate measures of statistical uncertainty and to state which statistical tools were used. 2. Make clear exactly what is being estimated to answer a question of interest; for example, the difference in population means, a ratio of medians, or an additive treatment effect. 3. Prefer confidence intervals to standard errors, particularly when the estimate does not have a normal sampling (or randomization) distribution. 4. Use graphical displays to help convey important features of the data. 5. Do not include unnecessarily large numbers of digits in estimates or p-values. 6. If transformations have been used, express the results on the original scale of measurement. 7. Comment on the scope of inference. Was random assignment used? Was random sampling used? 4.5.3 Levene’s (Median) Test for Equality of Two Variances Sometimes a question of interest calls for a test of equality of two population variances. The F-test for equal variances and its associated confidence interval are available in standard statistical computer packages, but they are not robust against departures from normality. For example, p-values can easily be off by a factor of 10 if the distributions have shorter or longer tails than the normal. A robust alternative is Levene’s test (based on deviations from the median). Suppose there are n1 observations Y1i from population 1, and n2 observations Y2i from population 2. Let Z1i be the absolute value of the deviation of the ith observation in group 1 from its group median: jY1i 􏰀 median1j, and let Z2i be the absolute value of the deviation of the ith observation in group 2 from its median: jY2i 􏰀median2j. The typical size of the Z’s indicates the degree of variability in each group. The Levene test idea is to perform a two-sample t-test on the Z’s to judge equal variability in the two groups. This procedure seems to have good power in detecting nonequal variability yet works well even for nonnormally distributed Y ’s. Example—Sex Discrimination The data of Section 1.1.2 are used here to illustrate Levene’s test for the hypothesis that the variance of male salaries is equal to the variance of female salaries. The test compares the 32 absolute deviations from group median of the males to the 61 absolute deviations for the females. The t-statistic is 0.4331 and the two-sided Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 104 Chapter 4 Alternatives to the t-Tools 4.5.4 p-value, by comparison to a t-distribution on 91 degrees of freedom, is 0.67. Thus Levene’s test gives no evidence that the variances are unequal. Survey Sampling Survey sampling concerns selecting members of a specific (finite) population to be included in a survey and the subsequent analysis. One sampling method already discussed is simple random sampling, in which each subset of n items from the pop- ulation has the same chance of being selected as the sample. This is appealing for its mathematical and conceptual simplicity, but is often practically unrealistic. The prohibitive part of finding a simple random sample of American voters, for example, is first finding a list of all American voters. Instead of simple random sampling, survey organizations rely on complex sam- pling designs, which make use of stratification, multistage sampling, and cluster sampling. In stratified sampling, the population is divided into strata, based on sup- plementary information, and separate simple random samples are selected for each stratum. For example, samples of American voters may be taken separately for different states. Multistage sampling, as its name suggests, uses sampling at different stages. For example, a random sample of states is taken, then random samples of counties are taken within the selected states, and then random samples of indi- viduals are selected from lists in the chosen counties. In cluster sampling, a simple random sample of clusters is selected at some stage of the sampling and all mem- bers within the cluster are included in the survey. For example, a random sample of households (the clusters) in a county may be selected and all voters in each household surveyed. Standard Errors from Complex Sampling Designs The formulas for standard errors so far presented are based on simple random sampling with replacement, which means that a member of a population can appear in a sample more than once. Random sampling in sample surveys, however, is conducted without replacement and does not permit a member to appear in a sample twice. Consequently, different standard errors must be calculated. The variance of an average from random sampling without replacement differs from that with replacement by a multiplicative factor called the finite population correction (FPC). If N is the population size and n the sample size, FPC D .N 􏰀 n/=N . So the difference is small if only a small fraction of the population is sampled. In addition, the usual standard errors are inappropriate for data from complex sampling designs. The ratio of the sampling variance of an estimate from data based on a particular sampling design to the sampling variance it would have had if it was based on a simple random sample of the same size is called the design effect. Design effects for estimates from complex stratified, multistage sampling designs are usually greater than 1. Therefore, application of standard statistical theory to complex sampling designs usually results in an overstatement of the degree of precision. For example, confidence intervals will be narrower than they really should be. Methods for obtaining correct standard errors are discussed in texts on survey sampling. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.6 Summary 105 Nonresponse Of 979 Vietnam veterans who were deemed to be eligible for the study in Sec- tion 3.1.2, only 900 were located, only 871 of those completed the first interview, only 665 of those were available for blood samples, and only 646 of those had valid dioxin readings. Assuming the 979 represented the population of interest, is there any danger in using the available 646 (66%) who responded and provided valid results to represent the population? The answer depends on whether those who were lost along the way differed in their dioxin levels from those who were not. The question that must be asked is whether or not being unavailable or not providing valid results had anything to do with dioxin level. If not, there is little harm in ignoring the nonresponders. In sample surveys, the issue is usually much more serious, since those individ- uals who tend to respond to surveys often have much different views from those who do not. As an illustration, consider the popular telephone-in surveys that news programs run after presidential debates. Viewers call in (and have to pay for their calls) to indicate who they think won. Although this is entertaining, the results give an entirely unreliable indication of what all viewers think, since those who respond tend to be a quite different crowd from those who do not. 4.6 SUMMARY The Space Shuttle O-Ring Study The main feature of these data is that the two-sample t-tools cannot be relied on to provide valid measures of uncertainty. They are not sufficiently robust with such small, unbalanced samples of discrete data. The permutation test, however, can be applied, because it does not rely on any distributional assumptions. The computations are tedious, and inferences apply only to the 24 launches. It should be mentioned that some information is lost due to the form in which the data are presented. They have been rather artificially divided into cool temper- ature launches and warm temperature launches, whereas the actual temperature data for each launch are available. The more advanced method of Poisson log-linear regression is applied to these data in Chapter 22. The Cognitive Load Study These data from a randomized experiment could be suitably analyzed with any of a number of techniques if it were not for the censoring of five observations. Without having actual completion times for these five students, it is impossible to take an average. The rank-sum test is convenient in this case since one only needs to know that these five students were tied for last. It can be used to test for an additive treatment effect and, with some effort, to provide a confidence interval for the treatment effect. It should be mentioned that the rank-sum test is not suitable for censored observations if the rank of the censored observation cannot be determined. Thus, it Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 106 Chapter 4 Alternatives to the t-Tools is limited to handling censoring for data problems like this one, in which a number of censored observations are tied for last. 4.7 EXERCISES Conceptual Exercises 1. Cognitive Load. Suppose that there were two textbooks on coordinate geometry, one written with conventional worked problems and the other with modified worked problems. And suppose it is possible to identify a number of schools in which each of the textbooks is used. If you took random samples of size 14 from schools with each text and obtained exactly the same data as in the example in Section 4.1.2, would the analysis and conclusions be the same? 2. O-Ring Data. (a) Is it appropriate to use the two-sample t-test to compare the number of O-ring incidents in cold and warm launches? (b) Is it appropriate to use the rank-sum test? (c) Is it appropriate to use a permutation test based on the t-statistic? 3. O-Ring Data. When these data were analyzed prior to the Challenger disaster it was noticed that variability was greater in the group with the larger average, so a log transformation was used. Since the log of zero does not exist, all the zeros were deleted from the data set. Does this seem like a reasonable approach? 4. O-Ring Data. Explain why the two-sided p-value from the permutation test applied to the O-ring data is equal to the one-sided p-value (see Display 4.10). 5. O-Ring Data. If you looked at the source of the O-ring data and found that temperatures for each launch were recorded in degrees F rather than as over/under 65ıF, what question would that raise? Would the answer affect your conclusions about the analysis? 6. Motivation and Creativity. In what way is the p-value for the motivation and creativity randomized experiment (Section 1.1.1) dependent on an assumed model? 7. Are there occasions when both the two-sample t-test and the rank-sum test are appropriate? 8. Can the rank-sum test be used for comparing populations with unequal variances? 9. Suppose that two drugs are both effective in prolonging length of life after a heart attack. Substantial statistical evidence indicates that the mean life length for those using drug A is greater than the mean life length for those using drug B, but the variation of life lengths for drug A is substantially greater as well. Explain why it is difficult to conclude that drug A is better even though the mean life length is greater. 10. In a certain problem, the randomization test produces an exact two-sided p-value of 0.053, while the t-distribution approximation produces 0.047. One might say that since the p-values are on opposite sides of 0.05, they lead to quite different conclusions and, therefore, the approximation is not adequate. Comment on this statement. 11. What is the difference between a permutation test and a randomization test? 12. Explain what is meant by the comment that there is no single test called a randomization test. 13. What confounding factors are possible in the O-ring failure problem? Computational Exercises 14. O-Ring Study. Find the t-distribution approximation to the p-value associated with the observed t-statistic. Compare this approximation to the (correct) permutation test p-value. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.7 Exercises 107 15. Consider these artificial data: Group 1: Group 2: 1 5 4 8 9 The difference in averages Y 1 􏰀 Y 2 is 􏰀4. What is a one-sided p-value from the permutation distribution of the difference in averages? (Hint: List the 10 possible groupings; compute the dif- ference in averages for each of these groupings, then calculate the proportion of these less than or equal to 􏰀4.) 16. Consider these artificial data: Group 1: 5 7 12 Group 2: 4 6 Calculate a p-value for the hypothesis of no difference, using the permutation distribution of the difference in sample averages. (You do not need to calculate the t-statistic for each grouping, only the difference in averages.) 17. O-Ring Study. Suppose the O-ring data had actually turned out as shown in Display 4.13. These are the same 24 numbers as before, but with the 2 and 3 switched. What is the one-sided p-value from the permutation test applied to the t-statistic? (This can be answered by examining Display 4.10.) DISPLAY 4.13 Hypothetical O-ring data Launch temperature Number of O-ring incidents 18. Suppose that six persons have an illness. Three are randomly chosen to receive an experimental treatment, and the remaining three serve as a control group. After treatment, a physician examines all subjects and assigns ranks to the severity of their symptoms. The patient with the most severe condition has rank 1, the next most severe has rank 2, and so on up to 6. It turns out that the patients in the treatment group have ranks 3, 5, and 6. The patients in the control group have ranks 1, 2, and 4. Is there any evidence that the treatment has an effect on the severity of symptoms? Use the randomization distribution of the sum of ranks in the treatment group to obtain a p-value. (First find the sum of ranks in the treatment group. Then write down all 20 groupings of the 6 ranks; calculate the sum of ranks in the treatment group for each. What proportion of these give a rank-sum as large as or larger than the observed one?) 19. Bumpus’s Study. Use a statistical computer program to perform the rank-sum comparison of humerus lengths in the sparrows that survived and the sparrows that perished (Exercise 2.21). (a) What is the two-sided p-value? (b) Does the statistical computer package report the exact p-value or the one based on the normal approximation? (c) If it reports the one using the normal approximation, does it use a continuity correction to the Z-statistic? (d) How does the p-value from the rank-sum test compare to the one from the two-sample t-test (0.08) and the one from the two-sample t-test when the smallest observation is set aside (see Chapter 3, Exercise 28)? (e) Explain the relative merits of (i) the two-sample t-test using the strategy for dealing with outliers and (ii) the rank-sum test. 20. Trauma and Metabolic Expenditure. For the data in Exercise 18 in Chapter 3: (a) Determine the rank transformations for the data. (b) Calculate the rank-sum statistic by hand (taking the trauma Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 108 Chapter 4 Alternatives to the t-Tools patients to be group 1.) (c) Mimic the procedures used in Display 4.5 and Display 4.7 to compute the Z-statistic. (d) Find the one-sided p-value as the proportion of a standard normal distribution larger than the observed Z-statistic. 21. Trauma and Metabolic Expenditure. Use a statistical computer package to verify the rank-sum and the Z-statistic obtained in Exercise 20. Is the p-value the same? (Does the statistical package use a continuity correction?) 22. Trauma and Metabolic Expenditure. Using the rank-sum procedure, find a 95% confidence interval for the difference in population medians: the median metabolic expenditure for the popu- lation of trauma patients minus the median metabolic expenditure for the population of nontrauma patients. 23. Motivation and Creativity. Use a statistical computer package to compute the randomization test’s two-sided p-value for testing whether the treatment effect is zero for the data in Section 1.1.1 (file case0101). How does this compare to the results from the two-sample t-test (which is used as an approximation to the randomization test)? 24. Motivation and Creativity. Find a 95% confidence interval for the treatment effect (poem creativity score after intrinsic motivation questionnaire minus poem creativity score after extrinsic motivation questionnaire, from Section 1.1.1 (file case0101)) using the rank-sum procedure. (Use a statistical computer program.) How does this compare to the t-based confidence interval for the treatment effect? 25. Guinea Pig Lifetimes. Use the Welch t-tools to find a two-sided p-value and confidence inter- val for the effect of treatment on lifetimes of guinea pigs in Chapter 2, Exercise 11. Does the additive treatment effect seem like a sensible model for these data? 26. Schizophrenia Study. (a) Draw a histogram of the differences in hippocampus volumes in Display 4.12. Is there evidence that the population of differences is skewed? (b) Take the logarithms of the volumes for each of the 30 subjects, take the differences of the log volumes, and draw a histogram of these differences. Does it appear that the distribution of differences of log volumes is more nearly symmetric? (c) Carry out the paired t -test on the log-transformed volumes. How does the two-sided p-value compare with the one obtained on the untransformed data? (d) Find an estimate of and 95% confidence interval for the mean difference in log volumes. Back-transform these to get an estimate and confidence interval for the median of the population of ratios of volumes. 27. Schizophrenia Study. Find the two-sided p-value using the signed-rank test, as in Dis- play 4.12, but after taking a log transformation of the hippocampus volumes. How does the p-value compare to the one from the untransformed data? Is it apparent from histograms that the assumptions behind the signed-rank test are more appropriate on one of these scales? 28. Darwin Data. Charles Darwin carried out an experiment to study whether seedlings from cross-fertilized plants tend to be superior to those from self-fertilized plants. He covered a number of plants with fine netting so that insects would be unable to fertilize them. He fertilized a number of flowers on each plant with their own pollen and he fertilized an equal number of flowers on the same plant with pollen from a distant plant. (He did not say how he decided which flowers received which treatments.) The seeds from the flowers were allowed to ripen and were set in wet sand to germinate. He placed two seedlings of the same age in a pot, one from a seed from a self-fertilized flower and one from a seed from a cross-fertilized flower. The data in Display 4.14 are the heights of the plants at certain points in time. (The fertilization experiments were described by Darwin in an 1878 book; these data were found in D. F. Andrews and A. M. Herzberg, Data (New York: Springer–Verlag, 1985), pp. 9–12.) (a) Draw a histogram of the differences. (b) Find a two-sided p-value for the hypothesis of no treatment effect, using the paired t-test. (c) Find a 95% confidence interval for the additive treatment effect. (d) Is there any indication from the plot in (a) that the paired Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.7 Exercises 109 Darwin’s data: heights (inches) for 15 pairs of plants of the same age, one of which was grown DISPLAY 4.14 from a seed from a cross-fertilized flower and the other of which was grown from a seed from a self-fertilized flower; first 5 of 15 rows Plant height (inches) Pair Cross-fertilized Self-fertilized t-test may be inappropriate? (e) Find a two-sided p-value for the hypothesis of no treatment effect for the data in Display 4.14, using the signed-rank test. Data Problems 29. Salvage Logging. When wildfires ravage forests, the timber industry argues that logging the burned trees enhances forest recovery. The 2002 Biscuit Fire in southwest Oregon provided a test case. Researchers selected 16 fire-affected plots in 2004—before any logging was done—and counted tree seedlings along a randomly located transect pattern in each plot. They returned in 2005, after nine of the plots had been logged, and counted the tree seedlings along the same transects. (Data from D.C. Donato et al., 2006. “Post-Wildfire Logging Hinders Regeneration and Increases Fire Risk,” Science, 311: 352.) The numbers of seedlings in the logged (L) and unlogged (U) plots are shown in Display 4.15. DISPLAY 4.15 Number of tree seedlings per transect in nine logged (L) and seven unlogged (U) plots affected by the Biscuit Fire, in 2004 and 2005, and the percentage of seedlings lost between 2004 and 2005; first 5 of 16 rows Plot Plot 1 Plot 2 Plot 3 Plot 4 Plot 5 Action Seedlings2004 L 298 L 471 L 767 L 576 L 407 Seedlings2005 PercentLost 164 45.0 221 53.1 454 40.8 141 75.5 217 46.7 Analyze the data to see whether logging has any effect on the distribution of percentage of seedlings lost between 2004 and 2005, possibly using the following suggestions: (a) Use the rank- sum procedure to test for a difference between logged and unlogged plots. Also use the procedure to construct a 95% confidence interval on the difference in medians. (b) Use the t-tools to test for differences in mean percentages lost and to construct a 95% confidence interval. Compare the results with those in (a). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 110 Chapter 4 Alternatives to the t-Tools DISPLAY 4.16 Tolerance to sunlight (minutes) for 13 patients prior to treatment and after treatment with a sunscreen; first 5 of 13 rows Tolerance to sunlight (minutes) Patient Pretreatment During treatment Months of survival after beginning of study for 58 breast cancer patients 122-month study period. 30. Sunlight Protection Factor. A sunscreen sunlight protection factor (SPF) of 5 means that a person who can tolerate Y minutes of sunlight without the sunscreen can tolerate 5Y minutes of sunlight with the sunscreen. The data in Display 4.16 are the times in minutes that 13 patients could tolerate the sun (a) before receiving treatment and (b) after receiving a particular sunscreen treatment. (Data from R. M. Fusaro and J. A. Johnson, “Sunlight Protection for Erythropoietic Protoporphyria Patients,” Journal of the American Medical Association 229(11) (1974): 1420.) Analyze the data to estimate and provide a confidence interval for the sunlight protection factor. Comment on whether there are any obvious potentially confounding variables in this study. 31. Effect of Group Therapy on Survival of Breast Cancer Patients. Researchers randomly assigned metastatic breast cancer patients to either a control group or a group that received weekly 90-minute sessions of group therapy and self-hypnosis, to see whether the latter treatment improved the patients’ quality of life. The group therapy involved discussion and support for coping with the disease, but the patients were not led to believe that the therapy would affect the progression of their disease. Surprisingly, it was noticed in a follow-up 10 years later that the group therapy patients appeared to have lived longer. The data on number of months of survival after beginning of the study are shown in Display 4.17. (Data from a graph in D. Spiegel, J. R. Bloom, H. C. Kraemer, and E. Gottheil, “Effect of Psychosocial Treatment on Survival of Patients with Metastatic Breast Cancer,” Lancet (October 14, 1989): 888–91.) Notice that three of the women in the treatment group were still alive at the time of the follow-up, so their survival times are only known to be larger than 122 months. Is there indeed evidence of an effect of the group therapy treatment on survival time and, if so, how much more time can a breast cancer patient expect to live if she receives this therapy? Analyze the data as best as possible and write a brief report of the findings. 32. Therapeutic Marijuana. Nausea and vomiting are frequent side effects of cancer chemo- therapy, which can contribute to the decreased ability of patients to undergo long-term chemotherapy DISPLAY 4.17 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.7 Exercises 111 DISPLAY 4.18 Number of vomiting and retching episodes for 15 chemotherapy-receiving cancer patients, under placebo and marijuana treatments; first 5 of 15 rows Total number of vomiting and retching episodes Subject number Marijuana Placebo schedules. To investigate the capacity of marijuana to reduce these side effects, researchers performed a double-blind, randomized, crossover trial. Fifteen cancer patients on chemotherapy schedules were randomly assigned to receive either a marijuana treatment or a placebo treatment after their first three chemotherapy sessions, and then “crossed over” to the opposite treatment after their next three sessions. The treatments, which involved both cigarettes and pills, were made to appear the same whether in active or placebo form. Shown in Display 4.18 are the number of vomiting and retching episodes for the 15 subjects. Does marijuana treatment reduce the frequency of episodes? By how much? Analyze the data and write a statistical summary of conclusions. (Data from A. E. Chang et al., “Delta-9-Tetrahydrocannabinol as an Antiemetic in Cancer Patients Receiving High-Dose Methotrexate,” Annals of Internal Medicine, Dec. 1979. The order of the treatments is unavailable.) Answers to Conceptual Exercises 1. The analysis would be the same. The conclusions would be very different. You could infer a real difference in the solution times of the two groups, but you could not attribute it to the different text types because of the possibility of a host of confounding factors. 2. (a) No, the extent of the nonnormality in these small and unequally sized samples is more than can be tolerated by the two-sample t-test. (b) Probably not. The spreads apparently are not equal. (c) Yes. The permutation test for significance requires no model or assumptions. 3. No! Observations cannot be deleted simply because the transformation does not work on them. In this case, a major portion of the data was deleted, leaving a very misleading picture. 4. There are 105 groupings that lead to t-statistics greater than or equal to 3.888 and no groupings that lead to t-statistics less than or equal to 􏰀3:888. 5. Was the 65ıF cutoff chosen to maximize the apparent difference in the two groups? If so, the p- value would not be correct. Why? Because the p-value represents the chance of getting evidence as damaging to the hypothesis when there is no difference. The “chance” is the frequency of occurrence in replications of the study, using the same statistical analysis. The p-value calculation assumes that the 65ı F cutoff will always define the groups. If the choice of cutoff was part of the statistical analysis used on this data set, the calculation was not correct. To get a correct p-value would require that you allow for a different cutoff to be chosen in each replication. Further discussion of data snooping is given in Chapter 6. 6. The p-value is based on the two-sample t-test but it is now understood that this p-value serves as an approximation to the p-value from the exact randomization test. For this approximation to be valid, the histograms of creativity scores should be reasonably normal (which they are). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 112 Chapter 4 Alternatives to the t-Tools 7. Yes. Since the population model for the t-tools requires that the populations be normal with equal spread they will necessarily have the same shape and spread. Therefore, the assumptions for the rank-sum test are also satisfied. 8. Yes, but the meaning may be unclear if the variances are substantially unequal. 9. Generally, it is hard to make use of the difference in the centers of two distributions when the spreads are quite different. Specifically, the mean life length for drug A may be longer, but more people who use it may die sooner than for drug B. 10. The statement takes the rejection region approach too literally. There is very little differ- ence in the degree of evidence against the null hypothesis in p-values of 0.053 and 0.047, so the approximation is pretty good. 11. A randomization test is a permutation test applied to data from a randomized experiment. 12. There is a different permutation distribution for each statistic that can be calculated from the data. 13. Perhaps workers tended to make more mistakes in cold weather or wind stress was greater on days with cold weather. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 5 Comparisons Among Several Samples The issues and tools associated with the analysis of three or more independent samples (or treatment groups in a randomized experiment) are very similar to those for comparing two samples. Notable differences, however, stem from the particular kinds of questions and the greater number of them that may be asked. An initial question, often asked in a preliminary stage of the analysis, is whether all of the means are equal. An easy-to-use F -test is available for investigating this. A typical analysis, however, goes beyond the F -test and explores linear combina- tions of the means to address particular questions of interest. A simple example of a linear combination of means is 3 􏰀 1, the difference between means in pop- ulations 3 and 1. Inferences about this parameter can be made with t-tools just as for the two-independent-sample problem, with the important difference that the pooled estimate of standard deviation is from all groups, not just from those being compared. This chapter discusses the use of the pooled estimate of variance for specific linear combinations of means and the one-way analysis of variance F -test for test- ing the equality of several means. The next chapter looks at linear combinations more generally and the problem of compounded uncertainty from the multiple, simultaneous comparisons of means. 113 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 114 Chapter 5 Comparisons Among Several Samples 5.1 CASE STUDIES 5.1.1 Diet Restriction and Longevity—A Randomized Experiment A series of studies involving several species of animals found that restricting caloric intake can dramatically increase life expectancy. In one such study, female mice were randomly assigned to one of the following six treatment groups: 1. NP: Mice in this group ate as much as they pleased of a nonpurified, standard diet for laboratory mice. 2. N/N85: This group was fed normally both before and after weaning. (The slash distinguishes the two periods.) After weaning, the ration was controlled at 85kcal/wk. This, rather than NP, serves as the control group because caloric intake is held reasonably constant. 3. N/R50: This group was fed a normal diet before weaning and a reduced-calorie diet of 50 kcal/wk after weaning. 4. R/R50: This group was fed a reduced-calorie diet of 50 kcal/wk both before and after weaning. 5. N/R50 lopro: This group was fed a normal diet before weaning, a restricted diet of 50kcal/wk after weaning, and had dietary protein content decreased with advancing age. 6. N/R40: This group was fed normally before weaning and was given a severely reduced diet of 40 kcal/wk after weaning. Display 5.1 shows side-by-side box plots for the lifetimes, measured in months, of the mice in the six groups. Summary statistics and sample sizes are reported in DISPLAY 5.1 Lifetimes of female mice fed on six different diet regimens 60 50 40 30 20 10 0 Diet: n: 49 57 71 56 56 60 NP N/N85 N/R50 R/R50 N/R50 lopro N/R40 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Months Survived DISPLAY 5.2 Group Summary statistics for lifetimes of mice on six different diet regimens n Range (months) Average SD 95% CI for mean DISPLAY 5.3 Display 5.2. (Data from R. Weindruch, R. L. Walford, S. Fligiel, and D. Guthrie, “The Retardation of Aging in Mice by Dietary Restriction: Longevity, Cancer, Immunity and Lifetime Energy Intake,” Journal of Nutrition 116(4) (1986): 641–54.) The questions of interest involve specific comparisons of treatments as dia- grammed in Display 5.3. Specifically, (a) Does lifetime on the 50 kcal/wk diet exceed Structure of planned comparisons among groups in the diet restriction study 5.1 Case Studies 115 (a) Does reducing from 85 to 50 kcal/wk increase lifespan? N/R50 lopro N/N85 (control) N/R50 NP (d) Does reduction in protein, with same calories, change lifetime distribution? N/R40 R/R50 (c) Does further reduction from 50 to 40 kcal/wk increase lifespan more? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. (e) Do control mice have same lifetimes as the laboratory mice? (b) Is there an effect of preweaning diet restriction? 116 Chapter 5 Comparisons Among Several Samples the lifetime on the 85 kcal/wk diet? If so, by how much? (This calls for a compari- son of the N/R50 group to the N/N85 group.) (b) Is lifetime affected by providing a reduced calorie diet before weaning, given that a 50 kcal/wk diet is provided after weaning? (This calls for a comparison of the R/R50 group to the N/R50 group.) (c) Does lifetime on the 40 kcal/wk diet exceed the lifetime on the 50 kcal/wk diet? (This calls for a comparison of the N/R40 group to the N/R50 group.) (d) Given a reduced calorie diet of 50kcal/week, is there any additional effect on lifetime due to decreasing the protein intake? (This calls for a comparison of the N/R50 lopro diet to the N/R50 diet.) (e) Is there an effect on lifetime due to restriction at 85 kcal/week? This would indicate the extent to which the 85 kcal/wk diet served as a proper control and possibly whether there was any effect of restricting the diet, even with a standard caloric intake. (This calls for a comparison of the N/N85 group to the NP group.) Comparisons other than those indicated by the arrows are not directly meaningful because the group treatments differ in more than one way. The N/R50 lopro and the N/R40 groups, for example, differ in both the protein composition and the total calories in the diet, so a difference would be difficult to attribute to a single cause. Statistical Conclusion These data provide overwhelming evidence that mean lifetimes in the six groups are different (p-value < 0:0001; analysis of variance F-test). Answers to the five particular questions are indicated as follows: (a) There is convincing evidence that lifetime is increased as a result of restricting the diet from 85kcal/wk to 50kcal/wk (one-sided p-value < 0:0001; t-test). The increase is estimated to be 9.6 months (95% confidence interval: 7.3 to 11.9 months). (b) There is no evidence that reducing the calories before weaning increased life- time, when the calorie intake after weaning is 50 kcal/wk (one-sided p-value D 0:32; t-test). A 95% confidence interval for the amount by which the lifetime under the R/R50 diet exceeds the lifetime under the N/R50 diet is 􏰀1:7 to 2.9 months. (c) Further restriction of the diet from 50 to 40kcal/wk increases lifetime by an estimated 2.8 months (95% confidence interval: 0.5 to 5.1 months). The evidence that this effect is greater than zero is moderate (one-sided p-value D 0:017; t -test). (The combined effect of the reduction from 85 to 40 kcal/wk is estimated to be 12.4 months. This is a 38% increase in mean lifetime. If extended to human subjects, a 50% reduction in caloric intake might increase typical lifetimes—of 80 years—to 110 years.) (d) There was moderate evidence that lifetime was decreased by the lowering of protein in addition to the 50 kcal/wk diet (two-sided p-value D 0:024; t-test). The estimated decrease in lifetime is 2.6 months (95% confidence interval: 0.3 to 4.9 months). (e) There is convincing evidence that the control mice live longer than the mice on the nonpurified diet (one-sided p-value < 0:0001). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.1 Case Studies 117 5.1.2 The Spock Conspiracy Trial—An Observational Study In 1968 Dr. Benjamin Spock was tried in United States District Court of Mas- sachusetts in Boston on charges of conspiring to violate the Selective Service Act by encouraging young men to resist being drafted into military service for Vietnam. The defense in that case challenged the method by which jurors were selected, claim- ing that women—many of whom had raised children according to popular methods developed by Dr. Spock—were underrepresented. In fact, the Spock jury had no women. Boston area juries are selected in three stages. From the City Directory, the Clerk of the Court selects at random 300 names for potential jury duty. Before a trial, a venire of 30 or more jurors is selected from the 300 names, again—according to the law—at random. An actual jury is selected from the venire in a nonrandom process allowing each side to exclude certain jurors for a variety of reasons. The Spock defense pointed to the venire for their trial, which contained only one woman. That woman was released by the prosecution, making an all-male jury. Defense argued that the judge in the trial had a history of venires in which women were systematically underrepresented, contrary to the law. They compared this district judge’s recent venires with the venires of six other Boston area district judges. The percents of women in those venires are presented in Display 5.4 as stem- and-leaf diagrams. (Data from H. Zeisel and H. Kalven, Jr., “Parking Tickets, and Missing Women: Statistics and the Law,” in J. M. Tanur, F. Mosteller, W. H. Kruskal, R. F. Link, R. S. Pieters, and G. R. Rising, eds., Statistics: A Guide to the Unknown, San Francisco: Holden-Day, 1972.) There are two key questions: (1) Is there evidence that women are underrep- resented on the Spock judge’s venires compared to the venires of the other judges? and (2) Is there any evidence that there are differences in women’s representation in the venires of the other six judges? The first question addresses the key issue, but the second question has considerable bearing on the interpretation of the first. If the other judges all had about the same percentage of women on their venires while the Spock judge had significantly fewer women, this would make a strong statement Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 5.4 Percents of women in 30-juror venires for Boston area U.S. District Court trials, grouped according to the judge presiding Spock Trial Other Boston Area U.S. District Court Judges Judge A B C D E F 0 1 2 3 4 64,87 33,36,50,52,77,86 68 31 77,97 65 43,97 15,79 07,35,64,67,95,98 48 19,62 02 70,89 10,34,75,75 08,36 20,27,55 05,19,25,38,38 05,89 56 Legend: 4 89 represents a venire with 48.9% women. 118 Chapter 5 Comparisons Among Several Samples about that particular judge. But if the percentages of women in the venires of the other judges are all different, this would put a very different perspective on any difference that the Spock judge’s venires would have from the average of the other judges’ venires. Statistical Conclusion As evident from the box plots in Display 5.5, the percentages of women on Spock’s judge’s venires (with an average of 15%) were substantially lower than those of the other judges (with an average of 30%). The one-sided p-value from a two-sample t- test comparing the mean percentage of Spock’s judge to the mean percentage of all others combined is less than 0.000001. This choice of comparison, which combines the venires from the six other judges into a single group, is supported by a lack of significant differences among the other judges (p-value D 0:32 from a one-way analysis of variance F -test of whether the mean percentage is the same for judges A–F). It is estimated that the mean percentage of women on Spock judge’s venires is 15% less than the mean of other venires (with a 95% confidence interval of 10% to 20%). (Note: A separate approach that does not combine venires from judges A–F into a single group is detailed in Section 6.2.3, and yields essentially the same conclusion.) Scope of Inference There is no indication that the venires in this observational study were randomly selected, so inference to some population is speculative. Thinking of the p-values as approximate p-values for permutation tests, however, leads one to conclude that the Spock judge did have a lower proportion of females on his venires than did the other judges—more so than can be explained by chance. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 5.5 Percentages of women on venires of the seven Boston area judges 50 40 30 20 10 Judge: Spock’s A n: 9 5 6 9 2 6 9 B C D E F Percentage of Women 5.2 Comparing Any Two of the Several Means 119 5.2 COMPARING ANY TWO OF THE SEVERAL MEANS When subjects in a study are divided into distinct experimental or observational categories, the study itself is said to be a several-group problem, or a one-way classi- fication problem. Mice were divided into six experimental groups; samples of venires were obtained for seven judges. A typical analysis of several-group data involves graphical exploration (like side-by-side box plots), consideration of transformations, initial screening to evaluate differences among all groups, and inferential techniques chosen to specifically address the questions of interest. In the two-sample problem the questions of interest require inference about 2 􏰀 1: In the several-sample problem the questions of interest may involve a few pairwise differences of means, like 2 􏰀 1 and 3 􏰀 1; all possible pairwise differences of means; or specific linear combinations of means, like Œ􏰀11CŒ.1=2/2CŒ.1=2/3: This aspect of the data structure requires careful attention to how the questions of interest can be addressed through model parameters. If there are multiple questions, as, for example, “Does group 1 differ from group 2, does group 1 differ from group 3, and does group 2 differ from group 3?” then attention to interpretations of multiple, simultaneous statistical inferences is important. This multiple comparison problem is discussed further in the next chapter. For now, the discussion focuses on the single comparison of any two means. 5.2.1 An Ideal Model for Several-Sample Comparisons The ideal population model, upon which the standard tools are derived, is a straightforward extension of the normal model for two-sample comparisons: (1) The populations have normal distributions. (2) The population standard deviations are all the same. (3) Observations within each sample are independent of each other. (4) Observations in any one sample are independent of observations in other samples. As in the two-sample problem, the equal standard deviation model is enter- tained not because all data sets with several groups of measurements necessarily fit the description but because (1) it is conceptually difficult to compare populations with unequal variability, (2) it is statistically difficult as well, (3) for many problems a treatment is associated with an effect on the mean but not on the standard devi- ation, and (4) for many problems with unequal standard deviations it is possible to transform the data in such a way that the equal-spread model is valid on the transformed scale. Notation The symbols for population parameters are the same as before. A population mean is denoted by the Greek letter  with a subscript indicating its group. The Greek letter  is used to represent the standard deviation common to all the sampled populations. The number of samples will be represented by I, and the number of Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 120 Chapter 5 Comparisons Among Several Samples 5.2.2 observations within the ith sample will be represented by ni. The total number of observations from all groups combined will be n D n1 C n2 C    C nI . There are I C 1 parameters in the ideal model—the I means 1; 2; : : : ; I ; and the single standard deviation . Treatment Effects for Randomized Experiments The discussion that follows in this chapter will continue to use the terminology of samples rather than of treatment groups, even though the methods also apply to data from randomized experiments with I treatment groups. An additive treatment effect model asserts that an experimental unit that would produce a response of Y1 on treatment 1 would produce a response of Y1 C ı1 on treatment 2, Y1 C ı2 on treatment 3, and so on. As before, exact randomization tests are available for inferences about the ı’s, but approximations based on the tools developed for random samples from populations are usually adequate. The practical upshot is that data from randomized experiments will be analyzed in exactly the same way as samples from populations, but concluding statements will be worded in terms of treatment effects rather than differences in population means. The Pooled Estimate of the Standard Deviation The mean from the ith population, i, is estimated by the average from the ith sample, Yi. The variance 2 is estimated separately by si2 from each of the I samples. If all the sample sizes are equal, then the best single estimate of 2 is their average. When the samples have different numbers of observations, a weighted average is more appropriate, where the estimates from larger samples are given more weight than those from smaller samples. The pooled estimate of variance, sp2 , is a weighted average of sample variances in which each sample variance receives the weight of its degrees of freedom: Its associated degrees of freedom are the sum of degrees of freedom from all samples, n 􏰀 I . An illustration of the calculations for the diet restriction data is shown in Display 5.6. t-Tests and Confidence Intervals for Differences of Means If Yi is the average based on a sample from the population with mean i and variance i2, and if Yj is the average based on an independent sample from the population with mean j and variance j2, then the sampling distribution of Yi 􏰀 Yj has variance i2=ni Cj2=nj : If the two population variances are equal, this reduces to 2Œ.1=ni / C .1=nj /: This may be estimated by replacing the unknown 2 by 2 .n1 􏰀1/s12 C.n2 􏰀1/s2 CC.nI 􏰀1/sI2 sp D .n1 􏰀1/C.n2 􏰀1/CC.nI 􏰀1/ : 5.2.3 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 5.6 Group Pooled estimate of standard deviation; diet restriction data 5.3 The One-Way Analysis of Variance F-Test 121 n Sample SD its best estimate. The important aspect of this in the one-way classification is that if the variances from all I populations can be assumed to be equal, then the best estimate is the pooled estimate of variance from all groups. So, for example, the standard error of Y3 􏰀 Y2 is SE.Y3􏰀Y2/Dsps1 C 1; n3 n2 where sp is the pooled estimate from all groups, with .n 􏰀 I / degrees of freedom. The theory leading to confidence intervals and tests is the same as for the two-independent-sample problem. In this case the t-ratio has a t distribution on n 􏰀 I degrees of freedom. A 95% confidence interval for 3 􏰀 2 is .Y3 􏰀 Y2/ ̇ tn􏰀I .0:975/  SE.Y3 􏰀 Y2/ and a t-statistic for testing the hypothesis that 3 􏰀 2 equals zero is .Y3 􏰀 Y2/=SE.Y3 􏰀 Y2/: These are illustrated in Display 5.7. 5.3 THE ONE-WAY ANALYSIS OF VARIANCE F-TEST One question often asked, possibly in a first stage of the analysis, is “are there differences between any of the means?” The analysis of variance (ANOVA) F -test provides evidence in answer to this question. The term variance should not mislead; this is most definitely a test about means. It assesses mean differences by comparing the amounts of variability explained by different sources. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Calculate the pooled esti- mate of variance, s2. p 2 sp is the square root. 3 d.f. is the denominator. 122 Chapter 5 Comparisons Among Several Samples DISPLAY 5.7 A confidence interval for 3 􏰀 2 and a test that 3 􏰀 2 D 0 (diet restriction data) 5.3.1 The Extra-Sum-of-Squares Principle One model for the Spock data is that the percentage of women on venires for judge i comes from a normal distribution with mean i and variance 2, for i from 1 to 7. A hypothesis for initial exploration is that all seven means are equal. That is, the null hypothesis is H: 1 D 2 D  D 7, and the alternative is that at least one of the means differs from the others. The term extra-sum-of-squares refers to a general idea for hypothesis testing and is fundamental to a large class of tests. This section introduces the general notion of extra-sum-of-squares and the associated F -test, but with particular attention to testing the above hypothesis in the one-way classification problem. Full and Reduced Models Testing a hypothesis is formulated as a problem of comparing two models for the response means. A full model is a general model that is found to adequately describe standard error. 0.975 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.3 The One-Way Analysis of Variance F-Test 123 the data. The reduced model is a special case of the full model obtained by imposing the restrictions of the null hypothesis. For comparing equality of all means in the several-sample problem, the full model is the one that has a separate mean for each group. The reduced model, obtained from the full model by supposing the hypothesis of equal means is true, specifies a single mean for all populations. For the Spock data, the means from the two models are the following: Group: 1234567 Full (separate-means) model: 1 2 3 4 5 6 7 Reduced (equal-means) model:        The terminology of full and reduced models provides a framework for the general procedure called the extra-sum-of-squares F -test. For any particular application, the models will have different names that refer more specifically to the problem at hand. As a test of equality of means in one-way classification, it makes more sense to call the full model the separate-means model and the reduced model the equal-means model. Fitting the Models The idea behind analysis of variance is to estimate the parameters in both the full and reduced models and to see whether the variability of responses about the estimated means is comparable in the two models. The estimated means for each group are different for the two models: Group: 1234567 Full (separate-means) model: Y1 Y2 Y3 Y4 Y5 Y6 Y7 Reduced (equal-means) model: Y Y Y Y Y Y Y where Y is the average of all observations, called the grand average. Residuals Associated with each observation in the data set is an estimated group mean based on the full model and a different estimated group mean based on the reduced model. Also associated with each observation is a residual for each model. A residual is the observationvalueminusitsestimatedmean.So,forobservationYij (thepercentage of women on the jth venire for judge i), the residual from the full model is Yij 􏰀Yi and the residual from the reduced model is Yij 􏰀 Y . Display 5.8 shows the sets of estimated means and residuals for the Spock trial data in both the full (separate- means) and the reduced (equal-means) models. Notice that the residuals tend to be larger for the equal-means model. If the null hypothesis is correct, then the two models should be about equal in their ability to explain the data, and the magnitudes of the residuals should be about the same. If the null hypothesis is incorrect, the magnitudes of the residuals from the equal-means model will tend to be larger. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 124 Chapter 5 Comparisons Among Several Samples DISPLAY 5.8 Judge Estimated means and residuals from two models for mean percentage of women (%W) in venires: Spock trial data %W Est. Res. Judge %W In the equal-means model, estimated means are equal to the grand average. In the separate-means model, estimated means are the group averages. Equal means Large residuals indicate that the model fits poorly. Separate means Est. Res. Equal means Est. Res. Separate means Est. Res. Residual Sums of Squares A single summary of the magnitude of the residuals for a particular model is the residual sum of squares for that model (i.e., the sum of the squared residuals). By adding the squares of the two sets of residuals in Display 5.8 separately, one finds that the residual sum of squares for the equal-means model is 3,791.53 and the resid- ual sum of squares from the separate-means model is 1,864.45. Is this large difference .3;791:53 􏰀 1;864:45 D 1;927:08/ due to the relatively poor fit of the equal-means model, or can it be explained by sampling variability? The F-test answers this question precisely. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.3 The One-Way Analysis of Variance F-Test 125 General Form of the Extra-Sum-of-Squares F-Statistic The extra sum of squares is the single number that summarizes the difference in sizes of residuals from the full and reduced models. As just calculated above, A residual sum of squares measures the variability in the observations that remains unexplained by a model, so the extra sum of squares measures the amount of unexplained variability in the reduced model that is explained by the full model. The extra sum of squares is a test statistic for judging the plausibility of the null hypothesis. For practical use, however, it must be converted into a form that can be compared to a known probability distribution. The particular form is the F -statistic: where the extra degrees of freedom are the number of parameters in the mean for the full model minus the number of parameters in the mean for the reduced model, and O2 is the estimate of 2 based on the full model. Thus, the F-statistic is the full extra sum of squares per extra degree of freedom, scaled by the best estimate of variance. The F-Test Large F -statistics are associated with large differences in the size of residuals from the two models. They supply evidence against the hypothesis of equal means and in favor of a model with different means. The test is summarized by its p-value, the chance of finding an F -statistic as large as or larger than the observed one when all means are, in fact, equal. F-Distributions If all means are equal, the sampling distribution of the F -statistic is that of an F-distribution, which depends on two known parameters: the numerator degrees of freedom and the denominator degrees of freedom. For each degrees of freedom pair, there is a separate F-distribution. The letter F was given to this class of distributions by George Snedecor, honoring the British statistician Sir Ronald Fisher. Theoretical histograms for four of the F -distributions are shown in Display 5.9. Notice that F-values in the general range of 0.5 to 3.0 are fairly typical. An F -statistic in this range would not be considered as very strong evidence of unequal means for most degree of freedom combinations. An F -statistic in the range from Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Extra sum of squares D Residual sum of squares (reduced) 􏰀 Residual sum of squares (full). F -statistic D .Extra sum of squares/=.Extra degrees of freedom/ ; O 2 full 126 Chapter 5 Comparisons Among Several Samples DISPLAY 5.9 Four F-distributions, having different degrees of freedom F30,30 F2,30 F2,2 F30,2 1.0 2.0 3.0 4.0 5.0 F-Ratio Values 5.3.2 3.0 to 4.0 would be highly unlikely with large degrees of freedom in both numera- tor and denominator but would be only moderately suggestive of differences with smaller degrees of freedom. An F -statistic larger than 4.0 is strong evidence against equal means except for the smallest degrees of freedom, particularly in the denom- inator. (Note: All the curves have the same area below them. This means that the F2;2 and F30;2 curves must have considerable area, spread thinly, off the graph to the right.) Statistical computer programs and some calculators can provide tail area prob- abilities of F -distributions for specified F -values and, conversely, can provide the F -values corresponding to specified tail area probabilities. In both cases, the user must also specify the particular F -distribution of interest by supplying the numer- ator and denominator degrees of freedom. The p-value indicated by bubble 7 in Display 5.10, showing the F-test results for the Spock trial data, was obtained with a statistical computer package. The Analysis of Variance Table for One-Way Classification The analysis of variance table organizes and displays the calculations used in the F -test. Analysis of variance tables extend to more complicated structures, where several F-tests simultaneously evaluate how well different models fit the data. The ANOVA table for the Spock data appears in Display 5.10. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.4 More Applications of the Extra-Sum-of-Squares F-Test 127 DISPLAY 5.10 Analysis of variance table: a test for equal mean percentages of women in venires of seven judges (Spock data) 5 A mean square is the ratio of a sum of squares to its degrees of freedom. Mean Square 6 The F-statistic is the ratio of the Between MS to the Within MS. F-Statistic p-Value 6.72 0.000061 4 Extra sum of squares is Total minus within (d.f. also obtained by subtraction). Source of Variation Between Groups Within Groups Total Sum of Squares 1,927.08 1,864.45 3,791.53 d.f. 6 39 45 321.18 47.81 7 n – I n–1 3 The p-value comes from an F-distribution with 6 and 39 d.f. 1 Sum of squared residuals from fitting the full (separate- means) model. 2 Sum of squared residuals from fitting the reduced (equal- means) model. degrees of freedom. Note: This is sp2. The table is organized so that all calculations follow a fixed pattern after entry of the residual sums of squares from the full (separate-means) and reduced (equal-means) models and their degrees of freedom. The between-groups sum of squares and its degrees of freedom are found by subtraction. Each mean square equals its sum of squares divided by its degrees of freedom. The F -statistic equals the ratio of the between-groups mean square to the within-groups mean square; and the evidence is summarized by the p-value, equal to the upper tail area from the F -distribution, whose numerator degrees of freedom are those associated with between groups and whose denominator degrees of freedom are those associated with within groups. The p-value of 0.000061 provides convincing evidence that at least one of the judges’ means differs from one of the others’ means. 5.4 MORE APPLICATIONS OF THE EXTRA-SUM-OF-SQUARES F-TEST 5.4.1 Example: Testing Equality in a Subset of Groups The one-way analysis of variance F -test shown in Display 5.10 provided convincing evidence that the means were not equal for all seven judges. The next step in the analysis is to see whether the six other judges (not Spock’s) have the same mean percentage of women on their venires. Although this step does not answer the main question of interest, it establishes an important context for addressing the main question. If there are no systematic differences among judges A through F in their inclusion of women, then the comparison of them to Spock’s judge has greater relevance (in the court proceedings) than if they do differ among each other. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 128 Chapter 5 Comparisons Among Several Samples One way to test the hypothesis HW2 D 3 D  D 7 is to perform a one- way analysis of variance F -test with the venires from Spock’s judge excluded from the analysis. This approach would be satisfactory for the needs of this problem. A better approach, however, includes Spock’s judge’s venires. It is “better” because it includes all available data in the pooled estimate of . Since this approach is also ideal for illustrating the general usefulness of the extra-sum-of-squares principle, it will be demonstrated here. It is based on a comparison of the following full and reduced models: Group: 1234567 Full model (separate-means model): 1 2 3 4 5 6 7 Reduced model (others-equal model): 1 0 0 0 0 0 0 where 0 is used to represent the common mean of the last six judges in the reduced model. The estimated means are: Group: 1234567 Full model (separate-means model): Y1 Y2 Y3 Y4 Y5 Y6 Y7 Reduced model (others-equal model): Y1 Y0 Y0 Y0 Y0 Y0 Y0 where Y0 is the average percentage among all venires for the other six judges. The F-test for comparing these reduced and full models is not automatically computed in the analysis of variance program. Since the full model in this hypothesis is the separate-means model, its sum of squared residuals is available as the within- groups sum of squares in the analysis of variance table in Display 5.10 (1,864.45 on 39 degrees of freedom). The sum of squared residuals from the reduced model can be found by performing a second one-way classification analysis with just the two groups: Spock and others. The resulting residual sum of squares is 2,190.90, with 46 􏰀 2 D 44 degrees of freedom. The extra-sum-of-squares F-statistic is Œ.2;190:90 􏰀 1;864:45/=.44 􏰀 39/= .1;864:45=39/ D 1:37, and the p-value is the proportion of an F-distribution on 5 and 39 degrees of freedom that exceeds 1.366, which is 0.26. There is conse- quently no evidence from these data of differences in means among the six other judges. The next step in the analysis, assuming the six other judges do have equal means, is a test of the hypothesis that the Spock judge’s mean is equal to the common mean of the other six. An F -test compares a full model with two means (one for the Spock judge and one for the other six) to a reduced model with a single mean: Group: 1234567 Full model (others-equal model): 1 0 0 0 0 0 0 Reduced model (equal-means model):        Notice that the previous step in the analysis has indicated the appropriateness of the two-parameter model, with a common mean for the other judges. This then becomes the full model for the inferential question: Is the Spock judge’s mean different from the mean common to the six others, HW 1 D 0? The reduced model, consequently, is the equal-means model. The sum of squared residuals from Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.4 More Applications of the Extra-Sum-of-Squares F-Test 129 this reduced model is the total sum of squares from the one-way analysis of variance table: 3,791.53 on 45 degrees of freedom. The sum of squared residuals from this full model is 2,190.90 on 44 degrees of freedom. The F -statistic is Œ.3;791:53 􏰀 2;190:90/=.45 􏰀 44/=.2;190:90=44/, which is equal to 32.14. By comparison to an F -distribution on 1 and 44 degrees of freedom, the p-value is found to be 0.000001. There is convincing evidence that the Spock judge’s mean differs from the others. 5.4.2 Summary of ANOVA Tests Involving More Than Two Models The others-equal model (using two parameters to describe the means) lies interme- diate between the equal-means model (with one parameter) and the separate-means model (with seven parameters). It is a simplification of the separate-means model, while the equal-means model is a simplification of it. Display 5.11 illustrates the additive nature of the extra sums of squares for comparing these three nested models. The residual sum of squares in each model is viewed as a measure of the unexplained variability from that model, or as a distance from the model to the data. The residual sum of squares for the equal- means model is 3,791.53. By including one extra parameter to allow the Spock judge Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 5.11 Residual sums of squares as distances from the data to proposed models for the means (Spock trial example) Group Means Model Judge SpockA B C D E F (single mean) (two means: Spock and others) (seven separate means) (3,791.53) (2,190.90) (1,864.45) Residual Sum of Squares 4,000 3,000 2,000 1,000 1,600.63 326.45 S O S A B C D E F Data (all observations have unrelated means) 0 130 Chapter 5 Comparisons Among Several Samples DISPLAY 5.12 Complete analysis of variance table for three tests involving the mean percents of women in venires of seven judges Source of variation Sum of squares d.f. Mean square F-statistic p-value 33.48 to have a different mean (the others-equal model), the unexplained variability is reduced by 1,600.63. By including an additional five extra parameters (the separate- means model), the unexplained variability is further reduced by 326.45. Notice that the extra sum of squares in the comparison of the separate-means model to the equal-means model (i.e., the between-group sum of squares) is the sum of the two-component sums of squares .1;927:08 D 1;600:63 C 326:45/: The two tests in the Spock trial data could be combined into a single analysis of variance table, as in Display 5.12. In this table, the Between groups sum of squares has been decomposed into two pieces corresponding to extra sums of squares for the two individual tests. The F -statistic for “Spock vs. others” presented in Display 5.12 is not exactly the same as the extra-sum-of-squares F -statistic computed in Section 5.4.1, how- ever. It has as its denominator the Within groups mean square, 47.81 (with 39 d.f). The actual extra-sum-of-squares F-statistic has as its denominator the mean squared residuals from the two-group model, 49:79 .D2;190:90=44, with 44 d.f.). When presenting several tests simultaneously in a single analysis of variance table it is customary to use, as the denominator of the F-statistics, the estimate of 2 from the fullest model fit. There are some philosophical differences between these two approaches. For now, we encourage the student to apply the extra-sum-of- squares idea directly to address specific questions of interest (as in Section 5.4.1), but to be aware of differences in computer output due to the type of convention used in Display 5.12. 5.5 ROBUSTNESS AND MODEL CHECKING 5.5.1 Robustness to Assumptions The robustness of t-tests, F-tests, and confidence intervals to departures from model assumptions can be described essentially in the same way as in Chapter 3: 1. Normality is not critical. Extremely long-tailed distributions or skewed distribu- tions coupled with different sample sizes present the only serious distributional problems, particularly if sample sizes are small. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 5.13 2. The assumptions of independence within and across groups are critical. If lacking, different analyses should be attempted. 3. The assumption of equal standard deviations in the populations is crucial. 4. The tools are not resistant to severely outlying observations. The robustness with respect to equal standard deviations in the populations requires further discussion. It is important to pool together the estimates of vari- ability from all the groups in order to make the most powerful comparisons possible. If one of the populations has a very different standard deviation, however, serious problems may result, even if the comparisons do not involve the mean from that population. A computer was used to simulate situations in which three samples from normal populations were selected, with the aim of obtaining a 95% confidence interval for the difference in means from the first two. Six different configurations of population standard deviations were used with each of four sample size combinations. Based on 2,000 simulated data sets, the results appear in Display 5.13. The procedure is robust against unequal standard deviations for those situations where success rates are approximately equal to 95%. Success rates for 95% confidence intervals for 1 􏰀 2 from samples simulated from normal populations with possibly different SDs 2 33 32343 3234 The simulations suggest that if 3 is quite different from 1 and 2, then the actual success rates of 95% confidence intervals for 1 􏰀 2 can be quite different from 95%. Unlike the result for the two-sample tools, the effect of unequal standard deviations can be serious even if the three sample sizes are equal. 5.5 Robustness and Model Checking 131 5.5.2 Diagnostics Using Residuals Initial graphical examination of the data by stem-and-leaf diagrams, box plots, or histograms is important. If there is a large number of groups, then side-by-side box plots are particularly useful, since they eliminate much of the clutter contained in other displays. As in the two-sample problem, initial assessment helps identify (1) the centers, (2) the relative spreads, (3) the general shapes of the distributions, and (4) the presence of outliers. If the spreads are quite different, transforming the data to a different scale should be considered. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 132 Chapter 5 Comparisons Among Several Samples DISPLAY 5.14 Residual plot: lifetimes of mice fed six different diets 10 0 –10 –20 Residual Lifetime (months) 30 35 40 45 Estimated Mean Lifetime (months) An important tool, which extends to almost all statistical methods in this book, is a residual plot. Because the residuals Yij 􏰀 Yi are the original observations with their group averages subtracted out, they exhibit the variation of the obser- vations without the visual interference caused by differences between group means. A scatterplot of these residuals versus the group averages can reveal a relationship between the spread and the group means, which may be exploited to improve the analysis. Display 5.14 shows the residual plot from the diet restriction and longevity data. The features to look for in such a plot are (1) an increase in the spread from left to right, in a funnel-shaped pattern (which would suggest the need for a log or some other transformation), or (2) seriously outlying observations. The residual plot in Display 5.14 has neither feature, suggesting that analysis on the natural scale is adequate. It is evident that the distributions of lifetimes are skewed. For these large samples, however, there should be no problem in relying on the inferential tools derived from the normal model. Finally, if the data were collected over time, a plot of residuals versus the time or order of data collection will help to reveal any serial effects that might be present. A pattern of generally increasing or generally decreasing residuals indicates a time trend, which may be accounted for using regression techniques. A pattern in which Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 5.15 Some important patterns in residual plots (a) no problem Estimated Means (c) nonconstant variance Estimated Means 5.6 Related Issues 133 (b) funnel-shaped: transformation Estimated Means (d) time trend Time Order of Data Collection Residuals Residuals Residuals Residuals residuals close to each other tend to be more alike (or perhaps more different) than any two arbitrarily chosen residuals may indicate serial correlation. Formal investigation into serial correlation, and methods that account for it, are provided in Chapter 15. Display 5.15 shows patterns in residual plots that would indicate (a) no obvious problems; (b) nonconstant variance, particularly a variance that is increasing with increasing mean (a log transformation might be in order); (c) nonconstant variance, particularly a variance that is smaller for small and large means (this might be the case if the response is restricted to be between 0 and 1, and a logit transformation might help: logŒY =.1 􏰀 Y //; and (d) a relationship between the response and time order of data collection. 5.6 RELATED ISSUES 5.6.1 Further Illustration of the Different Sources of Variability The analysis of variance is a general method of partitioning total variation into several components. This section attempts to shed further light on that partitioning. A computer was used to generate independent random samples of size four each from nine normal populations having the same mean and the same standard deviation. The samples are illustrated in Display 5.16. The smooth curve above is the common population histogram, centered at the mean, . The horizontal axes Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 134 Chapter 5 Comparisons Among Several Samples DISPLAY 5.16 Three sources of variation for data simulated from the equal-means model Equal- Means Model Samples of size 4 are drawn from 9 populations with the same mean. 1 2 3 4 5 6 7 8 9 All 36 observations All 9 averages All 36 residuals Total Variation: Variation Between Groups: Variation Within Groups: 0 Sample averages are indicated under the samples. Degrees of freedom adjustments rescale variability, so that both mean squares estimate 2. below the histogram locate the separate samples. The ticks above each axis locate the four sample values, and the single arrow below each axis locates the sample’s average. Three additional axes appear below the nine samples, labeled according to the three sources of variation in the analysis of variance table. The Total axis shows all 36 sample values on one common axis. Sample values are ticked on top of the axis and the grand average of all 36 is marked below the axis. On the Between Groups axis, bullets locate the nine sample averages on top, and their average—also the grand average—is marked by the arrowhead on the bottom. The Within Groups axis displays all 36 residuals from the separate-means model. These are the observations minus their group averages. Variation When All Means Are Equal Variation is different on the three different summary axes for two basic reasons: (1) Observations are always closer to their sample average than to their population mean. This is easily visible in sample #1, where all four observations fall below the pop- ulation mean and where the sample average follows them. And (2) sample averages are less variable than individual sample values. Reason (2) explains why the between- group variation is visibly less than the total variation. Reason (1) explains why the within-group variation is also visibly less than the total variation. The means of the sampling distributions of the average squared distance of a tick from the axis center are available from theory. The average of the squared resid- uals is .1=36/PP.Yij 􏰀Yi/2: The mean of its sampling distribution is (27/36)2. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.6 Related Issues 135 DISPLAY 5.17 Variations in the several-group problem for data simulated from the separate-means model Separate-Means Model 1 2 3 4 5 Sample Number 6 7 8 9 Total: Between Groups: Within Groups: Population Number 813675249 0 This is less than 2 because of reason (1) mentioned above, and illustrates the need for a degrees of freedom adjustment: The mean square of the residuals, Œ1=.36􏰀9/PP.Yij 􏰀Yi/2 is an unbiased estimate of 2. (Its sampling distribution has mean 2.) Since the populations have the same mean, the nine Yi ’s are like a sample of size 9 from a normal population with mean  and variance 2=4. The quantity P.Yi 􏰀Y/2=9 is an unbiased estimate of (8/9)(2=4/. It is not surprising then that the sample variance of the sample of averages, P.Yi 􏰀Y /2=8; is an unbiased estimate of 2=4: It follows that the between-group mean square, which is P ni .Yi 􏰀 Y /2=8; with ni D 4 for all i in this case, is an unbiased estimate of 2. If the hypothesis of equal population means is correct, the numerator and the denominator of the F-statistic (the between-groups and within-groups mean squares) are both unbiased estimates of 2, so the F-statistic should be close to 1. As shown in the next display, if the population means are, in fact, unequal, then the numerator of the F-statistic is estimating something larger than 2 and the F -statistic will tend to be substantially larger than 1. Variation When the Means Are Different Display 5.17 depicts simulated samples drawn from populations with different means. The samples are the same as in Display 5.16, but shifted to their popu- lation means. Notice that the within-group variation is unchanged, whereas the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 136 Chapter 5 Comparisons Among Several Samples 5.6.2 difference in population means results in a larger between-group variation. Hence the F -statistic will be larger than in the equal-means case. Data that turn out like the bottom three axes in Display 5.17 show strong evidence that the between-group variability is much larger than that expected from the equal means model. The one-way analysis of variance F-test formalizes the comparison. In particular, while the denominator of the F-statistic is always an estimate of 2, the numerator is estimating something larger than 2. The amount by which it exceeds 2 depends on how different the means are. An F-statistic much larger than 1 provides strong evidence of differences among the population means. Kruskal–Wallis Nonparametric Analysis of Variance One method for coping with seriously outlying observations is to replace all obser- vation values by their ranks in a single combined sample and then apply a one-way analysis of variance F -test on the rank-transformed data. The Kruskal–Wallis test, which is available in many statistical computer packages, is similar in its approach but takes advantage of the known variance of the ranks. The Kruskal–Wallis test statistic is KW D 1=ŒR2   Between Group Sum of Squares .of ranks/; where R2 is the variance of all n ranks (using an n 􏰀 1 divisor) and where n is the total number of observations in all groups. A p-value is found as the proportion of a chi-squared distribution on (I 􏰀 1) degrees of freedom that is larger than this test statistic. Display 5.18 shows the rank-transformed data from the Spock trial example. Notice that Spock’s judge has venires that rank quite low. The between-group sum of squares (which could be obtained from an analysis of variance table based on the data in Display 5.18) is 3,956.325. The variance of the ranks is 180.122. The value of the Kruskal–Wallis test statistic is therefore 21.96, and p-value is 0.0012 from a chi-square distribution with 6 degrees of freedom. Testing equality of the Spock trial data, rank-transformed Rank of venire from smallest (1) to largest (46) percentage of women DISPLAY 5.18 Judge Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.6 Related Issues 137 judges other than Spock’s can be accomplished by performing a Kruskal–Wallis test ignoring the venires of the Spock judge. The Spock judge can be compared to the other judges combined using the rank-sum test. 5.6.3 Random Effects Rationale for the Random Effects Model It has so far been assumed that there is direct interest in the particular groups cho- sen. Sometimes, however, the groups are selected as representative of some broader population, and an inference is to be drawn to that population. A distinction is made between the fixed effects model, in which the group means are fixed and the random effects model, in which the group means are a random sample from a popu- lation of means. For the case studies in this chapter there is direct interest in the particular groups, so fixed effects models were used. To illustrate when each model is appropriate, suppose that measurements are taken on the yield of a machine operated by each of several operators. An analysis of variance may be used to compare the mean yields under the different operators. A fixed effects model would be appropriate if there was interest in only those par- ticular operators. (They may constitute all the operators at the plant.) A random effects model would be appropriate if those operators were just a sample and if the question of interest pertained to the population of operators from which they were sampled. There may be interest, for example, in estimating the proportion of the yield variance that could be explained by between-operator variability in a plant with a large number of operators. Is the random effects model the right one to use? There are two pertinent questions: (1) Is inference desired to a larger set from which these groups are a sample? (2) Are the groups (operators) truly a random sample from the larger set? A yes answer to the first question would ordinarily prompt a user to use the random effects model. Statistical inference to the larger population would only be justified, however, if there was also a yes answer to the second question. If there was no random sampling to obtain the particular operators, then the usual warnings about potential biases due to using nonrandom samples apply. The Random Effects Model In the fixed effects model, observed sample i is thought to be a random sample from a normal population with mean i and variance 2. There are I C1 parameters in the fixed effects model: the I means and the single variance 2. In the random effects model the i ’s themselves are thought to be a random sample from a normal population with mean  and variance 2 . The random effects model has three parameters: the overall mean , the within-group variance 2, and the between-group variance 2 . Analysis of the one-way classification random effects model involves a test of whether2 iszeroandanestimateoftheratio2=.2C2).Noticethatthisratio is between 0 and 1. It is 0 when there is no between-group variance, and it is 1 when there is no within-group variance. Since the denominator describes the total Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 138 Chapter 5 Comparisons Among Several Samples variance of the measurements, the ratio may be interpreted as the proportion of the total variance of the measurements that is explained by between-group variability. It is also called the intraclass correlation. Estimation and Testing The overall mean  is estimated by the grand average Y : The estimates of the two variances 2 and 2 are often found by equating the mean squares in the analysis of variance table to the means of their sampling distributions, under the random effects model. In particular, letting MS(W) and MS(B) represent the within-group and between-group means squares, respectively, one obtains MeanfMS(W)g D 2 1 XI ! MeanfMS(B)g D 2 C n.I 􏰀 1/ n2 􏰀 n2i iD1 so the estimates of the variances are O 2 D M S ( W ) 2 ; and O2 Dn.I􏰀1/ŒMS(B)􏰀MS(W)]; I n 2 􏰀 X n 2i iD1 with the modification that the latter is set to zero if the numerator turns out to be negative. ItissometimesdesiredtotestthehypothesisHW2 D0,againstthealternative that it is greater than zero. It should be evident that this is analogous to the hypothesis that the means are all equal in the fixed effects model. The usual F -test for the fixed effects model (Section 5.3.2) is appropriate for this hypothesis as well. The bottom line is that testing for between-group differences may be carried out in the usual way with an analysis of variance procedure. An additional, useful summary for the random effects model, however, is O2 =.O2 C O 2/. Example—Spock Trial Data Although the questions of interest in the Spock example focus on the specific judges, the data set can be used as an example to demonstrate random effects, by ignoring Spock’s judge and thinking of the six other judges as representative of some large population. The parameters in the random effects model are , the overall mean percentage of women on venires, the variance 2 of percentages about the judge mean, and the variance 2 of the population of judge means. A test of whether the between-judgevarianceiszero.HW2 D0/istheF-testfromthestandardanalysis of variance. The p-value is 0.32, so the data are consistent with there being no between-judge variability. The estimates of 2 and 2 are 1.96 and 53.6, so it can Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.6 Related Issues 139 be said that the proportion of variability that is due to differences between judges is 1:96=.1:96 C 53:6/ D 0:035. The square root of this number is also interpreted as the intraclass correlation—the correlation that percentages from two venires have if the venires come from the same judge. Of course, these inferential statements are speculative since the six judges were not, in fact, a random sample from a population of judges. 5.6.4 Separate Confidence Intervals and Significant Differences Published research articles often present graphs of estimated means with separate confidence intervals for each. If a reader wishes to know whether two means are different, there is a fairly close—but not exact—relationship between the overlap in the confidence intervals and the result of a test of equal means. The proper course of action for judging whether two means are equal is to carry out a t-test directly. The comments here apply to a situation where either the reader is looking for a quick approximate answer or where the article fails to provide enough information to conduct the test. Four categories of results are possible (Display 5.19). Case 1: If the intervals do not overlap, it is safe to infer that the means are different. Some readers incorrectly assume this is the only case that provides strong evidence of a difference. Case 2, however, also shows strong evidence. Even though the intervals overlap, the best estimate for each mean lies outside the confidence interval for the other mean. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 5.19 Separate confidence intervals for two group means: Are the means different? Case 4: No evidence Case 3: Inconclusive Case 2: Strong evidence Case 1: Convincing evidence Estimate of Mean A Estimate of Mean B 140 Chapter 5 Comparisons Among Several Samples Case 3, where one estimate lies within the confidence interval for the other mean, but the second estimate lies outside the first interval, is difficult to judge. But in Case 4, where the best estimate of each mean lies inside the confidence interval for the other, there is no evidence of any difference. Finally, it must be mentioned that the discussion of this section applies to the comparison of two confidence intervals only. If there are more than two confidence intervals, then it may be quite misleading to compare the two most disparate ones, unless some adjustment for multiple comparisons is made. This topic is discussed in the next chapter. 5.7 SUMMARY The term analysis of variance is often initially confusing as it seems to imply a com- parison of variances. It is most definitely a method for comparing means, however, and the name derives from the approach for doing so—assessing variability from several sources. The analysis of variance F -test is used for assessing equality of several means. Another point of confusion arises from the mistaken belief—due to the prevalence of the F-test in textbooks and computer programs—that the F-test necessarily plays a central role in the analysis of several samples. Usually it does not. It offers a convenient approach for detection of group differences, but it does not ordinarily provide answers to particular questions of interest. Tests and confi- dence intervals for pairs of means or linear combinations of means (discussed in the next chapter) provide much more specific information. Analysis of data in several samples begins with a graphical display, like side- by-side box plots. Transformations of the data should be considered. The need for transformation and the presence of outliers is often better indicated by a residual plot—a plot of residuals versus fitted values. A funnel shape indicates the need for a transformation like the log, for example, for positive data. The analysis of variance table provides the numerical components of the F -test for equality of means. It also contains the within-groups mean square, which exactly equals the pooled estimate of variance, the best estimate of 2. Confidence intervals and t-tests for pairs of means should use this pooled estimate of variance from all groups. Diet Restriction and Longevity Study In this study, the questions of interest called for five specific pairwise comparisons among the groups. It might be tempting to perform five two-sample t-tests, but it is a much more efficient use of the data to perform t-tests using a pooled estimate of variance from all the groups. The analysis begins with examination of side-by-side box plots. Although there is some skewness in the data, it is not enough to war- rant concern—the tests are sufficiently robust against this type of departure from normality—and no transformation is suggested. A closer look at possible problems is available through a residual plot, but the spreads appear to be approximately equal and there are no serious outliers. The analysis proceeds, therefore, with t-tests Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.8 Exercises 141 and confidence intervals in the usual way, but using the pooled estimate of variance from all groups. Spock Trial Study The stem-and-leaf plots in Display 5.4 and box plots in Display 5.5 are useful for suggesting some answers to the question of interest and for indicating the appropri- ateness of the tools based on the standard one-way classification model. An analysis of variance F -test confirms the strong evidence of some differences between means. An application of the extra-sums-of-squares F -test for comparing equality of the six other judges shows no evidence of a difference in mean percentages of women on their venires. Assuming that the six other means are equal, a further F -test shows overwhelming evidence that the Spock judge mean is different from the mean of the other six. Since this is a test for equality of two means, a t-test could be used. In fact, the F-test is equivalent to a two-sided t-test when I D 2. The actual p-value reported in the summary of statistical findings comes from a different test, not based on the assumption of equal means among the other six judges, and is discussed in the next chapter. 5.8 EXERCISES Conceptual Exercises 1. Spock Trial. Why is it important to obtain a pooled estimate of variance in the Spock trial study? Is it ever a mistake to obtain a pooled estimate of variance in a comparison involving several groups? 2. Four methods of growing wheat are to be compared on five farms. Four plots are used on each farm and each method is applied to one of the plots. Five measurements are therefore obtained on yield per acre for each of the four growing methods. Are the methods of this chapter appropriate for analyzing the results? 3. Diet Restriction. Is there any explanation for why the distribution of lifetimes of mice in Display 5.1 are all negatively skewed? 4. Diet Restriction. For comparing group 3 to group 2, explain why it is better to use the t-tools presented in Section 5.2.3 (using sp from all six groups) than to use the Chapter 2 t-tools (using sp from only the two groups involved). 5. Spock Trial. Should Spock’s accusers question the defense on how the venires were selected for their study? 6. Spock Trial. Why is it useful to test whether the six judges other than Spock’s have equal mean percentages of women on their venires? 7. Why is sp2 not simply taken as the average of the I sample variances? 8. Diet Restriction. If the longevity study was a planned experiment, why are the sample sizes different? 9. If sp is zero, what must be true about the residuals? 10. Explain the role of degrees of freedom of the F -distribution associated with the F -statistic. How are degrees of freedom related to how far the F -statistic is likely to be from 1? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 142 Chapter 5 Comparisons Among Several Samples 11. What does it mean if the F -statistic is so small that the chance of getting an F -statistic that small or smaller is only, say, 0.0001? 12. Flycatcher Species Identification. One of the most challenging field identification prob- lems for North American ornithologists is to distinguish the 10 species of flycatchers in the genus Empidonax. Many articles have appeared in popular and scientific journals suggesting different mor- phological clues to proper identification. F. Rowland (“Identifying Empidonax Flycatchers: The Ratio Approach,” 2009, Birding 41 (2): 30–38) asserted that the relative size of wing length to tail length is the appropriate physical characteristic for distinguishing the species in the field. This conclusion was based on the average values of the wing length minus the tail length for 24 birds in each species, as shown in the following table. Explain why a conclusion that this measurement tends to differ in the 10 species cannot be made from the averages alone. What additional piece of information is needed to test for group differences and to evaluate the extent to which individuals from different species can be distinguished? Computational Exercises Species: Yellow- bellied Acadian Alder Willow Least Hammond’s Gray Dusky Pacific- slope Cordilleran Average wing–tail (mm; nD24) 13.6 15.4 14.7 12.4 9.2 13.7 10.3 7.0 9.5 9.5 13. Spock Trial. By examining Display 5.8, answer the following: (a) What is the average percentage of women from all 46 venires? (b) Forhowmanyofthe9Spockjudge’sveniresisthepercentageofwomenlessthanthegrand average from all 46 venires? (c) For how many of the 9 Spock judge venires is the percentage of women less than the Spock judge’s average? Spock Trial. Use the following summary statistics to (a) compute the pooled estimate of the standard deviation and (b) carry out a t-test for the hypothesis that the Spock judge’s mean is equal to the mean for judge A. Judge: SpockABCDEF Average % women: 14.62 34.12 33.61 29.10 27.00 26.97 26.80 SD of % women: 5.039 11.942 6.582 4.593 3.818 9.010 5.969 Samplesize: 9569269 15. Spock Trial. (a) Use a calculator or statistical package to get the sample variance for the percentage of women on all 46 venires treated as one sample. (b) Multiply this by 45 to get the residual sum of squares for the equal-means model. (c) Multiply sp2 found in Exercise 14(a) above by .46􏰀7/ to get the residual sum of squares for the separate-means model. (d) Use these to construct an analysis of variance table, including the F -statistic for the hypothesis of equal means. Compare the result with Display 5.10. 16. Spock Trial. Use a statistical computer package to obtain the analysis of variance table in Display 5.10. 17. Display 5.20 shows the start of an analysis of variance table. Fill in the whole table from what is given here. How many groups were there? Is there evidence that the group means are different? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 14. DISPLAY 5.20 Source Incomplete ANOVA table for Exercise 17 d.f. Sum of squares Mean square F-statistic p-value 18. Fatty Acid. The data in Display 5.21 were obtained from a randomized experiment to estimate the effect of a certain fatty acid (CPFA) on the level of a certain protein in rat livers. Only one level of the CPFA could be investigated in a day’s work, so a control group (no CPFA) was investigated each day as well. (Data from Donald A. Pierce.) Levels of protein .10) found in rat livers Treatment DISPLAY 5.21 Day CPFA 50 (a) (b) (c) CPFA 150 CPFA 300 CPFA 450 CPFA 600 Control Obtainestimatedmeansforthemodelwithsixindependentsamples,oneforeachtreatment. Determine the residuals and plot them versus the estimated means. Plot the residuals versus the day on which the investigation was conducted. Is there any indication that the methods of this chapter are not appropriate? Obtain estimated means for the model with 10 independent samples, one from each treatment-day combination. Calculate the ANOVA F -test to see whether these 10 groups have equal means. Use (a) and (b) and the methods of Section 5.4.1, to test whether the means for the control groups on different days are different. That is, compare the model with 10 different means to the model in which there are 6 different means. 5.8 Exercises 143 Cavity Size and Use. Biologists freely discuss the concept of competition between species, but it is difficult to measure. In one study of competition for nesting cavities in Southeast Col- orado, Donald Youkey (Oregon State University Dept. of Fisheries & Wildlife) located nearly 300 cavities occupied by a variety of bird and rodent species. Display 5.22 shows box plots of the entrance area measurements from cavities chosen by nine common nesting species. The general characteristics—positive skewness, larger spreads in the groups with larger means—suggest the need for a transformation. On the logarithmic scale, the spreads are relatively uniform, and the summary statistics appear in Display 5.23. Are the species competing for the same size cavities? Or, are there differences in the cavity sizes selected by animals of different species? It appears that there are two very different sets of species here. The first six selected relatively small cavities while the last three selected larger ones. Is that the only significant difference? 19. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 144 Chapter 5 Comparisons Among Several Samples DISPLAY 5.22 Box plots for areas of entrances to cavities used by different species 12 11 10 9 8 7 6 5 4 3 2 1 0 Species: Mouse Pinyon Bewick’s Mountain Ash- mouse wren bluebird throated titmouse flicker Screech- kestrel f lycatcher owl n: 127 44 24 41 18 16 11 7 6 Plain Northern Western American (a) Compute the pooled estimate of variance. (b) Construct an analysis of variance table to test for species differences. (The sample standard deviation of all 294 observations as one group is SD D 0.4962.) Perform the F -test. (c) Verify that the analysis of variance method for calculating the between-group sum of squares yields the same answer as the formula I Between-group SS D X n Y 2 􏰀 nY 2: ii iD1 (d) Fit an intermediate model in which the first six species have one common mean and the last three species have another common mean. Construct an analysis of variance table with F -tests to compare this model with (i) the equal-means model and (ii) the separate-means model. Perform the F -test. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Cavity Entrance Area (1,000 mm2) DISPLAY 5.23 Summary statistics for areas of cavity entrances (logarithmic scale) DISPLAY 5.24 20. Flycatcher Species Identification. Consider the table of averages (of wing lengths minus tail lengths) from 24 birds in each of 10 species of flycatcher in Exercise 12. If it is assumed that the 11 populations all have the same mean and same population standard deviation, what is an estimate of the population standard deviation? 21. A robust test for equality of several population variances is Levene’s test, which was previously discussed in Section 4.5.3 for the case of two variances. This procedure carries out the usual one-way analysis of variance F -test on the absolute values of the differenes of observations from their group medians. For practice, carry out Levene’s test on the Spock data. 22. Equity in Group Learning. Several studies have demonstrated that engaging students in small learning groups increases student performances on subsequent tests. However, N. M. Webb and her colleagues argue that this raises a question of equity: Does the quality of the learning depend on the composition of the group? They chose students from five 7th and 8th grade classes in the Los Angeles school system. Based upon a science and language pretest, they classified each student’s ability level as Low, Low-Medium, Medium-High, or High. They formed study groups consisting of three students each. The students were given a problem involving the setting up of two electrical circuits that would produce different brightness in a standard lightbulb. Each group was given the equipment to work with and time to discuss the problem and come to a solution. Afterward, each student was tested on the basics of the problem and its solution. The table in Display 5.24 shows the results of the scores on this final test of the students whose ability level was Low in pretest. The students are grouped in the table according to the highest level of ability of a member in their study group. (Data from N. M. Webb, K. M. Nemer, A. W. Chizhik, and G. Sugrue “Equity Issues in Collaborative Group Assessment: Group Composition and Performance,” American Educational Research Journal 35(4): (1998) 607–51.) Achievement test scores of Low ability students who worked in different study groups Highest ability level in the study group Low Low-medium Medium-high High 5.8 Exercises 145 Species Western Screech-owl n Mean Sample SD 0 0 0 0 0 0 0 0 0 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 146 Chapter 5 Comparisons Among Several Samples DISPLAY 5.25 Achievement test scores of High ability students who worked in different study groups Lowest ability level in the study group Low Low-medium Medium-high High (a) How strong is the evidence that at least one group mean differs from the others? (b) Display 5.25 shows a companion table. How strong is the evidence from this table that at least one mean differs from the others? (c) The study groups apparently were not formed using random assignment. How might this affect any conclusions you might draw from the analysis? Data Problems 23. Was Tyrannosaurus Rex Warm-Blooded? Display 5.26 shows several measurements of the oxygen isotopic composition of bone phosphate in each of 12 bone specimens from a single Tyrannosaurus rex skeleton. It is known that the oxygen isotopic composition of vertebrate bone phosphate is related to the body temperature at which the bone forms. Differences in means at dif- ferent bone sites would indicate nonconstant temperatures throughout the body. Minor temperature differences would be expected in warm-blooded animals. Is there evidence that the means are dif- ferent for the different bones? (Data from R. E. Barrick, and W. J. Showers, “Thermophysiology of Tyrannosaurus rex; Evidence from Oxygen Isotopes,” Science 265 (1994): 222–24.) 24. IQ and Future Income. Display 5.27 shows the first five rows of a data set with annual incomes in 2005 for 2,584 Americans who were selected in the National Longitudinal Study of Youth 1979, who were available for re-interview in 2006, and who had paying jobs in 2005, along with the quartile of their AFQT (IQ) test score taken in 1981 (see Exercise 2.22). How strong is the evidence that the Measurements of oxygen isotopic composition of vertebrate bone phosphate (per mil deviations from SMOW) in 12 bones of a single Tyrannosaurus rex specimen DISPLAY 5.26 Bone Oxygen isotopic composition Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 5.8 Exercises 147 DISPLAY 5.27 Annual income in 2005 and test score quartile for an IQ test taken in 1981 for 2,584 Americans in the NLSY79 survey; first 5 of 2,584 rows Subject 2 6 7 8 9 IQquartile 1stQuartile 4thQuartile 2ndQuartile 2ndQuartile 3rdQuartile Income2005 5,500 65,000 19,000 36,000 65,000 distributions of 2005 annual incomes differ in the four populations? By how many dollars or by what percent does the distribution of 2005 incomes for those within the highest (fourth) quartile of IQ test scores exceed the distribution for the lowest (first) quartile? 25. Education and Future Income. The data file ex0525 contains annual incomes in 2005 of a random sample of 2,584 Americans who were selected for the National Longitudinal Survey of Youth in 1979 and who had paying jobs in 2005 (see Exercise 22 in Chapter 2). The data set also includes a code for the number of years of education that each individual had completed by 2006: <12, 12, 13–15, 16, and >16. How strong is the evidence that at least one of the five population distributions (corresponding to the different years of education) is different from the others? By how many dollars or by what percent does the mean or median for each of the last four categories exceed that of the next lowest category?
Answers to Conceptual Exercises
1. To make comparisons, one must estimate variation. There are not many venires for any particu- lar judge, so pooling the information gives better precision to the variance estimate. But if the groups have very different spreads, pooling is a bad idea.
2. Not appropriate. You should not expect the measurements from plots on the same farm to be independent of each other.
3. Perhaps there is something like an upper bound, a maximum possible lifetime for each group, and healthy mice all tend to get close to it. Unhealthy mice, however, die off sooner and at very different ages.
4. If the variances in all populations are equal, sp from all groups uses much more data to estimate , resulting in a more precise estimator.
5. Yes. Perhaps these are just as good as random samples of all venires for each judge. If there was any bias in the selection, however—for example, if the nine venires for Spock’s judge were chosen because they did not have many women—the results would be misleading.
6. Spock’s lawyers will have a stronger case if they can show that Spock’s judge is particularly different from all others in having low representation of women.
7. It is, if the sample sizes are all equal. Otherwise, it gives more weight to estimates from larger samples.
8. It is unusual for experimenters to purposefully plan on unequal sample sizes. In this study it is likely that the larger number of mice in the N/R50 group was planned, because that was the major experimental group. Inequalities in the other group sample sizes are likely the result of losing mice to factors unrelated to the experiment.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

148 Chapter 5 Comparisons Among Several Samples
9. All the residuals would have to be identically zero for this to happen.
10. The larger the degrees of freedom in either the numerator or denominator, the less variability
there is in their sampling distributions. With smaller degrees of freedom in either, sampling variabil- ity can result in an F -ratio which is considerably different from 1, even when the null hypothesis is true.
11. That would suggest that the sample averages are closer to each other than one would expect in the course of natural sampling from identical populations. You may want to check out the independence assumption.
12. There are two important quantities: (1) the within-mean square is sp2 , and (2) the p-value allows for judging group differences.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 6
Linear Combinations and Multiple Comparisons of Means
The F -test for equality of several means gives a reliable result with any num- ber of groups. Its weakness is that it neither tells which means are different from which others nor accounts for any structure possessed by the groups. Consequently, its role is mainly to act as an initial screening device.
If the groups have a structure, or if the research requires a specific question of interest involving several groups, a particular linear combination of the means may address the question of interest. This chapter shows how to make inferences about linear combinations of means and how to choose linear combinations for some important kinds of problems.
When no planned comparison is called for by the questions of interest or the group structure, one may compare all means with each other. The large number of comparisons, however, compounds the statistical uncertainty in the statements of evidence. Some methods of adjustment to account for this multiple comparisons problem are provided and discussed here.
149
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

150
Chapter 6 Linear Combinations and Multiple Comparisons of Means
6.1
CASE STUDIES
6.1.1 Discrimination Against the
Handicapped—A Randomized Experiment
The U.S. Vocational Rehabilitation Act of 1973 prohibited discrimination against people with physical disabilities. The act defined a handicapped person as any individual who had a physical or mental impairment that limits the person’s major life activities. Approximately 44 million U.S. citizens fit that definition. In 1984, 9 million were in the labor force, and these individuals had an unemployment rate of 7%, compared to 4.5% in the nonimpaired labor force.
One study explored how physical handicaps affect people’s perception of employment qualifications. (Data from S. J. Cesare, R. J. Tannenbaum, and A. Dalessio, “Interviewers’ Decisions Related to Applicant Handicap Type and Rater Empathy,” Human Performance 3(3) (1990): 157–71.) The researchers pre- pared five videotaped job interviews, using the same two male actors for each. A set script was designed to reflect an interview with an applicant of average qual- ifications. The tapes differed only in that the applicant appeared with a different handicap. In one, he appeared in a wheelchair; in a second, he appeared on crutches; in another, his hearing was impaired; in a fourth, he appeared to have one leg amputated; and in the final tape, he appeared to have no handicap.
Seventy undergraduate students from a U.S. university were randomly assigned to view the tapes, fourteen to each tape. After viewing the tape, each subject rated the qualifications of the applicant on a 0- to 10-point applicant qualification scale. Display 6.1 shows the results. The question is, do subjects systematically evalu- ate qualifications differently according to the candidate’s handicap? If so, which handicaps produce the different evaluations?
DISPLAY 6.1
Stem-and-leaf diagrams of applicant qualification scores given to applicants simulating five different handicap conditions
None Amputee Crutches Hearing Wheelchair
0 19947
2556
3 06 268 7
4 129 06 033 5 149 3589 18
6 17 1 0234 7482445 85
9
1498 479 5 237 78 589 03
5 1124
246
Legend: 7
4 represents a score of 7.4 on the Applicant Qualification Scale.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

6.1 Case Studies 151
Statistical Conclusion
The evidence that subjects rate qualifications differently according to handicap status is moderately strong, but not convincing (F-test p-value D 0:030). The difference between the average qualification scores given to the crutches candidate and to the hearing-impaired candidate is difficult to attribute to chance. The dif- ference is estimated to be 1.87 points higher for the crutches tape, with a 95% confidence interval from 0.14 to 3.60 points based on the Tukey–Kramer proce- dure. The strongest evidence supports a difference between the average scores given to the wheelchair and crutches handicaps and the average scores given to the amputee and hearing handicaps (t-statistic D 3:19 for a linear contrast). None of the average qualification scores from the various feigned handicaps differ signifi- cantly from the no-handicap control. (The protected least significant differences all have two-sided p-values > 0:05.)
Scope of Inference
Although the evidence suggests that differences exist among some of the handicap categories, the overall picture is made difficult by the location of the control in the middle of the groups. Any inference statements must also be qualified by the fact that the subjects used in this study may not accurately represent the population of employers making hiring decisions.
6.1.2 Pre-Existing Preferences of Fish—A Randomized Experiment
Charles Darwin proposed that sexual selection by females could explain the evo- lution of elaborate characteristics in males that appear to decrease their capacity to survive. In contrast to the usual model stressing the co-evolution of the female preference with the preferred male trait, A. L. Basolo proposed and tested a selec- tion model in which females have a pre-existing bias for a male trait, even before males of the same species possess it. She studied a Central American genus of small fish. The males in some species of the genus develop brightly colored swordtails at sexual maturity. For her study, Basolo selected one species in the genus—the Southern Platyfish—whose males do not naturally develop the swordtails.
Six pairs of males were surgically given artificial, plastic swordtails. One male of each pair received a bright yellow sword, while the other received a transpar- ent sword. The males in a pair were placed in closed compartments at opposite ends of a fish tank. One at a time, females were placed in a central compartment, where they could choose to engage in courtship activity with either of the males by entering a side compartment adjacent to it (see Display 6.2). Of the total time spent by each female engaged in courtship during a 20-minute observation period, the percentages of time spent with the yellow-sword male were recorded. These appear in Display 6.3. (Data from A. L. Basolo, “Female Preference Predates the Evolution of the Sword in Swordtail Fish,” Science 250 (1990): 808–10.) Did these females show a preference for the males that were given yellow swordtails?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

152
Chapter 6 Linear Combinations and Multiple Comparisons of Means
DISPLAY 6.2
Experimental tank allowing female fish to choose between males
Male with yellow sword is in closed compartment at one end.
Female is placed in center compartment.
(Control): Male with
transparent sword is in closed compartment at opposite end.
Female moves to side compartments to engage in courtship activities
with chosen male.
After one 10-minute observation period, the males switched ends to begin another 10-minute observation period.
Statistical Conclusion
These data provide convincing evidence that the females tended to spend a higher percentage of time with the yellow-sword male than with the transparent-sword male (one-sided p-value < 0:0001 from a one-sample test that the mean percentage of time spent with the yellow-sword male is 50%). The estimated mean percentage of time with the yellow-sword male was 62% (95% confidence interval: 59% to 65%). The data provide no evidence that the mean percentage differed among the six pairs (p-value D 0:56, from a one-way analysis of variance F-test). There was also no evidence of a linear association between mean percentage of time spent with the yellow-sword male and the males’ body size (p-value D 0:32 from a linear contrast). 6.2 INFERENCES ABOUT LINEAR COMBINATIONS OF GROUP MEANS 6.2.1 Linear Combinations of Group Means Questions of interest sometimes involve comparing only two group means. Each question in the diet and lifetime study (Section 5.1.1) had this feature. Examining Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 6.3 Percentage of courtship time spent by 84 females with the yellow-sword male; body sizes of the males are shown in parentheses Pair 1 Pair 2 Pair 3 Pair 4 Pair 5 Pair 6 6.2 Inferences About Linear Combinations of Group Means 153 differences between the corresponding sample averages answers such questions. But this situation is uncommon in complex studies. More typically, questions of interest involve several group means. For example, the study of qualification scores given to handicapped applicants might focus on a comparison of two handicaps—crutches and wheelchair—with the two handicaps— hearing and amputee. If 1 ; 2 ; 3 ; 4 , and 5 are the mean scores in the none, amputee, crutches, hearing, and wheelchair groups, respectively, that question can be explored by studying the difference between the average of mean responses, D .3 C 5/=2 􏰀 .2 C 4/=2. The parameter introduced here is called a linear combination of the group means. Linear combinations have the form DC11 CC22 CCCII: in which the coefficients C1; C2; : : : ; CI are chosen by the researcher to measure specific features of interest. In the handicap example, C1 D 0;C2 D C4 D 􏰀1=2, and C3 D C5 D C1=2. These particular coefficients add to zero, which gives this linear combination the special designation of being a contrast. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 154 Chapter 6 Linear Combinations and Multiple Comparisons of Means 6.2.2 Inferences About Linear Combinations of Group Means The Estimate of a Linear Combination and Its Sampling Distribution The same linear combination of sample averages, called g, is the natural estimate of the parameter . It is The sampling distribution of this estimate has mean . The standard deviation in the sampling distribution is given by the formula sC12 C22 CI2 SD.g/D n C n CC n ; 12I which depends on the nuisance parameter . This assumes that the equal-spread model applies. The shape of the sampling distribution is normal if the individual populations are normal, and it is approximately normal more generally. Standard Errors for Estimated Linear Combinations The standard error for g is obtained by substituting the pooled estimate for  in the formula for the standard deviation of g: Two-sample comparisons are a special case. To compare the mean score of the crutches ratings with the mean score of the no handicaps ratings, for example, theinvestigatorchoosesC3 DC1andC1 D􏰀1,withC2 DC4 DC5 D0.The expression under the square root in the standard error reduces to the familiar sum of the reciprocals of the two group sample sizes. The SD is estimated from information in all groups, even when only two groups are being compared. Inferences Based on the t-Distributions The t-ratio, t D .g 􏰀 //SE.g/, has an approximate Student’s t-distribution with degrees of freedom equal to that of the pooled SD: d.f. D .n1 Cn2 CCnI 􏰀I). The t-ratio may now be used as before either to construct a confidence interval or to test a hypothesized value for . Example—Handicap Study A computer can produce the averages and the pooled estimate of variability, but hand calculations are usually required from there. Display 6.4 illustrates all the steps g D C1Y 1 C C2Y 2 C    C CI Y I : s C 12 C 2 2 C I2 SE.g/Dsp n Cn CCn : 12I Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 6.2 Inferences About Linear Combinations of Group Means 155 DISPLAY 6.4 Confidence interval construction for the linear combination in the handicap study D (3 C 5)=2 􏰀 (2 C 4)=2 1 Summary s tatistics sp = 1.6329; 65 d.f. None Amputee Feigned Handicap Crutches Hearing Wheelchair n: 14 14 14 14 14 Average: 4.900 4.4286 5.9214 4.0500 5.3429 C: 0 –1/2 +1/2 –1/2 +1/2 2 g = (Y 3 + Y 5) – (Y 2 + Y 4) = (5.9214 + 5.3429) – (4.4286 + 4.0500) 2222 Specify the coefficients for the linear combination. Estimate the linear combination. 3 = 1.3929 4 5 Find the standard error of the estimate. (0)2 (–1/2)2 SE (g) = 1.6329 + = 0.4364 (+1/2)2 + (–1/2)2 + (+1/2)2 + 14 14 14 14 14 Construct the 95% confidence interval. t65 (0.975) = 1.9971 from the t-distribution with 65 d.f. 1.3929 ± (1.9971) × (0.4364) from 0.521 to 2.264 involved in finding a confidence interval for the contrast between the wheelchair and crutches means and the average of the amputee and hearing means. A 95% confidence interval for the parameter D .3 C 5/=2 􏰀 .2 C 4/=2 extends from 0.522 to 2.264. 6.2.3 Specific Linear Combinations Here are some examples of linear combinations that arise frequently in practical situations. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 156 Chapter 6 Linear Combinations and Multiple Comparisons of Means Comparing Averages of Group Means One common problem has two sets of groups distinguished by a specific factor; a comparison of the two sets is of interest. The preceding comparison is a typi- cal example. Another example, from Section 5.1.2, involves comparing the Spock judge’s mean percentage women with the average of the means from the other six judges. If J groups in one set are to be compared to K groups in the second set, the relevant parameter is D .1;1 CC1;J/ 􏰀 .2;1 CC2;K/: JK The coefficients will be C1=J;􏰀1=K, or zero, depending on whether a group is in the first set, the second set, or neither. Important note: One group cannot belong to both sets. Comparing Rates In problems like the diet restriction study in Section 5.1.1, where groups are struc- tured according to levels of a quantitative explanatory variable, it may be desirable to report results as rates of increase in the mean response associated with changes in the explanatory variable. A comparison of the increase in mean lifetime asso- ciated with the reduction from 50 to 40kcal/wk to the increase in mean lifetime associated with the reduction from 85 to 50kcal/wk, for example, is best made on the basis of increases associated with one-unit changes in the caloric intake. Thus one would inquire whether the rate of increase in lifetime is the same in the reduction from 50 to 40 kcal/wk as in the reduction from 85 to 50 kcal/wk. The rate of increase in mean lifetime associated with the reduction from 50 to 40 kcal/wk is rate2 D .6 􏰀 3 /=.50 􏰀 40/, which is estimated to be est. rate2 D .Average lifetime on N=R40/ 􏰀 .Average lifetime on N=R50/ .50 􏰀 40/ D .45:1 􏰀 42:3/ D 0:2800 months/[kcal/wk]. 10 Similarly, the rate of increase associated with the reduction from 85 to 50 kcal/wk is rate1 D .3 􏰀 2/=.85 􏰀 50/, which is estimated to be: est. rate1 D .Average lifetime on N=R50/ 􏰀 .Average lifetime on N=N85/ .85 􏰀 50/ D .42:3 􏰀 32:7/ D 0:2743 months/[kcal/wk]. 35 Reducing caloric intake increased longevity in both instances, and the rates of increase appear to be about the same—about 0.28 month of extra lifetime for each kcal/wk reduction in caloric intake. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 6.2 Inferences About Linear Combinations of Group Means 157 A formal comparison of the two rates will resolve whether the difference is real. The difference between the rates is estimated to be: (est.rate1􏰀est.rate2) D0:2743􏰀0:2800D􏰀0:0057mo/[kcal/wk]. This is a linear combination of only three means, because 3 occurs in both rates. To get the correct coefficients for calculating the standard error, reduce the comparison as follows: D (rate1 􏰀 rate2) D .3 􏰀 2/ 􏰀 .6 􏰀 3/ 35 10 D􏰀12C 93􏰀 16: 35 70 10 This is a linear combination of three averages, so the standard error may be computed with the general formula of Section 6.2.2: s􏰀1 2 C9 2 􏰀1 2 SE.g/ D .6:68/ 35 C 70 C 10 D 0.1359 mo/[kcal/wk]. The estimate of , 6.68, is the pooled estimate from all six groups and has 343 degrees of freedom. The resulting t-statistic, 0.0057/0.1359 D 0.04, provides no evidence that the two rates differ (two-sided p-value D 0.97). It might therefore be appropriate to estimate a common rate for increased lifetime over the entire 85 to 40 kcal/wk range. Linear Trends Sometimes the group means are associated with quantitative levels of an additional, explanatory variable. In the platyfish preference study, for example, the six groups correspond to different body sizes of the male pairs. A particular linear combination of group means may be used to assess the evidence for a linear trend in means as a function of the explanatory variable (for example, a linear trend in time with the yellow-sword male as a function of male body size). Let Xi be the value of the explanatory variable associated with group i. Then the particular linear combination for linear trend happens to be the one that has Ci D.Xi􏰀X/asthecoefficientofi.Theinferencebasedonthelinearcombination will be unchanged if all the Ci ’s are multiplied by the same constant. It is tidier, therefore, to use as Ci some multiple of .Xi 􏰀 X /, where the multiplier is chosen to make all coefficients integers or to express the linear combination in convenient units of measurement. Display 6.5 demonstrates the linear combination for comparing the model of linear trend (in percentage time with the yellow-sword male), against the more general model in which the means are unrestricted. In this case a convenient multiplier to make all coefficients integers is 2, so that Ci is 2.Xi 􏰀 X/. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 57 71 60 158 Chapter 6 Linear Combinations and Multiple Comparisons of Means DISPLAY 6.5 Analysis of the pre-existing preference example: F-test for differences in mean percentage of time spent with yellow-sword male, and t-test for linear effect of male body size Source of variation Sum of squares d.f. Mean square Conclusion: There is no evidence that the group means are different for different pairs of males (p-value = 0.56, from ANOVA F-statistic). F-statistic p-value 0.56 t-Test for linear effect of body size Standard Group n Average (%) deviation Male body size (mm) Coefficient 1 2 Calculate the coefficients for the linear combination. Ci = 2*(Xi – 32.5) Calculate the effect’s estimate g = (5)(56.41) + (–3)(60.89) + (1)(62.43) + (3)(67.00) + (–9)(64.21) + (3)(63.34) = –25.06 SE(g) = (15.46) = 54.77 and its standard error. (1)2 16 14 17 14 9 14 (5)2 (–3)2 + + + (3)2 + (–9)2 (3)2 + 3 (from t-distribution with 78 d.f.) Conclusion: There is no evidence of a linear association between group means and male body size (one-sided p-value = 0.32). Calculate the t-statistic and determine the p-value. t-statistic = –25.06 = – 0.458 one-sided p-value = 0.32 54.77 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. C’s 6.3 Simultaneous Inferences 159 There are two tests shown in Display 6.5. The analysis of variance F-test indicates the evidence against the reduced, single-mean model as a special case of the full, six-mean model. The t-test for linear effect indicates the evidence against the reduced model in which the slope of a straight line function of body size is zero, as a special case of the model in which the slope is unrestricted. Important note: It is useful to understand the linear combination for testing linear effect. For practical purposes, however, regression methods introduced in Chapter 7 provide a more complete data analytic process for investigating this type of structure. Averages Given the absence of any apparent differences between the mean percentages of times spent with the various yellow-sword males, the question of whether female platyfish prefer yellow-sword males becomes sensible globally. The average of the group means is another linear combination (but not a contrast), and the appro- priate null hypothesis is that (1 C2 C  C6/=6 D 0:5. The average of the group sample averages is 62.38%. Its standard error, 1.72%, is calculated in the same way from the general formula. This leads to the conclusive statement that the females were not dividing their time evenly between the males. Caveat concerning average: The overall average just described differs slightly from the grand average of all female percentages (treated as a single group), because it gives equal weight to each male pair instead of equal weight to each female percentage. The conclusions will, in most cases, agree. 6.3 SIMULTANEOUS INFERENCES A 95% confidence interval procedure is successful in capturing its parameter in 95% of its applications. When several 95% confidence intervals are considered simultane- ously, they constitute a family of confidence intervals. The relative frequency with which all of the intervals in a family simultaneously capture their parameters is smaller than 95%. Because this rate is often of interest, the following distinction is drawn. If the family consists of k confidence intervals, each with individual confidence level 95%, the familywise confidence level can be no larger than 95% and no smaller Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Individual confidence level is the success rate of a procedure for constructing a single confidence interval. Familywise confidence level is the success rate of a procedure for constructing a family of confidence intervals, where a “successful” usage is one in which all intervals in the family capture their parameters. 160 Chapter 6 Linear Combinations and Multiple Comparisons of Means than 100.1 􏰀 0:05k/%. The actual familywise confidence level depends on the degree of dependence between the intervals. The lower limit decreases rapidly with k. With a family of 10 confidence inter- vals, the familywise level could be as low as 50%, indicating the strong possibility that at least one of the intervals fails to capture its parameter. In other words, one should not suppose that all the confidence intervals capture their parameters, especially when a large number of intervals are being considered simultaneously. The issue here is compound uncertainty—the increased chance of making at least one mistake when drawing more than one direct inference. Compound uncertainty also arises when many tests are considered simultaneously. The greater the number of tests performed, the higher the chance that a low p-value will be found for at least one of them, even in the absence of group differences. Consequently, the researcher is likely to find group differences that are not really there. Multiple Comparisons Multiple comparison procedures have been developed as ways of constructing indi- vidual confidence intervals so that the familywise confidence level is controlled (at 95%, for example). The important issue for the researcher to consider is whether to control the individual confidence levels or the overall confidence level. Planned Comparisons, Unplanned Comparisons, and Data Snooping Consider a one-way classification with 100 groups. One researcher may be particu- larly interested in comparing groups 23 and 78 because the comparison answers a research question directly. The researcher knows which groups are involved before seeing the data, and the comparison will be reported regardless of its statistical and practical significance. This constitutes a planned comparison. The individual confidence level should be controlled for planned comparisons. Another researcher may examine differences between all possible pairs of groups—4,950 confidence intervals in all. As a result of these efforts, the researcher finds that groups 36 and 44 and groups 27 and 90 suggest actual group differences. Only these pairs are reported as significant. They exemplify unplanned comparisons. The familywise confidence level should be controlled for unplanned comparisons, since the uncertainty measure must incorporate the process of searching for important comparisons. A third researcher notices that group 36 has the largest average and group 44 has the smallest, and presents only the single confidence interval—the one com- paring group 36 to group 44. This is an instance of data snooping, in which the particular hypothesis or comparison chosen originates from looking at the data. The familywise confidence level should be controlled, for the same reason as in the second case. The Spock trial, the diet restriction, and the platyfish preference stud- ies all involved planned comparisons. The handicap study had no prespecified comparisons, so any comparisons reported in it should be treated as unplanned. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 6.4 Some Multiple Comparison Procedures 161 6.4 SOME MULTIPLE COMPARISON PROCEDURES Confidence intervals for differences between pairs of means are centered at the difference between sample averages. Interval half-widths are computed as follows: As usual the standard error of the difference is the pooled standard deviation times the square root of the sum of reciprocals of sample sizes. There are many multiple comparison procedures, and these differ in their mul- tipliers. The two highlighted in the ensuing subsections offer strict control over the familywise confidence levels for two important families. 6.4.1 Tukey–Kramer Procedure and the Studentized Range Distributions The Tukey–Kramer procedure utilizes the unique structure of the multiple com- parisons problem by selecting a multiplier from the studentized range distributions rather than from the t-distributions. The idea is to incorporate the search for the two most divergent sample averages directly into the statistical procedure. Consider the case where all group means are equal and where all sample sizes are equal. The standard errors for all comparisons are the same and are equal to SE, say. A confidence interval is successful when it includes zero, so success occurs for a particular comparison when the magnitude of the difference between sample averages, jY i 􏰀 Y j j, is small. All such differences are less than M  SE if .Y max 􏰀 Y min /, the range of sample averages, is less than M  SE. By selecting M in such a way that the chance of getting .Y max 􏰀 Y min/  M  SE is 95%, one guarantees that all intervals include zero 95% of the time. That is, the overall familywise confidence level is set at 95%. A studentized range distribution describes values for the ratio of the range in I sample averages to the standard error of a single sample average, given that all samples are drawn from the same normal population. Tables of the studentized range distributions provide the 100  .1 􏰀 ̨/th percentile, qI;d:f:.1 􏰀 ̨/, depending on the number of groups .I/ and the degrees of freedom (d.f.) for estimating . (In the one-way classification problem, d.f. D n􏰀I.) The procedure originally proposed by Tukey—called Tukey’s HSD, for “honest significant difference”—assumed an ideal normal model with equal spreads and also assumed equal sample sizes in all groups. The modification for unequal sample sizes provides confidence intervals with approximately the correct confidence levels, and goes by the name of the Tukey– Kramer procedure. The multiplier used in the interval half-width calculation is p ŒqI;n􏰀I .1 􏰀 ̨/= 2. Interval half-width D (Multiplier)  (Standard error). In the handicap study, I D 5 groups and .n 􏰀 I / D 65 degrees of freedom. The 95th percentile in the corresponding studentized range distribution (interpolated Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 162 Chapter 6 Linear Combinations and Multiple Comparisons of Means 6.4.2 between 60 and 120 d.f. in Table A.5) is 3.975, so the multiplier for constructing 95% confidence intervals is 2.8107. Dunnett’s Procedure Dunnett proposed a multiple comparison procedure for comparing every other group to a reference group. This is often appropriate, such as for randomized experi- ments that compare several other treatments to a control. Dunnett realized that the t-statistics for comparing I 􏰀 1 other groups to a reference group were corre- lated due to the common appearance of the reference group average. To achieve a familywise error rate, the Dunnett procedure replaces the usual t-distribution with a multivariate t-distribution, which accounts for that correlation. Since there are fewer comparisons in this family than in the family of all possible pairwise compar- isons, the Dunnett-adjusted confidence intervals of a given confidence level will be narrower than those from the Tukey–Kramer procedure. Tables for the multivariate t-distribution aren’t readily available, but are incor- porated in computer routines for multiple comparisons with the Dunnett procedure. Such a routine was used to find the multiplier for 95% confidence intervals for comparing every other group to “None” (i.e., control) in Case Study 6.1.1. to be 2.5032. Notice that this falls between the unadjusted t-multiplier, 1.9971, and the Tukey–Kramer multiplier, 2.8107. Scheffé’s Procedure Scheff ́e proposed the multiplier p.I 􏰀 1/F.I􏰀1/;d:f:.1 􏰀 ̨/; where F.I􏰀1/;d:f:.1􏰀 ̨/ is the .1􏰀 ̨/th percentile of the F-distribution with I 􏰀1 and d.f. degrees of freedom. Here, .I 􏰀 1/ represents the between-group degrees of freedom, and d.f. is the within-group degrees of freedom. Scheff ́e’s multiplier controls the overall confidence level for the family of parameters consisting of all possible linear contrasts among group means. When applied to the smaller family of differences between pairs of group means, the overall confidence level is at least 100.1 􏰀 ̨/%, and generally is higher. The Scheff ́e method finds a more appropriate application in providing intervals for regression curves, as will be seen in later chapters. Inthehandicapstudy,I􏰀1D4;d.f.Dn􏰀I D65,andthe95thpercentilein the F -distribution is 2.513. The resulting multiplier is 3.1705. Other Multiple Comparisons Procedures The multiple comparisons procedures in this section present a range of options for balancing individual and familywise confidence levels. 6.4.3 6.4.4 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 6.4 Some Multiple Comparison Procedures 163 The LSD The familiar choice for a multiplier is the 100.1 􏰀 ̨=2/% critical value in the Stu- dent’s t-distribution with degrees of freedom equal to those associated with the pooled SD. The resulting interval half-width is called the least significant difference, or LSD. The terminology arises naturally because any difference that exceeds the LSD in size is significant in a 100 ̨%-level hypothesis test. The multiplier for the handicap study is t65.0:975/ D 1:9971. F-Protected Inferences The method known as “protected LSD” is a simple and widely used alternative for testing unplanned comparisons. It is a two-step procedure, as follows: 1. Perform the ANOVA F -test. 2. (a) If the p-value from the F-test is large .>0:05, say), do not declare any
individual difference significant, even though some differences appear large
enough to be declared real.
(b) If the p-value from the F -test is small, proceed with individual comparisons,
as in Section 5.2, using t-tests or confidence intervals with the t-multiplier.
In the handicap study, the p-value from the ANOVA test was 0.03, so the F -protected comparison plan would proceed to step 2(b).
Although one should compute confidence intervals whether or not the F -test’s p-value is small, there is no convenient method for F -protecting confidence inter- vals. It is tempting to use a t-multiplier in 2(b) and to substitute either the Tukey–Kramer or Scheff ́e multipler in 2(a), depending on the family. That prac- tice, however, would control neither the individual nor the familywise success rate at 95%.
Bonferroni
If the confidence level for each of k individual comparisons is adjusted upward to 100.1 􏰀 ̨=k/%, the chance that all intervals succeed simultaneously is at least 100.1􏰀 ̨/%. This result is an application of the Bonferroni inequality in probability theory. Using the Student’s t-multiplier td:f:.1􏰀 ̨=2k/ allows the user to be “at least 100.1􏰀 ̨/% confident” that all intervals succeed. In a multiple comparisons problem involving I groups, there are k D I.I 􏰀 1/=2 pairs of means to be compared. The exact confidence level for the Bonferroni intervals is not generally as predictable as for the Tukey–Kramer intervals in the multiple comparisons problem. Bonferroni intervals may be used in a wider range of problems, however, including some situ- ations where the Tukey–Kramer approach is not appropriate. With the five groups in the handicap study, k D 10, so the t-multiplier is the 99.75th percentile in the t-distribution with 65 d.f., or 2.9060.
Others
The Newman–Keuls procedure also employs studentized range distributions, but with different multipliers for different ranges. Duncan’s multiple range procedure
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

164
Chapter 6 Linear Combinations and Multiple Comparisons of Means
DISPLAY 6.6
Group
Procedure
Average
Hearing
Amputee
Control Wheelchair
A confidence interval is centered at a difference with half-width given by
one of the procedures.
Summary of 95% confidence interval procedures for differences between treatment means in the handicap study
Difference with . . .
95% interval half-width
extends the Newman–Keuls procedure, with a Bonferroni protective correction to the nominal level.
6.4.5 Multiple Comparisons in the Handicap Study
The pooled estimate of the standard deviation of the data in Display 6.1 is 1.633. All groups have the same sample size (14) so the standard error for any and all differences between sample averages is
SE.Yi 􏰀Yj/D1:633r 1 C 1 D0:6172: 14 14
The other relevant information is as follows: There are I D 5 groups, so there are k D 10 different comparisons, and the degrees of freedom for the standard error are 65.
Display 6.6 summarizes the ten 95% confidence intervals computed according to the multiple comparisons methods described earlier. Since sample sizes are all the same, confidence intervals have the same width for all comparisons under each method. The upper part of Display 6.6 shows the centers of the confidence intervals. The lower part shows the interval half-widths.
If the researchers’ intent is to compare each of the handicap groups to the control group, then the Dunnett procedure is appropriate. In this case, none of the 95% confidence intervals for the handicap minus control difference exclude zero, so the data provide no evidence of a handicap effect. If, however, their intent is to compare every group to every other group, then the Tukey–Kramer procedure is appropriate. It suggests one difference—between the hearing and crutches groups.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

6.5 Related Issues 165
Recall, however, that comparing the combined crutches and wheelchair group with the combined amputee and hearing group (Display 6.4) revealed a very clear difference. Making that comparison was suggested by an examination of the data; by analogy, the interval here should also be widened by using the Scheff ́e multiplier in place of the t-multiplier. When this is done, the confidence interval for the contrast is from 0.011 to 2.775, which still excludes zero. Because the Scheff ́e method incorporates the search among linear contrasts for the most significant, one should conclude that strong evidence exists that this difference is real.
6.4.6 Choosing a Multiple Comparisons Procedure
The LSD is the most liberal procedure (narrowest confidence intervals), and the Scheff ́e procedure is the most conservative (widest confidence intervals). Bonferroni and Tukey–Kramer procedures occupy intermediate positions. Aside from conduct- ing these general comparisons, the best approach is to think carefully about whether it is desirable to control the familywise confidence level and, if so, what the appro- priate family of comparisons includes. If the answer to the first question is no, then standard t-tools apply. If the family of comparisons includes all differences of other groups with a reference group, the Dunnett method gives the appropri- ate control. If the family of comparisons includes pairwise differences of all group means, the Tukey–Kramer method gives precise control. If the family includes a large number of comparisons and no other method seems feasible, the Bonferroni method—although conservative—can always be applied.
6.5 RELATED ISSUES
6.5.1 Reasoning Fallacies Associated with Statistical
Hypothesis Testing and p-Values
p-values indicate the strength of evidence from data in support of an alternative to a null hypothesis. Although p-value reasoning is both natural and logical, widespread misinterpretations and misuses cause many scientists and statisticians to advo- cate their elimination from scientific discourse. The abuses are easily understood, though. For the sake of preserving a tool that is very useful when used correctly, it is important for students of statistics to recognize and avoid the misinterpretations. To this end, Display 6.7 lists the important ones. Scientists that understand this display are unlikely to error in their interpretations of p-values.
6.5.2 Example of a Hypothesis Based on How the Data Turned Out
Although not a one-way classification problem, the following example demonstrates the need to incorporate data snooping into the assessment of uncertainty. The letters in Display 6.8 represent 2,436 mononucleotides in a DNA molecule. Mononu- cleotides come in four varieties—A, C, G, and T—and their sequence along the DNA strand forms a molecule’s genetic code. DNA molecules break, drift for a time, and
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

166 Chapter 6 Linear Combinations and Multiple Comparisons of Means
DISPLAY 6.7 Common fallacies of reasoning from statistical hypothesis tests
Fallacy name
The fallacy
Avoiding the fallacy
False Causality Fallacy
Incorrectly interpreting statistical significance (i.e., a small p-value) from an observational study as evidence of causation
Use the word association to indicate a relationship that is not necessarily a causal one.
Fallacy of Accepting the Null
Incorrectly interpreting a lack of statistical evidence that a null hypothesis is false (i.e., a large p-value) as statistical evidence that the
null hypothesis is true
Avoid this incorrect wording: “the study provides evidence that there is no difference.” Say instead: “there is no evidence from this study of a difference.” Also, report a confidence interval to emphasize the many possible hypothesized values (in addition to 0) that are consistent with the observed data.
Confusing Statistical for Practical Significance
Interpreting a “statistically significant” effect (which has to do with the strength of evidence that there’s an effect) as a practically important one, which it may or may not be
If you must use the term statistically significant, don’t abbreviate it. Also, report a confidence interval so that the size of an effect can be evaluated for its practical importance.
Data Dredging (Fishing for Significance, Data Snooping)
Incorrectly drawing conclusions from an unadjusted p-value that emerged from a process of sifting through many possible p-values
Note: “Publication Bias” is the de facto data dredging that results if journals only accept research papers with statistically significant findings.
For multiple comparisons of means, use the adjustments in this chapter. For identifying a few from many possible predictor variables, use the variable selection methods in Chapter 12. For tests based on many different response variables (data mining), use the False Discovery Rate methods of Chapter 16.
Good Statistics from Bad Data
Incorrectly accepting conclusions based on sound statistical technique when there are problems with data collection, such as biased sampling or data contamination
Critically evaluate the potential biases from non–randomly selected samples.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

6.5 Related Issues 167
DISPLAY 6.8
2,436 mononucleotides along a DNA molecule. All 40 occurrences of the trinucleotide TGG appear in boldface. Eleven breaks occurred in the string, at the positions indicated by dashes.
TAAAGAAACATAAATGCCGATATTTGTTAATACTGTGTACTGTAAGAATATATTAGCATTGT CTATGACTAAGAATTCAAAACAATTATTGATGCTATAGGGTGGCAATATAATAGTCAATTC TACGATATTGAAAAAGTTATCTCCTTACTTTCGCACACATTTACGTCAAAAATACACGAAA ATAAAGATCCAGTTACTTGGGTTTGTCTAGACCTTGACATTCACAGTTTAACTTCTATAGTT ATTTACTCGTATACTGGAAAGGTATATATAATAGTCATAACGTCGTCAATTTATTA-CGTGC TTCTATATTAACCTCTGTAGAATTTATCATCTACACTTGTATAAACTTTATCTTACGAGATTT TAGAAAGGAATATTGTGTCGAGTGTTACATGATGGG–TATATAATACGGACTATCCAATCTC TTATGTCATACTAAAAACTTTATTGCCAAACACTTTTTGGAACTGGAAGATGACATCATAG ACAATTTTGATTATCTATCTATGAAACTTATTCTAGAAAGCGATGAACTAAATGTTCCAGAT GAGGATTATGTAGTTGATTTTGTCATTAAGTGGTATATAAAGCGAAGAAATAAATTAGGAA ATCTGCTACTCCTTATCAAAAATGTAATCAGGTCAAATTATCTTTCTCCCAGAGGTATAAAT AATGTAAAATGGATACTAGACTGTACCA–AAATATTTCATTGTGATAAACAACCACGCAAA TCATACAAGTATCCATTCATAGAGTATCCTATGAACATGGATCAAATTATAGATATATCCA TATGTGTACAAGTACTCATGTTGGAGAAGTAGTATATCTCATCGGT–GGATGGATGAACAA TGAAATACATAACAATGCTATAGCGGTAAATTATATATCAAACAATTGGAT–TCCAATTCCT CCGATGAATAGCCCCAGACTGTATGCTAGCGGGATACCCGCTAACA–ATAAATTATACGTAG TAGGAGGTCTACCAAATCCCACATCTGTTGAGCGTTGGT–TCCACGGGGATGCTGCTTGGG TTAATATGCCGAGTCTTCTGAAACCTAGATGTAATCCAGCAGTGGC–ATCCATAAACAATGT TATATACGTAATGGGAGGACATTCTGAAACTGATACAACTACAGAATATTTGCTACCCAAT CATGATCAGTGGCAGTTTGGACCATTCCACTTATTATCCTCATTATAAATCATGCGCGTTAG TGTTCGGTAGAAGGTTATTCTTGGTTGGTAGAAATGCGGAATTTTATTGTGAATCCAGCAA TACATGGCTCTGATAGATGATCCTATTTATCCGAGGGATAATCCAGAATTGATCATAGTGG ATAATAAACTGCTATTGATAGGAGGATTTAATCGTGCATCGTATATAGATACTATAGAAGT GTACATCATCACACTTATTCATGGAATATATGGGATGGTAAATAATTTTGAAATAAAATAT TAGTTTTATGTTCAACATGAATATTAAC–TCACCAGTTAGATTTGTTAAGGAAACTAACAGA GCTAAATCTCCTACTAGGCAATCACCTTACGCCGCCGGATATGATTTATATAGCGCTTACGA TTATACTATCCCTCCAGGAGAACGACAGTTAATTAAGACAGATATTAGTATGTCCATGCCT AAGTTCTGCTATGGTAGAATAGCTCCTAGGTCTGGTCTGTCCCTAAAAGGCATTGATATAG GAGGCGGTGTAATAGACGAAGATTATAGGGGAAACATAGGAGTCATTCTTATTAATAATG GAAAATGTACGTTTAATGTAAATACTGGAGATACAATAGCTCAGCTAATCTATCAACGTAT ATATTATCCAGAACTGGAAGAAGTACAATCTCTAGATAGTACAAATAGAGGAGATCAAGG GTTT– GGATCAACAGGACTTAGATAATAAACAATAGTATGTTGTCGATGTTTATAGTGTAAT AATATCGTAGATTATGTAGATGATATAGATAATGGTATAGTACAGGATATAGAAGATGAG GCTAGCAATAATGTTGATCACGACTATGTATATCCACTTCCAGAAAATATGGTATATAGAT TTGACAAGTCCACTAACATACTCGATTATCTATCAACGGAACGGGACCATGTAATGATGGC TGTTCGATACTATATGAGTAAACAACGTTTAGACGACTTGTATAGACAGTTGCCCACAAAG ACTAGATCATATATAGATATTATCAACATATATTGTGATAAAGTTAGTAATGATTATAATAG GGACATGAATATCATGTATGA–TATGGCATCTACAAAATCATTTACAGTTTATGACATAAAT AACGAAGTTAATACTATACTAATGGATAACAAGGGGTTGGGTGTAAGATTGGCGACAATT TCATTTATAACCGAATTGGGTAGACGATGTATGA
then recombine with other strands to form new molecules. The molecule shown in Display 6.8 has broken in 11 places, indicated by the dashes between two mononu- cleotides. Three consecutive mononucleotides form a trinucleotide, which functions as a genetic word. In this molecule, the 40 occurrences of the trinucleotide TGG are shown in boldface. In line 7, a break point has appeared shortly after an occurrence of TGG, which is of interest because TGG may indicate an increased likelihood of a break to follow.
If a break occurs between any of the mononucleotides of TGG plus the four following, the break is said to be downstream from TGG. And in this particular molecule, 6 of the 11 breaks were downstream from a TGG trinucleotide. The question is, does this evidence support TGG as a precursor of breaks in the DNA?
Summary of Statistical Analysis
Two different analyses are possible, depending on whether the hypothesis that TGG was specifically indicated arose prior to viewing this molecule (planned comparison)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

168 Chapter 6 Linear Combinations and Multiple Comparisons of Means
or whether TGG was actually suggested by examination of this molecule (data snooping).
1. Of the 2,435 possible break positions in the entire string, 235 (9.65%) are downstream from TGG trinucleotides. If breaks occurred at random positions, about 9.65% of the 11 breaks (that is, one) would be downstream from TGG. But in fact, 6 of the 11 (54.55%) occurred downstream from TGG. That would seem to be too many to have happened by chance. If breaks occurred at random positions, the possibility that six or more would occur at positions downstream from TGG trinucleotides is precisely 0.000243. This is very small, showing strong evidence of an association between the occurrences of breaks and TGG.
The p-value of 0.000243 assumes, however, that, in every trial determining 11 breaks, the number downstream from TGG is counted. What if the focus on TGG were the result of a search on this molecule for the trinucleotide occurring most frequently upstream of the existing breaks? If the search for the trinucleotide was an integral part of the statistical analysis of this data set, the series of trials used to evaluate the evidence must also include the search procedure.
2. The computer was programmed to conduct a trial incorporating the search. It randomly selected 11 break points from the 2,435 possible, and searched upstream from all the breaks to find the trinucleotide appearing most frequently. Then it recorded the frequency of the occurrence of this trinucleotide. The computer ran 1,000 of these trials. Of course, the most frequently occurring trinucleotide differed considerably from trial to trial. The key piece of evidence is the distribution of the frequency of the most frequent upstream trinucleotide, which appears in Display 6.9. In 320 of the 1,000 trials, some trinucleotide was found upstream from the 11 breaks 6 times or more. In one trial, the same trinucleotide occurred upstream 11 times. Thus, having some trinucleotide upstream from many of the breaks in a molecule appears to be rather common! Consequently, if the search was conducted on this molecule, the p-value for an observed highest frequency of 6 is p D 0:32:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 6.9
Simulated estimate of the distribution of the highest frequency of occurrence of any trinucleotide upstream of 11 randomly selected breaks
32% of the simulation trials had some trinucleotide that was upstream of six or more break points.
1 2 3 4 5 6 7 8 9 10 11 12+
Highest Frequency of Occurrence for a Trinucleotide Upstream of the Break Points

6.6 Summary 169
Scope of Inference
This example illustrates the tremendous difference between evaluating the strength of evidence about a preplanned hypothesis and evaluating the strength of evidence about a hypothesis suggested by the data themselves. Correct evaluation of post hoc hypotheses is possible, but it must incorporate the actual procedure by which the hypothesis was formulated. (Data from M. B. Slabaugh, N. A. Roseman, and C. K. Mathews, “Amplification of the Ribonucleotide Reductase Small Subunit Gene: Analysis of Novel Joints and the Mechanism of Gene Duplication in Vaccinia Virus,” Biochemistry and Biophysics Department Report, Oregon State University, Corvallis, Oregon (1989).)
How valuable is the correct p-value? These researchers did “discover” TGG from this molecule. Had they accepted the strength of evidence 0.000243, they might have wasted considerable effort devising explanations for what turned out to be a nonrepeatable phenomenon.
6.5.3 Is Choosing a Transformation a Form of Data Snooping?
The Statistical Sleuth emphasizes examining graphical displays for clues to possible data transformation. When a stem-and-leaf diagram suggests a logarithmic trans- formation, should the resulting inferences take the data-selected transformation into account? The answer is yes. Uncertainty about which transformation (if any) is best is part of the problem, so a measure of uncertainty regarding the question of interest should incorporate uncertainty about the form of the statistical model.
In practice, however, most researchers do not incorporate model uncertainty into uncertainty measures—largely because doing so is extremely difficult. In later chapters (in particular, Chapter 12), The Statistical Sleuth will investigate some methods that have been devised for solving this problem. For now, the scope of inference should be limited to replicates where the transformation is selected. To caution a reader about additional uncertainty, the statistical summary should explain clearly all the steps taken to select the transformation.
6.6 SUMMARY
Many researchers routinely examine an analysis of variance F -statistic for group differences; if it is significant, they proceed directly to multiple comparison methods to search for differences. In most cases, this is a mistake. Usually the groups have an inherent structure related to levels of specific factors set by the researcher. Linear combinations of group means can be devised to answer questions related to this structure.
A host of studies fall within the general class of one-way classifications. Yet the statistical analysis is not the same for all. A major distinction must be made between studies in which the group structure calls for specific planned comparisons and those in which the only question of interest is which means differ from which
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

170 Chapter 6 Linear Combinations and Multiple Comparisons of Means
others. Selecting an appropriate statistical procedure requires the researcher to evaluate honestly whether hypotheses were clearly stated prior to data collection or whether the data themselves guided the formulation of hypotheses. In the latter case, proper statistical evaluation must acknowledge the data-snooping process.
This chapter demonstrates some statistical tools for assessing uncertainty when a family of inferences is desired. Selecting an appropriate tool requires some intro- spection about the nature of the family examined. This chapter also introduced a powerful tool—computer simulation—that can help evaluate evidence about more complex hypotheses suggested by the data.
6.7 EXERCISES
Conceptual Exercises
1. Handicap Study. (a) Is it possible that the applicant’s handicap in the videotape is confounded with the actor’s performance? (b) Is there a way to design the study to avoid this confounding?
2. Mate Preference of Platyfish. If 1; 2; : : : ; 6 represent the mean percentage of time spent by females with the yellow-sword male, for the six pairs of males, (a) state the null and alternative hypotheses that are tested by (i) the analysis of variance F -test and (ii) the t -test for the hypothesis that the linear contrast (for the linear effect of male body size) is zero. (b) Say why it is possible that the second test might find evidence that the means are different even if the first does not.
3. Mate Preference of Platyfish. For the test that the mean percent of time females spent with yellow-sword males is 50%, a one-tailed p-value was reported. Why?
4. An experimenter takes 20 samples of bark from each of 10 tree species in order to estimate the differences between fuel potentials. The data give 10 species averages, the lowest being 1.6 Btu/lb and the highest 3.8 Btu/lb for a range of 2.2 Btu/lb. A colleague suggests that another species be included, so the experimenter plans to gather 20 samples from that species and calculate its average potential. Which of the following is true about the range that the 11 species averages will have when the new species is included? (a) The range will equal the old range, 2.2 Btu/lb. (b) The range will be larger than 2.2 Btu/lb. (c) The range will be smaller than 2.2 Btu/lb. (d) The range cannot be smaller than 2.2 Btu/lb. (e) The range cannot be larger than 2.2 Btu/lb. (f) It is not possible to say that any of the above options is true until the average is known.
5. O-Ring Data. The case study in Section 4.1.1 involved the numbers of O-ring events on U.S. space shuttle flights launched at temperatures above and below 65ıF. In the context of this chapter, is anything suspicious about that data? (Hint: Is there a possibility of data snooping?)
6. Does a confidence interval for the difference between two groups use information about variability from other groups? Why? or Why not?
7. What is the distinction between planned and unplanned comparisons?
8. Does a planned comparison always consist of estimating the difference between the means in
two groups?
9. In comparing 10 groups a researcher notices that Y 7 is the largest and Y 3 is the smallest, and then tests the hypothesis that 7 􏰀 3 D 0. Why should a multiple comparison procedure be used even though there is only one comparison being made?
10. If the analysis of variance screening test shows no significant evidence of any group differences, does that end the issue of there being any differences to report?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 6.10
Group
Test scores for the experimental CAD instruction course
Logo Teaching method n Average SD
6.7 Exercises 171
11. When choosing coefficients for a contrast, does the choice of fC1; C2; : : : ; CI g give a different t-ratio than the choice of f3C1;3C2;:::;3CIg?
Computational Exercises
12. Handicap Study. Consider the groups amputee, crutches, and wheelchair to be handicaps of mobility and hearing to be a handicap affecting communication. Use the appropriate linear combi- nation to test whether the average of the means for the mobility handicaps is equal to the mean of the communication handicap.
13. Handicap Study. Use the Bonferroni method to construct simultaneous confidence intervals for 2 􏰀 3; 2 􏰀 5, and 3 􏰀 5 (to see whether there are differences in attitude toward the mobility type of handicaps).
14. Handicap Study. Examine these data with your available statistical computer package. See what multiple comparison procedures are available within the one-way analysis of variance procedure. Verify the 95% confidence interval half-widths in Display 6.6.
15. Comparison of Five Teaching Methods. An article reported the results of a planned experi- ment contrasting five different teaching methods. Forty-five students were randomly allocated, nine to each method. After completing the experimental course, a one-hour examination was adminis- tered. Display 6.10 summarizes the scores on a 10-minute retention test that was given 6 weeks later. (Data from S. W. Tsai and N. F. Pohl, “Computer-Assisted Instruction Augmented with Planned Teacher/Student Contacts,” Journal of Experimental Education, 49(2) (Winter 1980–81): 120–26.)
(a) Compute the pooled estimate of the standard deviation from these summary statistics.
(b) Determine a set of coefficients that will contrast the methods using programmed text as part
of the method (groups 2 and 3) with those that do not use programmed text (1, 4, and 5). (c) Estimate the contrast in (b) and compute a 95% confidence interval.
16. A study involving 36 subjects randomly assigned six each to six treatment groups gives an ANOVA F-test with p-value D 0:0850. What multipliers are used to construct 95% confidence intervals for treatment differences with the following methods: (i) LSD, (ii) F-protected LSD, (iii) Tukey–Kramer, (iv) Bonferroni, and (v) Scheffe ́?
17. Adder Head Size. Red Riding Hood: “My, what big teeth you have!” Big Bad Wolf: “The better to eat you with, my dear.” Are predators morphologically adapted to the size of their prey? A. Forsman studied adders on the Swedish mainland and on groups of islands in the Baltic Sea to determine if there was any relationship between their relative head lengths (RHL) and the body size of their main prey, field voles. (Data from A. Forsman, “Adaptive Variation in Head Size in Vipera berus L. Populations,” Biological Journal of the Linnean Society 43 (1991): 281–96.) Relative head length is head length adjusted for overall body length, determined separately for males and females. Field vole body size is a combined measure of several features, expressed on a standardized scale.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

172 Chapter 6 Linear Combinations and Multiple Comparisons of Means
DISPLAY 6.11
Average relative head lengths of adders from seven  Swedish localities with their distances to the mainland and the body sizes of prey

Average Sample relative
Distance (km) to mainland
Field vole body size
Locality size head length
The data appear in Display 6.11. The pooled estimate of standard deviation of the RHL measurements was 11.72, based on 230 degrees of freedom.
(a) Determine the half-widths of 95% confidence intervals for all 21 pairwise differences among means for the seven localities, using (i) the LSD method and (ii) the Tukey–Kramer method.
(b) Using a linear contrast on the groups for which vole body size is available, test whether the locality means (of relative head length) are equal, against the alternative that they fall on a straight line function of vole body size, with nonzero slope.
(c) Repeat (b) for the pattern of distances to the mainland rather than vole body size.
Nest Cavities. Using the nest cavity data in Exercise 5.19, estimate the difference between the average of the mean entry areas for flickers, screech-owls, and kestrels and the average of the mean entry areas for the other six animals (on the transformed scale). Use a contrast of means.
19. Diet Restriction. For the data in Display 5.1 (and the summary statistics in Display 5.2), obtain a 95% confidence interval for the difference 3 􏰀 2 using the Tukey–Kramer procedure. How does this interval differ from the LSD interval? Why is the Tukey–Kramer procedure the wrong thing to use for this problem?
20. Equity in Group Learning. [Continuation of Exercise 5.22.] (a) To see if the performance of low-ability students increases steadily with the ability of the best student in the group, form a linear contrast with increasing weights: 􏰀3 D Low, 􏰀1 D Low–Medium, C1 D Medium–High, and C3 D High. Estimate the contrast and construct a 95% confidence interval. (b) For the High-ability students, use multiple comparisons to determine which group composition differences are associated with different levels of test performance.
21. Education and Future Income. Reconsider the data problem of Exercise 5.25 concerning the distributions of annual incomes in 2005 for Americans in each of five education categories. (a) Use the Tukey–Kramer procedure to compare every group to every other group. Which pairs of means differ and by how many dollars (or by what percent)? (Use p-values and confidence intervals in your answer.) (b) Use the Dunnett procedure to compare every other group to the group with 12 years of education. Which group means apparently differ from the mean for those with 12 years of education and by how many dollars (or by what percent)? (Use p-values and confidence intervals in your answer.)
18.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

6.7 Exercises 173
22. Reconsider the measurements of oxygen composition in 12 dinosaur bones from Exercise 5.23. Using a multiple comparisons procedure in a statistical computer package, find 95% confidence inter- vals for the difference in means for all pairs of bones (a) without adjusting for multiple comparisons and (b) using the Tukey–Kramer adjusted intervals. (c) How many of the unadjusted intervals exclude zero? (d) How many of the Tukey–Kramer adjusted intervals exclude zero? (e) By how much does the width of the adjusted interval exceed the width of the unadjusted interval, as a percentage, for comparing bone 1 to bone 2?
Data Problems
23. Diet Wars. To reduce weight, what diet should one combine with exercise? Most studies of human dieting practices have faced problems with high dropout rates and questionable adherence to diet protocol. Some studies comparing low-fat and low-carbohydrate diets have found that low-carb diets produced weight loss early, but that the loss faded after a short time. In an attempt to exert more control on subject adherence, a team of researchers at Ben-Gurion University in Negev, Israel, conducted a trial within a single workplace where lunch—the main meal of the day—was provided by the employer under the guidance of the research team. The team recruited 322 overweight employees and randomly assigned them to three treatment groups: a low-fat diet, a low-carb diet (similar to the Atkins diet), and a Mediterranean diet. Trans-fats were discouraged in all three diets. Otherwise, the restrictions and recommendations were as follows:
Calorie/day restriction
Percentage of calories from fat Carbohydrates/day
Percentage of calories from saturated fat Cholesterol/day Recommended:
Discouraged:
Low-fat (n D 104)
Women: 1,500 kcal Men: 1,800 kcal
30%
(not specified)
10%
300 mg low-fat grains vegetables fruits legumes added fats
Mediterranean (n D 109)
Women: 1,500 kcal Men: 1,800 kcal
35%
(not specified)
(not specified) (not specified) 30–45 g olive oil 5–7 nuts < 20 g vegetables fish and poultry beef and lamb sweets high-fat snacks Low-carbohydrate (n D 109) (Not Specified) (not specified) 20 g at start; increasing to 120 g (not specified) (not specified) get fat and protein from vegetables The study ran for two years, with 272 employees completing the entire protocol. Display 6.12 shows some of a data set simulated to match the weight losses (kg) of the participants at the study’s con- clusion. Is there evidence of differences in average weight loss after two years among these diets? If so, which diets appear to be better than which others? (Notice the consequences of controlling the family-wise confidence level on the widths of 95% confidence intervals.) 24. A Biological Basis for Homosexuality. Is there a physiological basis for sexual preference? Following up on research suggesting that certain cell clusters in the brain govern sexual behavior, Simon LeVay (data from S. LeVay, “A Difference in Hypothalamic Structure Between Heterosexual and Homosexual Men,” Science, 253 (August 30, 1991): 1034–37) measured the volumes of four cell groups in the interstitial nuclei of the anterior hypothalamus in postmortem tissue from 41 subjects at autopsy from seven metropolitan hospitals in New York and California. The volumes of one cell Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 174 Chapter 6 Linear Combinations and Multiple Comparisons of Means DISPLAY 6.12 Partial listing of data from a diet and weight loss experiment, showing subject number (there were 272 subjects), diet treatment group (there were 3), and weight loss (in kg) after 24 months Subject 1 2 3 .. . 105 106 107 .. . 214 215 216 Group Low-Fat Low-Fat Low-Fat Mediterranean Mediterranean Mediterranean Low-Carbohydrate Low-Carbohydrate Low-Carbohydrate WtLoss24 2.2 – 4.8 2.9 10.8 6.4 – 0.3 3.4 4.8 10.9 DISPLAY 6.13 Volumes of INAH3 (1,000  mm3 ) cell clusters from 41 human subjects at autopsy, by sex, sexual orientation, and cause of death Heterosexual Homosexual Heterosexual AIDS death Non-AIDS death AIDS death AIDS death Non-AIDS death 12 105 105 118 119 161 Males 20 1 34 37 7 39 103 12 41 129 15 46 135 18 66 140 18 86 161 23 128 175 26 142 179 29 193 209 32 Females 12 10 19 29 105 155 cluster, INAH3, are re-created in Display 6.13. The numbers are 1,000 times volumes in mm3. Sub- jects are classified into five groups according to three factors: gender, sexual orientation, and cause of death. One male classified as a homosexual who died of AIDS (volume 128) was actually bisex- ual. LeVay used the term presumed heterosexual to indicate the possibility of misclassifying some subjects. Do heterosexual males tend to differ from homosexual males in the volume of INAH3? Do heterosexual males tend to differ from heterosexual females? Do heterosexual females tend to differ from homosexual males? Analyze the data and write a brief statistical report including a summary of statistical findings, a graphical display, and a details section describing the details of the particu- lar methods used. Also describe the limitations of inferences that can be made. (Hint: What linear combination of the five means can be used to test whether cause of death can be ignored? If cause of death can be ignored, what linear combinations of the resulting three means are appropriate for addressing the questions above?) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 6.7 Exercises 175 Answers to Conceptual Exercises 1. (a) Yes, it is possible that the acting performance of the actor portrayed a more competent worker in the crutches role, even though the script was held constant. (b) With two pairs of actors and twice as many groups, the handicap effect could be isolated from the actor effect. 2. (a) (i) Hypothesis: all means are equal; alternative: at least one is different from the others. (ii) Hypothesis: all means are equal: alternative: the means are not equal but fall on a straight line function of male body size (with nonzero slope). (b) The alternative in (ii) is more specific. For a given set of data there is more power in detecting differences if the (correct) specific alternative can be investigated. (This has previously been noticed by the fact that a one-tailed p-value is smaller than a two-tailed.) 3. The researcher had reason to believe, because of other species of fish in the same genus, that the colored tail would be more attractive to the females. 4. If the new species average is somewhere between 1.6 and 3.8 Btu/lb, the range of the set of means is unchanged. If the new species average is either less than 1.6 or greater than 3.8 Btu/lb, the range is larger. Those are the only possibilities. So the answer is (d): the range cannot be smaller than the old range (but it could be larger). The range increases as the number of groups increase. 5. Where did the 65ıF cutoff come from? If the analyst chose that cutoff because it produced the most dramatic difference between the two groups, the search procedure should be included in the assessment of evidence. 6. Yes, it does. It is important to pool information about variability because the population SD is difficult to estimate from small samples. 7. A planned comparison is one of a few specific comparisons that is designed to answer a question of interest. An unplanned comparison is one (of a large number) of comparisons that is suggested by the data themselves. 8. No. More complex comparisons can be made by examining linear combinations of group means. 9. The more groups there are, the larger the difference one expects between the smallest and largest averages. To incorporate the selection of this hypothesis on the basis of how the data turned out, the appropriate statistical measure of uncertainty is the same as the one that is appropriate for comparing every mean to every other mean. 10. Not necessarily. If there are no planned comparisons, it may be best to report no evidence of differences (protected LSD procedure). But the evidence about planned comparisons to answer questions of interest should be assessed on its own. It is possible that a planned comparison shows something when the F -test does not. 11. No. The parameter changes from to 3 , the estimate changes from g to 3g, and the standard error also changes from SE.g/ to SE.3g/ D 3SE.g/. So the t-ratio is not changed at all. This is why one can take the convenient step of multiplying a set of coefficients by a common factor to make all coefficients into integers, if desirable. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 7 Simple Linear Regression: A Model for the Mean 176 Chapters 5 and 6 advocated the investigation of specific questions of inter- est for the several-sample problem by paying attention to the structure of the grouped data. When the different groups correspond to different levels of a quantitative explanatory variable, the idea can be extended with the simple linear regression model, in which the means fall on a straight line function of the explanatory variable. Such a model has several advantages when it is appropriate. It offers a concise summary of the mean of the response variable as a function of the explanatory variable through two parameters: the slope and the intercept of the line. For a surprisingly large number of data problems this model is appropriate (possibly after transformation) and the questions of interest can be conveniently reworded in terms of the two parameters. The parameters are estimable even without replicate values at each distinct level of the explanatory variable. This chapter presents the model and some associated inferential tools. The next chapter takes a closer look at the simple linear regression model assumptions and how to measure departures from them. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 7.1 Case Studies 177 7.1 CASE STUDIES 7.1.1 The Big Bang—An Observational Study Edwin Hubble used the power of the Mount Wilson Observatory telescopes to measure features of nebulae outside the Milky Way. He was surprised to find a relationship between a nebula’s distance from earth and the velocity with which it was going away from the earth. Hubble’s initial data on 24 nebulae are shown as a scatterplot in Display 7.1. (Data from E. Hubble, “A Relation Between Distance and Radial Velocity Among Extra-galactic Nebulae,” Proceedings of the National Academy of Science 15 (1929): 168–73.) The horizontal axis measures the recession velocity, in kilometers per second, which was determined with considerable accuracy by the red shift in the spectrum of light from a nebula. The vertical scale measures distance from the earth, in megaparsecs: 1 megaparsec is 1 million parsecs, and 1 parsec is about 30.9 trillion kilometers. Distances were measured by comparing mean luminosities of the nebulae to those of certain star types, a method that is not particularly accurate. The data are shown later in this chapter as Display 7.8. DISPLAY 7.1 Scatterplot of measured distance versus velocity for 24 extra-galactic nebulae 3.0 2.5 2.0 1.5 1.0 0.5 0 – 400 –200 0 200 400 600 800 1,000 1,200 Recession Velocity (km/sec) The apparent statistical relationship between distance and velocity led sci- entists to consider how such a relationship could arise. It was proposed that the universe came into being with a Big Bang, a long time ago. The material in the universe traveled out from the point of the Big Bang, and scattered around the surface of an expanding sphere. If the material were traveling at a constant velocity .V / from the point of the bang, then the earth and any nebulae would appear as in Display 7.2. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Distance (megaparsecs) 178 Chapter 7 Simple Linear Regression: A Model for the Mean DISPLAY 7.2 Big Bang theory model for distance–velocity relationship of nebulae 3 Half the distance between the nebula and earth, divided by D, is the sine of half the angle between the trajectories of the two bodies. 5 Half the total recession velocity divided by V is the sine of the same half-angle. A Nebula Earth A Bang! 4 The velocities V of the nebula and of the earth are composed of components moving in parallel and components receding from each other. 2 1 Traveling at velocity V, the earth and the nebula each have covered the distance D = VT since the bang occurred. T years ago, the universe came into being with a bang. The distance .Y/ between them and the velocity .X/ at which they appear to be going away from each other satisfy the relationship .Y=2/=V T D .X=2/=V D sin.A/; where A is half the angle between them. In that case, Y DTX is a straight line relationship between distance and velocity. The points in Dis- play 7.1 do not fall exactly on a straight line. It might be, however, that the mean of the distance measurements is TX. The slope parameter T in the equation MeanfYg D TX is the time elapsed since the Big Bang (that is, the age of the universe). Several questions arise. Is the relationship between distance and velocity indeed a straight line? Is the y-intercept in the straight line equation zero, as the Big Bang theory predicts? How old is the universe? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 7.1 Case Studies 179 Statistical Conclusion If the theory is taken as correct, then the estimated age of the universe is 0:001922 megaparsecs-seconds per kilometer, or about 1.88 billion years (estimate of slope in simple linear regression through the origin). A 95% confidence interval for the age is 1.50 to 2.27 billion years. However, the data are not consistent with the Big Bang theory as proposed. Although the relationship between mean measured distance and velocity approximates a straight line, the value of the line at velocity zero is apparently not zero, as predicted by the theory (two-sided p-value D 0:0028 for a test that the intercept is zero). Scope of Inference These data are not a random sample, so they do not necessarily represent what would result from taking measurements from other nebulae. This analysis assumes that there is an exact linear relationship between distance and velocity, but that the measured distances do not fall exactly on a straight line because of measurement errors. The confidence interval above summarizes the uncertainty that comes from errors in distance measurements. Uncertainty due to errors in measuring velocities is not included in the p-values and confidence coefficients. Such errors are a potential source of pronounced bias. (Note: The Big Bang theory is still intact. Astronomers now estimate the universe to be 13.7 billion years old.) 7.1.2 Meat Processing and pH—A Randomized Experiment A certain kind of meat processing may begin once the pH in postmortem muscle of a steer carcass decreases to 6.0, from a pH at time of slaughter of around 7.0 to 7.2. It is not practical to monitor the pH decline for each animal, so an estimate is needed of the time after slaughter at which the pH reaches 6.0. To estimate this time, 10 steer carcasses were assigned to be measured for pH at one of five times after slaughter. The data appear in Display 7.3. (Data from J. R. Schwenke and Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 7.3 pH of 10 steer carcasses measured at five different times after slaughter Steer Time after slaughter (hours) pH 1 1 7.02 2 1 6.93 3 2 6.42 4 2 6.51 5 4 6.07 6 4 5.99 7 6 5.59 8 6 5.80 9 8 5.51 10 8 5.36 180 Chapter 7 Simple Linear Regression: A Model for the Mean DISPLAY 7.4 Meat processing data with estimated regression line (from the simple linear regression of pH on log time after slaughter) and a 95% prediction band Log(hours): 0.0 7.0 6.5 pH 6.0 5.5 Hours:1 0.5 1.0 1.5 2.0 95% prediction band Desirable level 2 345678 G. A. Milliken, “On the Calibration Problem Extended to Nonlinear Models,” Biometrics 47 (1991): 563–74.) Statistical Conclusion The estimated relationship between postmortem muscle pH and time after slaughter is summarized in Display 7.4. The solid line shows the estimated mean pH as a function of the logarithm of time after slaughter. The dotted lines are the upper and lower endpoints of 95% prediction intervals for the pH of steer carcasses at times after slaughter in the range of 1 to 8 hours. It is estimated that the mean pH at 3.9 hours is 6. It is predicted that at least 95% of steer carcasses will reach a pH of 6.0 sometime between 2.94 and 5.10 hours after slaughter (95% calibration interval). 7.2 THE SIMPLE LINEAR REGRESSION MODEL 7.2.1 Regression Terminology Regression analysis is used to describe the distribution of values of one variable, the response, as a function of other—explanatory—variables. This chapter deals with simple regression, where there is a single explanatory variable. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 7.2 The Simple Linear Regression Model 181 Think of a series of subpopulations of responses, one for each value of the explanatory variable, such as the subpopulation of pH values of steer carcasses, 4 hours after slaugher. The regression of the response variable on the explanatory vari- able is a mathematical relationship between the means of these subpopulations and the explanatory variable. The simple linear regression model specifies that this relationship is a straight line function of the explanatory variable. As evident in Display 7.4, a useful model for the meat processing data has the means of the sub- populations of pH falling on a straight line function of the logarithm of time after slaughter. Let Y and X denote, respectively, the response variable and the explanatory variable. The notation fY jX g will represent the regression of Y on X , and it should be read as “the mean of Y as a function of X.” When a specific value, X D x, is given to the explanatory variable, the same expression should be read as “the mean of Y when X D x.” The simple linear regression model is The equation involves two statistical parameters. ˇ0 is the intercept of the line, measured in the same units as the response variable. ˇ1 is the slope of the line, equal to the rate of change in the mean response per one-unit increase in the explanatory variable. The units of ˇ1 are the ratio of the units of the response variable to the units of the explanatory variable. A simple linear regression model for the statistical relationship between Y D Distance and X D Velocity in the Big Bang example is: fDistancejVelocityg D ˇ0 C ˇ1Velocity; in which ˇ0 and ˇ1 are the intercept and slope of the regression line. The intercept is in units of megaparsecs and the slope is in units of megaparsecs per (km/sec). A similar notation is fYjXg for the standard deviation of Y as a function of X . The equal-SD assumption specifies that  fY jX g D  , for all X . The complete picture of a probability model emerges if, as depicted in Dis- play 7.5, each of the subpopulations has a normal distribution. This model has only three unknown parameters—ˇ0, ˇ1, and . Notice that the model describes the dis- tributions of responses, but it says nothing about the distribution of the explanatory variable. In various applications, X-values may be chosen by the researcher, or they may themselves be random. The independence assumption means that each response is drawn indepen- dently of all other responses from the same subpopulation and independently of all responses drawn from other subpopulations. The common types of violations are cluster effects and serial effects, as before. 7.2.2 Interpolation and Extrapolation The simple linear regression model makes it possible to draw inference about any mean response within the range of the explanatory variable. Statements about the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. fYjXgDˇ0 Cˇ1X: 182 Chapter 7 Simple Linear Regression: A Model for the Mean DISPLAY 7.5 The ideal normal, simple linear regression model {Y | X } Explanatory Variable (X) Model Assumptions 1. There is a normally distributed subpopulation of responses for each value of the explanatory variable. 2. The means of the subpopulations fall on a straight line function of the explanatory variable. 3. The subpopulation standard deviations are all equal (to ). 4. The selection of an observation from any of the subpopulations is independent of the selection of any other observation. mean at values of X not in the data set, but within the range of the observed explanatory variable values, are called interpolations. The ability to interpolate is a strong advantage to regression analysis. Making statements for values outside of this range—extrapolation—is potentially dangerous, however, because the straight line model is not necessarily valid over a wider range of explanatory variable values. The regression of a response variable on an explanatory variable is not neces- sarily a straight line. The simple regression model is very useful, though, because the regression is often well approximated by a straight line in the region of interest or is approximated by a straight line after transformation. The remainder of this chapter assumes the simple regression model is appro- priate for the case studies. Model checking, transformations, and alternatives will be discussed in the next chapter. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Response Variable (Y) 7.3 Least Squares Regression Estimation 183 7.3 LEAST SQUARES REGRESSION ESTIMATION The method of least squares is one of many procedures for choosing estimates of parameters in a statistical model. The method was described by Legendre in 1805, but the German mathematician Karl Gauss had been using it since 1795 and is generally regarded as its originator. The method provides the foundation for nearly all regression and analysis of variance procedures in modern statistical computer software. 7.3.1 Fitted Values and Residuals The hat notation .O/ denotes an estimate of the parameter under the hat, so ˇO0 and ˇO1 are symbols for estimates of ˇ0 and ˇ1, respectively. Once these estimates are determined, they combine to form an estimated mean function, O f Y j X g D ˇO 0 C ˇO 1 X : This general expression may be calculated for each Xi in the data set to estimate the mean of the distribution from which the corresponding response Yi arose. The estimated mean is called the fitted value (or sometimes predicted value) and is rep- resented by fiti. The difference between the observed response and its estimated mean is the residual, denoted by resi : These definitions are illustrated in Display 7.6 for a simple example. fi t i D O f Y i j X i g D ˇO 0 C ˇO 1 X i : resi DYi 􏰀fiti DISPLAY 7.6 Y Y4 fit4 res4 Estimated regression line (Y|X)= 0+ 1X X Illustration of the residual and fitted value for observation (X4, Y4) in a hypothetical data set of size 4 X4 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 184 Chapter 7 Simple Linear Regression: A Model for the Mean 7.3.2 The magnitude of a single residual measures the distance between the corre- sponding response and its fitted value according to the estimated mean function. A good estimate should result in a small distance. A measure of the distance between all responses and their fitted values is provided by the residual sum of squares. Least Squares Estimators Least squares estimates of ˇ0 and ˇ1 are those values for the intercept and slope that minimize the sum of squared residuals (hence “least squares”). The solution to this fitting criterion is found by calculus to be: n X.Xi 􏰀X/.Yi 􏰀Y/ ˇO 1 D i D 1 ; n X.Xi 􏰀X/2 iD1 ˇO 0 D Y 􏰀 ˇO 1 X 7.3.3 (the interested reader is referred to Exercise 26). Statistical computer packages carry out the arithmetic, as shown for the Big Bang data in Display 7.9. Sampling Distributions of the Least Squares Estimators The sampling distributions of ˇO0 and ˇO1 are the distributions of least squares esti- mates from hypothetical repeated sampling of response measurements at the same (fixed) values of the explanatory variable. In the meat processing example, a single repetition consists of obtaining pH readings from two new steers at each of the times 1, 2, 4, 6, and 8 hours after slaughter. If the normal, simple linear regression model applies, then Display 7.7 summarizes what statistical theory concludes about the sampling distribution. Estimation of  from Residuals The parameters of primary interest are ˇ0 and ˇ1, but the sampling distributions of their estimators depend on the parameter . Therefore, even if there is no direct interest in the variation of the observations about the regression line, an estimate of  must be obtained in order to assess the uncertainty about estimates of the slope and the intercept. Residuals provide the basis for an estimate: 7.3.4 O D s Sum of all squared residuals ; Degrees of freedom Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 7.7 Facts about the sampling distributions of the least squares estimators of slope and intercept in the ideal normal model (from statistical theory) 7.3 Least Squares Regression Estimation 185 Sampling of Distribution of 1 Center The mean of the sampling 3 SHAPE The shape of the sampling distribution is normal. Spread distribution is Sampling Distribution of 1 ˆ 1 1 Center The mean of the sampling distribution is . 2 Spread ˆ1X where the degrees of freedom are the sample size minus two, n 􏰀 2. This is another instance of applying the general rule for finding the degrees of freedom associated with residuals from estimating a model for the means. Rule for Determing Degrees of Freedom Degrees of freedom associated with a set of residuals D .Number of observations/ 􏰀 .Number of parameters in the model for the means/: To understand the rule’s application to simple linear regression, it is helpful to think about the case where n D 2. The least squares estimated line connects the two Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. SD 2 = - + ------- SD 3 = ------- n – 1 s 2X 2 where sX2 is the sample variance of the X’s. Shape The shape of the sampling distribution is normal. n n–1s2X 186 Chapter 7 Simple Linear Regression: A Model for the Mean DISPLAY 7.8 points, and both residuals are zero. There are no degrees of freedom for estimating variance. Only by adding a third or more observations is there any information about the variability. Example—Big Bang The parameter estimates for the Hubble data are: ˇO0 D 0:3991 megaparsecs and ˇO1 D 0:001373 megaparsecs/(km/sec). The fitted values and residuals from the least squares fit are shown in Display 7.8. The sum of the 24 squared residuals is 3.6085, with 22 degrees of freedom. The estimate of 2 is 0.164, and the estimate of  is 0.405 megaparsecs. Fitted values and residuals for the Big Bang study Velocity Distance i Nebula Xi Yi fiti resi 7.3.5 Standard Errors Standard errors for the intercept and slope estimates are obtained by replacing  with O in the formulas for their standard deviations (see Display 7.7). The degrees of freedom assigned to these standard errors are n 􏰀 2, the same as those attached to the residual estimate of the standard deviation: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 7.9 Display 7.9 shows a table that is typical of computer output for regression. Sepa- rate rows show the estimates, standard errors, and t-tests for the hypotheses that parameter values are zero. The first row corresponds to ˇ0, the coefficient of the oxymoronic constant variable. The second row corresponds to ˇ1, the coefficient of the variable velocity. Regression parameter estimates for the Big Bang study Variable Coefficient Standard error t-statistic p-value 0.0028 0.0000045 Another recommended way to report the results of regression analysis is to present the estimated equation with standard errors in parentheses below the corresponding parameter estimates: Estimated Mean Distance D 0:3991 C 0:001373 (Velocity) .0:1185/ .0:000227/ Estimated SD of Distances D 0:405 megaparsec (22 d.f.) 7.3 Least Squares Regression Estimation 187 and S E . ˇO 1 / D O s 1 .n􏰀1/s 2 X O vu ut 1 X 2 SE.ˇ0/DO nC.n􏰀1/s 2; d : f : D n 􏰀 2 d:f:Dn􏰀2; where s 2 is the sample variance of the X’s. X Example—Big Bang Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. ; X 188 Chapter 7 Simple Linear Regression: A Model for the Mean 7.4 INFERENTIAL TOOLS 7.4.1 Tests and Confidence Intervals for Slope and Intercept Inferences are based on the t-ratios, .ˇO0 􏰀ˇ0/=SE.ˇO0/ and .ˇO1 􏰀ˇ1/=SE.ˇO1/, which have t-distributions with n􏰀2 degrees of freedom under the conditions of the normal simple linear regression model. As usual, tests are appropriate when the question is whether the data are consistent with some particular hypothesized value for the parameter, as in “Is 7 a possible value for ˇ0?” Confidence intervals are appropriate for presenting a range of values for a parameter that are consistent with the data, as in “What are the possible values of ˇ0?” The p-values for the tests that ˇ0 and ˇ1 are individually equal to zero are included as standard output from statistical computer packages, as shown in Display 7.9. Although the test that ˇ1 is zero is often very important—so as to judge whether the mean of the response is unrelated to the explanatory variable— neither of the reported tests necessarily answers a relevant question. To obtain p-values for testing other hypothesized values or to construct confidence intervals, the user must perform other calculations based on the estimates and their standard errors. Some examples follow. Does Hubble’s Data Support the Big Bang Theory? (Test That ˇ0 Is 0) According to the theory discussed in Section 7.1.1, the true distance of the nebulae from earth is a constant times the recession velocity, so, if Y is measured distance, fY jX g D ˇ1 X . Thus, if the simple theory is right, the linear regression of measured distance on velocity will have intercept zero. Since the relationship does indeed appear to be a straight line, a check on the theory is accomplished by a test that ˇ0 is 0. From Display 7.9 the two-sided p-value for this test is reported as 0:0028, providing convincing evidence that these data do not support the theory as stated. What Is the Age of the Universe According to the Big Bang Theory? (Confidence Interval for ˇ1) According to the Big Bang theory, fYjXg D ˇ1X, and ˇ1 is the age of the universe. To estimate ˇ1 with the value .0:001373/ reported in Display 7.9 would be wrong, because that estimate refers to a different model—one with an intercept parameter—in which the slope parameter has a somewhat different meaning. A least squares fit to the Big Bang model—without the intercept parameter—gives an estimate for ˇ1 of 0:001922 megaparsec-second per km, with a standard error of 0:000191 based on 23 degrees of freedom. Since t23.0:975/ D 2:069, the confidence interval for ˇ1 is 0:001922 ̇.2:069/.0:000191/, or from 0:001527 to 0:002317, or 1:50 to 2:27 billion years. The best estimate is 1.88 billion years. (One megaparsec-second per kilometer is about 979.8 billion years.) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 7.4 Inferential Tools 189 7.4.2 Describing the Distribution of the Response Variable at Some Value of the Explanatory Variable At some specified value, X D X0, for the explanatory variable, the response distri- bution has mean ˇ0Cˇ1X0 and standard deviation . For example, the distribution of pH levels of steers 4 hours after slaughter will have mean ˇ0 C ˇ1 log.4/. Not all steers will have this pH; the variability of individual pH’s around this mean is represented by the standard deviation . With least squares estimates, ˇO0 D 6:98, ˇO1 D 􏰀0:7257, and O D 0:0823, it can be estimated that the distribution of pH’s at 4 hours has a mean of 6:98 􏰀 0:7257 log.4/ D 5:98 and an SD of 0.0823. The Standard Error for the Estimated Mean The standard error of ˇO0 C ˇO1X0, for some specific number X0, is Once this standard error is computed, a confidence interval or a test for the mean of Y at X0 follows according to standard t-tools. In addition to O, the formula requires the average and the sample variance of the explanatory variable values in the data set. The calculations, as demonstrated on the meat processing example in Display 7.10, are straightforward, but inconvenient to do by hand. s1 .X0 􏰀X/2 SEŒOfYjX0gDO nC.n􏰀1/s2; d:f:DnD2: X DISPLAY 7.10 95% confidence interval for the mean pH of steers 4 hours after slaughter (from the estimated regression of pH on log(time) after slaughter for the meat processing data) {Y | 1.386} = 6.9836 – 0.7257 × 1.386 = 5.98 SE[ {Y |1.386}] = 0.08226 = 0.0269 1 10 n X0 = log(4) X (1.386 – 1.190)2 + 9 (0.6344) (n –1) sX2 = 6.04 = 5.92 Upper limit : Lower limit : 5.98 + 2.306 × 0.0269 5.98 – 2.306 × 0.0269 t8(0.975) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 190 Chapter 7 Simple Linear Regression: A Model for the Mean Computer Centering Trick A computer trick can be used to bypass the hand calculations. First, create an artificial explanatory variable, X D X􏰀X0, by subtracting X0 from all explanatory variable values. This centers X at X0, in the sense that the value X D X0 becomes the value X D 0. Next, fit the simple linear regression of Y on X. The intercept in the linear regression model fYjXg is the mean of Y at X D 0, which is exactly the mean of Y at X D X0. Therefore, you may now read the standard error for the estimated mean directly off the computer output as the standard error for the intercept parameter. This trick extends to many more complicated situations. Additional Notes About the Estimated Mean at Some Value of X 1. SE for estimated intercept. Notice that for X0 D 0, the formula for the standard error of the estimated mean, above, reduces to the formula for the standard error of the estimated intercept. 2. Precision in estimating fY jX g is not constant for all values of X . The formula for the standard error indicates that the precision of the estimated mean response decreases as X0 gets farther from the sample average of X’s. 3. Compound uncertainty in estimating several means simultaneously. This section has addressed the situation where there is one single value of X0 at which the mean response is desired. The construction of a 95% confidence interval is such that 95% of repetitions of the sampling process result in intervals that include the correct mean response at that specified X0. But if one constructs different 95% confidence intervals for the mean responses at two values of X, the proportion of repetitions that result in both intervals correctly covering the respective means is something less than 95%. This is another case of compound uncertainty. To account for compound uncertainty in estimating mean responses at k different values of X, the Bonferroni procedure (Section 6.4.3) can be used. If k is very large, or if it is desired to obtain a procedure that protects against an unlimited number of comparisons, the Scheff ́e method can be used to construct a confidence band, as discussed next. 4. Where is the regression line? (The Workman–Hotelling procedure) Suppose the ques- tion is, “What is the mean response at all X-values within the observational range?” That is, where is the entire line, as opposed to where is one specific value on the line? By the device of replacing the t-multiplier in confidence inter- vals with a Scheff ́e multiplier based on an F -percentile, the confidence interval for the mean response can be converted to a confidence band, having the prop- erty that at least 95% of the repetitions mentioned above produce bands that include the correct mean response everywhere. If the 95th percentile in the F -distribution based on 2 and .n 􏰀 2/ degrees of freedom is F2;n􏰀2 .0:95/, then the 95% confidence band has upper and lower bounds at each X given by Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. OfYjXg ̇p2F2;n􏰀2.0:95/SEŒOfYjXg: 7.4 Inferential Tools 191 A 95% confidence band for the regression line in the Hubble example uses F2;22.0:95/ D 3:443, so the multiplier for the standard error is 2.624 instead of the t-multiplier of 2.074. Band limits are calculated for different values of X and the confidence band is obtained by connecting all the upper endpoints and all lower endpoints, as shown in Display 7.11. Notice that the confidence band is not substantially wider than the intervals for individual means. The prediction band in the display is discussed in Section 7.4.3. 7.4.3 Prediction of a Future Response Confidence intervals indicate likely values for parameters. Another inferential tool is a prediction interval, which indicates likely values for a future value of a response variable at some specified value of the explanatory variable. Notice the difference between these two questions: (1) What is the mean pH 4 hours after slaughter? (2) What will be the pH of a particular steer carcass 4 hours after slaughter? The first question is about a parameter and the second is about an individual within the population. Even if the mean and standard deviation of pH at 4 hours after slaughter are known exactly, it is impossible to predict exactly the pH of an individual steer. The best single prediction of a future response at X0, denoted by PredfY jX0g, is the estimated mean response at X0: PredfY jX0g D O fY jX0g D ˇO0 C ˇO1X0: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 7.11 3.0 2.5 2.0 1.5 1.0 0.5 The 95% confidence band on the population regression line, the 95% confidence interval band for single mean estimates, and a 95% prediction interval band for the Big Bang example Estimated regression line 95% confidence band for single mean distance 95% confidence band for entire regression line 95% prediction band for an unknown distance 1,200 0 –400 –200 0 200 400 600 800 1,000 Recession Velocity (km/sec) Distance (megaparsecs) 192 Chapter 7 Simple Linear Regression: A Model for the Mean A prediction interval is an interval of likely values, along with a measure of the like- lihood that the interval will include the future response value. This measure must account for two independent sources of uncertainty: uncertainty about the location of the subpopulation mean, and uncertainty about where the future value will be in relation to its mean. The error in using the predictor above is Y–Pred{Y|X0} = Y– {Y|X0} = [Y – {Y|X0}] – [ {Y|X0} – {Y|X0}]. Prediction error = Random sampling + Estimation error The variance of the random sampling error, as evident from the definition of the simple linear regression model, is 2. The variance of the estimation error is the variance of the sampling distribution of ˇO0 CˇO1X0. The standard error of prediction combines the estimated variances as Some statistical programs provide standard errors of prediction at requested values. If not, both quantities under the square root sign will be available from computer output, if the computer centering trick of the previous section is invoked. As a last resort, the formula for hand calculation is 1 .X0 􏰀X/2 SEŒPredfY jX0g D O s1 C n C .n 􏰀 1/s 2 ; X where, again, s 2 is the sample variance of the X’s. X Prediction intervals may be obtained from this standard error and a multi- plier from the t -distribution with n 􏰀 2 degrees of freedom. Display 7.12 shows the construction of a 95% prediction interval for the pH’s of steers at 4 hours after slaughter. The 95% prediction interval succeeds in capturing the future Y in 95% of its applications. The prediction bands in Displays 7.4 and 7.11 are the curves obtained by connecting the upper endpoints and connecting the lower endpoints of prediction intervals at many different X-values. Calibration: Estimating the X That Results in Y = Y0 Sometimes it is desired to estimate the X that produces a specific response Y. This happens to be the case for the meat processing example: “At what time after slaughter will the pH in any particular steer be 6?” This is a calibration problem, also known as inverse prediction. error SEŒPredfY jX0g D pO 2 C SEŒO fY jX0g2: 7.4.4 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 7.4 Inferential Tools 193 DISPLAY 7.12 95% prediction interval for the pH of a steer carcass 4 hours after slaughter (from the estimated regression of pH on log time after slaughter) Pred{ Y | 1.386 } = 6.9836 – 0.7257 × 1.386 X0 = log(4) = 5.98 n 1 1.386–1.190 2 1 + -- + ---------- X sX2 SE Pred Y 1.386 = 0.08226 t8(0.975) Upper limit: 5.98 + 2.306 × 0.0865 = 6.18 Lower limit: 5.98 – 2.306 × 0.0865 = 5.78 10 9 0.6344 n In a typical calibration problem, an experiment is used to estimate the regres- sion of an imprecise measurement .Y/ of some quantity on its actual value .X/, as determined by a more precise, but more expensive measuring instrument. The regression provides a calibration equation, so that the accurate measurement can be predicted from the cheaper, inaccurate one. It may seem appropriate to call the precise value Y, to use the imprecise value as X, and to employ prediction as in the previous section. This is not possible, however, when the precise values are controlled by the researcher, because the distributional model makes no sense. The simplest method for calibration is to invert the prediction relationship. If PredfY jX0g is taken to be ˇO0 C ˇO1X0, then PredfXjY0g is .Y0 􏰀 ˇO0/=ˇO1. This is the value of X at which the predicted Y is Y0. A graphical method for obtaining a calibration interval (inverse prediction interval) for the X at some Y0 is to plot prediction bands (the ones for predicting Y from X), draw a horizontal line at Y0, then draw vertical lines down to the X-axis from the points where the horizontal line intersects the upper and lower prediction limits. These two points are the limits of the calibration interval. This procedure is shown for the meat processing data in Display 7.4. The uncertainty in a calibration interval has to do with the prediction of new Y ’s. For the meat processing data: at 2.94 hours after slaughter (i.e., when log hours D 1.08), it is predicted that 95% of steer carcasses will have a pH between 6.0 and 6.3. At 5.10 hours (when log hours D 1.63) it is predicted that 95% of steer carcasses will have a pH between 5.7 and 6.0. According to these statements, only 2.5% of carcasses will have a pH less than 6.0 at time 2.94 hours, and only 2.5% of carcasses will have a pH above 6.0 at time 5.10 hours. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 194 Chapter 7 Simple Linear Regression: A Model for the Mean A similar method directly estimates (or predicts) XO D .Y0 􏰀 ˇO0/=ˇO1 with an approximate standard error of either SE.XO / D SE.O fY jXO g/ j ˇO 1 j (to estimate the X at which the mean of Y is Y0) or SE.XO / D SE.PredfY jXO g/ j ˇO 1 j (to find the X at which the value of Y is Y0). An interval is centered at XO, with a half-width equal to a t-multiplier .d.f. D n 􏰀 2/ times the standard error. (Note: When the regression line is too flat, these methods are not satisfactory.) Example—Meat Processing The log time at which the mean pH has decreased to 6.0 is estimated to be XO D 1:3554. Its standard error is 0.0367, so a 95% confidence interval is from 1.2708 to 1.4400. Hence the estimate of time required is 3.88 hours, with an approximate 95% confidence interval from 3.56 to 4.22 hours. To predict the time when the pH of a single steer might decline to 6.0, the standard error must account for the pH not being at its average. The second standard error is 0.1191, so the interval for log.XO / is from 1.0806 to 1.6301. The estimate of the time is the same, 3.88 hours, but the approximate 95% confidence interval is from 2.95 to 5.10 hours. The interval is similar to the one determined graphically in Display 7.4. 7.5 RELATED ISSUES 7.5.1 Historical Notes About Regression Regression analysis was first used by Sir Francis Galton, a 19th-century English scientist studying genetic similarities in parents and offspring. In describing the mean of child height as a function of parent height, Galton found that children of tall parents tended to be tall, but on average not as tall as their parents. Simi- larly, children of short parents tended to be short, but on average not as short as their parents. He described this as “regression towards mediocrity.” Others using his method to analyze statistical relationships referred to the method as Galton’s “regression line,” and the term regression stuck. (See Exercise 7.26.) The Regression Effect Galton’s phenomenon of regression toward the mean appears in any test–retest situation. Subjects who score high on the first test will, as a group, score closer to the average (lower) on the second test, while subjects who score low on the first test will, as a group, also score closer to the average (higher) on the second test. The Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 7.13 Test–retest scores, illustrating the regression effect 7.5 Related Issues 195 Luck axis Skill axis Skill is more than 1 SD above average, but bad luck on first test. Skill is about 1 SD above average, and average luck. Skill is less than 1 SD above average, but good luck on first test. 1 SD First Test Score Average Second Test Score reason is illustrated in Display 7.13. Each point shows the scores of a single subject on the two tests. The horizontal axis contains the first test score, and a vertical box isolates a set of subjects who scored about one standard deviation above average on the first test. Subjects in the set are there (1) because their overall skill is about 1 SD above average, and they performed at their skill level; (2) because their overall skill level was lower than 1 SD above average, and they performed somewhat above their overall skill level on this test; or (3) because their overall skill level was higher than 1 SD above average, and they performed somewhat below their overall skill level on this test. Performances on single tests that differ from one’s overall skill level might be called luck or chance. As is apparent in Display 7.13, more subjects fall into category (2) than into category (3), and they bring the average of the second test scores to a level lower than 1 SD above average. This is the regression effect, and it is real. The reason for the regression effect is that there are many more individuals in the whole set with skill levels near average than there are with skill levels farther than one standard deviation from it. So, by chance, more appear in the strip whose skill level is closer to the average (and their skill level tends to catch up with them on the second test). The regression effect is therefore a natural phenomenon in any test–retest situ- ation. It is often mistakenly interpreted as something more, suggesting some theory about the attitude toward the second test of the test takers based on their first test scores. The term regression fallacy is used to describe the mistake of attaching some special meaning to the regression effect. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 196 Chapter 7 Simple Linear Regression: A Model for the Mean 7.5.2 Differing Terminology The terms dependent variable and independent variable have been used in the past for response and explanatory variables, respectively. The Statistical Sleuth uses response and explanatory to avoid confusion with the notion of statistical independence, which is entirely different. (Economists often use endogenous and exogenous, respectively, to distinguish between variables that are determined within the system under study and those determined externally to it. However, the merits of this terminology have not led to its adoption by a wider circle of users.) 7.5.3 Causation There is a tendency to think of the explanatory variable as a causative agent and the response as an effect, even with observational studies. But the same conditions apply here as before. With randomized experiments, cause-and-effect terminology is appropriate; with observational studies, it is not. With data from observational studies, the most satisfactory terminology describes an association between the mean response and the value of the explanatory variable. 7.5.4 Correlation The sample correlation coefficient for describing the degree of linear association between any two variables X and Y is where sX and sY are the sample standard deviations. Unlike the estimated slope in regression, the sample correlation coefficient is symmetric in X and Y , so it does not depend on labeling one of them the response and one of them the explanatory variable. A correlation is dimension-free. It falls between 􏰀1 and C1, with the extremes corresponding to the situations where all the points in a scatterplot fall exactly on a straight line with negative and positive slopes, respectively. Correlation of zero corresponds to the situation where there is no linear association. Although the sample correlation coefficient is always a useful summary measure, inferences based on it only make sense when the pairs (X , Y ) are selected randomly from a population. This is more restrictive than the conditions for inference from the regression model, where X need not be random. It is a common mistake to base conclusions on correlations when the X’s are not random. If the data are randomly selected pairs, then the sample correlation coefficient estimates a population correlation, X Y D Meanf.X 􏰀 X /.Y 􏰀 Y /g=.X Y /. Conveniently, a test of the hypothesis that XY D 0 turns out to be identical to the test of the hypothesis that the slope in the linear regression of Y on X is zero. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. n X.Xi 􏰀X/.Yi 􏰀Y/=.n􏰀1/ rXY D iD1 ; sX sY 7.6 Summary 197 Tests for nonzero hypothesized values are also available, but they are quite different and are not pursued here. Correlation only measures the degree of linear association. It is possible for there to be an exact relationship between X and Y and yet the sample correlation coefficient is zero. This would be the case, for example, if there was a parabolic relationship with no linear component. 7.5.5 Planning an Experiment: Replication Replication means applying exactly the same treatment to more than one exper- imental unit. With the 10 steers available for the meat processing experiment, the researchers decided to administer five treatment levels—the five different times after slaughter—with two replicate observations at each level. Although they could have investigated 10 different times after slaughter, the benefits of replication can outweigh the extra information that would come from more explanatory variable values. The main benefit is that replication allows for an estimate of 2 that does not depend on any model being correct (the pooled estimate of the sample vari- ances). This is sometimes referred to as the pure error estimate of 2. This, in turn, permits an assessment of model adequacy that would not otherwise be available. (The details of a formal test for model adequacy are shown in Section 8.5.3.) A secondary benefit is a clearer picture of the relationship between the variance and the mean, which may permit an easier assessment of the need for and the type of transformation for the response variable. Even though the benefits of replication are many, the practical decision about allocating a fixed number of experimental units to treatment levels is difficult. The researcher must weigh the benefits of replication against the benefits of further treatment levels. It would not be good in the meat processing study, for example, to place all 10 steers in only two treatment levels unless the researchers were certain that the regression was a straight line. 7.6 SUMMARY In the simple linear regression model the mean of a response variable is a straight line function of an explanatory variable. The slope and intercept of the regression line can be estimated by the method of least squares. The variance about the regression is estimated by the sum of squared residuals divided by the degrees of freedom n 􏰀 2. Inferential tools discussed in this chapter are t -tests and confidence intervals for slope and intercept, t-tests and confidence intervals for the mean of the response at any particular value of the explanatory variable, prediction intervals for a future response at any particular value of the explanatory variable, and calibration intervals for predicting the X associated with a specified Y . Big Bang Analysis The analysis begins with a scatterplot of distance versus velocity. It is apparent from this (Display 7.1) that the regression of distance on velocity is at least approximately Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 198 Chapter 7 Simple Linear Regression: A Model for the Mean a straight line, as predicted by the Big Bang theory. The least squares method provides a way to estimate the slope and intercept in this regression. Two questions are asked: is the intercept zero, as predicted by the theory, and what is the slope; which, according to the theory, is the age of the universe? The evidence in answer to the first question is expressed through a p-value for the test that ˇ0 is zero. The evidence in answer to the second is expressed through a confidence interval for ˇ1. Meat Processing Analysis Even though the question of interest calls for finding the value of time after slaughter at which pH is 6, it is necessary to specify pH to be the response and time (log hours after slaughter) to be the explanatory variable, since the latter was controlled by the researchers. The regression of pH on log time is well approximated by a straight line, at least for times up to 8 hours. The calibration-like question of interest requires the data analyst to find the value of X (log time) at which Y (pH) is predicted to be 6. 7.7 EXERCISES Conceptual Exercises 1. Big Bang Data. Can the estimated regression equation be used to make inferences about (a) the mean distance of nebulae whose recession velocities are zero? (b) the mean distance of nebulae whose recession velocities are 1,000 km/sec? (c) the mean distance of nebulae whose velocities are 2,000 km/sec? (See Display 7.1.) 2. Big Bang Data. Explain why improved measurement of distance would lead to more precise estimates of the regression coefficients. 3. Meat Processing Data. By inspecting Display 7.4, describe the distribution of pH’s for steer carcasses 1.65 hours after slaughter (where X D log.1:65/ D 0:5). 4. What is wrong with this formulation of the regression model: Y D ˇ0 C ˇ1X? 5. Consider a regression of weight (kg) on height (cm) for a sample of adult males. What are the units of measurement of (a) the intercept? (b) the slope? (c) the SD? (d) the correlation? 6. Explain the differences between the following terms: regression, regression model, and simple linear regression model. 7. What assumptions are made about the distribution of the explanatory variable in the normal simple linear regression model? 8. A group of children were all given a dexterity test in their fifth grade physical education class. The teacher noted a small group who performed exceptionally well, and she informed the grade six teacher as to which children were in the group. When the same children were given a similar dexterity test the next year, they performed reasonably well, but not as well as the sixth grade teacher had expected. What might have caused this? 9. Consider the regression of weight on height for a sample of adult males. Suppose the intercept is 5 kg. (a) Does this imply that males of height 0 weigh 5 kg, on average? (b) Would this imply that the simple linear regression model is meaningless? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 7.7 Exercises 199 10. (a) At what value of X will there be the most precise estimate of the mean of Y ? (b) At what value of X will there be the most precise prediction of a future Y ? 11. What is the standard error of prediction as the sample size approaches infinity? Computational Exercises 12. Suppose that the fit to the simple linear regression of Y on X from 6 observations produces the following residuals: 􏰀3:3, 2.1, 􏰀4:0, 􏰀1:5, 5.1, 1.6. (a) What is the estimate of 2? (b) What is the estimate of ? (c) What are the degrees of freedom? 13. Big Bang Data. Using the results shown in Display 7.9, find a 95% confidence interval for the intercept in the regression of measured distance on recession velocity. 14. Big Bang Data. Using the results in Display 7.9, find a 95% confidence interval for the slope in the regression of measured distance on recession velocity. 15. Pollen Removal. Reconsider the data in Exercise 3.27. (a) Draw a scatterplot of proportion of pollen removed versus duration of visit, for the bumblebee queens. (b) Fit the simple linear regression of proportion of pollen removed on duration of visit. Draw the estimated regression line on the scatterplot. (Do this with the computer, if possible; otherwise draw the line with pencil and ruler.) Is there any indication of a problem with this fit? (This problem will be continued in the next chapter.) 16. Most computational procedures utilize the following identities: n n1n!2 X.X 􏰀X/2DXX2􏰀 XX iii n iD1 iD1 iD1 and The left-hand expressions are needed for calculating ˇO1, but the right-hand equivalents require less effort. Using the meat processing data, calculate the left-hand versions. Then calculate the right-hand versions. Did you get the same answers? Which version requires fewer steps? Which version requires less storage in a computer? 17. Meat Processing. (a) Enter the data from Display 7.3 into a computer and find the least squares estimates for the simple linear regression of pH on log hours. (b) Noting that the average and sample standard deviation of X are provided in Display 7.12, calculate the estimated mean pH at 5 hours after slaughter, and the standard error of the estimated mean (using the formula in Section 7.4.2). (c) Find the standard error of the estimated mean pH at 5 hours after slaughter using the computer trick described in Section 7.4.2. 18. Meat Processing. (a) Find the standard error of prediction for the prediction of pH at 5 hours after slaughter. (b) Construct a 95% prediction interval at 5 hours after slaughter. 19. Meat Processing. Compute a 95% calibration interval (using the graphical approach) for the time at which pH of steer carcasses should be 7. 20. Meat Processing (Sample Size Determination). The standard error of the estimated slope based on the 10 data points is 0:0344. Using the formula for SE in Section 7.3.5, and supposing that the spread of the X’s and the estimate of  will be about the same in a future study, calculate how large the sample size would have to be in order for the SE of the estimated slope to be 0:01. 21. Planetary Distances and Order from the Sun. The first three columns in Display 7.14 show the distances from the sun (scaled so that earth D 1) and the order from the sun of the 8 planets in Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. n X.Xi 􏰀X/.Yi 􏰀Y/DXXiYi 􏰀n XXi XYi : iD1 iD1 iD1 iD1 n 1n!n! 200 Chapter 7 Simple Linear Regression: A Model for the Mean DISPLAY 7.14 Orders and distances from the sun (in astronomical units, so that the distance from earth to the sun is 1) of planets in our solar system; without and with the asteroid belt Name Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Pluto Order Distance 1 0.387 2 0.723 3 1 4 1.524 5 5.203 6 9.546 7 19.2 8 30.09 9 39.5 Name 2 Mercury Venus Earth Mars (asteroids) Jupiter Saturn Uranus Neptune Pluto 10 Order 2 Distance 2 0.387 0.723 1 1.524 2.9 5.203 9.546 19.2 30.09 39.5 1 2 3 4 5 6 7 8 9 our solar system and the dwarf planet, Pluto. The last three columns are the same but also include the asteroid belt. Using the first three columns, (a) draw a scatterplot of log of distance versus order, (b) include the least squares estimated simple linear regression line on the plot, (c) find the estimate of  from the least squares fit, and (d) draw a scatterplot of the residuals versus the fitted values from this fit. Using the last three columns, (e) draw a scatterplot of log of distance versus order, (f) include the least squares estimated simple linear regression line on the plot, (g) find the estimate of  from the least squares fit, and (h) draw a scatter plot of the residuals versus the fitted values from this fit. (i) Does it appear that the simple linear (straight line) regression model fits better to the first set of 9 planets or the second set of 10 “planets”? Explain. 22. Crab Claw Size and Force. As part of a study of the effects of predatory intertidal crab species on snail populations, researchers measured the mean closing forces and the propodus heights of the claws on several crabs of three species. Their data (read from their Figure 3) appear in Display 7.15. (Data from S. B. Yamada and E. G. Boulding, “Claw Morphology, Prey Size Selection and Forag- ing Efficiency in Generalist and Specialist Shell-Breaking Crabs,” Journal of Experimental Marine Biology and Ecology, 220 (1998): 191–211.) (a) Estimate the slope in the simple linear regression of log force on log height, separately for each crab species. Obtain the standard errors of the estimated slopes. (b) Use a t-test to compare the slopes for C. productus and L. bellus. Then compare the slopes for C. productus and H. nudus. The standard error for the difference in two slope estimates from independent samples is the following: SEŒˇO1.1/ 􏰀 ˇO1.2/ D qŒSE.ˇO1.1//2 C ŒSE.ˇO1.2//2; where ˇO1.j / represents the estimate of slope from sample j . Use t -tests with the sum of the degrees of freedom associated with the two standard errors. What do you conclude? (Note: A better way to perform this test, using multiple regression, is described in Chapter 9.) For Those Literate in Calculus and Linear Algebra. The least squares problem is that of finding estimates of ˇ0 and ˇ1 that minimize the sum of squares, n SS.ˇ0;ˇ1/DX.Yi 􏰀ˇ0􏰀ˇ1Xi/2: iD1 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 23. DISPLAY 7.15 Closing force (in newtons) and propodus heights (in mm) in three predatory crab species 7.7 Exercises 201 Hemigrapsus nudus (n = 14) Force Height Lophopanopeus bellus (n = 12) Force Height Cancer productus (n = 12) Force Height (a) Setting the partial derivatives of SS.ˇ0;ˇ1/ with respect to each parameter equal to zero, show that ˇ0 and ˇ1 must satisfy the normal equations: nn ˇ0nCˇ1XXi DXYi iD1 iD1 nnn ˇXXCˇXX2DXXY: 0i1iii iD1 iD1 iD1 (b) Show that ˇO0 and ˇO1 given in Section 7.3.1 satisfy the normal equations. (c) Verify that the solutions provide a minimum to the sum of squares. 24. Decline in Male Births. Display 7.16 shows the proportion of male births in Denmark, The Netherlands, Canada, and the United States for a number of years. (Data read from graphs in Davis et al., “Reduced Ratio of Male to Female Births in Several Industrial Countries,” Journal of the American Medical Association, 279 (1998): 1018–23.) Also shown are the results of least squares fitting to the simple linear regression of proportion of males on year, separately for each country, with standard errors of estimated coefficients in parentheses. (a) With a statistical computer package and the data in the file ex0725, obtain the least squares fits to the four simple regressions, individually, to confirm the estimates and standard errors presented in Display 7.17. (b) Obtain the t-statistic for the test that the slopes of the regressions are zero, for each of the four countries. Is there evidence that the proportion of male births is truly declining? (c) ExplainwhytheUnitedStatescanhavethelargestofthefourt-statistics(inabsolutevalue) even though its slope is only the third largest (in absolute value). (d) Explain why the standard error of the estimated slope is smaller for the United States than for Canada, even though the sample size is the same. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 202 Chapter 7 Simple Linear Regression: A Model for the Mean DISPLAY 7.16 Proportions of male births in four countries; and simple regression statistics Denmark The Netherlands (0.028) Canada United States 1950 1960 1970 1980 1990 Year (e) Can you think of any reason why the standard deviations about the regression line might be different for the four countries? (Hint: The proportion of males is a kind of average, i.e., the average number of births that are male.) Data Problems 25. Big Bang II. The data in Display 7.17 are measured distances and recession velocities for 10 clusters of nebulae, much farther from earth than the nebulae reported in Section 7.1.1. (Data from E. Hubble and M. Humason, “The Velocity–Distance Relation Among Extra-Galactic Nebulae,” Astrophysics Journal 74 (1931): 43–50.) If Hubble’s theory is correct, then the mean of the measured distance, as a function of velocity, should be ˇ1 Velocity, and ˇ1 is the age of the universe. Are the data consistent with the theory (that the intercept is zero)? What is the estimated age of the universe? (Note: The slope here is in units of megaparsecs-seconds per kilometer. Multiply by 979.8 to get an answer in billions of years. You should find out how to fit simple linear regression through the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Proportion of Births That Were Male 0.508 0.512 0.516 0.508 0.512 0.516 0.508 0.512 0.516 0.508 0.512 0.516 DISPLAY 7.17 Measured distance (million parsecs) and recession velocity (km/sec) for 10 clusters of nebulae DISPLAY 7.18 Galton’s data on heights (in inches) of adult children and their parents; first 5 of 933 rows 7.7 Exercises 203 Gender Male Female Female Female Male Family Height 1 73.2 1 69.2 1 69 1 69 2 73.5 Father Mother 78.5 67 78.5 67 78.5 67 78.5 67 78.5 66.5 origin—that is, how to drop the intercept extent is the relationship shown by these the relationship indicated in Case Study 7.1.1? (Analyze the data and write a brief statistical report including a summary of statistical findings, a graphical display, and a details section describing the details of the particular methods used.) 26. Origin of the Term Regression. Motivated by the work of his cousin, Charles Darwin, the English scientist Francis Galton studied the degree to which human traits were passed from one generation to the next. In an 1885 study, he measured the heights of 933 adult children and their parents. Display 7.18 shows the first five rows of his data set. Galton multiplied all female heights by 1.08 to convert them to a male-equivalent height. He estimated the simple linear regression line of child’s height on average parent’s height and, upon finding that the slope was positive but less than 1, concluded that children of taller-than-average parents tended to also be taller than average but not as tall as their parents; and, similarly, children of shorter-than-average parents tended to be shorter than average, but not as short as their parents. He labeled this “regression towards mediocrity” because of the apparent regression (i.e., reversion) of children’s height toward the average. Other scientists began to refer to the line as “Galton’s regression line”. Although the term was not intended to describe the model for the mean, the name stuck. Reproduce Galton’s analysis by converting females’ heights to their male-equivalents (multiply them by 1.08). Do the same for mothers’ heights. Compute the parent height by taking the average of the father’s height and the converted mother’s height. Then fit the simple linear regression of child height on parent height. (For now, do as Galton did and ignore the fact that the heights of individuals from the same family are probably not independent.) Find the predicted height and a 95% prediction interval for the adult height of a boy whose average parent height is 65 inches. Repeat for a boy whose average parent height is 76 inches. (These are the raw Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. term—with your statistical computer package.) To what far-away nebulae clusters similar to and different from 204 Chapter 7 Simple Linear Regression: A Model for the Mean data used in the paper by F. Galton, “Regression towards Mediocrity in Hereditary Stature” in the Journal of the Anthropological Institute in 1886, as described in “‘Transmuting’ Women into Men: Galton’s Family Data On Human Stature” by James Henley in The American Statistician, 58 (2004): 237–43.) 27. Male Displays. Black wheatears, Oenanthe leucura, are small birds of Spain and Morocco. Males of the species demonstrate an exaggerated sexual display by carrying many heavy stones to nesting cavities. This 35-gram bird transports, on average, 3.1 kg of stones per nesting season! Different males carry somewhat different sized stones, prompting a study of whether larger stones may be a signal of higher health status. M. Soler et al. (“Weight Lifting and Health Status in the Black Wheatear,” Behavioral Ecology 10(3) (1999): 281–86) calculated the average stone mass (g) carried by each of 21 male black wheatears, along with T-cell response measurements reflecting their immune systems’ strengths. The data in Display 7.19 were taken from their Figure 1. Analyze the data and write a statistical report summarizing the evidence supporting whether health—as measured by T-cell response—is associated with stone mass, and quantifying the association. 28. Brain Activity in Violin and String Players. Studies over the past two decades have shown that activity can effect the reorganization of the human central nervous system. For example, it is known that the part of the brain associated with activity of a finger or limb is taken over for other purposes in individuals whose limb or finger has been lost. In one study, psychologists used magnetic source imaging (MSI) to measure neuronal activity in the brains of nine string players (six violinists, two cellists, and one guitarist) and six controls who had never played a musical instrument, when the thumb and fifth finger of the left hand were exposed to mild stimulation. The researchers felt that stringed instrument players, who use the fingers of their left hand extensively, might show different behavior in the brain—as a result of this extensive physical activity—than individuals who did not play stringed instruments. Display 7.20 shows a neuron activity index from the MSI and the years that the individual had been playing a stringed instrument (zero for the controls). (Data based on a graph in Elbert et al., “Increased Cortical Representation of the Fingers of the Left Hand in String Players,” Science 270 (13 October, 1995) 305–7.) Is the neuron activity different in the stringed musicians and the controls? Is the amount of activity associated with the number of years the individual has been playing the instrument? 29. Sampling Bias in Exit Polls. Exit pollsters predict election results before final counts are tallied by sampling voters leaving voting locations. The pollsters have no way of selecting a random sample, so they instruct their interviewers to select every third exiting voter, or fourth, or tenth, or some other specified number. Some voters refuse to participate or avoid the interviewer. If the refusers and avoiders have the same voting patterns as the rest of the population, then it shouldn’t matter; the sample, although not random, wouldn’t be biased. If, however, one candidate’s voters are more likely to refuse or avoid interview, the sample would be biased and could lead to a misleading conclusion. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 7.19 Mass of stones carried and immune system strength for 21 wheatear birds; first 5 of 15 rows Bird Mean stone mass (g) T-cell response (mm) 7.7 Exercises 205 DISPLAY 7.20 Years that the individual has been playing a stringed instrument and neuronal activity index (‘‘D5 dipole strength, in nAm’’) for nine stringed musicians and six controls Years Neuron activity playing index On November 4, 2004, exit pollsters incorrectly predicted that John Kerry would win the U.S. presidential election over George W. Bush. The exit polls overstated the Kerry advantage in 42 of 50 states. No one expects exit polls to be exact, but chance alone cannot reasonably explain this discrepancy. Although fraud is a possibility, the data are also consistent, with Bush supporters being more likely than Kerry supporters to refuse or avoid participation in the exit poll. In a postelection evaluation, the exit polling agency investigated voter avoidance of interview- ers. Display 7.21 shows the average Kerry exit poll overestimate (determined after the actual counts were available) for a large number of voting precincts, grouped according to the dis- tance of the interviewer from the door. If Bush voters were more likely to avoid interviewers in general, one might also expect a greater avoidance with increasing distance to the interviewer (since there is more opportunity for escape). A positive relationship between distance of the inter- viewer from the door and amount of Kerry overestimate, therefore, would lend credibility to the theory that Bush voters were more likely to avoid exit poll interviews. How strong is the evi- dence that the mean Kerry overestimate increases with increasing distance of interviewer from DISPLAY 7.21 Exit poll error in favor of Kerry and distance of exit poll interviewer from the voting precinct door, in the 2004 U.S. presidential election between George W. Bush and John Kerry Overestimate Distance 5.3 0 6.4 5 5.6 17 7.6 37 9.6 75 12.3 100 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 206 Chapter 7 Simple Linear Regression: A Model for the Mean DISPLAY 7.22 Average exit poll interview refusal rates for precincts grouped according to the approximate age of the interviewer in the 2004 U.S. presidential election between George W. Bush and John Kerry Age Refusal 22 0.39 30 0.38 40 0.35 50 0.32 60 0.31 65 0.29 the door? (Data from Evaluation of Edison/Mitofsky Election System 2004 prepared by Edison Media Research and Mitofsky International for the National Election Pool (NEP), January 15, 2005. http://abcnews.go.com/images/Politics/EvaluationofEdisonMitofskyElectionSystem.pdf (accessed May 9, 2008).) 30. Sampling Bias in Exit Polls 2. This exercise is about differential interview refusal rates in the exit polls conducted in the 2004 U.S. presidential election. Display 7.22 shows the average proportion of voters who refused to be interviewed at precincts grouped according to the approximate age of the interviewer. What evidence do these data provide that the mean refusal rate decreased with increasing age of interviewer? An affirmative answer to this question doesn’t provide any direct evidence of a difference between Kerry and Bush voters, but is consistent with an undercount of Bush votes in the exit polls if, as one might speculate based on the relative conservativeness of Bush supporters, Bush voters were more likely to avoid younger interviewers. (See Exercise 29.) Answers to Conceptual Exercises 1. (a) Yes. (b) Yes. (c) Such an extrapolation would be risky. 2. The standard deviation  about the regression reflects measurement error variation. Making this smaller will cause the standard deviations of the sampling distributions of the least squares estimates to be smaller (see Display 7.7). 3. The model says that the distribution is normal. The estimated mean pH is about 6.6. The prediction limits will be about 2 SDs up and down, so the SD is about 0.1 pH units. 4. This implies an exact relationship between Y and X. The model should be for the mean of Y as a function of X. 5. (a) kg; (b) kg/cm; (c) kg; (d) none. 6. Regression refers to the mean of a response variable as a function of an explanatory vari- able. A regression model is a function used to describe the regression. The simple linear regression model is a particular regression model in which the regression is a straight-line function of a single explanatory variable. 7. None. 8. This is the regression effect. It is exactly what you can expect to happen. 9. (a) No. Height D 0 is outside the range of observed values, so the model may not extend to that situation. (b) No. It may be useful for answering questions pertaining to the regression of weight on height for heights in a certain range. 10. (a) At the sample average of the X’s used in the estimation. (b) Same as (a). 11. . Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. A Closer Look at Assumptions for Simple Linear Regression The inferential tools of the previous chapter are based on the normal simple linear regression model with constant variance. Since real data do not nec- essarily conform to this model, the data analyst must size up the situation and choose a course of action based on an understanding of the robustness of the tools to model violations. This chapter presents some informal graphical tools and a formal test for assess- ing the lack of fit. As before, the graphical procedures are used to find suitable transformations to scales where the simple linear regression model seems appropri- ate. The lack-of-fit test, on the other hand, looks specifically at the issue of whether the straight line assumption is plausible. 207 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 8 208 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression 8.1 CASE STUDIES DISPLAY 8.1 8.1.1 Island Area and Number of Species—An Observational Study Biologists have noticed a consistent relation between the area of islands and the number of animal and plant species living on them. If S is the number of species and A is the area, then S D CA (roughly), where C is a constant and is a biologically meaningful parameter that depends on the group of organisms (birds, reptiles, or grasses, for example). Estimates of this relationship are useful in conservation biology for predicting species extinction rates due to diminishing habitat. The data in Display 8.1 are the numbers of reptile and amphibian species and the island areas for seven islands in the West Indies. (Data on species from E. O. Wilson, The Diversity of Life, New York: W. W. Norton, 1992; areas from The 1994 World Almanac, Mahwah, N.J.: Funk & Wagnalls, 1993.) These are typical of data used to estimate the area effect. Researchers wish to estimate in the species–area equation for this group of animals and to summarize the effect of area on the typical number of species. Island area and number of reptile and amphibian species for seven islands in the West Indies Island Area (square miles) Number of species Statistical Conclusion A second graph in Display 8.2 is a log-log scatterplot of number of species versus island area, along with the estimated line for the regression of log number of species on log area. The parameter in the species–area relation, Median fSjAg D CA , is estimated to be 0.250 (a 95% confidence interval is 0.219 to 0.281). It is estimated that the median number of species increases by 19% with each doubling of area. Scope of Inference The statistical association from these observational data cannot be used to estab- lish a causal connection. Furthermore, any generalization of these results to islands in other parts of the world or to a wider population, like “islands of rain for- est,” is purely speculative. Nevertheless, the results from these data are consistent with results for other islands and with small-scale randomized experiments. In Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 8.1 Case Studies 209 DISPLAY 8.2 Scatterplot and log-log-scatterplot of number of reptile and amphibian species versus area for seven islands in the West Indies 100 80 60 40 20 0 100 50 10 0 10,000 20,000 30,000 40,000 1 10 100 1,000 Area of Island (square miles)(log scale) 10,000 Area of Island (square miles) summarizing the studies, Wilson offered a conservatively optimistic guess that the current rate of environmental destruction amounts to 27,000 species vanishing each year and that 20% of all plant and animal species currently on earth will be extinct by the year 2022. 8.1.2 Breakdown Times for Insulating Fluid Under Different Voltages—A Controlled Experiment In an industrial laboratory, under uniform conditions, batches of electrical insulat- ing fluid were subjected to constant voltages until the insulating property of the fluids broke down. Seven different voltage levels, spaced 2 kilovolts (kV) apart from 26 to 38 kV, were studied. The measured responses were the times, in minutes, until breakdown, as listed in Display 8.3. (Data from W. B. Nelson, Schenectady, N.Y.: GE Co. Technical Report 71-C-011 (1970), as discussed in J. F. Lawless, Statistical Models and Methods for Lifetime Data, New York: John Wiley & Sons, 1982, chap. 4.) How does the distribution of breakdown time depend on voltage? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Species (log scale) Species 210 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression DISPLAY 8.3 Times (in minutes) to breakdown of 76 samples of an insulating fluid subjected to different constant voltages Group#: 1 2 3 4 5 6 7 Voltage (kV): Sample size: Times (min): 26 28 3 5 5.79 68.85 1579.52 108.29 2323.70 110.29 426.07 1067.60 30 32 11 15 7.74 0.27 17.05 0.40 20.46 0.69 21.02 0.79 22.66 2.75 43.40 3.91 47.30 9.88 139.07 13.95 144.12 15.93 175.88 27.80 194.90 53.24 82.85 89.29 100.59 215.10 343638 19 15 8 0.19 0.35 0.09 0.78 0.59 0.39 0.96 0.96 0.47 1.31 0.99 0.73 2.78 1.69 0.74 3.16 1.97 1.13 4.15 2.07 1.40 4.67 2.58 2.38 4.85 2.71 6.50 2.90 7.35 3.67 8.01 3.99 8.27 5.35 12.06 13.77 31.75 25.50 32.52 33.91 36.71 72.89 Statistical Conclusion Display 8.4 shows a scatterplot of the responses on a logarithmic scale plotted against the voltage levels, along with a summary of the parameter estimates in the simple linear regression of log breakdown time on voltage. The median breakdown time decreases by 40% for each 1 kV increase in voltage (95% confidence interval: 32% to 46%). Scope of Inference The laboratory setting for this experiment allowed the experimenter to hold all factors constant except the voltage level, which was assigned at different levels to different batches. Therefore it seems reasonable to infer that the different voltage levels must be directly responsible for the observed differences in time to breakdown. It can be inferred that other batches in the same laboratory setting would follow the same pattern so long as the voltage level is within the experimental range. Inference to voltage levels outside the experimental range and to performance under nonlaboratory conditions cannot be made from these data. If such inference is required, further testing or stronger assumptions must be invoked. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 8.4 Scatterplot of breakdown times (natural logarithm scale) versus voltage levels and summary of estimated simple linear regression 8.2 Robustness of Least Squares Inferences 211 10,000 1,000 100 10 8 6 4 2 Breakdown Time (minutes) Natural Logarithm of Breakdown Time 0.1 –2 Group Averages 10 26 28 30 32 34 36 38 Voltage Level (kV) Estimated Regression Line {log(BDT)} = 18.96 2 0.507 Voltage (1.91) (0.057) SD of log(BDT) = 1.56 8.2 ROBUSTNESS OF LEAST SQUARES INFERENCES Exact justification of the statistical statements—tests, confidence intervals, and prediction intervals—based on least squares estimates depends on these features of the regression model: 1. Linearity. The plot of response means against the explanatory variable is a straight line. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 212 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression 2. Constant variance. The spread of the responses around the straight line is the same at all levels of the explanatory variable. 3. Normality. The subpopulations of responses at the different values of the explanatory variable all have normal distributions. 4. Independence. The location of any response in relation to its mean cannot be predicted, either fully or partially, from knowledge of where other responses are in relation to their means. (Furthermore, the location of any response in relation to its mean cannot be predicted from knowledge of the explanatory variable values.) The Linearity Assumption Two violations of the first assumption may occur: A straight line may be an inad- equate model for the regression (the regression might contain some curvature, for example); or a straight line may be appropriate for most of the data, but contamination from one or several outliers from different populations may ren- der it inapplicable to the entire set. Both of these violations can cause the least squares estimates to give misleading answers to the questions of interest. Estimated means and predictions can be biased—they systematically under- or overestimate the intended quantity—and tests and confidence intervals may inaccurately reflect uncertainty. Although the severity of the consequences is always related to the severity of the violation, it is undesirable to use simple linear regression when the linearity assumption is not met. Remedies are available for dealing with this situation (see Chapter 9). The Equal-Spread Assumption The consequences for violating this assumption are the same as for one-way analysis of variance. Although the least squares estimates are still unbiased even if the variance is nonconstant, the standard errors inaccurately describe the uncertainty in the estimates. Tests and confidence intervals can be misleading. The Normality Assumption Estimates of the coefficients and their standard errors are robust to nonnormal distributions. Although the tests and confidence intervals originate from normal distributions, the consequences of violating this assumption are usually minor. The only situation of substantial concern is when the distributions have long tails (outliers are present) and sample sizes are moderate to small. If prediction intervals are used, on the other hand, departures from normality become important. This is because the prediction intervals are based directly on the normality of the population distributions whereas tests and confidence intervals are based on the normality of the sampling distributions of the estimates (which may be approximately normal even when the population distributions are not). The Independence Assumption Lack of independence causes no bias in least squares estimates of the coefficients, but standard errors are seriously affected. As before, cluster and serial effects, if Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 8.3 Graphical Tools for Model Assessment 213 suspected, should be incorporated with more sophisticated models. See Chapters 13 and 14 for incorporating cluster effects using multiple regression and Chapter 15 for ways to incorporate serial effects into regression models. 8.3 GRAPHICAL TOOLS FOR MODEL ASSESSMENT The principal tools for model assessment are scatterplots of the response variable versus the explanatory variable and of the residuals versus the fitted values. An initial scatterplot of species number versus island area, on the top of Display 8.2, immediately indicates problems with a straight line model for the means. Similarly, a scatterplot of breakdown time versus voltage, in Display 8.5, shows problems of nonlinearity and nonconstant variance. DISPLAY 8.5 Scatterplot of breakdown times versus voltage 2,000 1,500 1,000 500 0 26 28 30 32 34 36 38 Voltage (kV) 8.3.1 Scatterplot of the Response Variable Versus the Explanatory Variable Scatterplots with some commonly occurring patterns are shown in Display 8.6. The eye should group points into vertical strips, as shown in (a), to explore the char- acteristics of subpopulation distributions. Lines connecting strip averages roughly exhibit the relationship between the mean of the responses and the explanatory variable. Vertical lines show the strip standard deviations, which should be exam- ined for patterns in variability. As discussed for each of the plots, the particular patterns for the mean and the variability often suggest a course of action. (a) This is the ideal situation. The regression is a straight line and the variability is about the same at all locations along the line. Use simple linear regression. (b) The regression is not a straight line, but it is monotonic (the mean of Y either strictly increases or strictly decreases in X), and the variability is about the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Breakdown Time (minutes) 214 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression DISPLAY 8.6 (a) Some hypothetical scatterplots of response versus explanatory variable with suggested courses of action; (a) is ideal Visualize the distributions of responses in vertical strips. (b) Transform X (c) Include X2 (d) Transform Y Means? curved (e) Report Skewness Means? curved SDs? about equal SDs? increasing (f) Use Weighted Regression Means? straight line SDs? increasing Means? straight line SDs? about equal Means? curved SDs? about equal Shapes? skewed Means? straight line SDs? about equal same at all values of X. Try transforming X to a new scale where the straight line assumption appears defensible. Then use simple linear regression. (c) The regression is not a straight line and is not monotonic, and the variability is about the same at all values of X. No transformation of X can yield a straight line relationship. Try quadratic regression .fY jX g D ˇ0 C ˇ1 X C ˇ2 X 2 /, which is discussed in Chapter 9. (d) The regression is not a straight line, and the variability increases as the mean of Y increases. Try a transformation of Y , such as log, reciprocal, or square root, followed by simple linear regression. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 8.3 Graphical Tools for Model Assessment 215 (e) (f) The regression is a straight line, the variability is roughly constant, but the distribution of Y about the regression line is skewed. Remedies are unnecessary, and transformations will create other problems. Use simple linear regression, but report the skewness. The regression is a straight line but the variability increases as the mean of Y increases. Simple linear regression gives unbiased estimates of the straight line relationship, but better estimates are available using weighted regression, as discussed in Section 11.6.1. 8.3.2 Scatterplots of Residuals Versus Fitted Values DISPLAY 8.7 50 40 30 20 10 0 30 20 10 0 –10 Sometimes the patterns in Display 8.6 are difficult to detect because the total variability of the response variable is much larger than the variability around the regression line. Scatterplots of the residuals versus the fitted values are better for finding patterns because the linear component of variation in the responses has been removed, leaving a clearer picture about curvature and spread. The residual plot alerts the user to nonlinearity, nonconstant variance, and the presence of outliers. Example Display 8.5 is a scatterplot of the breakdown time versus voltage. This scatterplot resembles the pattern in part (d) of Display 8.6, suggesting the need for transfor- mation. Display 8.7 shows the scatterplot and residual plot after applying a square root transformation to the response. The residual plot is more informative than the scatterplot. It has a classic horn-shaped pattern, showing a combination of a Scatterplot of the square root of breakdown time versus voltage and a residual plot based on the simple linear regression fit Square Root of Breakdown Time Residuals 26 30 34 38 Voltage 0 5 10 15 Fitted Values Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 216 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression poor fit to the subpopulation averages and increasing variability. It is evident that the square root transformation has not resolved the problem. A log transformation, however, works well (see Display 8.4). (Note: The horn-shaped pattern is always a key indicator of the need to transform, whether or not there are replicate samples at specific values of the explanatory variable.) Transformations Indicated by Horn-Shaped Residual Plots A horn-shaped pattern in the residual plot suggests a response transformation like the square root, the logarithm, or the reciprocal. The logarithm is the easiest to interpret. The reciprocal, 1/Y, works better when the nonconstant spread is more severe, and the square root works better when the nonconstant spread is less severe. Judging severity of nonconstant variance in the horn-shaped residual plot is difficult and unnecessary, however. Try one of the transformations, re-fit the regression model on the transformed data, and redraw the residual plot to see if the transformation has worked. If not, then one of the others can be attempted. 8.4 INTERPRETATION AFTER LOG TRANSFORMATIONS A data analyst must interpret regression results in a way that makes sense to the intended audience. The appropriate wording for inferential statements after logarithmic transformation depends on whether the transformation was applied to the response, to the explanatory variable, or to both. When the Response Variable Is Logged If flog.Y /jXg D ˇ0 C ˇ1X, and if the distribution of the transformed responses about the regression is symmetric, then Consequently, MedianfY jXg D exp.ˇ0/exp.ˇ1X/: MedianfY j.X C 1/g=MedianfY jX g D exp.ˇ1 /; so an increase in X of 1 unit is associated with a multiplicative change of exp.ˇ1) in MedianfYjXg. For example, the estimated relationship between the breakdown time (BDT) of insulating fluid and voltage is O flog(BDT) j Voltageg D 19:0 􏰀 0:51 Voltage. A 1 kV increase in voltage is associated with a multiplicative change in median BDT of exp.􏰀0:51/, or 0.60. So, the median breakdown time at 28 kV is 60% of what it is at 27 kV; the median breakdown time at 29 kV is 60% of what it is at 28 kV, and so on. Since a 95% confidence interval for ˇ1 is 􏰀0:62 to 􏰀0:39, a 95% confidence interval for exp.ˇ1/ is exp.􏰀0:62/ to exp.􏰀0:39/, or 0.54 to 0.68. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 8.4 Interpretation After Log Transformations 217 The statement Median fY j.X C 1/g D 0:6  MedianfY jX g can also be written as Median fY j.X C 1/g 􏰀 MedianfY jX g D 0:4  MedianfY jX g, which permits the following kind of statement: “It is estimated that the median of Y decreases by 40% for each one unit increase in X (95% confidence interval: 32% to 46%).” When the Explanatory Variable Is Logged The relationship fY j log.X /g D ˇ0 C ˇ1 log.X / can be described in terms of mul- tiplicative changes in X, either as a change in the mean of Y for each doubling of X or a change in the mean of Y for each ten-fold increase in X. The chosen multiple should be consistent with the range of X’s in the data set. Notice that fY j log.2X /g 􏰀 fY j log.X /g D ˇ1 log.2/; so a doubling of X is associated with a ˇ1 log.2/ change in the mean of Y . Similarly, a ten-fold increase in X is associated with a ˇ1 log.10/ change in the mean of Y . For the meat processing data of Section 7.1.2, O fpH j log.Time/g D 6:98 􏰀 0:726 log(Time), so a doubling of time after slaughter is associated with a log.2/.􏰀0:726/ D 􏰀0:503 unit change in pH. Since a 95% confidence interval for ˇ1 is from 􏰀0:805 to 􏰀0:646, a 95% CI for log .2/ˇ1 is from 􏰀0:558 to 􏰀0:448. In words: It is estimated that the mean pH is reduced by 0.503 for each doubling of time after slaughter (95% confidence interval 0.448 to 0.558). When Both the Response and Explanatory Variables Are Logged The interpretation is a combination of the previous two. If flog.Y/jlog.X/g D ˇ0 C ˇ1 log.X/, then MedianfY jXg D exp.ˇ0/Xˇ1 . A doubling of X is associated with a multiplicative change of 2ˇ1 in the median of Y . Or, a ten-fold increase in X is associated with a 10ˇ1 -fold change in the median of Y . For the island size and number of species data, Oflog.species/jlog.area/g D 1:94 C 0:250 log .area/. Thus, an island area of 2A is estimated to have a median number of species that is 20:250 (or 1.19) times the median number of species for an island of area A. Since a 95% confidence interval for ˇ1 is 0.219 to 0.281, a 95% confidence interval for the multiplicative factor in the median is 20:219 to 20:281, or 1.16 to 1.22. The Need for Interpretation An important aspect of the log transformation is that straightforward multiplicative statements emerge. Straightforward interpretations after other transformations only follow in certain instances. For example, the square root of the cross-sectional area of a tree may be re-expressed as the diameter; the reciprocal of the time to complete a race may be interpreted as the speed. In general, however, interpretation for other transformations may be awkward. For two types of questions, interpretation is not critical. First, if the regression is used only to assess whether the distribution of the response is associated with the explanatory variable, it is sufficient to test the hypothesis that the slope in the regression of Y on X is zero, where Y or X are transformed variables. If the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 218 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression distribution of the transformed response is associated with X, the distribution of the response is associated with X, even though that association may be difficult to describe. Secondly, if the purpose is prediction, no interpretation of the regression coefficients is needed. It is only necessary to express the prediction on the original scale, regardless of the expression used to make the prediction. 8.5 ASSESSMENT OF FIT USING THE ANALYSIS OF VARIANCE An analysis of variance can be used to compare several models. When there are replicate response variables at several explanatory variable values, an analysis of variance F -test for comparing the simple linear regression model to the separate- means (one-way analysis of variance) model supplies a formal assessment of the goodness of fit of simple linear regression. This is called the lack-of-fit F -test. 8.5.1 Three Models for the Population Means In the following three model descriptions for means, the subscript i refers to the group number (e.g., different voltage levels). 1. Separate-means model: fYjXig D i, for i D 1;:::;I. 2. Simplelinearregressionmodel: fYjXigDˇ0Cˇ1Xi, foriD1;:::;I. 3. Equal-means model: fYjXig D , for i D 1;:::;I. The separate-means model has no restriction on the values of any of the means. It has I different parameters—the individual group means. The simple linear regres- sion model has two parameters, the slope and the intercept. The equal-means model has a single parameter. These models form a hierarchical set. The equal-means model is a special case of the simple linear regression model, which in turn is a special case of the separate- means model. Viewed conversely, the separate-means model is a generalization of the simple linear regression model, which in turn is a generalization of the equal- means model. A generalization of one model is another model that contains the same features but uses additional parameters to describe a more complex structure. 8.5.2 The Analysis of Variance Table Associated with Simple Regression Display 8.8 contains two different analysis of variance tables. Table (b) comes from a one-way analysis of variance (Chapter 5), showing the details of an F -test that compares the separate-means model to the equal-means model for the insulating fluid example of Section 8.1.2. Table (a) comes from a simple linear regression analysis showing the details of an F -test that compares the simple linear regression model to the equal-means model. If ˇ1 is zero, the simple linear regression model reduces to the equal-means model, fY jXg D ˇ0. The hypothesis that ˇ1 D 0 can therefore be tested with a comparison of the sizes of the residuals from fits to these two models. An analysis of Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 8.8 Source Analysis of variances tables for the insulating fluid data from a simple linear regression analysis and from a separate-means (one-way ANOVA) analysis Source (b): Analysis of variance table from a one-way analysis of variance Sum of squares d.f. Mean square F-statistic p-value ,0.0001 8.5 Assessment of Fit Using the Analysis of Variance 219 (a): Analysis of variance table from a simple linear regression analysis Sum of squares d.f. Mean square F-statistic p-value ,0.0001 variance table associated with simple linear regression displays the components of the F -statistic for this test (Display 8.8(a)). Its two main features are the following: The p-value is the same as the two-sided p-value for the t-test of H0: ˇ1 D 0 (the F-statistic is the square of the t-statistic); and the residual mean square is the estimate of variance, O2. The sums of squares column contains the important working pieces. In Table (a), the residual sum of squares is the sum of squares of residuals from the regression model, while the total sum of squares is the sum of squares of residu- als from the equal-means model. The regression sum of squares is their difference; that is, it is the amount by which the residual sum of squares decreases when the model for the mean of Y is generalized by adding ˇ1X. The generalization adds one parameter to the model, and that is the number of degrees of freedom associated with the regression sum of squares. Except for differences in terminology, this is completely analogous to the sums of squares column in Table (b), where the between sum of squares is the amount by which the residual sum of squares is reduced by the generalization from the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 220 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression 8.5.3 equal-means to the separate-means model, involving the change from one to seven parameters (difference D 6 parameters added). The Lack-of-Fit F-Test When replicate values of the response occur at some or all of the explanatory variable values, a formal test of the adequacy of the straight-line regression model is available. The test is an extra-sum-of-squares F -test comparing the simple linear (reduced) model to the separate means (full) model. (See Sections 5.3 and 5.4.) Specifically, the lack-of-fit F -statistic is Fstat D ŒSSResLR 􏰀 SSResSM]/ [d.f.LR 􏰀 d.f.SM; O 2 SM where SSResLR and SSResSM are the sums of squares of residuals from the simple lin- ear regression (“Residual” in Display 8.8(a)) and separate-means models (“Within groups” in Display 8.8(b)), respectively; and d.f.LR and d.f.SM are the degrees of freedom associated with these residual sums of squares. The denominator of the F-statistic is the estimate of 2 from the separate-means model. The p-value, for a test of the null hypothesis that the simple linear regression model fits, is found as the proportion of values from an F distribution that exceed the F -statistic. The numerator degrees of freedom are d.f.LR 􏰀 d.f.SM, and the denominator degrees of freedom are d.f.SM. Test Computation Some statistical computer packages will automatically compute the lack-of-fit F -test statistic within the simple regression procedure, as long as there are indeed replicates. Others might perform this test if requested. If neither of these options is available, the user must obtain the analysis of variance tables from both the regression fit and the one-way analysis of variance, as in Display 8.8, extract the necessary information, and compute the F -statistic manually. Example—Insulating Fluid From Display 8.8, SSResLR D 180.0745, SSResSM D 173.7484, d.f.LR D 74, and d.f.SM D 69. So the F -statistic is [(180.0745 􏰀 173.7484)/(74 􏰀 69)]/2.5181 D 0.502. The proportion of values from an F-distribution on 5 and 69 degrees of freedom that exceed 0.502 is 0.78. This large p-value provides no evidence of lack-of-fit to the simple linear regression model. A small p-value would have suggested that the variability between group means cannot be explained by a simple linear regression model. A Composite Analysis of Variance Table Since the simple linear regression model is intermediate between the equal-means and the separate-means models, the reduction in residual sum of squares (196.4774) associated with generalizing from the equal-means model to the separate-means 8.5.4 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 8.9 Reductions in sums of squared residuals in hierarchical models for mean responses in the insulating fluid study DISPLAY 8.10 8.5 Assessment of Fit Using the Analysis of Variance 221 Constant Mean (1 parameter) Simple Linear Regression (2 parameters) Separate Means (7 parameters) Adding one parameter lowers residual SS by 190.1514. Adding five more parameters lowers residual SS by 6.3260. Adding six parameters lowers residual SS by 196.4774 Composite analysis of variance table with F-test for lack of fit Source of variation Sum of squares d.f. Mean square model can be broken up into contributions associated with an initial generalization to the simple linear regression model (190.1514) and with a further generalization from there to the separate-means model. (See Display 8.9.) The amount associated with the latter step is the difference between the two, 196:4774􏰀190:1514 D 6:3260. Therefore, a useful composite of the analysis of variance tables (a) and (b) in Display 8.8 is given in Display 8.10. Essentially this is the same table as the analysis of variance table for the separate-means model, Display 8.8 (b), except that the “Between group” sum of squares has been broken into two components—one that measures the pattern in the means that follows a straight line, and one that measures any patterns that fail to follow the straight line model. The latter is called the lack-of-fit component. The mean squares in each row are the sum of squares divided by degrees of freedom. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. F-statistic p-value 0.78 222 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression 8.6 RELATED ISSUES 8.6.1 R-Squared: The Proportion of Variation Explained The R-squared statistic, or coefficient of determination, is the percentage of the total response variation explained by the explanatory variable. Referring to the analysis of variance table (a) in Display 8.8, the residual sum of squares for the equal- means model, fY g D ˇ0, is 370.2258. This measures total response variation. The residual sum of squares for the simple linear regression model fY jXg D ˇ0Cˇ1X is 180.0745. This residual sum of squares measures the response variation that remains unexplained after inclusion of the ˇ1X term in the model. Including the explanatory variable therefore reduced the variability by 190.1513. R-squared expresses this reduction as a percentage of total variation: For the insulating fluids example, R2 D100370:2258􏰀180:0745%D51:4%: 370:2258 This should be read as “Fifty-one percent of the variation in log breakdown times was explained by the linear regression on voltage.” The statement is phrased in the past tense because R2 describes what happened in the analyzed data set. Notice that if the residuals are all zero (a perfect fit), then R2 is 100%. At the other extreme, if the best-fitting regression line has slope 0 (and therefore intercept Y ), the residuals will be exactly equal to Yi 􏰀 Y , the residual sum of squares will be exactly equal to the total sum of squares, and R2 will be zero. A judgment about what constitutes “good” values for R2 depends on the con- text of the study. In precise laboratory work, R2 values under 90% may be low enough to require refinements in technique or the inclusion of other explanatory information. In some social science contexts, however, where a single variable rarely explains a great deal of the variation in a response, R2 values of 50% may be considered remarkably good. For simple linear regression, R2 is identical to the square of the sample cor- relation coefficient for the response and the explanatory variable. As with the correlation, R2 only estimates some population quantity if the .X;Y/ pairs are randomly drawn from a population of pairs. It should not be used for inference, and it should never be used to assess the adequacy of the straight line model, because R2 can be quite large even when the simple linear regression model is inadequate. R2 D 100  Total sum of squares 􏰀 Residual sum of squares  %: Total sum of squares Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 8.11 Estimates of group means and standard errors using different approaches 8.6 Related Issues 223 Voltage Average Internal Pooled Level (kV) n log (BDT) SE SE Regression Estimate SE 8.6.2 Simple Linear Regression or One-Way Analysis of Variance? When the data are arranged in groups that correspond to different levels of an explanatory variable (as in the meat processing and insulating fluid studies), the statistical analysis may be based on either simple linear regression or one-way anal- ysis of variance. The choice between these two techniques is straightforward: If the simple linear regression model fits (possibly after transformation), then it is preferred. The regression approach accomplishes four things: It allows for interpolation, it gives more degrees of freedom for error estimation, it gives smaller standard errors for estimates of the mean responses, and it provides a simpler model. As an illustration of the increased precision from using regression, Display 8.11 shows estimated means in the insulating fluid example from the separate-means model (i.e., the group averages), and the simple linear regression model (i.e., the fitted values). It also shows three standard errors for the estimated means: the internal standard error of the mean, which is the one-sample standard error (equal to the sample SD over the square root of the sample size); the pooled standard error of the mean, which is the one-way analysis of variance standard error (equal to the pooled SD over the square root of the sample size); and the standard error of the estimated mean response from the regression model (Section 7.4.2). The two nonregression standard errors are comparable in size (but, of course, confidence intervals will be narrower in the second case because of the larger degrees of freedom attached to the pooled SD). The standard errors from the regression model are uniformly smaller, however. Since the mean (at X D 26, say) is postulated to be ˇ0 Cˇ126, all 76 observations are used to estimate this, not just those from group 1. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. n n 224 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression DISPLAY 8.12 Possible patterns in plots of residuals versus time order of data collection 8.6.3 As a general rule, it is appropriate to find the simplest model—the one with the fewest parameters—that adequately fits the data. This ensures both the most precise answers to the questions of interest and the most straightforward interpretation. Other Residual Plots for Special Situations Residuals Versus Time Order If the data are collected over time (or space), serial correlation may occur. A plot of the residuals versus the time order of data collection may be examined for patterns. Four possibilities are shown in Display 8.12. In part (a) no pattern emerges, and no serial correlation is indicated. In part (b) a linear trend over time can be observed. It may be possible to include time as an additional explanatory variable (using multiple linear regression, as in Chapter 9). The pattern in part (c) shows a positive serial correlation, in which residuals tend to be followed in time by residuals of the same sign and of about the same size. The pattern in part (d) shows a negative serial correlation, where residuals of one sign tend to be followed 0 0 (a) Normal Noise (b ) Time Trend Residual Residual (c) Positive Serial Correlation (d) Negative Serial Correlation Time Time Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 8.13 by residuals of the opposite sign. The situations in parts (c) and (d) require time series techniques (Chapter 15). Normal Probability Plots The normal probability plot is a scatterplot involving the ordered residuals and a set of expected values of an ordered sample of the same size from a standard normal distribution. These expected values are available from statistical theory and are not described further here. Some statistical packages plot the expected values along the y-axis against the ordered residuals along the x-axis (as The Statistical Sleuth does), while other packages reverse the axes. Assessing normality visually from a normal plot is easier than from a histogram. Several normal probability plots for hypothetical data are shown in Dis- play 8.13. When subpopulations have normal distributions, the normal plot is approximately a straight line (a) In a long-tailed distribution (b) residuals in the tails have wider gaps than expected in a normal distribution, with the gaps increas- ing as one gets further into the tails. A skewed distribution (c) will show wider gaps in one tail and shorter gaps in the other, with a reasonably smooth progression of increase in the longer tail. This is in contrast to a situation with outliers (d) where the bulk of the distribution appears normal with one or a few exceptional cases. Normal probability plots illustrating four distributional patterns a. Normal b. Long-tailed c. Skewed (+) d. Outlier Residual Residual Residual Residual Normal probability plots for the residuals from the meat processing data and the insulating fluid data are shown in Display 8.14. The patterns are close enough to a straight line that the prediction intervals based on the normal assumption should be adequate. (The normal distribution of observations about the regression line is important for the validity of prediction intervals, but not for the validity of estimates, tests, and confidence intervals.) Planning an Experiment: Balance Balance means having the same number of experimental units in each treat- ment group. The insulating fluid data are unbalanced, because there are three 8.6.4 8.6 Related Issues 225 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 226 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression DISPLAY 8.14 Normal probability plots of residuals from simple linear regression fits to the meat processing data and the insulating fluid data Residual pH Residual log(BDT) Ordered Residuals Ordered Residuals observations in the first treatment group, five in the next, and so on. For the several- treatment experiment, balance is generally desirable in providing equal accuracy for all treatment comparisons, but it is not essential. The voltage experiment was designed as unbalanced presumably because of the much greater waiting time for breakdowns at low voltages and the primary interest in voltages between 30 and 36kV. Balance will play a more important role when the data are cross-classified according to two factors since some simplifying formulas are only appropriate for balanced data and, more importantly, it allows unambiguous decomposition in the analysis of variance. 8.7 SUMMARY Exploring statistical relationships begins with viewing scatterplots. Nonlinear regressions, nonconstant spread, and outliers can often be identified at this stage. In cases where problems are less apparent, a simple linear regression can be fit tentatively, and the decision about its appropriateness can be based on the residual plot. When replicate response variables occur at some of the explanatory variable values, it is possible to conduct a formal lack-of-fit F-test. The test is a special case of the extra-sum-of-squares F-test for comparing two models. The models involved are the simple linear regression (reduced) model and the separate-means (full) model. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Expected Values Expected Values 8.8 Exercises 227 Insulating Fluid and Species–Area Studies Scatterplots and residual plots for the insulating fluid data and for the species–area data reveal nonconstant spread and nonlinear regressions, suggesting transforma- tion of the response variable. In both cases, the spread increases as the mean level increases, indicating a logarithmic, square root, or reciprocal transformation. The scatterplot does not indicate which transformation is best. Several may be tried, with the final choice depending on what is appropriate to the scientific context of the study and to the statistical model assumptions. After a logarithmic transformation of the times to breakdown, a simple linear regression model fits the insulating fluid data well. No evidence (from a residual plot and a lack-of-fit test) indicates lack of fit or (from the normal plot nonnormality) anything but a normal distribution of the residuals. Mean estimation and prediction can proceed from that model, with results back-transformed to the original scale. Other approaches are possible—another sensible analysis of these data assumes the Weibull distribution on the original scale and gives similar results. To estimate the parameters in the species–area study, both response and explanatory variables are log-transformed. Here the logarithmic transformations to a simple linear regression model are indicated by theoretical model considera- tions. Weak evidence remains of increasing variability in the residual plot and of long-tailedness in the normal plot. These data should not, however, be used for pre- dictions. With this small sample size, no further action is required, but confidence limits should be described as approximate. 8.8 EXERCISES Conceptual Exercises 1. Island Area and Species Count. The estimated regression line for the data of Section 8.1.1 is O flog species j log areag D 1:94 C 0:250 log(area). Show how this estimates that islands of area 0.5A have a median number of species that is 16% lower than the median number of species for islands of area A. 2. Insulating Fluid. For the insulating fluid data of Section 8.1.2 explain why the regression analysis allows for statements about the distribution of breakdown times at 27 kV while the one-way analysis of variance does not. 3. Big Bang. In the data set of Section 7.1.1 multiple distances were associated with a few recession velocities. Would it be possible to perform the lack-of-fit test for these data? 4. Insulating Fluid. If the sample correlation coefficient between the square root of breakdown time and voltage is 􏰀0.648, what is R2 for the regression of square root of breakdown time on voltage? 5. Why can an R2 close to 1 not be used as evidence that the simple linear regression model is appropriate? 6. A study is made of the stress response exhibited by a sample of 45 adults to rock music played at nine different volume levels (five adults at each level). What is the difference between using the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 228 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression DISPLAY 8.15 volume as an explanatory variable in a simple linear regression model and using the volume level as a group designator in a one-way classification model? 7. In a study where four levels of a magnetic resonance imaging (MRI) agent are each given to 3 cancer patients (so there are 12 patients in all), the response is a measure of the degree of seizure activity (an unpleasant side effect). The F -test for lack of fit to the simple linear regression model with X D agent level has a p-value of 0.0082. The t-tools estimate that the effect of increasing the level of the MRI agent by 1 mg/cm2 is to increase the level of seizure activity by 2.6 units (95% confidence interval from 1.8 to 3.4 units). (a) How should the latter inference be interpreted? (b) How many degrees of freedom are there for (i) the within-group variation? (ii) the lack-of-fit variation? 8. Insulating Fluid. Why would it be of interest to know whether batches of insulating fluid were randomly assigned to the different voltage levels? 9. Suppose the .Y;X/ pairs are: (5,1), (3,2), (4,3), (2,4), (3,5), and (1,6). Would the least squares fit to these data be much different from the least squares fit to the same data with the first pair replaced by (15,1)? 10. (a) What assumptions are used for exact justification of tests and confidence intervals for the slope and intercept in simple regression? (b) Are any of these assumptions relatively unimportant? 11. Suppose you had data on pairs .Y;X/ which gave the scatterplot shown in Display 8.15. How would you approach the analysis? Scatterplot for Exercise 11 Response Explanatory Variable 12. What is the technical difficulty with using the separate-means model as a basis for the lack-of-fit F -test when there are no replicate responses? 13. Researchers at a university wish to estimate the effect of class size on course comprehension. An intermediate course in statistics can be taught to classes of any size between 25 and 185 students, and four instructors are available. Suppose the researchers truly believe that the average course com- prehension, measured by the average of student scores on a standardized test, is indeed a straight line in class sizes over the range from 25 to 185. What four class sizes should be used in the experiment? Why? 14. Insulating Fluid. Which would you use to predict the log breakdown time for a batch of insulating fluid which is to be put on test at 30 kV: the regression estimate of the mean at 30 kV or the average from the batches that were tested at 30 kV? Why? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 8.16 Computational Exercises 15. Island Size and Species. (a) Draw a scatterplot of the (untransformed) number of species on the (untransformed) area of the island (Display 8.2, top). (b) Fit the simple linear regression of number of species on area and obtain a residual plot. (c) What features in the two plots indicate a need for transformation? 16. Meat Processing. The data in Display 7.3 are a subset of the complete data on postmortum pH in 12 steer carcasses. (Data from J. R. Schwenke and G. A. Milliken, “On the Calibration Problem Extended to Nonlinear Models,” Biometrics 47(2) (1991): 563–74). Once again, the purpose is to determine how much time after slaughter is needed to ensure that the pH reaches 6.0. In Chapter 7 the simple linear regression of pH on log(Hour) was fit to the first 10 carcasses only. Refit the model with all 12 carcasses (data given in Display 8.16). (a) Assess lack of fit using a residual plot. (b) Assess lack of fit using the lack-of-fit F -test. (c) The inappropriateness of the simple linear regression model can be remedied by dropping the last two carcasses. Is there any justification for doing so? (Hint: In order to answer the question of interest, what range of X’s appears to be important?) pH of steer carcasses 1 to 24 hours after slaughter 17. Biological Pest Control. In a study of the effectiveness of biological control of the exotic weed tansy ragwort, researchers manipulated the exposure to the ragwort flea beetle on 15 plots that had been planted with a high density of ragwort. Harvesting the plots the next season, they measured the average dry mass of ragwort remaining (grams/plant) and the flea beetle load (beetles/gram of ragwort dry mass) to see if the ragwort plants in plots with high flea beetle loads were smaller as a result of herbivory by the beetles. (Data from P. McEvoy and C. Cox, “Successful Biological Control of Ragwort, Senecio jacobaea, by Introduced Insects in Oregon,” Ecological Applications 1(4) (1991): 430–42. The data in Display 8.17 were read from McEvoy and Cox, Figure #2.) Dry mass of ragwort weed on 15 plots exposed to flea beetles 0.502 0.611 0.630 0.427 0.011 0.012 0.006 0.002 (a) Use scatterplots of the raw data, along with trial and error, to determine transformations of Y D Ragwort dry mass and of X D Flea beetle load that will produce an approximate linear relationship. (b) Fit a linear regression model on the transformed scale; calculate residuals and fitted values. (c) Look at the residual plot. Do you want to try other transformations? What do you suggest? DISPLAY 8.17 8.8 Exercises 229 Distance and Order from Sun. Reconsider the planetary distance and order from sun data in Exercise 7.21. Fit a regression model to the data that includes the asteroid belt and fill in the blanks in this conclusion: Aside from some random variation, the distance to the sun increases by % with each consecutive planet number (95% confidence interval: to % increase). 18. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 230 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression 19. Pollen Removal. Reconsider the pollen removal data of Exercise 3.27 and the regression of pollen removed on time spent on flower, for the bumblebee queens only. (a) What problems are evident in the residual plot? (b) Do log transformations of Y or X help any? (c) Try fitting the regression only for those times less than 31 seconds (i.e., excluding the two longest times). Does this fit better? (Note: If the linear regression fits for a restricted range of the X’s, it is acceptable to fit the model with all the other X’s excluded and to report the range of X’s for which the model holds.) 20. Quantifying Evidence for Outlierness. In a special election to fill a Pennsylvania State Sen- ate seat in 1993, the Democratic candidate, William Stinson, received 19,127 machine-counted votes and the Republican, Bruce Marks, received 19,691 (i.e., 564 more votes than the Democrat). In addition, however, Stinson received 1,396 absentee ballots and Marks received only 371, so the total tally showed the Democrat, Stinson, winning by 461 votes. The large disparity between the machine-counted and absentee ratios, and the resulting reversal of the outcome due to the absen- tee ballots, sparked concern about possible illegal influence on the absentee votes. Investigators reviewed data on disparities between machine and absentee votes in prior Pennsylvania State Senate elections to see whether the 1993 disparity was larger than could be explained by historical varia- tion. Display 8.18 shows the data in the form of percentage of absentee and machine-counted ballots cast for the Democratic candidate. The task is to clarify the unusualness of the Democratic absen- tee percentage in the disputed election. (a) Draw a scatterplot of Democratic percentage of absentee ballots versus Democratic percentage of machine-counted ballots. Use a separate plotting symbol to highlight the disputed election. (b) Fit the simple linear regression of absentee percentage on machine-count percentage, excluding the disputed election. Draw this line on the scatterplot. Also include a 95% prediction band. What does this plot reveal about the unusualness of the absentee percentage in the disputed election? (c) Find the prediction and standard error of prediction from this fit if the machine-count percentage is 49.3 (as it is for the disputed election). How many estimated standard deviations is the observed absentee percentage, 79.0, from this predicted value? Compare this answer to a t-distribution (with degrees of freedom equal to the residual degrees of freedom in the regression fit) to obtain a p-value. (d) Outliers and data snooping. The p-value in (c) makes sense if the investigation into the 1993 election was prompted by some other reason. Since it was prompted because the absentee percentage seemed too high, however, the p-value in (c) should be adjusted for data snooping. Adjust the p-value with a Bonferroni correction to account for all 22 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 8.18 Election Partial listing of 22 Pennsylvania state senate election results, collected to explore the pecu- liarity noticed in the 1993 election between William Stinson and Bruce Marks (election number 22 in the data set). The full data set includes the year of the election, the senate district, the number of absentee ballots cast for the Democratic candidate and for the Republican candi- date, and the number of machine-counted ballots cast for the Democratic candidate and for the Republican candidate. Also shown are the percentages of absentee and machine ballots cast for the Democratic candidate. Year District DemPctOfAbsenteeVotes DemPctOfMachineVotes Disputed 182D2 282D4 382D8 484D1 584D3 .. . 72.9 69.1 no 65.6 60.9 no 74.6 80.8 no 64.0 60.0 no 83.3 92.4 no 2293D2 79.0 49.3 yes DISPLAY 8.19 residuals that could have been similarly considered. (Data from Orley Ashenfelter, 1994. Report on Expected Absentee Ballots. Typescript. Department of Economics, Princeton University. See also Simon Jackman (2011). pscl: Classes and Methods for R Developed in the Political Science Com- putational Laboratory, Stanford University. Department of Political Science, Stanford University. Stanford, California. R package version 1.03.10. URL http://pscl.stanford.edu/) 21. Fish Preferences. Reconsider Case Study 2 in Chapter 6, the study of female preferences among platyfish. Fit the full model in which the mean preference for the yellowtailed male is possi- bly different for each male pair. Construct a normal probability plot of the residuals and a residual plot. If these suggest a transformation, make it and repeat the analysis including the linear contrast measuring the association of preference with male body size. If they suggest an outlier problem, use the inclusion/exclusion procedure to determine whether the outlying case(s) change(s) the answer to the questions of interest. Also, identify the outlying case(s) and suggest why it might be a true outlier. Data Problems 22. Ecosystem Decay. As an introduction to their study on the effect of Amazon forest clearing (data from T. E. Lovejoy, J. M. Rankin, R. O. Bierregaard, Jr., K. S. Brown, Jr., L. H. Emmons, and M. E. Van der Woot, “Ecosystem Decay of Amazon Forest Remnants,” in M. H. Nitecki, ed., Extinctions, Chicago: University of Chicago Press, 1984) the researchers stated: “fragmentation of once continuous wild areas is a major way in which people are altering the landscape and biology of the planet.” Their study takes advantage of a Brazilian requirement that 50% of the land in any devel- opment project remain in forest and tree cover. As a consequence of this requirement, “islands” of forest of various sizes remain in otherwise cleared areas. The data in Display 8.19 are the number of butterfly species in 16 such islands. Summarize the role of area in the distribution of number of but- terfly species. Write a brief statistical report including a summary of statistical findings, a graphical display, and a section detailing the methods used to answer the questions of interest. Forest patch area (hectares) and number of butterfly species found Reserve Area Species Reserve Area Species 1,000 23. Wine Consumption and Heart Disease. The data in Display 8.20 are the average wine con- sumption rates (in liters per person) and number of ischemic heart disease deaths (per 1,000 men aged 55 to 64 years old) for 18 industrialized countries. (Data from A. S. St. Leger, A. L. Cochrane, and F. Moore, “Factors Associated with Cardiac Mortality in Developed Countries with Particular Reference to the Consumption of Wine,” Lancet (June 16, 1979): 1017–20.) Do these data suggest that the heart disease death rate is associated with average wine consumption? If so, how can that 8.8 Exercises 231 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 232 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression DISPLAY 8.20 First five rows of a data set with wine consumption (liters per person per year) and heart disease mortality rates (deaths per 1,000) in 18 countries Country Wine consumption Heart disease mortality relationship be described? Do any countries have substantially higher or lower death rates than oth- ers with similar wine consumption rates? Analyze the data and write a brief statistical report that includes a summary of statistical findings, a graphical display, and a section detailing the methods used to answer the questions of interest. 24. Respiratory Rates for Children. A high respiratory rate is a potential diagnostic indicator of respiratory infection in children. To judge whether a respiratory rate is truly “high,” however, a physician must have a clear picture of the distribution of normal respiratory rates. To this end, Italian researchers measured the respiratory rates of 618 children between the ages of 15 days and 3 years. Display 8.21 shows a few rows of the data set. Analyze the data and provide a statistical summary. Include a useful plot or chart that a physician could use to assess a normal range of res- piratory rate for children of any age between 0 and 3. (Data read from a graph in Rusconi et al., “Reference Values for Respiratory Rate in the First 3 Years of Life,” Pediatrics, 94 (1994): 350–55.) Partial listing of data on ages (months) and respiratory rates (breaths per minute) for 618 children Child 0.1 0.2 0.3 0.3 0.3 0.4 25. The Dramatic U.S. Presidential Election of 2000. The U.S. presidential election of November 7, 2000, was one of the closest in history. As returns were counted on election night it became clear that the outcome in the state of Florida would determine the next president. At one point in the evening, television networks projected that the state was carried by the Democratic nom- inee, Al Gore, but a retraction of the projection followed a few hours later. Then, early in the morning of November 8, the networks projected that the Republican nominee, George W. Bush, had carried Florida and won the presidency. Gore called Bush to concede. While en route to his concession speech, though, the Florida count changed rapidly in his favor. The networks once again reversed their projection, and Gore called Bush to retract his concession. When the roughly 6 million Florida votes had been counted, Bush was shown to be leading by only 1,738, and the narrow margin trig- gered an automatic recount. The recount, completed in the evening of November 9, showed Bush’s lead to be less than 400. Meanwhile, angry Democratic voters in Palm Beach County complained that a confusing “butterfly” lay-out ballot caused them to accidentally vote for the Reform Party candidate Pat Buchanan instead of Gore. The ballot, as illustrated in Display 8.22, listed presidential candidates on both a left-hand and a right-hand page. Voters were to register their vote by punching the circle DISPLAY 8.21 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 8.22 Confusing ballot in Palm Beach County, Florida DISPLAY 8.23 corresponding to their choice, from the column of circles between the pages. It was suspected that since Bush’s name was listed first on the left-hand page, Bush voters likely selected the first circle. Since Gore’s name was listed second on the left-hand side, many voters—who already knew who they wished to vote for—did not bother examining the right-hand side and consequently selected the second circle in the column; the one actually corresponding to Buchanan. Two pieces of evidence supported this claim: Buchanan had an unusually high percentage of the vote in that county, and an unusually large number of ballots (19,000) were discarded because voters had marked two circles (possibly by inadvertently voting for Buchanan and then trying to correct the mistake by then voting for Gore). Display 8.23 shows the first few rows of a data set containing the numbers of votes for Buchanan and Bush in all 67 counties in Florida. What evidence is there in the scatterplot of Display 8.24 that Buchanan received more votes than expected in Palm Beach County? Analyze the data without Palm Beach County results to obtain an equation for predicting Buchanan votes from Bush votes. Obtain a 95% prediction interval for the number of Buchanan votes in Palm Beach from this result— assuming the relationship is the same in this county as in the others. If it is assumed that Buchanan’s actual count contains a number of votes intended for Gore, what can be said about the likely size of this number from the prediction interval? (Consider transformation.) Votes for Bush and Buchanan in all Florida counties (first 5 of 67 rows) County Bush votes Buchanan votes 115,185 26. Kleiber’s Law. Display 8.25 shows the first five rows of a data set with average mass, metabolic rate, and average lifespan for 95 species of mammals. (From A. T. Atanasov, “The Linear Allo- metric Relationship Between Total Metabolic Energy per Life Span and Body Mass of Mammals,” Biosystems 90 (2007): 224–33.) Kleiber’s law states that the metabolic rate of an animal species, on 8.8 Exercises 233 (REPUBLICAN) GEORGE W. BUSH-President DICK CHENEY-Vice President (DEMOCRATIC) AL GORE-President JOE LIBERMAN-Vice President HARRY BROWNE-President 7 and ART OLIVER-Vice President 9 11 ELECTORS for (LIBERTARIAN) 4 6 PRESIDENT VICE PRESIDENT Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 3 5 (REFORM) PAT BUCHANAN-President EZOLA FOSTER-Vice President (SOCIALIST) DAVID McREYNOLDS-President MARY CAL HOLLIS-Vice President 8 10 234 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression DISPLAY 8.24 Votes for George W. Bush and Pat Buchanan in all Florida counties Palm Beach County 0 50,000 100,000 150,000 200,000 250,000 300,000 Number of Votes for Bush DISPLAY 8.25 Average mass (kg), average basal metabolic rate (kJ per day), and lifespan (years) for 95 mammal species; first 5 of 95 rows CommonName Species Tachiglossus aculeatus Zaglossus bruijni Ornithorhynchus anatinus Lutreolina crassicaudata Didelphis marsupialis Mass 2.50E100 1.03E101 1.30E100 8.12E201 1.33E100 Metab Life 3.02E102 14 5.94E102 20 2.29E102 9 1.96E102 5 2.99E102 6 Echidna Long-beaked echidna Platypus Opossum South American opossum average, is proportional to its mass raised to the power of 3/4. Judge the adequacy of this theory with these data. 27. Metabolic Rate and Lifespan. It has been suggested that metabolic rate is one of the best single predictors of species lifespan. Analyze the data in Exercise 26 to describe an equation for predicting mammal lifespan from metabolic rate. Also provide a measure of the amount of variation in the distribution of mammal lifespans that can be explained by metabolic rate. 28. IQ, Education, and Future Income. Display 8.26 is a partial listing of a data set with IQ scores in 1981, years of education completed by 2006, and annual income in 2005 for 2,584 Americans who were selected for the National Longitudinal Study of Youth in 1979 (NLSY79), who were re- interviewed in 2006, and who had paying jobs in 2005. (See Exercises 2.22 and 3.30 for a more detailed description of the survey.) (a) Describe the distribution of 2005 income as a function of IQ test score. What percentage of variation in the distribution is explained by the regression? (b) Describe the distribution of 2005 income as a function of years of education. What percentage of variation in the distribution is explained by the regression? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Number of Votes for Buchanan 0 1,000 2,000 3,000 8.8 Exercises 235 DISPLAY 8.26 IQ test score from 1981 (AFQT—armed forces qualifying test score), number of years of educa- tion, and annual income in 2005 (dollars) for 2,584 Americans in the NLSY79 survey; first 5 of 2,584 rows Subject AFQT Educ Income2005 5,500 65,000 19,000 36,000 65,000 2 6.841 12 6 99.393 16 7 47.412 12 8 44.022 14 9 59.683 14 DISPLAY 8.27 Autism prevalence per 10,000 ten-year olds in each of five years Year Prevalence 1992 3.5 1994 5.3 1996 7.8 1998 11.8 2000 18.3 29. Autism Rates. Display 8.27 shows the prevalence of autism per 10,000 ten-year old children in the United States in each of five years. Analyze the data to describe the change in the distribution of autism prevalence per year in this time period. (Data from C. J. Newschaffer, M. D. Falb, and J. G. Gurney, “National Autism Prevalence Trends From United States Special Education Data,” Pediatrics, 115 (2005): e277–e282.) Answers to Conceptual Exercises 1. Median fspeciesjareag D exp.1:94/area0:250 . So Medianfspecies j 0:5 areag/Medianfspecies j areag D 0:5:250 D 0:84. Thus Medianfspecies j 0:5 areag D 0:84 Medianfspecies j areag and, finally, [Medianfspecies j areag 􏰀 Medianfspecies j 0.5 areag]/Medianfspecies j areag D 1 􏰀 0:84 D 0:16. 2. The ANOVA model states that there are seven means, one for each voltage level tested, but does not describe any relation between mean and voltage. The regression model establishes a pattern between mean log breakdown time and voltage, for all voltages in the range of 26 to 38 kV. 3. Yes. (Note: The multiple observations occurred because of rounding, so they do not represent repeated draws from the same distribution. Nevertheless, they are near replicates, at least, and can be used as such for the lack-of-fit test.) 4. R2 D square of correlation coefficient D .􏰀0:648/2 D 0:420. 5. Although a high R2 reflects a strong degree of linear association, this linear association may well be accompanied by curvature (and by nonconstant variance). 6. In the simple linear regression model, the nine mean stress levels lie on a straight line against volume. In the one-way classification (the separate-means model) the mean stress levels may or may not lie on the straight line—their values are not restricted. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 236 Chapter 8 A Closer Look at Assumptions for Simple Linear Regression 7. (a) If the data do not fit the model, then the parameters of the model are not adequate descriptive summaries. No inference should be drawn, at least until a better model is found. (b) (i) 8; (ii) 2. 8. Even in laboratory circumstances, confounding variables are possible. If, for example, batches are spooned from a large container that has density stratification, then assigning consecutive batches to the lowest voltage, then the next lowest, and so on, will confound fluid density with voltage. Randomization never hurts, and usually helps. 9. Yes, very much so. The least squares method is not resistant to the effects of outliers. 10. (a) linearity, constant variance, normality, independence. (b) normality. 11. It may appear that this is a case where the spread of Y increases as the mean of Y does, so a simple transformation may be in order. This will not produce good results. Notice that the average Y at a large X lies in a no-man’s land with few observations. Looking at the distributions in strips, you will see two separate groups in each distribution. Look for some important characteristic that separates the data into two groups, then build a separate regression model for each group. 12. In fitting the separate-means model, all residuals are zero. The denominator of the F -statistic is zero, so the F -statistic is not defined. 13. Put two classes at 25 students and two at 185 students. This makes the standard deviation in the sampling distribution of the slope parameter as small as possible, given the constraints of the situation. (But it gives no information on lack of fit; check the degrees of freedom.) 14. The regression estimate. It is more precise (see Display 8.11). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 9 Multiple Regression Multiple regression analysis is one of the most widely used statistical tools, and for good reason: It is remarkably effective for answering questions involving many variables. Although more difficult to visualize than sim- ple regression, multiple regression is a straightforward extension. It models the mean of a response variable as a function of several explanatory variables. Many issues, tools, and strategies are associated with multiple regression anal- ysis, as discussed in this and the next three chapters. This chapter focuses on the meaning of the regression model and strategies for analysis. The details of esti- mation and inferential tools are deliberately postponed until the next chapter so that the student may concentrate first on understanding regression coefficients and the types of data structures that may be analyzed with multiple regression analysis. 237 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 238 Chapter 9 Multiple Regression 9.1 CASE STUDIES 9.1.1 Effects of Light on Meadowfoam Flowering—A Randomized Experiment Meadowfoam (Limnanthes alba) is a small plant found growing in moist meadows of the U.S. Pacific Northwest. It has been domesticated at Oregon State University for its seed oil, which is unique among vegetable oils for its long carbon strings. Like the oil from sperm whales, it is nongreasy and highly stable. Researchers reported the results from one study in a series designed to find out how to elevate meadowfoam production to a profitable crop. In a controlled growth chamber, they focused on the effects of two light-related factors: light intensity, at the six levels of 150, 300, 450, 600, 750, and 900mol/m2/sec; and the timing of the onset of the light treatment, either at photoperiodic floral induction (PFI)— the time at which the photo period was increased from 8 to 16 hours per day to induce flowering—or 24 days before PFI. The experimental design is depicted in Display 9.1. (Data from M. Seddigh and G. D. Jolliff, “Light Intensity Effects on Meadowfoam Growth and Flowering,” Crop Science 34 (1994): 497–503.) DISPLAY 9.1 Time line for light variation experiment on meadowfoam Day 21: Light intensity regimens begin for treatment groups 1– 6 Day 10: 120 seedlings transplanted into individual pots and randomly assigned to 12 treatment groups (10 plants per group). All plants exposed to light at 195 mol/m2/sec for 8 hours each day. Day 45: Light intensity regimens for groups 7–12; photo period increased to 16 hours for all groups 10 @ 150 10 @ 300 10 @ 450 10 @ 600 10 @ 750 10 @ 900 10 @ 150 10 @ 300 10 @ 450 10 @ 600 10 @ 750 10 @ 900 0 10 20 30 40 50 Days into Experiment Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 9.2 The design consists of 12 treatment groups—the six light intensities at each of the two timing levels. Ten seedlings were randomly assigned to each treatment group. The number of flowers per plant is the primary measure of production, and it was measured by averaging the numbers of flowers produced by the 10 seedlings in each group. The entire experiment was repeated. No difference was found between the first and second runs of the experiment so, as a suitable starting point for the analysis in this chapter, Display 9.2 presents the two results as replicates. The two observations in each cell of the table are thought of as independent replicates under the specified conditions. What are the effects of differing light intensity levels? What is the effect of the timing? Does the effect of intensity depend on the timing? Average number of flowers per meadowfoam plant, in 12 treatment groups 9.1.2 Statistical Conclusion Display 9.3 shows the fit of a multiple linear regression model that specifies paral- lel regression lines for the mean number of flowers as functions of light intensity. Increasing light intensity decreased the mean number of flowers per plant by an estimated 4.0 flowers per plant per 100mol/m2/sec (95% confidence interval from 3.0 to 5.1). Beginning the light treatments 24 days prior to PFI increased the mean numbers of flowers by an estimated 12.2 flowers per plant (95% confidence interval from 6.7 to 17.6). The data provide no evidence that the effect of light intensity depends on the timing of its initiation (two-sided p-value D 0:91, from a t-test for interaction, 20 degrees of freedom). Scope of Inference The researchers can infer that the effects above were caused by the light intensity and timing manipulations, because this was a randomized experiment. Why Do Some Mammals Have Large Brains for Their Size?—An Observational Study Evolutionary biologists are keenly interested in the characteristics that enable a species to withstand the selective mechanisms of evolution. An interesting variable 9.1 Case Studies 239 Timing Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 240 Chapter 9 Multiple Regression DISPLAY 9.3 The average number of flowers per plant versus the applied light intensity for each of the 12 experimental units in the meadowfoam study, with different plotting symbols for units with early (24 days prior to PFI) and late (at PFI) commencement of lighting regimen 80 70 60 50 40 30 Early ( ) Late ( ) 150 300 Light Intensity( 450 600 750 900 mol/m2/sec) in this respect is brain size. One might expect that bigger brains are better, but certain penalties seem to be associated with large brains, such as the need for longer pregnancies and fewer offspring. Although the individual members of the large- brained species may have more chance of surviving, the benefits for the species must be good enough to compensate for these penalties. To shed some light on this issue, it is helpful to determine exactly which characteristics are associated with large brains, after getting the effect of body size out of the way. The data in Display 9.4 are the average values of brain weight, body weight, gestation lengths (length of pregnancy), and litter size for 96 species of mammals. (Data from G. A. Sacher and E. F. Staffeldt, “Relation of Gestation Time to Brain Weight for Placental Mammals; Implications for the Theory of Vertebrate Growth,” American Naturalist, 108 (1974): 593–613. The common names for the species cor- respond to the Latin names given in the original paper, and those followed by a Roman numeral indicate subspecies.) Since brain size is obviously related to body size, the question of interest is this: Which, if any, variables are associated with brain size, after accounting for body size? Statistical Conclusion The data provide convincing evidence that brain weight was associated with either gestation length or litter size, even after accounting for the effect of body weight (p-value < 0.0001; extra sum of squares F -test). There was strong evidence that litter size was associated with brain weight after accounting for body weight and gestation (two-sided p-value D 0.0089) and that gestation period was associated Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Flowers per Plant DISPLAY 9.4 Average values of brain weight, body weight, gestation length, and litter size in 96 species of mammal 9.1 Case Studies 241 Litter size Gestation period (days) Body weight (kilograms) Brain weight (grams) Species Litter size Gestation period (days) Body weight (kilograms) Brain weight (grams) Species Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 242 Chapter 9 Multiple Regression with brain weight after accounting for body weight and litter size (two-sided p-value D 0:0038). Scope of Inference As suggestive as the findings may be, inferences that go beyond these data are unwise. The data were summarized from available studies and cannot be represen- tative of any wider population. As usual, no causal interpretation can be made from these observational data. 9.2 REGRESSION COEFFICIENTS 9.2.1 The Multiple Linear Regression Model Regression The regression of Y on X1 and X2 is a rule, such as an equation, that describes the mean of the distribution of a response variable .Y/ for particular values of explanatory variables (X1 and X2, say). For example, the regression of the response variable Y D flowers on X1 D light intensity and X2 D time of light manipulation specifies how the mean number of flowers per plant depends on the levels of light intensity and timing. (The italicized words specify variable names.) The symbol for the regression is f flowers j light, timeg, which is read as the “mean number of flowers, as a function of light intensity and timing.” In terms of a generic response variable, Y , and two explanatory variables, X1 and X2: With specific values for X1 and X2 inserted, the same expression may be read somewhat differently. For example, fflowers j light D 300, time D 24g is read as “the mean number of flowers when light intensity is 300mol/m2/sec and time is 24 days prior to PFI.” Multiple Regression Models In multiple regression there is a single response variable and multiple explanatory variables. The regression rule giving the mean response for each combination of explanatory variables will not be very helpful if it is a huge list or a complicated function. Furthermore, it is usually unwise to think that there is some exact, dis- coverable regression equation. Many possible models are available, however, for describing the regression. Although they should not be thought of as the truth, one or two models may adequately approximate the mean of the response as a function of the explanatory variables, and conveniently allow for the questions of interest to be investigated. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. The regression of Y on X1 and X2 is fY jX1; X2g. 9.2 Regression Coefficients 243 Multiple Linear Regression Model One family of models is particularly easy to deal with and works for the majority of regression problems—the family of linear regression models. The term linear means linear in regression coefficients, as in the following examples: The extension to more than two explanatory variables is straightforward. Notice that the first term in the examples is ˇ0 (which multiplies the trivial function, 1). This constant term appears in multiple linear regression models unless a specific reason for excluding it exists. Multiple Regression Model with Constant Variance The ideal regression model includes an assumption of constant variation. For the meadowfoam example, the assumption states that Varf flowers j light; timeg D  2 : The notation Varf flowers j light, timeg is read as “the variance of the numbers of flowers, as a function of light and time.” The right-hand side of the equation asserts that this variance is constant—the same for all values of light and time. As in previ- ous chapters, the constant variance assumption is important for two reasons: (1) the regression interpretation is more straightforward when the explanatory variables are only associated with the mean of the response distribution and not other charac- teristics of it (as described in Section 4.3.2 for the two-sample problem); and (2) the assumption justifies the standard inferential tools, which are presented in the next chapter. 9.2.2 Interpretation of Regression Coefficients Regression analysis involves finding a good fitting model for the response mean, wording the questions of interest in terms of model parameters, estimating the parameters from the available data, and employing appropriate inferential tools for answering the questions of interest. Before turning to issues of estimation and inference, it is important to discuss the meaning of regression coefficients and what questions can be answered through them. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Examples of Multiple Linear Regression Models fYjX1;X2gDˇ0 Cˇ1X1 Cˇ2X2; fY jX1g D ˇ0 C ˇ1X1 C ˇ2X12; fY jX1; X2g D ˇ0 C ˇ1X1 C ˇ2X2 C ˇ3X1X2; fY jX1; X2g D ˇ0 C ˇ1 log.X1/ C ˇ2 log.X2/: 244 Chapter 9 Multiple Regression DISPLAY 9.5 Model for the regression surface of flowers per plant under 12 treatment levels as a regression plane Regression plane: Y = flowers per Plant {flowers|light, time} = 0 + 1 light + time Slope at any Slope at any fixed light intensity is 2. fixed timing is 1. 80 70 60 50 40 24 X2 = time (days) 0 150 300 450 600 X1 = light Intensity ( mol/m2/sec) 750 900 Regression Surfaces The multiple linear regression model with two explanatory variables, such as f flowers j light; timeg D ˇ0 C ˇ1 light C ˇ2 time; describes the regression surface as a plane. The parameter ˇ0 is the height of the plane when both light and time equal zero; the parameter ˇ1 is the slope of the plane as a function of light for any fixed value of time, and the parameter ˇ2 is the slope of the plane as a function of time for any fixed value of light. This model is represented in Display 9.5. When more than two explanatory variables are present, it is difficult and not generally useful to consider the geometry of regression surfaces. Instead, the regres- sion coefficients are interpreted in terms of the effects that the selected explanatory variables have on the mean of the response when other explanatory variables are also included in the model. Effects of Explanatory Variables The effect of an explanatory variable is the change in the mean response that is asso- ciated with a one-unit increase in that variable while holding all other explanatory Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 9.2 Regression Coefficients 245 variables fixed. In a regression for the meadowfoam study, lighteffect DfflowersjlightC1;timeg􏰀fflowersjlight;timeg; timeeffect Dfflowersjlight;timeC1g􏰀fflowersjlight;timeg: In the planar model, effects are the same at all levels of the explanatory vari- ables. The change in mean flowers associated with increasing light from 150 to 151 mol/m2/sec with time at 24 days, for example, is the same as the change asso- ciated with increasing light from 600 to 601mol/m2/sec with time at 0 days. The precise value of the effect is found by performing the subtraction with the specified form of the model: lighteffect DfflowersjlightC1;timeg􏰀fflowersjlight;timeg D Œˇ0 C ˇ1.light C 1/ C ˇ2time 􏰀 Œˇ0 C ˇ1light C ˇ2time D ˇ1: In this model, the coefficient of one explanatory variable measures the effect of that variable at fixed values of the other. When regression analysis is performed on the results of a randomized experi- ment the interpretation of an “effect” of an explanatory variable is straightforward, and causation is implied. For example, “A one-unit increase in light intensity causes the mean number of flowers to increase by ˇ1.” For observational studies, on the other hand, interpretation is more com- plicated. First, as usual, we cannot make causal conclusions from statistical association. Second, the X’s cannot be held fixed independently of one another as they can in a controlled experiment. We must therefore use wording like the following: “For any subpopulation of mammal species with the same body weight and litter size, a one-day increase in the species’ gestation length is associated with a ˇ2 gram increase in mean brain weight.” This wording requires the reader to imagine a subpopulation of mammals with fixed values of body weight and litter size, but varying gestation lengths. Whether this interpretation is useful depends on whether such subpopulations exist. Interpretation Depends on What Other X’s Are Included For the mammal brain weight data, furthermore, the interpretation of ˇ1 in the model fbrain j gestationg D ˇ0 C ˇ1gestation differs from the interpretation of ˇ1 in the model fbrain j gestation; bodyg D ˇ0 C ˇ1gestation C ˇ2body: In the first model, ˇ1 measures the rate of change in mean brain weight with changes in gestation length in the population of all mammal species : : : where body size is variable. In the second model, ˇ1 measures the rate of change in mean brain weight with changes in gestation length within subpopulations of fixed body size. If in the second model there is no effect of gestation length on mean brain weight within Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 246 Chapter 9 Multiple Regression subpopulations of fixed body size .ˇ1 D 0/, and if, as expected, both brain weight and gestation length vary consistently with body size, then ˇ1 in the first model will not be zero. It will measure the association between brain weight and body size indirectly through their joint associations with gestation length. 9.3 SPECIALLY CONSTRUCTED EXPLANATORY VARIABLES One can dramatically expand the scope of multiple linear regression by using spe- cially constructed explanatory variables. With them, regression models can exhibit curvature, interactive effects of explanatory variables, and effects of categorical variables. 9.3.1 A Squared Term for Curvature Display 9.6 is a scatterplot of the corn yield versus rainfall in six U.S. corn-producing states (Iowa, Nebraska, Illinois, Indiana, Missouri, and Ohio), recorded for each year from 1890 to 1927 (see also Exercise 15). A straight-line regression model is not adequate. Although increasing rainfall is associated with higher mean yields for rainfalls up to 12 inches, increasing rainfall at higher levels is associated with no change or perhaps a decrease in mean yield. In short, the rainfall effect depends on the rainfall level. DISPLAY 9.6 Yearly corn yield versus rainfall (1890–1927) in six U.S. states Estimated {corn|rain} = –5.015+ 6.004(rain) – 0.229(rain)2 40 35 30 25 20 8 10 12 14 16 Rainfall (inches) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Corn yield (bu/acre) 9.3 Specially Constructed Explanatory Variables 247 One model for incorporating curvature includes squared rainfall as an additional explanatory variable: fcorn j raing D ˇ0 C ˇ1rain C ˇ2rain2: It is not necessary that this model corresponds to any natural law (but it could). It is, however, a convenient way to incorporate curvature in the regression of corn on rain. Remember that linear regression means linear in ˇ’s, not linear in X, so quadratic regression is a special case of multiple linear regression. The model incorporates curvature by having the effect of rainfall be different at different levels of rainfall: fcorn j rain C 1g 􏰀 fcorn j raing D Œˇ0 C ˇ1.rain C 1/ C ˇ2.rain C 1/2 􏰀 Œˇ0 C ˇ1rain C ˇ2rain2 Dˇ1 Cˇ2Œ.2rain/C1: From the fitted model shown in Display 9.6, the effect of a unit increase in rainfall from 8 to 9 inches is estimated to be an increase in mean yield of about 2.1 bushels of corn per acre. But the effect of a unit increase in rainfall from 14 to 15 inches is estimated to be a decrease in mean yield of about 0.6 bu/acre. Attempting to interpret the individual coefficients in this example is difficult and unnecessary. The statistical significance of the squared rainfall coefficient is that it highlights the inadequacy of the straight line regression model and suggests that increasing yield is associated with increasing rainfall only up to a point. In many applications squared terms are useful for incorporating slight curvature and the purpose of the analysis does not require that the coefficient of the squared term be interpreted. In specialized situations, higher-order polynomial terms may also be included as explanatory variables. 9.3.2 An Indicator Variable to Distinguish Between Two Groups Display 9.3 shows a scatterplot of the flower numbers versus light intensity, with time D 0 days coded differently from time D 24 days. The lines on this scatterplot do not represent simple linear regression equations for time D 0 and time D 24 sep- arately. They are the result of a multiple linear regression model that incorporates an indicator variable to represent the two levels of the timing variable. The model requires that the lines have equal slopes. An indicator variable (or dummy variable) takes on one of two values: “1” (one) indicates that an attribute is present, and “0” (zero) indicates that the attribute is absent. The variable early, for example, is set equal to 1 for units where the timing was 24 days prior to PFI and is set equal to 0 for units where light intensity was not varied prior to PFI. The indicator variable early (along with variables to be introduced shortly) appears in Display 9.7. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 248 Chapter 9 Multiple Regression DISPLAY 9.7 The meadowfoam data (first three columns) and three sets of constructed explanatory variables that are discussed in this chapter Original Timing variables indicators Light level indicators Interaction flowers light time day24 day0 L150 L300 L450 L600 L750 L900 light×day24 Consider the regression model f flowers j light; earlyg D ˇ0 C ˇ1 light C ˇ2 early: If time D 0, then early D 0, and the regression line is f flowers j light; early D 0g D ˇ0 C ˇ1 light: If time D 24, then early D 1, and the regression line is fflowers j light; early D 1g D ˇ0 C ˇ1light C ˇ2: This multiple regression model states that the mean number of flowers is a straight line function of light intensity for both levels of timing. The slope of both lines is ˇ1; the intercept for units with timing at PFI (late) is ˇ0; and the intercept for units with timing 24 days prior to PFI (early) is ˇ0 C ˇ2: Because the slopes Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 9.3 Specially Constructed Explanatory Variables 249 are the same, the model is called the parallel lines regression model. Furthermore, the coefficient of the indicator variable, ˇ2, is the amount by which the mean number of flowers with prior timing at 24 days exceeds that with no prior timing, after accounting for the effect of light intensity differences. In Display 9.3, the lines showing (estimates for) the mean numbers of flowers versus intensity are separated by a constant vertical difference of ˇ2 units. The indicator variable can be defined for either group without affecting the model. If, instead of the indicator variable early, the regression had been based on the indicator variable late, taking 1 for time D 0 and 0 for time D 24, then the resulting fit would be exactly the same; it would produce exactly the same lines on Display 9.3. The only difference would be that the intercept for units with timing prior to PFI is ˇ0 and the intercept for units with timing at PFI is ˇ0 C ˇ2. This ˇ2 is the negative of the ˇ2 in the previous version of the model. An indicator variable may be included in a regression model just as any other explanatory variable. The coefficient of the indicator variable is the difference between the mean response for the indicated category .D 1/ and the mean response for the other category .D 0/, at fixed values of the other explanatory variables. 9.3.3 Sets of Indicator Variables for Categorical Explanatory Variables with More Than Two Categories A categorical explanatory variable with more than two categories can also be incor- porated into a regression model. When a categorical variable is used in regression it is called a factor and the individual categories are called the levels of the factor. If there are k levels, then k􏰀1 indicator variables are needed as explanatory variables. Light intensity in the meadowfoam study can be viewed as a categorical vari- able having six levels. For use in regression, indicator variables are created for each level. Let L150 be equal to 1 for all experimental units that received light intensity of 150mol/m2/sec and equal to 0 for all other units. Let L300 similarly indicate the units that received light intensity of 300mol/m2/sec; and so on, to L900, indicating the units that received light intensity of 900mol/m2/sec. This creates an indicator variable for every level of intensity (Display 9.7). To treat light inten- sity as a factor, all but one of these are included as explanatory variables in the regression model. The level whose indicator variable is not used in the set is called the reference level for that factor. Intensity has six levels, so five indicator variables will represent all levels. Select- ing the first level, 150mol/m2/sec intensity, as the reference level, the multiple linear regression model is fflowers j light; day24g D ˇ0 C ˇ1L300 C ˇ2L450 C ˇ3L600 C ˇ4L750 C ˇ5L900 C ˇ6day24: The coefficients of the indicator variables in this model allow the mean number of flowers to vary arbitrarily with light intensity. The questions of interest in the meadowfoam study, however, are more eas- ily addressed with the simpler model that uses light as a numerical explanatory Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 250 Chapter 9 Multiple Regression 9.3.4 variable, ˇ0 C ˇ1light C ˇ2day24. So, an important issue that will arise in later chapters is how best to represent a variable like light intensity—as a factor with several levels or as a numerical variable? A Product Term for Interaction Two explanatory variables are said to interact if the effect that one of them has on the mean response depends on the value of the other. In multiple regression, an explanatory variable for interaction can be constructed as the product of the two explanatory variables that are thought to interact. An Interaction Model for the Meadowfoam Data A secondary question of interest in the meadowfoam study was one of interaction: Does the effect of light intensity on mean number of flowers depend on the timing of the light regime? The product variable light  early (see Display 9.7) models an interaction between light intensity and timing. Consider the model fflowers j light; earlyg D ˇ0 C ˇ1light C ˇ2early C ˇ3.light  early/: This is a way of expressing the regression of flowers on light, for different levels of timing. When early D 0, the regression equation is a straight-line function of intensity with intercept ˇ0 and slope ˇ1. When early D 1, the mean number of flowers is also a straight line function of intensity, but with intercept ˇ0 C ˇ2 and slope ˇ1 C ˇ3: Rearranging the model as fflowers j light; earlyg D .ˇ0 C ˇ2early/ C .ˇ1 C ˇ3early/light shows how both the intercept and slope in the regression of flowers on light depend on the timing. The light intensity effect in the interaction model is .ˇ1 C ˇ3early/; while the timing effect is .ˇ2 C ˇ3light/: The effect of the light intensity depends on the timing; the effect of the timing depends on the light intensity. This repre- sentation of the regression leads directly to a graph that shows the mean of flowers as a function of light intensity, with different lines corresponding to different levels of timing, as shown in the top panel of Display 9.8. As with squared terms in models for curvature, it is often difficult to interpret individual coefficients in an interaction model. The coefficient, ˇ1; of light has changed from being a global slope to being the slope when time D 0. The coefficient, ˇ3, of the product term is the difference between the slope of the regression line on light when time D 24 and the slope when time D 0. If it is only necessary to test whether interaction is present, no lengthy interpretation is needed. The best method of communicating findings about the presence of significant interaction may be to present a table or graph of estimated means at various combinations of the interacting variables. When to Include Interaction Terms Interaction terms are not routinely included in regression models. Inclusion is indi- cated in three situations: when a question of interest pertains to interaction (as in Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 9.8 Regression models for separate lines, parallel lines, and equal lines in two groups— meadowfoam study 9.3 Specially Constructed Explanatory Variables 251 Flowers per Plant Intercept = 0 + 2 Slope= 1+ 3 Before PFI ( ): Flowers per Plant Flowers per Plant Parallel Lines 0+ 1Light Equal Lines AtPFI( ) Intercept = 0 Slope = 1 At PFI ( ): Intercept = 0 Slope = 1 Intercept = 0 Slope = 1 Separate Lines 0 + 1Light+ 2Day24 + ( 3Light × Day24) Before PFI ( ): 0 + 1Light+ 2Day24 Light Intensity ( mol/m2/sec) the meadowfoam study); when good reason exists to suspect interaction; or when interactions are proposed as a more general model for the purpose of examining the goodness of fit of a model without interaction. Except in special circumstances, a model including a product term for inter- action between two explanatory variables should also include terms with each of the explanatory variables individually, even though their coefficients may not be significantly different from zero. Following this rule avoids the logical inconsistency of saying that the effect of X1 depends on the level of X2 but that there is no effect of X1. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Intercept = Slope = 1 0 + 2 252 Chapter 9 Multiple Regression 9.3.5 Completely Separate Regression Lines for Different Levels of a Factor Sometimes the analyst wishes to fit simple linear regressions of Y on X separately for different levels of a categorical factor. This analysis can be accomplished by repeated application of simple linear regression for each level; but it can also be accomplished with multiple regression. The multiple linear regression model has as its explanatory variables: X, the k 􏰀 1 indicators to distinguish the k levels, and all products of the indicators with X. The multiple regression approach has advantages. Questions about similarities among the separate regressions are expressible as hypotheses about specific param- eters in the multiple regression model: Are the slopes all equal? Are the intercepts equal? Furthermore, the multiple regression approach conveniently provides a sin- gle, combined estimate of variance, which is equivalent to the pooled estimate from the separate simple regressions. Display 9.8 depicts three models for the meadowfoam study, each specifying that the mean number of flowers is a straight line function of light intensity. The separate regression lines model in the top panel is the most general of the three. If the coefficient of the interaction term, ˇ3, is zero, then the separate regression lines model reduces to the parallel regression lines model, which indicates no interaction of light and time. Similarly, if ˇ2 is zero in the parallel regression lines model, then it reduces to the equal lines model. A Shorthand Notation for Model Description The notation for regression models is sometimes unnecessarily bulky when there are a large number of indicator variables or interaction terms. An abbreviation for specifying a categorical explanatory variable is to list the categorical variable name in uppercase letters to represent the entire set of indicator variables used to model it. For example, fflowers, LIGHT, earlyg indicates that light intensity is a factor, whose effects are to be modeled by indicator variables. Additional savings are achieved by omitting the parameters when specifying the terms included in the model. For example, f flowers j light; TIMEg D light C TIME describes the parallel lines model with light treated as a numerical explanatory variable and TIME as a factor. Similarly, f flowers j light; TIMEg D light C TIME C .light  TIME/ specifies the separate lines model with the effects of the numerical explanatory variable light, the factor TIME, and the interaction terms formed as the products of light with the indicator variable(s) for the factor TIME. Extensions of this nota- tion conveniently describe models with any number of numerical and categorical variables. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 9.4 A Strategy for Data Analysis 253 DISPLAY 9.9 A strategy for data analysis using statistical models Preliminaries: Define the questions of interest. Review the design of the study (for thinking about model assumptions). Correct errors in the data. 1 2 3 4 Explore the data. Look for initial answers to questions and for potential models. Use graphical tools; consider transformations; fit a tenative model; check outliers. Word the questions of interest in terms of model parameters. Check for nonconstant variance; assess outliers. Test whether extra terms in the rich model can be dropped. Confidence intervals, tests, prediction intervals, calibration intervals (as needed). Answer questions (as much as possible in subject matter language—not statistical language). Make inferential statements compatible with study design. Model not OK Formulate an inferential model. Check the model. (a) If appropriate, fit a richer model (with interactions or curvature, for example). (b) Examine residuals. (c) See if extra terms can be dropped. Model OK Infer the answers to the questions of in- terest using appropriate inferential tools. Presentation: Communicate the results to the intended audience. 9.4 A STRATEGY FOR DATA ANALYSIS Display 9.9 shows a general scheme for using statistical models to analyze data. Data analysis involves more than inserting data into a computer and pressing the right button. Substantial exploratory analysis may be required at the outset, and several dead ends may be encountered in the pursuit of suitable models. The strategy for data analysis centers on the development of an inferential model where answers to the questions of interest can be found by drawing inferences about key parameters. The choice of an inferential model may be guided by the graphical displays. Further checking on model adequacy is accomplished by residual analysis and by informal testing of terms in a richer model that contains additional parameters representing possible curvature, interactions, or more complex features. The adequacy of a model may be clear from the graphical displays and residual analysis alone. When it is not, informal testing is an important part of finding an Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 254 Chapter 9 Multiple Regression adequate model. In particular, if replicates of the response occur at each combina- tion of explanatory variables (as in the meadowfoam study), it is always possible to compare the model that is convenient for analysis to the separate-means model (the one with a separate response mean at each combination of the explanatory variables). Moreover, suspicions of nonlinearities and interactions can be investi- gated by testing the appropriate additional terms that model these inadequacies. If a particular, convenient inferential model is found to be inappropriate, the analyst has two options: renew the search for a better inferential model, or offer a more complicated explanation of the study’s conclusions in terms of the richer model. Ensuing chapters provide examples of this strategy. Readers should refer to Display 9.9 often as the analysis patterns develop. The remainder of this chapter deals with graphical exploratory techniques (for steps 1 and 2 of this strategy). The next chapter details the estimation of parameters and the main inferential tools (for steps 3 and 4). Chapter 11 addresses new issues and techniques for model assessment (for step 3). Chapter 12 discusses the difficulties with a set containing too many explanatory variables and some computer-assisted techniques for reducing the set to a reasonable number (for steps 1 and 2). 9.5 GRAPHICAL METHODS FOR DATA EXPLORATION AND PRESENTATION 9.5.1 A Matrix of Pairwise Scatterplots Individual scatterplots of the response variable versus each of the explanatory vari- ables are usually helpful. Although the observed relationships in these plots will not necessarily indicate the effects of interest in a multiple regression model, the plots are still useful for observing the marginal (one at a time) relationships, drawing attention to interesting points, and suggesting the need for transformations. A matrix of scatterplots (or draftsman plot) is a consolidation of all possible pairwise scatterplots from a set of variables, as shown for the mammal brain weight data in Display 9.10. The bottom row shows the response variable versus each of the explanatory variables and the higher rows show the scatterplots of the explanatory variables versus each other. There is a lot to look at in such a display. Typically, one would investigate the scatterplots of the response versus each of the explanatory variables (the bottom row) first. Different statistical computer packages have different display formats. Instead of the lower left triangular arrangement shown in Display 9.10, some packages display a corresponding upper right triangle (in addition to the lower left one) that contains the same plots but with axes reversed. This does not contain any more information, although it may provide a different visual perspective. The resolution with which the plots can be drawn may also be an issue. It becomes increasingly difficult to read a matrix of scatterplots as the number of variables is increased. For data sets with many potential explanatory variables, it may be necessary to select subsets for display. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 9.10 600 500 400 300 200 100 8 7 6 5 4 3 2 1 4 3 2 1 Matrix of scatterplots for brain weight data 9.5 Graphical Methods for Data Exploration and Presentation 255 Brain Weight (kg) Litter Size Gestation (days) 1,000 2,000 Body Weight (kg) 100200300400500600 1 2 3 4 5 6 7 8 Gestation (days) Litter Size Notes About the Scatterplots for the Brain Weight Data Consider the bottom row of Display 9.10 first. The scatterplot of brain weight versus body weight is not very helpful since most of the data points are clustered on top of each other in the bottom left-hand corner. The upper bounds for the X and Y axes are determined largely by one point (the African elephant). This scatterplot indicates what should have been evident from the start—that the mammals in this list differ in size by orders of magnitude. The display should be redrawn after brain weight and body weight are transformed to their logarithms. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. African elephant 256 Chapter 9 Multiple Regression Matrix of scatterplots for brain weight data, after log transformations DISPLAY 9.11 1,000 100 10 10 5 1 10,000 1,000 100 10 1 0.1 0.01 0.1 1 10 1001,000 10 Body Weight (kg) Domestic pig Brain Weight (g) Litter Size Gestation (days) 100 Gestation (days) 1,000 1 5 10 Gestation values also appear to be quite skewed. A trial plot using the log of this variable shows that it too should be transformed. Display 9.11 shows a revised version of the matrix of scatterplots where all variables have been placed on their natural logarithmic scales. The bottom row of Display 9.11 shows less overlap and a more distinct pattern. Notice the pronounced relationship between log brain weight and each of the explanatory variables. Notice also, from the upper plots in the first column, that gestation and litter size are also related to body weight. Therefore the question of whether there is an association between gestation and brain weight after accounting for the effect of body weight, and the question of whether there is an association between litter size and brain weight after accounting for the effect of body weight, are not resolved by these plots. Nevertheless, they suggest the next course of action, Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Litter Size 9.5 Graphical Methods for Data Exploration and Presentation 257 which is to fit a regression model for log brain weight on log body weight, log gestation, and log litter size. In the scatterplot of log brain weight versus log litter size, there is one data point that stands out—a mammal with litter size eight whose brain size is quite a bit larger than those for other mammals whose litter size is eight. The analyst should determine which mammal this is. It may be influential in the analysis, and it may provide useful information or additional questions for research. Modern statistical computer packages with interactive labeling features make the identification of such points on a graph fairly easy. 9.5.2 Coded Scatterplots Display 9.3 is an example of a coded scatterplot—a scatterplot with different symbols or letters used as plotting marks to distinguish two or more groups. In the example, the groups correspond to different levels of timing. This is a great way of observing the joint effects of one numerical and one categorical explanatory variable. For observing the joint effects of two numerical explanatory variables, it is often very helpful to plot the response versus one of them, and to use a plotting code to represent groups defined by ranges of the other (such as educational level less than 8 years, between 9 and 12 years, or greater than 12 years). 9.5.3 Jittered Scatterplots The scatterplot of log brain weight versus log litter size (Display 9.11) contains many points that overlap because many species of mammals have the same litter size. This makes it difficult to judge relative frequency. When a variable has only a few distinct values it may be possible to improve the visual information of the plot by jittering that variable—adding small computer-generated random numbers to it before plotting. In Display 9.12, log brain weight is plotted against a jittered version of litter size. A jittered variable is only used in the scatterplot; subsequent numerical analyses must be based on the unjittered version. The choice as to the size of the random numbers to add in order to make each point visually distinct requires trial and error. 9.5.4 Trellis Graphs In Section 9.2 it was noted that ˇ2 in the model fY jX1; X2g D ˇ0 C ˇ1X1 C ˇ2X2 refers to the change in the mean of Y associated with changes in X2, for subpopu- lations of fixed X1. A useful graphical procedure for exploring this relationship is a trellis graph. A simple form is shown in Display 9.13, in which the response vari- able, log brain weight, is plotted against an explanatory variable of interest—log of gestation length—separately for species in the lowest 25% of body weights, the next lowest, and so on. While the data in the four panels are not subpopulations with fixed body weights, they are subpopulations with similar values. This display suggests a posi- tive relationship exists between brain weight and gestation length even accounting for different body weights. Furthermore, the slope in this relationship appears to Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 258 Chapter 9 Multiple Regression DISPLAY 9.12 Jittered scatterplot: log brain weight versus litter size (jittered) 10,000 1,000 100 10 9 8 7 6 5 4 3 2 1 0.1 10 –1 12345678 Litter Size (jittered) 9.6 be the same in the different panels of body weight; that is, there is no evidence of an interactive effect of gestation and body weight on brain weight. RELATED ISSUES 9.6.1 Computer Output Regression output from statistical computer packages can be intimidating for the simple reason that it tends to include everything that the user could possibly want and more. One important component, which all packages display, is the list of estimates and their standard errors. Display 9.14 and Display 9.15 show the least squares estimates of the coefficients in specified models for the two examples of this chapter, their standard errors, and two-sided p-values from t-tests for the hypotheses that each ˇ is zero in the specified model. Although the least squares estimates and the inferential tools are discussed further in the next chapter, it is not difficult to see which questions are addressed by the p-values. The p-value of 0.9096 for the interaction term from Display 9.14 indicates that zero is a plausible value for the coefficient of the interaction explana- tory variable; so there is no evidence of an interaction. The p-value of 0.0089 for the coefficient of llitter indicates strong evidence that the litter size is associated with brain weight, even after accounting for body weight and gestation. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Brain Weight (g) Log Brain Weight 9.6 Related Issues 259 DISPLAY 9.13 Trellis graph showing scatterplots of log brain weight versus log gestation length, separately for species in each of four categories of body weight Body Weight: 100 to 10,000 kg Body Weight: 9 to 100 kg Body Weight: 2 to 9 kg Body Weight: 0 to 2 kg 10 100 Gestation Length (days) 103 102 101 100 103 102 101 100 103 102 101 100 103 102 101 100 1,000 9.6.2 Factorial Treatment Arrangement The meadowfoam study investigated two treatment factors applied jointly to each experimental unit: the light intensity (at one of six levels) and the timing (at one of two levels). All 12 combinations of these two treatment factors were applied to some experimental units. The term factorial treatment arrangement describes the formation of experimental treatments from all combinations of the levels of two or more distinct, individual treatment factors. This study was a 6  2 factorial arrangement, meaning all six levels of one factor appear in combination with both levels of the other. Three benefits of testing multiple factors all at once rather than through one- at-a-time experiments are the following: Interactive effects can be explored; there is Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Brain Weight (grams) 260 Chapter 9 Multiple Regression DISPLAY 9.14 Estimates of regression coefficients in the multiple regression of flowers on light, early, and light  early—the meadowfoam study Variable Coefficient Standard error t-statistic p-value <0.0001 <0.0001 0.0753 0.9096 Estimates of regression coefficients in the multiple regression of log brain weight on log body weight, log gestation, and log litter size—brain weight data Variable Coefficient Standard error t-statistic p-value 0.1996 <0.0001 0.0038 0.0089 more efficient use of the available experimental units with the multifactor arrange- ment (resulting in smaller standard errors for parameters of interest); and the results for the multifactor experiment are more general, since each treatment is investigated at several levels of the other treatment. DISPLAY 9.15 9.7 SUMMARY Multiple regression analysis refers to a large set of tools associated with devel- oping and using regression models for answering questions of interest. Multiple regression models describe the mean of a single response variable as a function of several explanatory variables. Transformations, indicator variables for grouped data (factors), squared explanatory variables for curvature, and product terms for interaction greatly enhance the usefulness of this model. Substantial exploratory analysis is recommended for gaining initial insight into what the data have to say in answer to the questions of interest and for suggest- ing possible regression models for answering them more formally. Some standard graphical procedures are presented here. The data analyst should be prepared to be creative in using the available computer tools to best display the data, while keeping in mind the questions of interest and the statistical tools that might be useful for answering them. Brain Weight Study Is brain weight associated with gestation period and/or litter size after accounting for the effect of body weight? This is exactly the type of question for which multiple Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 9.8 Exercises 261 regression is useful. The regression coefficient of gestation in the regression of brain weight on body weight and gestation describes the effect of gestation for species of roughly the same body weight. With multiple linear regression, the coefficients can be estimated from all the animals without a need for grouping into subsets of similar body weight. Initial scatterplots (or initial inspection of the data) indicate that the regression model should be formed after transforming all the variables to their logarithms. Meadowfoam Study A starting point for the analysis is the coded scatterplot of number of flowers per plant versus light intensity, with different codes to represent the two levels of the timing factor (Display 9.3). The plot suggests that the mean number of flowers per plant decreases with increasing light intensity, that the rate of decrease does not depend on timing, and that (for any light intensity value) a larger mean number of flowers is associated with the “before PFI” level of the timing factor. Using an indicator variable for one of the timing levels permits fitting the parallel regression lines model. Further inclusion of the interaction of timing and intensity produces a model that fits separate regression lines for each level of timing. This model permits a check on whether the regression lines are indeed parallel. 9.8 EXERCISES Conceptual Exercises 1. Meadowfoam. (a) Write down a multiple regression model with parallel regression lines of flowers on light for the two separate levels of time (using an indicator variable). (b) Add a term to the model in (a) so that the regression lines are not parallel. 2. Meadowfoam. A model (without interaction) for the mean flowers is estimated to be 71:3058 􏰀 0:0405light C 12.1583early. For a fixed level of timing, what is the estimated difference between the mean flowers at 600 and 300 mol/m2/sec of light intensity? 3. Meadowfoam. (a) Why were the numbers of flowers from 10 plants averaged to make a response, rather than representing them as 10 different responses? (b) What assumption is assisted by averaging the numbers from the 10 plants? 4. Mammal Brain Weights. The three-toed sloth has a gestation period of 165 days. The Indian fruit bat has a gestation period of 145 days. From Display 9.14 the estimated model for the mean of log brain weight is 0.8548 C 0.5751lbody C 0.4179lgest 􏰀 0.3101llitter. Since lgest for the sloth is 0.1292 more than lgest for the fruit bat, does this imply that an estimate of the mean log brain weight for the sloth is (0.4179)(0.1292) more than the mean log brain weight for the bat (i.e., the median is 5.5% higher)? Why? Why not? 5. Insulating Fluid (Section 8.1.2). Would it be possible to test for lack of fit to the straight line model for the regression of log breakdown time on voltage by including a voltage-squared term in the model, and testing whether the coefficient of the squared term is zero? 6. Island Area and Species. For the island area and number of species data in Section 8.1.1, would it be possible to test for lack of fit to the straight line model for the regression of log number Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 262 Chapter 9 Multiple Regression DISPLAY 9.16 Breast milk and intelligence data Explanatory variable of species on log island area by including the square of log area in the model and testing whether its coefficient is zero? 7. Which of the following regression models are linear? (a) fYjXgDˇ0Cˇ1XCˇ2X2Cˇ3X3 (b) fYjXgDˇ0Cˇ110X (c) fY jXg D .ˇ0 C ˇ1X/=.ˇ0 C ˇ2X/ (d) fY jXg D ˇ0exp.ˇ1X/: 8. Describe what  measures in the meadowfoam problem and in the brain weight problem. 9. Pollen Removal. Reconsider the data on proportion of pollen removed and duration of visit to the flower for bumblebee queens and honeybee workers, in Exercise 3.28. (a) Write down a model that describes the mean proportion of pollen removed as a straight-line function of duration of visit, with separate intercepts and separate slopes for bumblebee queens and honeybee workers. (b) How would you test whether the effect of duration of visit on proportion removed is the same for queens as for workers? 10. Breast Milk and IQ. In a study, intelligence quotient (IQ) test scores were obtained for 300 8-year-old children who had been part of a study of premature babies in the early 1980s. Because they were premature, all the babies were fed milk by a tube. Some of them received breast milk entirely, some received a prepared formula entirely, and some received some combination of breast milk and formula. The proportion of breast milk in the diet depended on whether the mother elected to provide breast milk and to what extent she was successful in expressing any, or enough, for the baby’s diet. The researchers reported the results of the regression of the response variable—IQ at age 8—on social class (ordered from 1, the highest, to 5), mother’s education (ordered from 1, the lowest, to 5), an indicator variable taking the value 1 if the child was female and 0 if male, the number of days of ventilation of the baby after birth, and an indicator variable taking the value 1 if there was any breast milk in the baby’s diet and 0 if there was none. The estimates are reported in Display 9.16 along with the p-values for the tests that each coefficient is zero. (Data from Lucas et al., “Breast Milk and Subsequent Intelligence Quotient in Children Born Preterm,” Lancet 339 (1992): 261–64). Estimated coefficient p-value 0.0004 0.01 0.01 0.02 <0.0001 (a) After accounting for the effects of social class, mother’s education, whether the child was a female, and days after birth of ventilation, how much higher is the estimated mean IQ for those children who received breast milk than for those who did not? (b) Is it appropriate to use the variables “Social class” and “Mother’s education” in the regres- sion even though in both instances the numbers 1 to 5 do not correspond to anything real but are merely ordered categories? (c) Does it seem appropriate for the authors to simply report < 0:0001 for the p-value of the breast milk coefficient rather than the actual p-value? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 9.8 Exercises 263 (d) Previous studies on breast milk and intelligence could not separate out the effects of breast milk and the act of breast feeding (the bonding from which might encourage intellectual development of the child). How is the important confounding variable of whether a child is breast fed dealt with in this study? (e) Why is it important to have social class and mother’s education as explanatory variables? (f) In a subsidiary analysis the researchers fit the same regression model as above except with the indicator variable for whether the child received breast milk replaced by the percentage of breast milk in the diet (between 0 and 100%). The coefficient of that variable turned out to be 0.09. (i) From this model, how much larger is the estimated mean IQ for children who received 100% breast milk than for those who received 50% breast milk, after accounting for the other explanatory variables? (ii) What is the importance of the percentage of breast milk variable in dealing with confounding variables? Glasgow Graveyards. Do persons of higher socioeconomic standing tend to live longer? This was addressed by George Davey Smith and colleagues through the relationship of the heights of commemoration obelisks and the life lengths of the corresponding grave site occupants. In burial grounds in Glasgow a certain design of obelisk is quite prevalent, but the heights vary greatly. Since the height would influence the cost of the obelisk, it is reasonable to believe that height is related to socioeconomic status. The researchers recorded obelisk height, year of death, age at death, and gender for 1,349 individuals who died prior to 1921. Although they were interested in the relationship between mean life length and obelisk height, it is important that they included year of construction as an explanatory variable since life lengths tended to increase over the years represented (1801 to 1920). For males, they fit the regression of life length on obelisk height (in meters) and year of obelisk construction and found the coefficient of obelisk height to be 1.93. For females they fit the same regression and found the coefficient of obelisk height to be 2.92. (Data from Smith et al., “Socioeconomic Differentials in Mortality: Evidence from Glasgow Graveyards,” British Medical Journal 305 (1992): 1557–60.) (a) After accounting for year of obelisk construction, each extra meter in obelisk height is associated with Z extra years in mean lifetime. What is the estimated Z for males? What is the estimated Z for females? (b) Since the coefficients differ significantly from zero, would it be wise for an individual to build an extremely tall obelisk, to ensure a long life time? (c) The data were collected from eight different graveyards in Glasgow. Since there is a poten- tial blocking effect due to the different graveyards, it might be appropriate to include a graveyard effect in the model. How can this be done? Computational Exercises 12. Mammal Brain Weights. (a) Draw a matrix of scatterplots for the mammal brain weight data (Display 9.4) with all variables transformed to their logarithms (to reproduce Display 9.11). (b) Fit the multiple linear regression of log brain weight on log body weight, log gestation, and log litter size, to confirm the estimates in Display 9.15. (c) Draw a matrix of scatterplots as in (a) but with litter size on its natural scale (untransformed). Does the relationship between log brain weight and litter size appear to be any better or any worse (more like a straight line) than the relationship between log brain weight and log litter size? 13. Meat Processing. One way to check on the adequacy of a linear regression is to try to include an X-squared term in the model to see if there is significant curvature. Use this technique on the meat processing data of Section 7.1.2. (a) Fit the multiple regression of pH on hour and hour-squared. Is the coefficient of hour-squared significantly different from zero? What is the p-value? (b) Fit the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 11. 264 Chapter 9 Multiple Regression multiple regression of pH on log(hour) and the square of log(hour). Is the coefficient of the squared- term significantly different from zero? What is the p-value? (c) Does this exercise suggest a potential way of checking the appropriateness of taking the logarithm of X or of leaving it untransformed? 14. Pace of Life and Heart Disease. Some believe that individuals with a constant sense of time urgency (often called type-A behavior) are more susceptible to heart disease than are more relaxed individuals. Although most studies of this issue have focused on individuals, some psychologists have investigated geographical areas. They considered the relationship of city-wide heart disease rates and general measures of the pace of life in the city. For each region of the United States (Northeast, Midwest, South, and West) they selected three large metropolitan areas, three medium-size cities, and three smaller cities. In each city they mea- sured three indicators of the pace of life. The variable walk is the walking speed of pedestrians over a distance of 60 feet during business hours on a clear summer day along a main downtown street. Bank is the average time a sample of bank clerks takes to make change for two $20 bills or to give $20 bills for change. The variable talk was obtained by recording responses of postal clerks explain- ing the difference between regular, certified, and insured mail and by dividing the total number of syllables by the time of their response. The researchers also obtained the age-adjusted death rates from ischemic heart disease (a decreased flow of blood to the heart) for each city (heart). The data in Display 9.17 were read from a graph in the published paper. (Data from R. V. Levine, “The Pace of Life,” American Scientist 78 (1990): 450–9.) The variables have been standardized, so there are no units of measurement involved. DISPLAY 9.17 First five rows of the pace-of-life data set with bank clerk speed, pedestrian walking speed, postal clerk talking speed, and age-adjusted death rates due to heart disease, in 36 cities City Atlanta, GA Bakersfield, CA Boston, MA Buffalo, NY Canton, OH Bank Walk Talk Heart 25 27 27 19 29 18 25 11 31 28 24 24 30 23 23 29 28 20 18 19 (a) Draw a matrix of scatterplots of the four variables. Construct it so that the bottom row of plots all have heart on the vertical axis. If you do not have this facility, draw scatterplots of heart versus each of the other variables individually. (b) Obtain the least squares fit to the linear regression of heart on bank, walk, and talk. (c) Plottheresidualsversusthefittedvalues.Isthereevidencethatthevarianceoftheresiduals increases with increasing fitted values or that there are any outliers? (d) Report a summary of the least squares fit. Write down the estimated equation with standard errors below each estimated coefficient. Rainfall and Corn Yield. The data on corn yields and rainfall, discussed in Section 9.3.1, appear in Display 9.18. (Data from M. Ezekiel and K. A. Fox, Methods of Correlation and Regres- sion Analysis, New York: John Wiley & Sons, 1959; originally from E. G. Misner, “Studies of the Relationship of Weather to the Production and Price of Farm Products, I. Corn” [mimeographed publication, Cornell University, March 1928].) (a) Plot corn yield versus rainfall. (b) Fit the multiple regression of corn yield on rain and rain2. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 15. 9.8 Exercises 265 DISPLAY 9.18 Partial listing of a data set with average corn yield in a year (bushels) and total rainfall (inches) in six U.S. states (1890–1927). Year Yield Rainfall 1890 24.5 9.6 1891 33.7 12.9 1892 27.9 9.9 1893 27.5 8.7 1894 21.7 6.8 . .. 1927 32.6 10.4 (c) Plot the residuals versus year. Is there any pattern evident in this plot? What does it mean? (Anything to do, possibly, with advances in technology?) (d) Fit the multiple regression of corn yield on rain, rain2, and year. Write the estimated model and report standard errors, in parentheses, below estimated coefficients. How do the coef- ficients of rain and rain2 differ from those in the estimated model in (b)? How does the estimate of  differ? (larger or smaller?) How do the standard errors of the coefficients differ? (larger or smaller?) Describe the effect of an increase of one inch of rainfall on the mean yield over the range of rainfalls and years. (e) Fit the multiple regression of corn yield on rain, rain2, year, and year  rain. Is the coef- ficient of the interaction term significantly different from zero? Could this term be used to say something about technological improvements regarding irrigation? Pollen Removal. The data in Exercise 3.27 are the proportions of pollen removed and the duration of visits on a flower for 35 bumblebee queens and 12 honeybee workers. It is of interest to understand the relationship between the proportion removed and duration and the relative pollen removal efficiency of queens and workers. (a) Draw a coded scatterplot of proportion of pollen removed versus duration of visit; use different symbols or letters as the plotting codes for queens and workers. Does it appear that the relationship between proportion removed and duration is a straight line? (b) The logit transformation is often useful for proportions between 0 and 1. If p is the proportion then the logit is logŒp=.1 􏰀 p/. This is the log of the ratio of the amount of pollen removed to the amount not removed. Draw a coded scatterplot of the logit versus duration. (c) Draw a coded scatterplot of the logit versus log duration. From the three plots, which transformations appear to be worthy of pursuing with a regression model? (d) Fit the multiple linear regression of the logit of the proportion of pollen removed on (i) log duration, (ii) an indicator variable for whether the bee is a queen or a worker, and (iii) a product term for the interaction of the first two explanatory variables. By examining the p-value of the interaction term, determine whether there is any evidence that the proportion of pollen depends on duration of visit differently for queens than for workers. (e) Refit the multiple regression but without the interaction term. Is there evidence that, after accounting for the amount of time on the flower, queens tend to remove a smaller proportion of pollen than workers? Why is the p-value for the significance of the indicator variable so different in this model than in the one with the interaction term? 17. Crab Claw and Force. Using the crab data from Exercise 7.22, (a) draw a scatterplot of claw closing force versus propodus height (both on a log scale), with different plotting symbols to distinguish the three different crab species, and (b) fit the multiple regression of log force on log height and species (as a factor). Provide the estimated model including standard errors of estimated Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 16. 266 Chapter 9 Multiple Regression DISPLAY 9.19 First five rows of a data set with average wing sizes of male and female flies, on logarithmic scale, with standard errors; and average basal length to wing size ratios of the females, at 11 locations in North America and 10 locations in Europe Basal length to Wing size (103×log mm) wing size (females) Continent Latitude (N) Females SE Males SE Ratio (av) SE regression coefficients. (See Exercises 10.9 and 10.10 for analyses that explore a more sophisticated model for these data.) 18. Speed of Evolution. How fast can evolution occur in nature? Are evolutionary trajectories predictable or idiosyncratic? To answer these questions R. B. Huey et al. (“Rapid Evolution of a Geographic Cline in Size in an Introduced Fly,” Science 287 (2000): 308–9) studied the develop- ment of a fly—Drosophila subobscura—that had accidentally been introduced from the Old World into North America (NA) around 1980. In Europe (EU), characteristics of the flies’ wings follow a “cline”—a steady change with latitude. One decade after introduction, the NA population had spread throughout the continent, but no such cline could be found. After two decades, Huey and his team collected flies from 11 locations in western NA and native flies from 10 locations in EU at latitudes ranging from 35–55 degrees N. They maintained all samples in uniform conditions through several generations to isolate genetic differences from environmental differences. Then they measured about 20 adults from each group. Display 9.19 shows average wing size in millimeters on a logarithmic scale, and average ratios of basal lengths to wing size. (a) Construct a scatterplot of average wing size against latitude, in which the four groups defined by continent and sex are coded differently. Do these suggest that the wing sizes of the NA flies have evolved toward the same cline as in EU? (b) Construct a multiple linear regression model with wing size as the response, with latitude as a linear explanatory variable, and with indicator variables to distinguish the sexes and continents. As there are four groups, you will want to have three indicator variables: the continent indicator, the sex indicator, and the product of the two. Construct the model in such a way that one parameter measures the difference between the slopes of the wing size versus latitude regressions of NA and EU for males, one measures the difference between the NA–EU slope difference for females and that for males, one measures the difference between the intercepts of the regressions of NA and EU for males, and one measures the difference between the NA–EU intercepts’ difference for females and that for males. Depression and Education. Has homework got you depressed? It could be worse. Depression, like other illnesses, is more prevalent among adults with less education than you have. R. A. Miech and M. J. Shanahan investigated the association of depression with age and edu- cation, based on a 1990 nationwide (U.S.) telephone survey of 2,031 adults aged 18 to 90. Of particular interest was their finding that the association of depression with education strengthens with increasing age—a phenomenon they called the “divergence hypothesis.” Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 19. 9.8 Exercises 267 DISPLAY 9.20 Kentucky Derby winners, 1896–2011. Starters is the number of horses that started the race, NetToWinner is the net winnings in dollars; Time is the winning time in seconds; Speed is the winning average speed, in miles per hour; Track is a categorical variable describing track con- ditions, with seven categories: Fast, Good, Dusty, Slow, Heavy, Muddy, and Sloppy; Conditions is a two-category version of Track, with categories Fast (which combines categories Fast and Good from Track) and Slow (which combines all other categories of Track); partial listing. Year Winner Starters NetToWinner Time Speed Track Conditions Dusty Fast Heavy Slow Good Fast Fast Fast Fast Fast Fast Fast 1896 Ben Brush 8 1897 Typhoon II 6 1898 Plaudit 4 1899 Manuel 5 1900 Lieut. Gibson 7 . .. 2011 Animal Kingdom 20 4,850 127.75 35.23 4,850 132.50 33.96 4,850 129.00 34.88 4,850 132.00 34.09 4,850 126.25 35.64 2,000,000 122.04 36.87 They constructed a depression score from responses to several related questions. Education was categorized as (i) college degree, (ii) high school degree plus some college, or (iii) high school degree only. (See “Socioeconomic Status and Depression over the Life Course,” Journal of Health and Social Behaviour 41(2) (June, 2000): 162–74.) (a) Construct a multiple linear regression model in which the mean depression score changes linearly with age in all three education categories, with possibly unequal slopes and inter- cepts. Identify a single parameter that measures the diverging gap between categories (iii) and (i) with age. (b) Modify the model to specify that the slopes of the regression lines with age are equal in cat- egories (i) and (ii) but possibly different in category (iii). Again identify a single parameter measuring divergence. This and other studies found evidence that the mean depression is high in the late teens, declines toward middle age, and then increases towards old age. Construct a multiple linear regression model in which the association has these characteristics, with possibly different structures in the three edu- cation categories. Can this be done in such a way that a single parameter characterizes the divergence hypothesis? Data Problems 20. Kentucky Derby. Display 9.20 is a partial listing of data in file ex0920 on Kentucky Derby horse race winners from 1896 to 2011. In all those years the race was 1.25 miles in length so that winning time and speed are exactly inversely related. Nevertheless, a simple regression model for changes over time—such as a straight line model that includes Year or a quadratic curve that includes Year and Year2—might work better for one of these response variables than the other. (a) Find a model for describing the mean of either winning time or winning speed as a function of year, whichever works better. (b) Quantify the amount (in seconds or miles per hour) by which the mean winning time or speed on fast tracks exceeds the mean on slow tracks (using the two-category variable Conditions), after accounting for the effect of year. (c) After accounting for the effects of year and track conditions, is there any evidence that the mean winning time or speed depends on number of horses in the race (Starters)? Is there any evidence of an interactive effect of Starters and Conditions; Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 268 Chapter 9 Multiple Regression DISPLAY 9.21 Dry weight (mg), ingestion rates (mg per day), and percentage of organic matter in the food, for 22 species of aquatic deposit feeders Species Weight Ingestion Organic 0.57 18.0 0.86 17.0 0.43 29.7 0.43 50.0 2.70 14.4 0.67 13.0 20.20 6.8 1.49 93.0 4.40 88.0 240.00 2.2 230.00 1.0 300.00 4.2 19.90 51.0 50.00 23.6 1,667.00 0.7 3,400.00 1.2 9,400.00 0.4 4,700.00 0.6 4,680.00 2.1 Hydrobia neglecta Hydrobia ventrosa Tubifex tubifex Hyalella azteca Potamopyrgus jenkinsi Hydrobia ulvae Nereis succinea Pteronarcys scotti Orchestia grillus Arenicola grubii Thoracophelia mucronata Ilypolax pusilla Uca pubnax Scopimera globosa Pectinaria gouldii Abarenicola pacifica Abarenicola claparedi Arenicola marina Macrophthalmus japonicus 0.20 0.20 0.27 0.32 0.46 0.90 5.80 8.40 12.40 20.40 40.00 53.00 63.30 65.00 80.00 380.00 380.00 930.00 2,050.00 that is, does the effect of number of horses on the response depend on whether the track was fast or slow? Describe the effect of number of horses on mean winning time or speed. (Data from Kentucky Derby: Kentucky Derby Racing Results, http://www.kentuckyderby.info/kentuckyderby-results.php (July 21, 2011).) 21. Ingestion Rates of Deposit Feeders. Aquatic deposit feeders are organisms that feed on organic material in the bottoms of lakes and oceans. Display 9.21 shows the typical dry weight in mg, the typical ingestion rate (weight of food intake per day for one animal) in mg/day, and the percentage of the food that is composed of organic matter for 19 species of deposit feeders. The organic matter is considered the “quality” part of their food. Zoologist Leon Cammen wondered if, after accounting for the size of the species as measured by the average dry weight, the amount of food intake is associated with the percentage of organic matter in the sediment. If so, that would suggest that either the animals have the ability to adjust their feeding rates according to some perception of food “quality” or that species’ ingestion rates have evolved in their particular environments. Ana- lyze the data to see whether the distribution of species’ ingestion rates depends on the percentage of organic matter in the food, after accounting for the effect of species weight. Also describe the association. Notice that the values of all three variables differ by orders of magnitude among these species, so that log transformations are probably useful. (Data from L. M. Cammen, “Ingestion Rate: An Empirical Model for Aquatic Deposit Feeders and Detritivores,” Oecologia, 44 (1980): 303–10.) 22. Mammal Lifespans. The Exercise 8.26 data set contains the mass (in kilograms), average basal metabolic rate (in kilojoules per day), and lifespan (in years) for 95 mammal species. Is metabolic rate a useful predictor of lifespan after accounting for the effect of body mass? What Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 9.8 Exercises 269 DISPLAY 9.22 First five rows of a data set with AFQT intelligence test score percentile, years of education achieved by time of interview in 2006, and 2005 annual income in dollars for 1,306 males and 1,278 females in the NLSY survey Subject Gender 2 female 6 male 7 male 8 female 9 male AFQT Educ2006 6.841 12 99.393 16 47.412 12 44.022 14 59.683 14 Income2005 5,500 65,000 19,000 36,000 65,000 percentage of variation in lifespans (on the log scale) is explained by the regression on log mass alone? What additional percentage of variation is explained by metabolism? Describe the dependence of the distribution of lifespan on metabolic rate for species of similar body mass. 23. Comparing Male and Female Incomes, After Accounting for Education and IQ. Display 9.22 shows the first five rows of a subset of the National Longitudinal Study of Youth data (see Exercise 2.22) with annual incomes in 2005, intelligence test scores (AFQT) measured in 1981, and years of education completed by 2006 for 1,306 males and 1,278 females who were between the ages of 14 and 22 when selected for the survey in 1979, who were available for re-interview in 2006, and who had paying jobs in 2005. Is there any evidence that the mean salary for males exceeds the mean salary for females with the same years of education and AFQT scores? By how many dollars or by what percent is the male mean larger? Answers to Conceptual Exercises 1. (a)LetearlyD1iftimeD24and0iftimeD0.Thenfflowersjlight;earlygDˇ0C ˇ1light C ˇ2early. (b) ˇ0 C ˇ1light C ˇ2early C ˇ3.light  early/. 2. The difference is 300 mol/m2/sec times the coefficient of light, or about 􏰀12:15 flowers. 3. (a) The principal reason is that the 10 plants were all treated together and grown together in the same chamber. The experimental unit is always defined as the unit that receives the treatment, here, plants in the same chamber. (b) The assumption of normality is assisted. Averages tend to have normal distributions, so the averaging may alleviate some distributional problems that could arise from looking at separate numbers of flowers. 4. No. The difficulty with interpreting regression coefficients individually, as in a controlled exper- iment, is that explanatory variables cannot be manipulated individually. In this instance, the sloth and the fruit bat also have different body weights—the sloth weighs 50 times what the fruit bat weighs. (The full model estimates the brain weight of the fruit bat to be only about 35% of the brain weight of the sloth.) One might attempt to envision a fruit bat having the same weight (0.9 kg) as the sloth and the same litter size (1.0), but having a gestation period of 165 instead of 145 days. This approach, however, is generally unsatisfactory because it extrapolates beyond the experience of the data set (resulting in animals like a fish-eating kangaroo with wings). 5. Yes. A common way to explore lack of fit is to introduce curvature and interaction terms to see if measured effects change as the configuration of explanatory variables changes. 6. Yes. 7. Keep your eye on the parameters. If the mean is linear in the parameters, the model is linear. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 270 Chapter 9 Multiple Regression (a) Yes, even though it is not linear in X. (b) Yes. (c) No. Both numerator and denominator are linear in parameters and X, but the whole is not. (d) No. This is a very useful model, however. 8. In both,  is a measure of the magnitude of the difference between a response and the mean in the population from which the response was drawn. In the meadowfoam problem,  measures the typical size of differences between seedling flowers (averaged from 10 plants) and the mean seedling flowers (averaged from 10 plants) treated similarly (same intensity and timing potential). In the brain weight problem, it is more difficult to describe what  measures because the theoretical model invents a hypothetical subpopulation of animal species all having the same body weight, gestation, and litter size. 9. (a) fpollen j duration, queeng D ˇ0 C ˇ1 duration C ˇ2 queen C ˇ3 .duration  queen/, where queen is 1 for queens and 0 for workers (or the other way around). (b) H0: ˇ3 D 0: 10. (a) 8.3 points. (b) As long as the effects are indeed linear in these coded variables, it is a useful way to include them in the multiple regression (and more powerful than considering them to be fac- tors). (c) Yes. The evidence is overwhelming that this coefficient is not zero. (d) The use of premature babies who all had to be fed by tube makes it so that some babies received breast milk but all babies were administered their milk in exactly the same way. (e) It is possible that the decision to provide breast milk and the ability to express breast milk are related to social class and mother’s education, which are likely to be related to child’s IQ score. It is desired to examine the effect of breast milk that is separate from the association with these potentially confounding variables. (f) (i) 4.5 points. (ii) An important confounding variable in the previous result is the mother’s decision to provide breast milk, which may be associated with good mothering skills, which may be associated with better intelligence development in the child. Using the proportion of breast milk as an explanatory variable allows the dose–response assessment of breast milk, which indicates that children of moth- ers who provided breast milk for 100% of the diet tended to score higher on the IQ test than children of mothers who also decided to provide breast milk but were only capable of supplying a smaller proportion of the diet. 11. (a) 1.93 years. 2.92 years. (b) No. No cause-and-effect is implied by the analysis of these observational data. (c) Seven indicator variables can be included to distinguish the eight graveyards. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 10 Inferential Tools for Multiple Regression Data analysis involves finding a good-fitting model whose parameters relate to the questions of interest. Once the model has been established, the questions of interest can be investigated through the parameter estimates, with uncertainty expressed through p-values, confidence intervals, or prediction intervals, depending on the nature of the questions asked. The primary inferential tools associated with regression analysis—t-tests and confidence intervals for single coefficients and linear combinations of coefficients, F -tests for several coefficients, and prediction intervals—are described in this chap- ter. As usual, the numerical calculations for these tools are performed with the help of a computer. The most difficult parts of the task are knowing what model and what inferential tool best suit the need, and knowing how to interpret and communicate the results. The inferential tools are illustrated in this chapter on models that incorpo- rate special explanatory variables from the previous chapter: indicator variables, quadratic terms, and interaction terms. The tests and confidence statements found in the examples, and their interpretations, are typical of the ones used in many fields and for many different kinds of data. 271 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 272 Chapter 10 Inferential Tools for Multiple Regression 10.1 CASE STUDIES 10.1.1 Galileo’s Data on the Motion of Falling Bodies—A Controlled Experiment In 1609 Galileo proved mathematically that the trajectory of a body falling with a horizontal velocity component is a parabola. His discovery of this result, which preceded the mathematical proof by a year, was the result of empirical findings in an experiment conducted for another purpose. Galileo’s search for an experimental setting in which horizontal motion was not affected appreciably by friction (to study inertia) led him to construct an apparatus like the one shown in Display 10.1. He placed a grooved, inclined plane on a table, released an ink-covered bronze ball in the groove at one of several heights above the table, and measured the horizontal distance between the table and the resulting ink spot on the floor. The data from one experiment are shown in Display 10.1 in units of punti (points). One punto is 169/180 millimeters. (Data from S. Drake and J. MacLachlan, “Galileo’s Discovery of the Parabolic Trajectory,” Scientific American 232 (1975): 102–10.) DISPLAY 10.1 Galileo’s experimental results 500 punti Horizontal Distance (punti) 253 100 337 200 395 300 451 450 495 600 534 800 573 1,000 Initial Height (punti) Galileo conducted this experiment to determine whether, in the absence of any appreciable resistance, the horizontal velocity of a moving object is constant. While sketching the paths of the trajectories in his notebook, he apparently came to believe that the trajectory was a parabola. Once the idea of a parabola suggested itself to Galileo, he found that proving it mathematically was straightforward. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 10.1 Case Studies 273 Although Galileo’s experiment preceded Gauss’s invention of least squares and Gal- ton’s empirical fitting of a regression line by more than 200 years, it is interesting to use regression here to explore the regression of horizontal distance on initial height. Statistical Conclusion As shown in Display 10.2, a quadratic curve for the regression of horizontal distance on height fits well for initial heights less than 1,000 punti. The data provide strong evidence that the coefficient of a cubic term differs from zero (two-sided p-value D 0:007). Nonetheless, the quadratic model accounts for 99.03% of the variation in measured horizontal distances, and the cubic term explains only an additional 0.91% of the variation. (Note: The significance of the cubic term can be explained by the effect of resistance.) 10.1.2 The Energy Costs of Echolocation by Bats—An Observational Study To orient themselves with respect to their surroundings, some bats use echolocation. They send out pulses and read the echoes that are bounced back from surrounding objects. Such a trait has evolved in very few animal species, perhaps because of the high energy costs involved in producing pulses. Because flight also requires a great deal of energy, zoologists wondered whether the combined energy costs of echolocation and flight in bats was the sum of the flight energy costs and the at-rest echolocation energy costs, or whether the bats had developed a means of echolocation in flight that made the combined energy cost less than the sum. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 10.2 Scatterplot of Galileo’s horizontal distances versus initial heights, with estimated quadratic regression model (with standard errors in parentheses) 200 + 0.708 Height – 0.000344 Height2 (17) (0.075) (0.000067) 500 400 300 200 400 600 800 Initial Height (punti) 1,000 Horizontal Distance (punti) 274 Chapter 10 Inferential Tools for Multiple Regression DISPLAY 10.3 Mass and in-flight energy expenditure for 4 non-echolocating bats (Type D 1), 12 non- echolocating birds (Type D 2), and 4 echolocating bats (Type D 3) Species Flight energy Mass (g) Type expenditure (W) cryptoleucos Zoologists considered the data in Display 10.3 on in-flight energy expenditure and body mass from 20 energy studies on three types of flying vertebrates: echolo- cating bats, non-echolocating bats, and non-echolocating birds. They believed that if the combined energy expenditure for flight and echolocation were additive, the amount of energy expenditure (after accounting for body size) would be greater for echolocating bats than for non-echolocating bats and non-echolocating birds. Display 10.4 shows a log-log scatterplot of in-flight energy expenditure versus body mass for the three types. (Data from J. R. Speakman and P. A. Racey, “No Cost of Echolocation for Bats in Flight,” Nature 350 (1991): 421–23.) Statistical Conclusion The median in-flight energy expenditure for echolocating bats is estimated to be 1.08 times as large as that for non-echolocating bats, after accounting for body mass. A 95% confidence interval for the ratio of the echolocating median to the non-echolocating median, accounting for body mass, is 0.70 to 1.66. The data are consistent with the hypothesis of equal median in-flight energy expenditures in the three groups, after accounting for body size ( p-value D 0:66, extra-sum-of-squares F -test). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 10.2 Inferences About Regression Coefficients 275 DISPLAY 10.4 Log-log scatterplot of in-flight energy expenditure versus body mass for 4 non-echolocating bats, 12 non-echolocating birds, and 4 echolocating bats Non-echolocating bats Non-echolocating birds Echolocating bats 50 10 5 1 10 50 100 500 Body Mass (g) (log scale) Scope of Inference The species used in the statistical analysis were those for which relevant data were available; any inference to a larger population of species is speculative. The sta- tistical inferences must also be interpreted in light of the likely violation of the independence assumption, due to treating separate studies on the same species as independent observations. The scientific results are premised on several facts. Bats emit the echolocation pulses once on each wing beat, starting in the latter phase of the up-stroke, coin- ciding with the moment that air is expelled from the lungs. The coupling of these three processes apparently accounts for the relative energy economy. The energy used to expel air is also used to send out the pulses, and these events occur just before the greatest demand is made on the wing beat. 10.2 INFERENCES ABOUT REGRESSION COEFFICIENTS Whether the energy expenditure is the same for echolocating bats as for non- echolocating bats, after accounting for body mass, can be investigated by a test of the coefficient of the indicator variable for echolocating bats in the parallel regression lines model. The simplicity with which the question of interest can be investigated makes this the natural choice for an inferential model. Many regression problems share this feature: questions of interest can be answered through tests or confidence intervals for single coefficients in the model. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Energy Expenditure (W) (log scale) 276 Chapter 10 Inferential Tools for Multiple Regression 10.2.1 Least Squares Estimates and Standard Errors The least squares estimates are the ˇ values that minimize the sum of squared residuals. Formulas for the estimates come from calculus and are best expressed in matrix notation (see Exercises 10.20 and 10.21). A statistical computer program can do these computations. Users can perform all the functions of regression analysis on their data without knowing the relevant formulas. As an example of computer- provided estimates, consider the parallel regression lines model used for the bat echolocation data: flenergy j lmass, TYPEg D ˇ0 C ˇ1lmass C ˇ2 bird C ˇ3 ebat; where lenergy is the log of the in-flight energy, lmass is the log of the body mass, and TYPE is the three-level factor represented by the indicator variables bird (which takes on a value of 1 if the type of species is a bird, and 0 if not) and ebat (which takes on a value of 1 if the species is an echolocating bat, and 0 if not). The third level of TYPE, non-echolocating bats, is treated here as the reference level, so its indicator variable does not appear in the regression model. The model is sketched in Display 10.5. DISPLAY 10.5 The parallel regression lines model for the bat echolocation data 0 Echolocating bats Birds Non-echolocating bats Body Mass (g) (log scale) A portion of the output is shown in Display 10.6. The least squares estimates of the ˇ’s appear in the column labeled “Coefficient.” The estimate of 2 is the sum of squared residuals divided by the degrees of freedom associated with the residuals. The usual rule for finding degrees of freedom applies: (Sample size) minus (Number of unknown regression coefficients in the model for the mean). Since the sample size is 20 and there are 4 coefficients here—ˇ0;ˇ1;ˇ2, and ˇ3—the value for degrees of freedom is 16. The square root of the estimate of variance is the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Energy Expenditure (W) (log scale) DISPLAY 10.6 Partial summary of the least squares fit to the regression of log energy expenditure on log body mass, an indicator variable for bird, and an indicator variable for echolocating bat Two-sided Variable Coefficient Standard error t-statistic p-value d.f. = 16 estimated standard deviation about the regression, which is 0.1860. This goes by several names on computer output, including residual SD, residual SE, and root mean squared error. The column labeled “Standard Error” contains the estimated standard devi- ations of the sampling distributions of the least squares estimates. The formulas for the standard deviations are once again available from statistical theory. In this instance, the formulas can be conveniently expressed only by using matrix notation, as shown in Exercise 10.22. Again, as with simple regression, they depend on the known values of the explanatory variables in the data set and on the unknown value of 2. The standard errors are the values of these standard deviations when 2 is replaced by its estimated value. Consequently, the degrees of freedom associated with a standard error are the same as the degrees of freedom associated with the estimate of  (the sample size minus the number of ˇ’s). LetˇOj (“beta-hatj”)representtheestimateofthejthcoefficient.jD0;1;2, or 3 in the current example). If the distribution of the response for each combination of the explanatory variables is normal with constant variance, then the t-ratio, t-ratio D .ˇOj 􏰀 ˇj /=SE.ˇOj /; has a sampling distribution described by the t-distribution with degrees of freedom equal to the degrees of freedom associated with the residuals. This theory leads directly to tests and confidence intervals for individual regression coefficients, in the familiar way. 10.2 Inferences About Regression Coefficients 277 10.2.2 Tests and Confidence Intervals for Single Coefficients Do Non-Echolocating Bats Differ from Echolocating Bats? Test for ˇ3 = 0 In the parallel regression lines model for log energy on log mass, the mean log energy for non-echolocating bats is ˇ0Cˇ1lmass. The mean log energy for echolocating bats is ˇ0 Cˇ1lmassCˇ3. Thus, for any given mass, the mean log energy expenditure for echolocating bats is ˇ3 units more than the mean log energy for non-echolocating bats (see Display 10.5). The question of whether the mean log energy expenditure Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 278 Chapter 10 Inferential Tools for Multiple Regression for echolocating bats is the same as the mean log energy expenditure for non- echolocating bats of similar size may be examined through a test of the hypothesis that ˇ3 equals 0. From Display 10.6, the two-sided p-value is .7030, providing no reason to doubt that ˇ3 is zero. The p-value was obtained by the computer as the proportion of values in a t-distribution on 16 degrees of freedom that are farther from 0 than 0.3881 (the t-statistic for the hypothesis that ˇ3 is 0). TestsofhypothesesH:ˇj Dcforvaluesofcotherthanzeroareoccasionallyof interest. For these, the user must construct the t-statistic .ˇOj 􏰀c/=SE.ˇOj / manually and find the p-value by reference to the appropriate t-percentiles. How Much More Flight Energy Is Expended by Echolocating Bats? Confidence Interval for ˇ3 Although a test has revealed no reason to doubt that ˇ3 is zero, neither has it proved that ˇ3 is zero. Echolocating bats might have a higher energy expenditure, but the available study may not be powerful enough to detect this difference. As is usual for tests of hypotheses, a confidence interval should be reported in addition to the p-value, to emphasize this possibility and to provide an entire set of likely values for ˇ3. The estimate of ˇ3 is 0.0787, with a standard error of 0.2027. The 97.5th per- centile of a t-distribution with 16 degrees of freedom is 2.120, so the 95% confidence interval for ˇ3 is 0:0787 􏰀 2:12.0:2027/ to 0:0787 C 2:12.0:2027/; or 􏰀0:351 to C 0:508: Coefficients after log transformations are interpreted in the same way as are coefficients described for simple regression in Section 8.4. If the parallel regression lines model is correct, the median in-flight energy expenditure is exp.ˇ3) times as great for echolocating bats as it is for non-echolocating bats of similar body mass. A 95% confidence interval for exp.ˇ3) is obtained by taking the antilogs of the end- points: exp.􏰀0:351/ D 0:70 to exp.0:508/ D 1:66. The result can be communicated as follows: It is estimated that the median in-flight energy expenditure for echolo- cating bats is 1.08 times as great as the median expenditure for non-echolocating bats of similar body size. A 95% confidence interval for this multiplicative effect, accounting for body size, is 0.70 to 1.66. Significance Depends on What Other Explanatory Variables Are Included The meaning of the coefficient of an explanatory variable depends on what other explanatory variables are included in the regression. The p-value for the test of whether a coefficient is zero must also be interpreted in light of what other variables are included. Consider three multiple linear regression models for the echolocation study. The first model says that the mean log energy is different for the three types of flying Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 10.2 Inferences About Regression Coefficients 279 animals, but that it does not involve the body weight: flenergy j lmass; TYPEg D TYPE. The second model—the parallel lines model—indicates that the regression has the same slope against log body weight in all three groups, but different inter- cepts: flenergy j lmass, TYPEg D lmass C TYPE. The third model—the separate lines regression model—allows the three groups to have completely different straight line regressions of log energy on log body weight: flenergy j lmass, TYPEg D lmass C TYPE C lmass  TYPE. Least squares fits to these three models yield the following results: .1/ O flenergy j lmass, TYPEg D 3:40 􏰀 .0:42/ 2:74ebat .0:60/ 0:08ebat .0:20/ 􏰀 C 􏰀 0:61bird .0:49/ 0:10bird .0:11/ .2/ O flenergy j lmass, TYPEg D 􏰀1:58 .0:29/ .3/ O flenergy j lmass, TYPEg D 􏰀0:20 .1:26/ C C C 0:815lmass .0:045/ .0:22/ .0:21/ where the parenthesized numbers beneath the coefficients are their standard errors. The coefficient of the indicator variable ebat is 􏰀2:74 in (1), C0:08 in (2), and 􏰀1:27 in (3). These might appear to be contradictory findings, since the variable is highly significant in (1) but not significant in (2) and (3), and since the sign of the estimated coefficient differs in the three fits. However, a contradiction arises only if one takes the view that the variable ebat plays the same role in each equation, which it does not. In (1), the coefficient of ebat measures the difference between mean log energy among echolocating bats and mean log energy among non-echolocating bats, ignoring any explanation of differences based on body size (lmass is not in the equation to provide the control). It happened (as indicated in Display 10.3) that the echolocating bats were much smaller than the non-echolocating bats in this study. Without taking body size into account, the statistical model attributes all the difference to group differences. In (2), however, the coefficient of ebat measures the difference between energy expenditure of echolocating bats and of non-echolocating bats after adjusting for body size. Interpreting the coefficient as the difference between energy expenditure of echolocating bats and non-echolocating bats “of about the same size” exceeds the scope of this study, because all the echolocating bats were small and all the non- echolocating bats were large. The echolocating versus non-echolocating difference is thus confounded with the differences based on body size. Because “after adjusting for body size” means that group differences are considered only after the best explanation for body size is taken into account, and because body size explains the differences well, it is easy to understand why the coefficient of ebat in (2) can be insignificant even though in (1) it is significant. In (3) the coefficient of ebat measures the difference between the intercept parameter in the regression of echolocating bat log energy versus log body weight and the intercept parameter in the regression of non-echolocating bat log energy Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 􏰀 C 0:21(ebatlmass/ C 0:25(birdlmass/ 1:27ebat .1:29/ 1:38bird .1:30/ 0:59lmass .0:21/ 280 Chapter 10 Inferential Tools for Multiple Regression 10.2.3 versus log body weight. This is a very different interpretation from the one in (2) because here the slopes of the regression equations are allowed to be different. Because the coefficient measures a different quantity in (3) than in (2), there is no reason to expect its statistical significance to be the same. Tests and Confidence Intervals for Linear Combinations of Coefficients In the parallel lines model for the echolocation study (represented in Display 10.5), the slope in the regression of log energy on log mass is ˇ1 for all three groups. The intercept for non-echolocating bats is ˇ0, the intercept for non-echolocating birds is ˇ0 C ˇ2, and the intercept for echolocating bats is ˇ0 C ˇ3. Since the bird line coincides with the non-echolocating bat line if ˇ2 is 0, a test of the equality of energy distribution in birds and non-echolocating bats, after accounting for body size, is accomplished through a test of whether ˇ2 equals 0. Similarly, a test of whether the echolocating bat regression line coincides with the non-echolocating bat regression line is accomplished with a test of ˇ3 D 0. The bird and echolocating bat regression lines coincide when ˇ2 D ˇ3, however, so a test of the equality of these two groups involves the hypothesis that ˇ3 􏰀 ˇ2 D 0 (or equivalently, that ˇ2 􏰀 ˇ3 D 0/. This is a hypothesis about a linear combination of regression coefficients. One method of performing the test compares the estimate of ˇ3 􏰀 ˇ2 with its standard error. Calculating the standard error is a problem here, however, because the estimates are not statistically independent. The correct formula expands the formula for linear combinations encountered in Section 6.2.2 to include the vari- ances and covariances in the joint sampling distribution of the regression coefficient estimates. The correct formula appears in Section 10.4.3. For this problem—as for many similar problems—there is an easier solution. Redefining the Reference Level Recall that the choice of reference level for any categorical explanatory variable is arbitrary. Thus, any of the three types of flying vertebrates could be used as the reference level. It is a simple matter to refit the model with another choice for the reference level, and either the birds or the echolocating bats will do. The model will remain the same as the one fit in Display 10.6, although the names of the intercepts will change, and the comparison of the non-echolocating birds to the echolocating bats can be accomplished through a single coefficient—the test for which appears in the standard output. Inference About the Mean at Some Combination of X’s One special linear combination is the mean of Y at some combination of the X’s. For Galileo’s data and the regression model fdistance j heightg D ˇ0 C ˇ1height C ˇ2height2; Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 10.7 the mean distance at a height of 250 is fdistance j height D 250g D ˇ0 C .ˇ1  250/ C .ˇ2  .250/2/; which is estimated by the linear combination of the estimates O fdistance j height D 250g D .ˇO0  1/ C .ˇO1  250/ C .ˇO2  .250/2/: A standard error for this estimate may be obtained by using the methods of Section 10.4.3, but it may also be extracted from a computer analysis, by redefining the reference level for height. The trick is to create a new explanatory variable by subtracting 250 from each height measurement. Let ht250 D height 􏰀 250, so height D 250 corresponds to ht250 D 0, and then fit the model fdistance j ht250g D ˇ0 C ˇ1ht250 C ˇ2.ht250/2: The mean distance at height D 250 is fdistance j ht250 D 0g D ˇ0. Redefining the model terms permits the question of interest to be worded in terms of a single parameter; the standard error for this parameter appears in the usual output. Use the estimated intercept as the estimated mean of interest, and use the reported standard error of the intercept as the standard error for this estimated mean. As with the indicator variable example, the two models are identical, but are param- eterized differently. Display 10.7 shows the analysis for both ways of writing the quadratic regression model, emphasizing how to obtain both the estimate of the mean (at height D 250 in this example) and its standard error. Estimates of polynomial coefficients with two different reference levels of height, in Galileo’s study Variable Coefficient Standard error t-statistic 10.2 Inferences About Regression Coefficients 281 (Reference height 5 0 punti) Two-sided p-value 0.0003 0.0007 0.0068 distance height 5 250 punti} Reference height 5 250 punti 13.6 punti distance height 5 250 punti}) Variable Coefficient Standard error t-statistic Two-sided p-value ,0.0001 0.0002 0.0068 13.6 punti 355.51 6.625 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 282 Chapter 10 Inferential Tools for Multiple Regression DISPLAY 10.8 Estimated median energy expenditures for birds, echolocating bats, and non-echolocating bats as functions of body mass (parallel lines model on log-log scale, with 95% confidence bands) 50 40 30 20 10 Echolocating bats Birds Non-echolocating bats 100 200 300 400 Body Mass (g) Confidence Bands for Multiple Regression Surfaces Display 10.8 shows the estimated regressions for the bat data (the parallel regression lines for the log of energy expenditure on the log of body mass) on the original scales of measurement. For non-echolocating bats, for example, Medianfenergy j massg D exp.ˇ0/  massˇ1 : The curve for this group on the plot was drawn by computing the estimated median at many values of mass and connecting the resulting points. The double arrows in Display 10.8 show the limits of a 95% confidence band for the median energy expenditure at 100 and 400 grams for each of the three groups. These intervals were constructed by finding confidence bands for the regression surface of log(energy) and then back-transforming the endpoints. The intervals were constructed by using the computer trick for finding the standard errors of estimated means. This required six different fits to the model, with different reference values, as shown in Display 10.9. The estimated mean for birds of 100-gram body mass, for example, was the estimated intercept in the regression of lenergy on (lmass 􏰀 100) and indicator variables for the two groups other than birds. This turned out to be 2.2789, with a standard error of 0.0604. From these, the confidence interval is calculated and then back-transformed for the light gray double-arrow line at Body mass D 100 in Display 10.8. The calculations appear in the bottom portion of Display 10.9. Notice that the multiplier used in the confidence band is based on the 95th percentile from an F -distribution. (This example assumes that a confidence band over the entire region—all masses and types—is desired, rather than confidence Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Median Energy Expenditure (W) DISPLAY 10.9 Construction of the 95% confidence band, using repeated fits of the multiple regression model with different reference points TYPE Body mass TYPE indicators " " " Body mass variable Intercept estimate Standard error 10.2 Inferences About Regression Coefficients 283 Reference point Explanatory variables Multiplier = = 3.468 4 F4,16; 0.95 Lower limit = exp[2.2789 – (3.468)(0.0604)] = 7.9 Upper limit = exp[2.2789 + (3.468)(0.0604)] = 12.0 intervals at a few specific values.) This type of multiplier was first introduced as the Scheff ́e multiple comparison procedure in Section 6.4.2 and again for confidence bands for simple regression in Section 7.4.2. Here, the numerator and denominator degrees of freedom in F are equal to the number of parameters in model (4) and to the residual degrees of freedom (16), respectively. The multiplier of F inside the square root sign is equal to the number of parameters in the model (4, in this case). Use of the F -based multiplier guarantees at least 95% confidence that the bands contain the regression surface throughout the experimental range. (Note: It is dangerous to draw conclusions about the regression outside of the scope of the available data. For example, no non-echolocating bats had body sizes of less than 258 grams. Inference about the distribution of energy expenditure for non- echolocating bats of 100-gram body size requires extrapolation of the model beyond the range within which it was estimated.) 10.2.4 Prediction Prediction is an important objective in many regression applications. If it is the only objective, there is no need to interpret the coefficients. For example, a researcher may be able to predict individuals’ blood pressures from the number of bathrooms in their houses, without having to interpret or understand the relationship between those two variables. Predicted values are the same as estimated means. They are calculated by evaluating the estimated regression at the desired explanatory variable values, as Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 284 Chapter 10 Inferential Tools for Multiple Regression in the previous section. As in simple linear regression, the error in prediction comes from two sources: the error of estimating the population mean, and the error inherent in the fact that the new observation differs from its mean. Since YO D predfY jX g D O fY jX g, the prediction error is Y 􏰀YO DY 􏰀OfYjXgDŒY 􏰀fYjXg􏰀ŒOfYjXg􏰀fYjXg: The variance of a prediction error consists of two corresponding pieces: PredictionvarianceD2 CŒSD.OfYjXg/2: The variance of prediction at some explanatory variable value, therefore, may be estimated by adding the estimate of 2 to the square of the standard error of the estimated mean. (See also Section 7.4.3.) The standard error of prediction is the square root of the estimated variance of prediction. Prediction intervals are based on this standard error and on the appropriate percentile from the t-distribution with degrees of freedom equal to those associated with the estimate of . As discussed with regard to simple regression, predictions are valid only within the range of values of explanatory variables used in the study. The validity also depends fairly strongly on the assumption of normal distributions in the populations. Galileo Example Display 10.7 has all the information needed to predict the horizontal distance of a single ball released at a height of 250 punti. The predicted distance is 355.5 punti. The variance of prediction is .13:6/2 C .6:62/2, whose square root is the standard error of prediction D 15:1 punti. With 7 􏰀 3 D 4 degrees of freedom, the t-multiplier for a 95% prediction interval is 2.776, so the interval extends from 355:5 􏰀 42:0 D 313:5 punti to 355:5 C 42:0 D 397:5 punti. 10.3 EXTRA-SUMS-OF-SQUARES F-TESTS In multiple regression, data analysts often need to test whether several coefficients are all zero. For example, the model flenergy j lmass, TYPEg D ˇ0 C ˇ1lmass C ˇ2bird C ˇ3ebat presents the regression as three parallel straight lines. The lines are identical under the hypothesis H:ˇ2 D0andˇ3 D0: The alternative hypothesis is that at least one of the coefficients—ˇ2 or ˇ3—is nonzero. t-tests, either individually or in combination, cannot be used to test such a hypothesis involving more than one parameter. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 10.3 Extra-Sums-of-Squares F-Tests 285 10.3.1 Comparing Sizes of Residuals in Hierarchical Models The extra-sum-of-squares method, on the other hand, is ideally suited for this purpose. It directly compares a full model (lmass C TYPE) to a reduced model (lmass): FullW flenergy j lmass, TYPEg D ˇ0 C ˇ1 lmass C ˇ2 bird C ˇ3 ebat; ReducedW flenergy j lmass, TYPEg D ˇ0 C ˇ1 lmass: If the coefficients in the last two terms of the full model are zero, their estimates should be close to zero, and fits to the two models should give about the same results. In particular, the residuals should be about the same size. If either ˇ2 or ˇ3 is not zero, however, the full model should do a better job of explaining the variation in the response variables, and the residuals should tend to be smaller in magnitude than those from the reduced model. Even if the reduced model is correct, however, the squared residuals in the full model must be somewhat smaller, since the full model has more flexibility to match chance variations in the data. The F -test is used to assess whether the difference between the sums of squared residuals from the full and reduced models is greater than can be explained by chance variation. The sum of squared residuals in the reduced model minus the sum of squared residuals in the full model (as in Section 5.3) is the extra sum of squares: The sum of squared residuals is a measure of the response variation that remains unexplained by a model. The extra sum of squares may be interpreted as being the amount by which the unexplained variation decreases when the extra terms are added to the reduced model. Or it may be interpreted as being the amount by which the unexplained variation increases when the extra terms are dropped from the full model. 10.3.2 F-Test for the Joint Significance of Several Terms The extra-sum-of-squares F-test has been encountered previously as a one-way analysis of variance tool for comparing the separate-means model to the single- mean model (Section 5.3), and as a tool in simple regression for comparing the regression model to the single-mean model or to the separate-means model if there are replicates (Section 8.5). These are all special cases of a general form that is often called a partial F-test. The F -statistic, based on the extra sum of squared residuals in a reduced model over a full model is defined as follows: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Extra sum of squares D Sum of squared residuals from reduced model 􏰀 Sum of squared residuals from full model: 286 Chapter 10 Inferential Tools for Multiple Regression F -statistic D  Extra sum of squares  Number of betas being tested Estimate of 2 from full model : The part in brackets is the average size of the extra-sum-of-squares per coefficient being tested. If the reduced model is correct, then this per-coefficient variation should be roughly equal to the per observation variation, 2. The F-statistic, therefore, should be close to 1. When the reduced model is correct and the rest of the model assumptions (including normality) hold, the sampling distribution of this F-statistic is an F -distribution. (Although exact justification is based on normality, the F -test and the t-tests are robust against departures from normality.) The numerator degrees of freedom are the number of ˇ’s being tested. This is either the number of ˇ’s in the full model minus the number of ˇ’s in the reduced model or, equivalently, the residual degrees of freedom in the reduced model minus the residual degrees of freedom in the full model. The denominator degrees of freedom are those associated with the estimate of 2 in the full model. If the F-statistic is larger than expected from this F -distribution, this is interpreted as evidence that the reduced model is incorrect. The test’s p-value—the chance that an F -variable exceeds the calculated value of the F -statistic—measures the strength of that evidence. Example—Bat Echolocation Data Computations in the extra-sum-of-squares F-test are detailed in Display 10.10, leading to a conclusion that there is no evidence of a group difference. Special Case: Testing the Significance of a Single Coefficient One special hypothesis is that a single coefficient is zero; for example, H: ˇ3 D 0. Since the t -test is available for this hypothesis, one might wonder whether the F -test leads to the same result. It does. The F-statistic is the square of the t-statistic, and the p-value from the F -test is the same as the two-sided p-value from the t -test. As a practical matter, the t-test results are more convenient to obtain from computer output. Special Case: Testing the ‘‘Overall Significance’’ of the Regression Another special hypothesis is that all regression coefficients except ˇ0 are zero. This hypothesis proposes that none of the considered explanatory variables are useful in explaining the mean response. Although this hypothesis only occasionally corresponds to a question of interest, the extra-sums-of-squares F-test for this hypothesis—often called the F -test for overall significance of the regression—is routine output in most statistical computer programs. As discussed in the following section, Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 10.3 Extra-Sums-of-Squares F-Tests 287 The extra-sum-of-squares F-test for testing equality of intercepts in the parallel regression lines model (bat echolocation data) DISPLAY 10.10 1 Fit the FULL model: {lenergy| lmass, TYPE}= 0 + Sum of squared residuals = 0.55332 2 1lmass + 2bird + 3ebat. d.f. = 16 0 + 1lmass. d.f. = 18 0.58289 – 0.55332 = 2 = 0.03458 Fit the REDUCED model: {lenergy| lmass, TYPE}= Sum of squared residuals = 0.58289 3 4 The extra sum of squares is the difference between the two residual sums of squares. Extra SS = 0.02957 Numerator degrees of freedom are the number of ’s in the full model minus the number of ’s in the reduced model. Numerator d.f. = 4 –2 = 2 5 [0.02957] Calculate the F- statis t ic = 2 = 0.014785 = 0.428 0.03458 6 F-statistic. 0.03458 Find Pr (F2,16 > 0.428)
from table, computer, p-value = 0.66
or calculator.
Conclusion: There is no evidence that mean log energy differs for birds, echolocating bats, and non-echolocating bats, after accounting for body mass.
the component calculations of this F -test are routinely available in an analysis of variance table.
10.3.3 The Analysis of Variance Table
The reduced model for the mean contains only the constant term ˇ0. Hence the least squares estimate of ˇ0 is the average response .Y /, and the sum of squared residuals is .n 􏰀 1/sY2 . This is the “Total sum of squares” as it measures the total variation of the responses about their average. The sum of squared residuals from the model under investigation is labeled the “Residual sum of squares” (or some- times the “Error sum of squares”) in the analysis of variance table. The difference between these two—the extra-sum-of-squares—is the amount of total variation in the response variable that can be explained by the regression on the explana- tory variables. It is called the “Regression sum of squares” or the “Model sum of squares.” An analysis of variance table for the quadratic fit to Galileo’s data appears in Display 10.11.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

288 Chapter 10 Inferential Tools for Multiple Regression
Analysis of variance table for Galileo’s data: fit of the data to the quadratic model: {distance j height} = ˇ0 C ˇ1 height + ˇ2 height2 (based on seven observations)
DISPLAY 10.11
3
The extra sum of squares is the total sum of squares minus the residual sum of squares (the amount of variation ex- plained by the two explanatory variables).
4
Mean squares are always sums of squares di- vided by their degrees of freedom. The resid-
Source of Variation
Regression Residual
Total
ual mean square is the estimate of
d.f. Mean Square F-Statistic 2 38138.96 205.03
4 186.02 77022.00 6
2.
p-Value <0.0001 Sum of Squares 76277.92 744.08 5 2 Residual sum of squares from full model: Mean{distance} The F-statistic (for overall signifi- cance of regression) is the regres- sion mea n square divided by the residual mea n square. 6 1 = 0 + 1height + 2(height)2. Residual sum of squares from reduced model: Mean{distance} = 0 . p-value = Pr(F2,4 > 205.03). The small
p-value here indicates overwhelming evidence that the coefficient of at least one of the explanatory variables height and height 2 differs from zero.
Using Analysis of Variance Tables
for Extra-Sums-of-Squares Tests
The calculations for extra-sums-of-squares tests can be carried out manually, as
shown in Display 10.10. The sums of squared residuals in steps 1 and 2 are obtained by fitting the full and reduced models, obtaining the analysis of variance tables for each, and reading the sum of squared residuals from the tables. Some statisti- cal computing packages will perform the calculations with an analysis of variance command that includes the full and reduced models as user-specified arguments.
Analysis of the Bat Echolocation Data
The analysis of the bat echolocation data involves several extra-sums-of-squares F -tests. The main question of interest is, “Is there a difference in the in-flight energy expenditures of echolocating and non-echolocating bats after body size is accounted for?” This question does not involve non-echolocating birds, but including them in the analysis is important for obtaining the best possible estimate of 2. A secondary question compares birds to the two bat groups.
Inspection of the data and initial graphical exploration indicated the need to analyze both energy and body mass on the log scale. The statistical analysis starts coming into focus with a graphical display like the coded scatterplot in Display 10.4.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

10.4
It is apparent that a straight line regression of log energy on log body mass is probably appropriate for each of the three types, and there is no obvious evidence of a difference in the slopes of these lines for the three types of flying vertebrates. These results are fortunate, because the question of interest is most easily addressed if the group differences are the same for all body weights. Hence, the parallel lines model offers the most convenient inferential model.
To buttress the argument, the analyst must make sure that the regression lines are, indeed, parallel before testing whether the intercepts are equal. This involves first fitting a rich model that incorporates different intercepts and different slopes. The separate lines model is
flenergy j lmass, TYPEg D
ˇ0 C ˇ1lmass C ˇ2bird C ˇ3ebat C ˇ4.lmass  bird / C ˇ5.lmass  ebat/:
The next step is to fit the rich model and examine a residual plot (plot of residuals versus fitted values). This plot (not shown) indicates no problems with the model assumptions, so it is appropriate to perform the F -test for the hypothesis that the interaction terms can be dropped (namely, H : ˇ4 D ˇ5 D 0). This F -test, based on the analysis of variance tables, is shown in Display 10.12.
Since the p-value is 0.53, it is safe to drop the interaction terms and address the comparison of interest in terms of the parallel lines model. It is then appropriate to test whether the intercepts in the parallel regression lines model are the same for the three groups. This is accomplished by conducting another extra-sum-of-squares F -test, as previously illustrated in Display 10.10. The p-value of 0.66 implies that the data are consistent with the hypothesis that no difference in energy expenditure exists among the three groups, after the effect of body mass is accounted for. Nev- ertheless, confidence intervals for the group differences should still be presented, as in the summary of statistical findings in Section 10.1.2, to reveal other possibilities that are not excluded by the data.
RELATED ISSUES
10.4.1 Further Notes on the R-Squared Statistic Example—Galileo’s Data
From the analysis of variance table in Display 10.11, it is evident that the quadratic regression of distance on height explains 76277.92/77022.00, or 99.03% of the total variation in the observed distances. Only 0.97% of the variation in distances remains unexplained.
Display 10.13 shows the regression output for another model for these data: the regression of distance on height, height-squared, and height-cubed. The p-value for the coefficient of height-cubed (0.0072) provides strong evidence that the cubic term is significant even when the linear and quadratic terms are in the model. On the other hand, the percentage of variation explained by the cubic model is 99.94%, only 0.91% more than the percentage of variation explained by the quadratic model.
10.4 Related Issues 289
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

290 Chapter 10 Inferential Tools for Multiple Regression
DISPLAY 10.12
The extra sum of squares F-test comparing the separate regression lines model to the parallel regression lines model—bat echolocation data
Source of Variation Sum of Squares
Regression 29.46993 Residual 0.50487
Total 29.97480
Source of Variation Sum of Squares
p-Value 163.4 <0.0001 Estimate of σ 2 d.f. Regression 29.42148 Residual 0.55332 Total 29.97480 d.f. Mean Square 3 9.80716 16 0.03458 F-Statistic p-Value 283.6 <0.0001 0.04845 3 The extra sum of squares is the difference between residual sums of squares. Extra SS = 19 Residual SS 0.55332 – 5 0.04845 [] 0.50487 = 0.672 Calculate the F-statistic. F-statistic = 2 = 0.03606 6 Look up Pr(F2,14 > 0.672).
p-value = 0.53
d.f. Mean Square F-Statistic
5 5.89399 14 0.03606
19
Residual SS
Conclusion: There is no evidence that the association between energy expenditure and body size differs among the three types of flying vertebrates (p-value = 0.53).
Of course that 0.91% accounts for 94% of the remaining variability from the quadratic model, which helps explain why the cubic term is statistically significant. Two very useful features of R2 have been revealed with Galileo’s data. First, the summary measure—for instance, 99.03% of the variation explained—provides a valuable image of the tightness of the fit. Second, the proportion of additional
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 10.13
Partial output from the regression of distance on height, height-squared, and height-cubed, for Galileo’s data
Variable Coefficient Standard error t-statistic p-value
10.4 Related Issues 291
variation explained by one newly introduced variable after the others have been accounted for can be used in assessing its practical significance. Despite these useful summarizing applications, however, R2 suffers considerable abuse. It is rarely an appropriate statistic to use for model checking, model comparison, or inference.
R 2 Can Always Be Made 100% by Adding Explanatory Variables
Display 10.14 shows the scatterplot of distance versus height for Galileo’s seven measurements. Drawn through the points is a sixth-order polynomial regression line:
fdistance j heightg D ˇ0 C ˇ1height C ˇ2.height/2 C ˇ3.height/3 Cˇ4.height/4 C ˇ5.height/5 C ˇ6.height/6:
This fit produces residuals that are all zero and, consequently, an R2 of 100%. In fact, for n data points with distinct explanatory variable values, an n 􏰀 1 polyno- mial regression will always fit exactly. That does not imply that the equation has any usefulness, though. While the data at hand have been modeled exactly, the particular equation is unlikely to fit as well on future data.
This same warning applies to multiple regression in general. R-squared can always be made 100% by adding enough explanatory variables. The question is whether the model is appropriate for the population or instead is only appropriate for the particular data on hand. If inference to some population (real or hypotheti- cal) is desired, it is important not to craft a model that is overly customized to the data on hand. Tests of significance and residual plots are more appropriate tools for model building and checking.
The Adjusted R 2 Statistic
The adjusted R2 is a version of R2 that includes a penalty for unnecessary explana- tory variables. It measures the proportion of the observed spread in the responses that is explained by the regression model, where spread is measured by residual mean squares rather than by residual sums of squares. This approach provides a
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

292
Chapter 10 Inferential Tools for Multiple Regression
DISPLAY 10.14
Scatterplot of Galileo’s horizontal distances versus initial heights, with estimated sixth-order polynomial regression curve (R 2 D 100%)
800 700
600
500
400
300
200
100
0 200
400 600 800
Initial Height (punti)
1,000
Adjusted R2 D 100 .Total mean square/ 􏰀 .Residual mean square/ %: Total mean square
10.4.2
better basis for judging the improvement in a fit due to adding an explanatory variable, but it does not have the simple summarizing interpretation that R2 has:
Thus adjusted R2 is useful for casual assessment of improvement of fit, but R2 is better for description, as illustrated in the summary of statistical findings in Section 10.1.1.
Improving Galileo’s Design with Replication
Since Galileo’s study contained no replication, it is impossible to separate the repeatable part of the relationship (if any) from the real variability in replicate measurements of horizontal distances of balls started at the same height. In other words, all estimates of  are necessarily based on a particular form of the regression model and may be biased as a result of model inadequacies.
Suppose that Galileo instead had selected four evenly spaced heights—say 100, 400, 700, and 1,000 punti—and had replicated the experiment at each height. Using four heights would have allowed Galileo to fit a cubic polynomial, giving him a model on which to judge the proposed parabola (through a test of the cubic term). The revised design also yields 4 degrees of freedom for estimating residual variability free from possible model complications. The cubic model can be judged by comparing it to the separate-means model for the four groups.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Horizontal Distance (punti)

10.4 Related Issues 293
A natural, design-based estimate of variance is obtained by pooling sample variances from groups of data at identical values of the explanatory variables. It can only be obtained if there are replicates. Without replication, the only available estimate of variance is the one obtained from the residuals about the fit to the presumed model for the mean. There is always a possibility of bias in this model- based estimate of variance, due to inadequacies of the regression model. With a design-based estimate no such bias can occur, because the size of the residuals does not hinge on the accuracy of any presumed regression model. This is a reason for incorporating some replication into an experimental design.
10.4.3 Variance Formulas for Linear Combinations of Regression Coefficients
On some occasions it may seem more convenient to estimate a linear combination of regression parameters directly than to instruct the computer to change the reference level (as in Section 10.2.3). In general, a linear combination can be written as
DC0ˇ0 CC1ˇ1 CC2ˇ2 CCCpˇp;
where the C ’s are known coefficients, some of which may be zeros. The estimate of
this combination is
g D C 0 ˇO 0 C C 1 ˇO 1 C C 2 ˇO 2 C    C C p ˇO p :
The formula for the variance of this linear combination differs from the one for variance of a linear combination of independent averages in Section 6.2.2. Since the estimated coefficients are not independent of one another, the formula here involves their covariances.
For a population of pairs U and V , the covariance of U and V is the mean of .U 􏰀 U /.V 􏰀 V /, and it describes how the two variables covary. The covariance of ˇO1 and ˇO2 is the mean of .ˇO1 􏰀 ˇ1/.ˇO2 􏰀 ˇ2/ in their sampling distribution. A formula for the covariances of least squares estimates is available, and estimates are available from least squares computer routines. If Cov represents covariance, the variance of the sampling distribution of the estimated linear combination is
Varfgg D C02SE.ˇO0/2 C C12SE.ˇO1/2 C    C Cp2SE.ˇOp/2 C 2C0C1Cov.ˇO0; ˇO1/ C2C0C2Cov.ˇO0;ˇO2/CC2Cp􏰀1CpCov.ˇOp􏰀1;ˇOp/:
To see why this is so consider the linear combination D C1ˇ1 CC2ˇ2 and its estimate g D C1ˇO1 C C2ˇO2. Then
.g􏰀 /DC1.ˇO1 􏰀ˇ1/CC2.ˇO2 􏰀ˇ2/
.g 􏰀 /2 D C12.ˇO1 􏰀 ˇ1/2 C C2.ˇO2 􏰀 ˇ2/2 C 2C1C2.ˇO1 􏰀 ˇ1/.ˇO2 􏰀 ˇ2/:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
and

294 Chapter 10 Inferential Tools for Multiple Regression
DISPLAY 10.15
Inference about ˇ2 􏰀 ˇ3 , the coefficient of the indicator variable for birds minus the coefficient of the indicator variable for echolocating bats
1
Estimate of 2 – 3, from Display 10.6: 0.1023 – 0.0787 = 0.0236
2
Estimated variance–covariance matrix (from computer):
Estimate the linear combination of coefficients as the same linear combination of estimated coefficients.
Constant
lmass bird ebat
–0.05056 0.00687
(Constant) 0.08250 –0.01211 –0.01921 –0.05056
lmass
–0.01211 0.00198 0.00173 0.00687
bird
–0.01921
0.00173
0.01304 0.01464
Obtain the estimated variance–covariance matrix of the estimated regression coefficients.
ebat
0.01464
0.04108
Notes: The matrix is symmetric. The square roots of the diagonal elements are the standard errors of the estimated coefficients (as reported in Display 10.6).
3 The estimated variance of 2 – ˆ3 is
12Var( ˆ2)+ (–1)2Var( 3)+ 2(1)(–1)Cov( ˆ2, ˆ3).
Estimated variance of ˆ 2 – ˆ 3 : 0.01304 + 0.04108 – (2 × 0.01464) = 0.02484 SE( 2 – ˆ3) = (0.02484)1/2 = 0.1576 (d.f.=16)
The variance of g is Mean.g 􏰀 /2, which can be expressed as
C12 Mean.ˇO1 􏰀 ˇ1/2 C C2 Mean.ˇO2 􏰀 ˇ2/2 C 2C1C2 Mean.ˇO1 􏰀 ˇ1/.ˇO2 􏰀 ˇ2/
D C12 Var.ˇO1/ C C2 Var.ˇO2/ C 2C1C2 Cov.ˇO1; ˇO2/:
The estimate of this expression is obtained by substituting the estimates of the
variances and covariance.
The Estimated Variance–Covariance Matrix for the Coefficients
The estimated covariances of the coefficients’ sampling distributions are calculated by most statistical computer programs. They are stored as an array, or matrix, for use in formulas such as the one just discussed. (See also Exercise 10.22.) The easy computer trick for finding the standard error of ˇO2 􏰀 ˇO3 for the parallel regres- sion lines model fit to the echolocation data was shown in Section 10.2.3. Display 10.15 illustrates the alternative, direct approach, using the estimated coefficient covariances supplied by a statistical computer program.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

10.4 Related Issues 295
10.4.4 Further Notes About Polynomial Regression
A Second-Order Model in Two Explanatory Variables
A full, second-order model in explanatory variables X1 and X2 is
fY jX1; X2g D ˇ0 C ˇ1X1 C ˇ2X2 C ˇ3X12 C ˇ4X2 C ˇ5X1X2:
This is a useful model in response surface studies, where the goal is to model a nonlinear response surface in terms of a polynomial. It is rarely useful to attempt cubic and higher-order terms.
When Should Squared Terms Be Included?
As with interaction terms, quadratic terms should not routinely be included. They are useful to consider in four situations: when the analyst has good reason to suspect that the response is nonlinear in some explanatory variable (through knowledge of the process or by graphical examination); when the question of interest calls for finding the values that maximize or minimize the mean response; when careful modeling of the regression is called for by the questions of interest (and presumably this is only the case if there are just a few explanatory variables); or when inclusion is used to produce a rich model for assessing the fit of an inferential model.
10.4.5 Finding Where the Mean Response Is
at Its Maximum in Quadratic Regression
The value of X that maximizes (or minimizes) the quadratic expression fY jXg D ˇ0 C ˇ1X C ˇ2X2
is Xmax D 􏰀ˇ1=.2ˇ2/ (a result from calculus). It is a maximum or minimum according to whether ˇ2 is negative or positive. This is a nonlinear combina- tion of coefficients, so the usual method for obtaining standard errors for linear combinations is of no use.
Fieller’s Method
Fieller’s method tests and constructs confidence intervals for ratios of regression coefficients. The method is illustrated here for Xmax.
For a specific value of M, the hypothesis H0WXmax D M can be re-expressed as H0W ˇ1 D 􏰀2Mˇ2. If this hypothesis is correct, the mean for Y above becomes
fYjXgDˇ0 􏰀2Mˇ2XCˇ2X2 Dˇ0 Cˇ2X;
where X  D X 2 􏰀 2M X is a new variable, in a simple linear regression model. Applying the extra-sum-of-squares F -test of this as the reduced model against the full model above provides a test of H0. A 95% confidence interval is constructed, by trial and error, as the range of M -values that result in test p-values larger than or equal to 0.05. (See Section 4.2.4.)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

296
Chapter 10 Inferential Tools for Multiple Regression
10.4.6
The Principle of Occam’s Razor
The principle of Occam’s Razor is that simple models are to be preferred over complicated ones. Named after the 14th-century English philosopher, William of Occam, this principle has guided scientific research ever since its formulation. It has no underlying theoretical or logical basis; rather, it is founded in common sense and successful experience. It is often called the Principle of Parsimony.
In statistical applications, the idea translates into a preference for the more simple of two models that fit data equally well. One should seek a parsimonious model that is as simple as possible and yet adequately explains all that can be explained. Methods for paring down large sets of explanatory variables are discussed in Chapter 12.
Informal Tests in Model Fitting
Tests for hypotheses about regression coefficients—t-tests and extra-sum-of-squares F -tests—are valuable for two purposes: for formally providing evidence regarding questions of interest in a final model and for exploring models by testing potential terms at the exploratory stage. The attitude toward the p-values is somewhat different for these two purposes.
In answering questions of interest, p-values are given their formal interpreta- tion. A small p-value provides evidence against the null hypothesis and in favor of the alternative. The null hypothesis may be true and the particular sample may have happened by chance to be an unusual one; the p-value provides a measure of just how unusual it would be. A large p-value means either that the null hypothesis is correct or that the study was not powerful enough to detect a departure from it.
For example, the adequacy of a straight line regression model may be examined through casual testing of an additional quadratic term. The statistical significance of the quadratic term helps to clarify possible curvature. In this usage of testing, some decision—in this case about a suitable model—is made. It should be realized that this decision is sample size dependent; one is more likely to find evidence of curvature in a large data set than in a small one. Nevertheless, the device of informal testing is useful in conjunction with other exploratory tools.
For answering questions of interest, tests should not be overemphasized. Even if the question of interest calls for a test, reporting a confidence interval to indicate the possible sizes of the effects of interest remains important. This is true whether the p-value for the test is small or large.
10.4.7
10.5 SUMMARY
Galileo’s Study
Galileo’s data are used to find a polynomial describing the mean distance as a function of height. The scatterplot shows that the relationship is not a straight line. The coefficient of a height-squared term, when added to the simple linear regression model, significantly differs from zero. R2 is a useful summary here: the quadratic
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

10.6 Exercises 297
regression model explains 99.03% of the variation in the horizontal distances. The large R2 does not mean that all other terms are insignificant. A test of hypothesis is used to resolve that matter. In fact, when a height-cubed term is added to the model, the p-value for testing whether its coefficient is zero is 0.007, and the value of R2 increases to 99.94%. This example demonstrates the benefit of R2 for summarizing a fit and for indicating the degree of relevance of a significant term.
Echolocation by Bats
The goal is to see whether the in-flight energy expended by echolocating bats differs from the energy used by non-echolocating bats of similar body mass. There is no major question involving the birds, but their inclusion helps to clarify a common relationship between energy and body mass. A useful starting point in the analysis is a coded scatterplot of energy versus body mass. It is apparent by inspection that both energy and body mass should be transformed to their logarithms. A plot on this scale (Display 10.4) reveals a straight line relationship but very little additional difference in energy expenditure among the three types of flying vertebrates. Com- paring the in-flight energy expenditures of echolocating bats and non-echolocating bats is difficult because the former are all small bats and the latter all big bats. Multiple linear regression permits a comparison after accounting for body mass, but the comparison must be made cautiously, since the ranges of body mass for the two types do not overlap. In light of this limitation, the comparison is made on the basis of an indicator variable in a parallel regression lines model. The data are consistent with the hypothesis that echolocating bats pay no extra energy price for their echolocating skills.
10.6 EXERCISES
Conceptual Exercises
1. Galileo’s Data. Why is horizontal distance, rather than height, the response variable?
2. Brain Weight. Display 10.16 shows two possible influence diagrams relating the variables in
the brain weight study of Section 9.1.2. If brain weight is directly associated with gestation period and litter size, as in part (a) of the figure, then animals that have approximately the same body size but different gestation period and different litter size should have different brain sizes, and scatterplots of brain size versus gestation and litter size individually should show some association. But the scatterplots can also show indirect associations, as in part (b) of the figure. If brain weight, gestation period, and litter size are all driven by body size, they should show mutual associations, whether or not a direct association exists. Can a statistical analysis distinguish between direct and indirect association? Explain how or, if not, why not.
3. Brain Weight. Consider the mammal brain weight data from Section 9.1.2, the model flbrain j lbody, lgest, llitterg D ˇ0 C ˇ1lbody C ˇ2lgest C ˇ3llitter;
and the hypothesis H : ˇ2 D 0 and ˇ3 D 0. (a) Why can this not be tested by the two t -tests reported in the standard output? (b) Why can this not be tested by the two t-tests along with an adjustment for multiple comparisons?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

298 Chapter 10 Inferential Tools for Multiple Regression
DISPLAY 10.16 Associations of brain weight with gestation period and litter size: direct or indirect?
(a) DIRECT ASSOCIATION
Animals with about the same body size will have different brain sizes when their litter sizes and gestation periods are different.
(b) INDIRECT ASSOCIATION
Animals with about the same body size will have about the same brain size even if their gestation periods and litter sizes are different. Any apparent association between brain size and litter size, say, is a result of their both being related to body size.
Litter Size
Litter Size
Body Size
Brain Size Body Size
Brain Size
Gestation Period
Gestation Period
4. Stocks and Jocks. Based on data from nine days in June 1994, a multiple regression equation was fit to the Dow Jones Index on the following seven explanatory variables: the high tempera- ture in New York City on the previous day; the low temperature on the previous day; an indicator variable taking on the value 1 if the forecast for the day was sunny and 0 otherwise; an indicator variable taking on the value 1 if the New York Yankees won their baseball game of the previ- ous day and 0 if not; the number of runs the Yankees scored; an indicator variable taking on the value of 1 if the New York Mets won their baseball game of the previous day and 0 if not; and the number of runs the Mets scored. As the chart in Display 10.17 shows, the predicted values of the stock market index were strikingly close to the actual values. R2 was 89.6%. Why is this unremarkable?
5. Bat Echolocation. Consider these three models:
flenergy j lmass, TYPEg D ˇ0 C ˇ1lmass
flenergy j lmass, TYPEg D ˇ0 C ˇ1lmass C ˇ2bird C ˇ3ebat flenergy j lmass, TYPEg D ˇ0 C ˇ1lmass C ˇ2bird C ˇ3ebat
C ˇ4.lmass/  .bird/ C ˇ5.lmass  .ebat//:
(a) Explain why they can be described as representing the single line, parallel lines, and separate lines models, respectively. (b) Explain why the second model can be the “reduced model” in one F -test but the “full model” in another.
6. Bat Echolocation. A possible statement in conclusion of the analysis is this: “It is estimated that the median in-flight energy expenditure for echolocating bats is 1.08 times as large as the median in-flight energy expenditure for non-echolocating bats of similar body size.” Referring to Display 10.4, explain why including the phrase, “of similar body size” in this statement is suspect. What alternative wording is available?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

10.6 Exercises 299
DISPLAY 10.17
Actual values and predicted values of Dow Jones Index
Observed
Predicted (R2 = 89.6%)
3,800
3,750
3,700
5 10 15 20
Date in June 1994
7. Life Is a Rocky Road. A regression of the number of crimes committed in a day on volume of ice cream sales in the same day showed that the coefficient of ice cream sales was positive and sig- nificantly differed from zero. Which of the following is the most likely explanation? (a) The content of ice cream (probably the sugar) encourages people to commit crimes. (b) Successful criminals cel- ebrate by eating ice cream. (c) A pathological desire for ice cream is triggered in a certain percentage of individuals by certain environmental conditions (such as warm days), and these individuals will stop at nothing to satisfy their craving. (d) Another variable, such as temperature, is associated with both crime and ice cream sales.
8. In the terminology of extra-sums-of-squares F -tests, does the reduced model correspond to the case where the null hypothesis is true? Is the full model the one that corresponds to the alternative hypothesis’s being true?
Computational Exercises
9. Crab Claws. Reconsider the data on claw closing force and claw size for three species of crabs, shown in Exercise 7.22. Display 10.18 shows output from the least squares fit to the separate lines model for the regression of log force on log height. The regression model for log force was
flforce j lheight, SPECIESg D ˇ0 C ˇ1lheight C ˇ2lb C ˇ3cp
C ˇ4.lheight  lb/ C ˇ5.lheight  cp/;
where lheight represents log height, lb represents an indicator variable for the second species, and cp represents an indicator variable for the third species. The sample size was 38.
(a) How many degrees of freedom are there in the estimate of ?
(b) Whatisthep-valueforthetestofthehypothesisthattheslopeintheregressionoflogforce
on log height is the same for species 2 as it is for species 1?
(c) What is a 95% confidence interval for the amount by which the slope for species 3 exceeds
the slope for species 1?
Crab Claws. The sum of squared residuals from the fit described in Exercise 9 is 5.99713, based on 32 degrees of freedom. The sum of squared residuals from the fit without the last two terms
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
10.
Dow Jones Index

300
Chapter 10 Inferential Tools for Multiple Regression
DISPLAY 10.18
Least squares output for Exercise 9
Variable Estimate SE t-stat p-value
Regression output data for Exercise 11
Variable Estimate SE t-stat p-value
is 8.38155, based on 34 degrees of freedom. Form an F -statistic and find the p-value for the test that the slopes are the same for the three species.
11. Butterfly Occurrences. Display 10.19 summarizes results from the regression of the log of the number of butterfly species observed on the log of the size of the reserve and the number of days of observations, from 16 reserves in the Amazon River Basin.
(a) What is the two-sided p-value for the test of whether size of reserve has any effect on number of species, after accounting for the days of observation? What is the one-sided p-value if the alternative is that size has a positive effect? Does this imply that there is no evidence that the median number of species is related to reserve size? The researchers tended to spend more days searching for butterflies in the larger reserves. How might this affect the interpretation of the results?
(b) What is a two-sided p-value for the test that the coefficient of lsize is 1? (This is simply a computational exercise; there is no obvious reason to conduct this test with these data.)
(c) What is a 95% confidence interval for the coefficient of lsize?
(d) What proportion of the variation in log number of species remains unexplained by log size
and days of observations?
DISPLAY 10.19
Brain Weights. With the data described in Section 9.1.2, construct an extra sum of squares F -test for determining whether gestation period and litter size are associated with brain weight after body weight is accounted for.
13. Bat Echolocation. (a) Fit the parallel regression lines model to duplicate the results in Display 10.6. (b) From these results, what are the estimated intercept and estimated slope for the regression of log energy on log mass for (i) non-echolocating bats, (ii) non-echolocating birds, and (iii) echolo- cating bats? (c) Refit the model using, instead, the indicator variables bird and nbat, where nbat takes on the value 1 for species of non-echolocating bats and 0 for other species. (d) Based on the results in part (c), what are the estimated intercept and estimated slope for the regression of log energy on log mass for (i) non-echolocating bats, (ii) non-echolocating birds, and (iii) echolocating bats? How
12.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 10.20
Protein in minnow larvae exposed to copper and zinc
10.6 Exercises
301
Copper (ppm)
Zinc (ppm)
1,125 1,500
1,125 1,500
1,125 1,500
Protein ( g/larva)
Copper (ppm)
Zinc (ppm)
1,125 1,500
1,125 1,500
Protein ( g/larva)
75
123
do these compare to the estimates obtained in part (b)? (e) With the results of (c), test whether the lines for the echolocating bats and the non-echolocating birds coincide.
14. Toxic Effects of Copper and Zinc. In a study of the joint toxicity of copper and zinc, researchers randomly allocated 25 beakers containing minnow larvae to receive one of 25 treatment combinations. The treatment levels were all combinations of 5 levels of zinc and 5 levels of copper added to a beaker. Following a four-day exposure, a sample of the minnow larvae were homoge- nized and analyzed for protein. The results are shown in Display 10.20. (Data from D. A. J. Ryan, J. J. Hubert, J. B. Sprague, and J. Parrott, “A Reduced-Rank Multivariate Regression Approach to Aquatic Joint Toxicity Experiments,” Biometrics 48 (1992): 155–62.) Fit a full second-order model for the regression of protein on copper and zinc, and examine the plot of residuals versus fitted values. Repeat after taking the log of protein. Which model is preferable?
15. Kentucky Derby. Reconsider the Kentucky Derby winning times and speeds from Exercise 9.20. Test whether there is any effect of the categorical factor “Track” (with seven categories) on winning speed, after accounting for year. The full model will have Year and the categorical factor Track; the reduced model will have only Year.
16. Galileo’s Data. Use Galileo’s data in Display 10.1 (data file: case1001) to perform the following operations.
(a) Fit the regression of distance on height and height-squared. Obtain the estimates, their standard errors, the estimate of 2, and the variance–covariance matrix of the estimated coefficients.
(b) Verifythatthesquarerootsofthediagonalelementsareequaltothestandarderrorsreported with the estimated coefficients.
(c) Compute the estimated mean distance when the initial height is 500 punti.
(d) Calculate the standard error for the estimated mean in part (c).
(e) Usetheanswertoparts(a)and(d)andtherelationshipbetweenthevarianceoftheestimated
mean and the variance of prediction to obtain the standard error of prediction at an initial height of 500 punti.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

302 Chapter 10 Inferential Tools for Multiple Regression
17. Galileo’s Data. Use Galileo’s data in Display 10.1 (data file case1001) to fit the regression of distance on (a) height; (b) height and height2; (c) height, height2, and height3; (d) height, height2, height3, and height4; (e) height, height2, height3, height4, and height5; (f) height, height2, height3, height4, height5, and height6. For each part, find R2 and R2 .
adj
18. Corn Yield and Rainfall. Reconsider the corn yield and rainfall data (Display 9.18; data file
ex0915). Fit the regression of yield on rainfall, rainfall-squared, and year. Use the approach of Section 10.4.5 to find the rainfall that maximizes mean yield.
19. Meadowfoam. Carry out a lack-of-fit F -test for the regression of number of flowers on light intensity and an indicator variable for time, using the data in Display 9.2 (data file case0901): (a) Fit the regression of flowers on light and an indicator variable for time D 24, and obtain the analysis of variance table. (b) Fit the same regression except with light treated as a factor (using 5 indicator variables to distinguish the 6 groups), and with the interaction of these two factors, and obtain the analysis of variance table. (c) Perform an extra-sum-of-squares F -test comparing the full model in part (b) to the reduced model in part (a). (Note: The full model contains 12 parameters, which is equivalent to the model in which a separate mean exists for each of the 12 groups. No pattern is implied in this model. See Displays 9.7 and 9.8 for help.)
20. Calculus Problem. The least squares problem in multiple linear regression is to find the parameter values that minimize the sum of squared differences between responses and fitted values,
n
SS.ˇ0;ˇ1;:::;ˇp/􏰀X.Yi 􏰀ˇ0 􏰀ˇ1X1i 􏰀􏰀ˇpXpi/2:
iD1
Set the partial derivatives of SS with respect to each of the unknowns equal to zero. Show that the
solutions must satisfy the set of normal equations, as follows: ˇ0nCˇ1†X1i Cˇ2†X2i CCˇp†Xpi D†Yi
ˇ0†X1i Cˇ1†X2 Cˇ2†X1iX2i CCˇp†X1iXpi D†X1iYi 1i
ˇ0†X2i Cˇ1†X2iX1i Cˇ2†X2 CCˇp†X2iXpi D†X2iYi 2i
  
ˇ0†Xpi Cˇ1†XpiX1i Cˇ2†XpiX2i CCˇp†X2 D†XpiYi; pi
where each † indicates summation over all cases .i D 1; 2; : : : ; n/. Show, too, that solutions to the normal equations minimize SS.
21. Matrix Algebra Problem. Let Y be the n1 column vector containing the responses, let X be the n  . p C 1/ array whose first column consists entirely of ones and whose other columns are the explanatory variable values, and let b be the . p C 1/  1 column containing the resulting parameter estimates. Show that the normal equations in Exercise 20 can be written in the form
.XT X/b D XT Y:
Therefore, as long as the matrix inversion is possible, the least squares solution is
b D .XT X/􏰀1XT Y:
When is the inversion possible?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

10.6 Exercises 303
22. Continuing Exercise 21, statistical theory says that the means of the estimates in the vector AY, where A is a matrix, are the elements of the vector AfYg; and the matrix of covariances of these estimates is ACov.Y/AT . Use the theory and the model fYg D Xˇ;Cov.Y/ D 2I (where I is an n  n identity matrix) to show that the mean in the sampling distributions of the least squares estimate b is ˇ. Then show that the matrix of covariances is Covfbg D 2.XT X/􏰀1:
23. Speed of Evolution. Refer back to Exercise 9.18. The authors of that study concluded that although the wing size of North American flies was converging rapidly to the same cline as exhibited by the European flies, the means by which the cline is achieved is different in the North American population.
(a) Asevidencethatthemeansofconvergenceisdifferent,theauthorsconcludedthattherewas a marked difference between the NA and the EU patterns of the basal length-to-wing size ratios versus latitude (in females). Fit a multiple linear regression that allows for different slopes and different intercepts. In a single F -test, evaluate the evidence against there being a single straight line that describes the cline on both continents. If you conclude there is a difference, is the difference one of slope alone? of intercept alone? or of both?
(b) Return to the basic question of whether the wing sizes in NA flies have established a cline similar to their EU ancestors. Using the model developed in Exercise 9.18, answer these questions: (i) Is there a nonzero slope to the cline of NA females? (ii) Is there a nonzero slope to the cline of NA males? (iii) Is there a difference between the clines of NA and EU females, and if so, what is its nature? (iv) Repeat (iii) for males.
Speed of Evolution. (Refer again to Exercise 9.18 and also to Exercise 10.23.) Many software systems allow the user to perform weighted regression, in which different squared residuals from regression receive different weights in deciding which set of parameter estimates provide the smallest sum of squared residuals. If each individual response has an independent estimate of its likely error, the weight given to each residual is usually taken to be the reciprocal of the square of that likely error. The standard error of wing sizes are standard errors of the averages around 2 individual (log) wing sizes. If your software allows for weights, construct a weight variable as the inverse square of the standard errors. Then repeat both parts of Exercise 10.23 using weighted regression. Do the results differ? Why is this preferable to using each fly as a separate case?
25. Potato Yields. Nitrogen and water are important factors influencing potato production. One study of their roles was conducted at sites in the St. John River Valley of New Brunswick. (G. Belanger et al., “Yield Response of Two Potato Cultivars to Supplemental Irrigation and N fertilization in New Brunswick,” American Journal of Potato Research 77 (2000): 11–21.) Nitro- gen fertilizer was applied at six different levels in combination with two water conditions: irrigated or nonirrigated. This design was repeated at four different sites in 1996, with the resulting yields depicted in Display 10.21. Notice that the patterns of responses against nitrogen level are fit reasonably well by quadratic curves.
Each quadratic requires 3 parameters, so a model that would allow for separate quadratic curves for each site-by-irrigation combination would have 24 parameters. (a) Using indicator functions for sites and for irrigation, construct a multiple linear regression model with 23 variables that will allow for completely different quadratic curves. Interpret the parameters in this model, if possible. (b) Describe how you would answer the following questions: (i) Is there evidence that the manner in which the quadratic terms differ by water condition changes from site to site (or is the difference the same at all four sites)? (ii) If the quadratic term differences are the same at all sites, is there strong evidence of a difference by water condition? (iii) If there is no difference between quadratic terms by water or by site, is there evidence of any quadratic term at all? (iv), (v), and (vi): Repeat (i), (ii), and (iii) for the linear terms, if there is no evidence of any quadratic terms. (c) Why are the questions in (b) ordered as they are?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
24.

304 Chapter 10 Inferential Tools for Multiple Regression
DISPLAY 10.21
Potato yield versus nitrogen at four sites
50 40 30 20 10
50 40 30 20 10
Site A
Site B
nonirrigated irrigated
Site C
Site D
0 50 100 150200250
Nitrogen (kg N/ha)
0 50 100 150200250
Nitrogen (kg N/ha)
Data Problems
26. Thinning of Ozone Layer. Thinning of the protective layer of ozone surrounding the earth may have catastrophic consequences. A team of University of California scientists estimated that increased solar radiation through the hole in the ozone layer over Antarctica altered processes to such an extent that primary production of phytoplankton was reduced 6 to 12%.
Depletion of the ozone layer allows the most damaging ultraviolet radiation—UVB (280– 320 nm)—to reach the earth’s surface. An important consequence is the degree to which oceanic phytoplankton production is inhibited by exposure to UVB, both near the ocean surface (where the effect should be slight) and below the surface (where the effect could be considerable).
To measure this relationship, the researchers sampled from the ocean column at various depths at 17 locations around Antarctica during the austral spring of 1990. To account for shifting of the ozone hole’s positioning, they constructed a measure of UVB exposure integrated over exposure time. The exposure measurements and the percentages of inhibition of normal phytoplankton production were extracted from their graph to produce Display 10.22. (Data from R. C. Smith et al., “Ozone Deple- tion: Ultraviolet Radiation and Phytoplankton Biology in Antarctic Waters,” Science 255 (1992): 952–57.) Does the effect of UVB exposure on the distribution of percentage inhibition differ at the surface and in the deep? How much difference is there? Analyze the data, and write a summary of statistical findings and a section of details documenting those findings. (Suggestion: Fit the model with different intercepts and different slopes, even if some terms are not significantly different from zero.)
27. Factors Affecting Extinction. The data in Display 10.23 are measurements on breeding pairs of land-bird species collected from 16 islands around Britain over the course of several decades. For each species, the data set contains an average time of extinction on those islands where it appeared (this is actually the reciprocal of the average of 1/T , where T is the length of time the species remained on the island, and 1/T is taken to be zero if the species did not become extinct on the island); the average number of nesting pairs (the average, over all islands where the birds appeared, of the number of nesting pairs per year); the size of the species (categorized as large or small); and the migratory status of the species (migrant or resident). (Data from S. L. Pimm, H. L. Jones, and
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Yield (t / ha) Yield (t / ha)

10.6 Exercises 305
DISPLAY 10.22
First 5 of 17 rows of a data set with exposure to ultraviolet B radiation and percentage inhibition of primary phytoplankton production in Antarctic water
Percent UVB Surface (S) Location inhibition exposure or Deep (D)
J. Diamond, “On the Risk of Extinction,” American Naturalist 132 (1988): 757–85.) It is expected that species with larger numbers of nesting pairs will tend to remain longer before becoming extinct. Of interest is whether, after accounting for number of nesting pairs, size or migratory status has any effect. There is also some interest in whether the effect of size differs depending on the number of nesting pairs. If any species have unusually small or large extinction times compared to other species with similar values of the explanatory variables, it would be useful to point them out. Analyze the data. Write a summary of statistical findings and a section of details documenting the findings.
28. El Nin ̃o and Hurricanes. Shown in Display 10.24 are the first few rows of a data set with the numbers of Atlantic Basin tropical storms and hurricanes for each year from 1950 to 1997. The variable storm index is an index of overall intensity of the hurricane season. (It is the average of number of tropical storms, number of hurricanes, the number of days of tropical storms, the number of days of hurricanes, the total number of intense hurricanes, and the number of days they last—when each of these is expressed as a percentage of the average value for that variable. A storm index score of 100, therefore, represents, essentially, an average hurricane year.) Also listed are whether the year was a cold, warm, or neutral El Nin ̃o year, a constructed numerical variable temperature that takes on the values 􏰀1, 0, and 1 according to whether the El Nin ̃o temperature is cold, neutral, or warm; and a variable indicating whether West Africa was wet or dry that year. It is thought that the warm phase of El Nin ̃o suppresses hurricanes while a cold phase encourages them. It is also thought that wet years in West Africa often bring more hurricanes. Analyze the data to describe the effect of El Nin ̃o on (a) the number of tropical storms, (b) the number of hurricanes, and (c) the storm index after accounting for the effects of West African wetness and for any time trends, if appropriate. (These data were gathered by William Gray of Colorado State University, and reported on the USA Today weather page: www.usatoday.com/weather/whurnum.htm)
29. Wage and Race 1987. Shown in Display 10.25 are the first few rows of a data set from the 1988 March U.S. Current Population Survey. The set contains weekly wages in 1987 (in 1992 dollars) for a sample of 25,437 males between the age of 18 and 70 who worked full-time, their years of edu- cation, years of experience, whether they were black, whether they worked in a standard metropolitan statistical area (i.e., in or near a city), and a code for the region in the U.S. where they worked (North- east, Midwest, South, and West). Analyze the data and write a brief statistical report to see whether and to what extent black males were paid less than nonblack males in the same region and with the same levels of education and experience. Realize that the extent to which blacks were paid differ- ently than nonblacks may depend on region. (Suggestion: Refrain from looking at interactive effects, except for the one implied by the previous sentence.) (These data, from the Current Population Sur- vey (CPS), were discussed in the paper by H. J. Bierens and D. K. Ginther, “Integrated Conditional Moment Testing of Quantile Regression Models,” Empirical Economics 26 (2001): 307–24; and made available at the Web site http://econ.la.psu.edu/hbierens/MEDIAN.HTM (April, 2008).)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

306 Chapter 10 Inferential Tools for Multiple Regression
DISPLAY 10.23 Bird extinction data
Migratory status (resident or migrant) Size (large or small)
Ave. number of nesting pairs
Ave. extinction time (years)
Migratory status (resident or migrant) Size (large or small)
Ave. number of nesting pairs
Ave. extinction time (years)
Species
Species
30. Wages and Race 2011. Display 10.26 is a partial listing of a data set with weekly earnings for 4,952 males between the age of 18 and 70 sampled in the March 2011 Current Population Survey (CPS). These males are a subset who had reported earnings and who responded as having race as either “Only White” or “Only Black.” Also recorded are the region of the country (with four cat- egories: Northeast, Midwest, South, and West), the metropolitan status of the men’s employment (with three categories: Metropolitan, Not Metropolitan, and Not Identified), age, education category (with 16 categories ranging from “Less than first grade” to “Doctorate Degree”), and education code, which is a numerical value that corresponds roughly to increasing levels of education (and so may be useful for plotting). What evidence do the data provide that the distributions of weekly earnings differ in the populations of white and black workers after accounting for the other variables? By how many dollars or by what percent does the White population mean (or median) exceed the Black population mean (or median)? (Data from U.S. Bureau of Labor Statistics and U.S. Bureau of the Census: Current Population Survey, March 2011 http://www.bls.census.gov/cps ftp.html#cpsbasic; accessed July 25, 2011.)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 10.26
First five rows of a data set with weekly earnings (in U.S. dollars) in 2011 for 4,952 males who specified either ‘‘White Only’’ or ‘‘Black Only’’ as their race
Region
West Midwest South West Northeast
MetropolitanStatus
Not Metropolitan Metropolitan Metropolitan
Not Metropolitan Metropolitan
Age EducCat
EducCode Race
WeeklyEarnings
1418.84 1000.00 420.00 1980.00 1750.00
Region
South Midwest West West West
MetropolitanStatus Exper Educ
NotMetropolitanArea 8 12 MetropolitanArea 30 12 MetropolitanArea 31 14 MetropolitanArea 17 16 MetropolitanArea 6 12
Race
NotBlack NotBlack NotBlack NotBlack NotBlack
WeeklyEarnings
859.71 786.73 1424.5 959.16 154.32
10.6 Exercises 307
DISPLAY 10.24 Atlantic Basin hurricane and El Niño data for 1950–1997; partial listing ~
Year El Nino Temperature West Africa Storms Hurricanes Storm index
DISPLAY 10.25 Data on the first 5 individuals (out of 25,437) in the 1987 wage and race data set
64 SomeCollegeButNoDegree 40 51 AssocDegAcadem 42 25 NinthGrade 35 46 MastersDegree 44 31 BachelorsDegree 43
White White White White White
31. Who Looks After the Kids? Different bird species have different strategies: Maternal, Pater- nal, and BiParental care. In 1984 J. Van Rhijn argued in the Netherlands Journal of Zoology that parental care was the ancestral condition, going back to the dinosaur predecessors of birds. D. J. Varricchio et al. (Science, Vol. 322, Dec. 19, 2008, pp. 1826–28) tested that argument by com- paring the relationships between Clutch Volume and adult Body Mass in six different groups: modern maternal-care bird species (MatI n D 171), modern paternal-care bird species (PatI n D 40), mod- ern biparental-care bird species (BiPI n D 204), modern maternal-care crocodiles (CrocI n D 19), non-avian maniraptoran dinosaurs thought to be ancestors of modern birds (ManiI n D 3), and other non-avian dinosaurs (OthrI n D 6). The question of interest was which group of modern creatures most closely matches the relationship in the maniraptoran dinosaurs. A partial listing of the data appears in Display 10.27.
Fit a single model, with clutch volume (possibly transformed) as the response, that allows for separate straight lines in each group, using indicator variables for the different groups. For example, by selecting Mani as the reference group, you can determine how close any other group is to Mani by dropping out the indicator for that group and its product with the body mass variable. Do this for all other groups. (a) Are there differences among the relationships in the groups other than the Mani
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

308 Chapter 10 Inferential Tools for Multiple Regression
DISPLAY 10.27
Body mass (in kilograms) and clutch volume (in cubic milimeters) for 443 species of animals in 6 groups (Mat: modern maternal-care birds, Pat: modern paternal-care birds, BiP: modern biparental-care birds, Croc: modern maternal-care crocodiles, Mani: non-avian maniraptoran dinosaurs, and Othr: other non-avian dinosaurs; first 5 of 443 rows
CommonName
Mallard
Greylag Goose Mute Swan Common Eider Southern Screamer
Genus
Anas Anser Cygnus Somateria Chauna
Species Group
platyrhynchos Mat anser Mat olor Mat mollissima Mat torquata BiP
BodyMass
1.14E+00 3.31E+00 1.07E+01 2.07E+00 4.40E+00
ClutchVolume
5.42E+05 7.97E+05 1.75E+06 4.75E+05 5.13E+05
First five rows of a data set with component test scores in Arithmetic Reasoning, Word Knowl-
edge, Paragraph Comprehension, and Mathematics Knowledge taken in 1981; the AFQT score, DISPLAY 10.28 which is a linear combination of them; and annual income in 2005 for 12,139 Americans who were selected in the NLSY79 sample, who were available for re-interview in 2006 and who had
complete values of variables used in this and related analyses
Subject
2 6 7 8 9
Arith Word
8 15 30 35 14 27 13 35 21 28
Parag Math
6 6 15 23 811 124 10 13
AFQT
6.841 99.393 47.412 44.022 59.683
Income2005
5,500 65,000 19,000 36,000 65,000
group? What if there were none? (b) What do you conclude about which other group is nearest the maniraptoran dinosaur group? (c) Is the model defensible? (d) Comment on the study design.
32. Galton’s Height Data. Reconsider the data in Exercise 7.26 on heights of adult children and their parents. Ignore the possible dependence of observations on children from the same family for now to answer the following: (a) What is an equation for predicting a child’s adult height from their mother’s height, their father’s height, and their gender? (b) By how much does the male mean height exceed the female mean height for children whose parents’ heights are the same? (c) Find a 95% prediction interval for a female whose father’s height is 72 inches and whose mother’s height is 64 inches.
33. IQ Score and Income. Display 10.28 is a partial listing of the National Longitudinal Study of Youth (NLSY79) subset (see Exercise 2.22) with annual incomes in 2005 (in U.S. dollars, as recorded in a 2006 interview) and scores on the Word Knowledge, Paragraph Comprehension, Arith- metic Reasoning, and Mathematics Knowledge portions of the Armed Forces Vocational Aptitude Battery (ASVAB) of tests taken in 1981. The AFQT is the Armed Forces Qualifying Test percentile, which is based on a linear combination of these four components and which is sometimes used as a general intelligence test score. A previous exercise had to do with the possible dependence of 2005 income on AFQT score. An interesting question is whether there might be some better linear combi- nation of the four components than AFQT for predicting income. Investigate this by seeing whether the component scores are useful predictors of Income2006 in addition to AFQT. Also see whether
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

10.6 Exercises 309
AFQT is a useful predictor in addition to the four test scores. Which test scores seem to be the most important predictors of 2006 income? (Answer with a single p-value conclusion.)
Answers to Conceptual Exercises
1. The initial heights were controlled by Galileo. Distance is the only random quantity.
2. Yes. The extra-sum-of-squares F -test, which compares the model with all three explanatory
variables to the model with lbody only, addresses precisely this issue.
3. (a) The test where ˇ2 and ˇ3 both equal zero can be cast in terms of comparing the full model .ˇ0 C ˇ1lbody C ˇ2lgest C ˇ3llitter/ to the reduced model .ˇ0 C ˇ1lbody/. The t-test where ˇ2 is zero, on the other hand, implies a reduced model of ˇ0 C ˇ1lbody C ˇ3llitter; and the t-test where ˇ3 is zero implies a reduced model of ˇ0 C ˇ1lbody C ˇ2lgest. Neither of these reduced models is the same as the one sought, nor can the results from them be combined in any way to give some answer. (b) Same reason. The t-tests consider models where only one parameter is zero, but the model with both ˇ1 and ˇ2 equal to zero does not enter the picture. Multiple comparison adjustment does nothing to resolve the fact that these tests are different.
4. The model has nearly as many free parameters (8) as it has observations (9). One should expect a good fit to the data at hand, even if the explanatory variables have little relationship to the response.
5. (a) Each of the models represents the relationship between lenergy and lmass as a straight line, within the groups. The first model says that the intercept and slope—and hence the full line—is the same in all groups. The second model says that the slope is the same in each model while the intercepts are different. The third model allows the slopes and the intercepts to differ among all groups. (b) The second model is a reduced model in a test for equal slopes (with possibly differing intercepts); it is the full model for a test of equal intercepts (given equal slopes).
6. No bats of comparable size could be found in both groups. A more correct wording here might be “after adjustment for body size,” but the underlying difficulty is not avoided.
7. (d).
8. The reduced model takes the null hypothesis to be true. The full model, however, encompasses both the null hypothesis and the alternative hypothesis. Thus, the full model is also correct when the reduced model is correct. Put another way, the full model is thought to be adequate from the start; the reduced model is obtained by imposing the constraints of the null hypothesis on the full model.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 11 Model Checking
and Refinement
Multiple regression analysis takes time and care. Dead ends in the pursuit of models are expected and common, especially when many explanatory variables are involved. Frustration and wasted effort can be avoided, however, by going about the analysis in a proper order. In particular, transfor- mations and outliers must be dealt with early on. Although each analysis will be guided by the peculiarities of the particular data and the questions of interest, ini- tial assessment and graphical analysis are usually followed by the fitting of a rich, tentative model and by examination of residual plots. This part of the analysis should suggest whether more investigation into transformation or whether exami- nation of outliers is needed. Some special tools for the latter are provided in this chapter. Once the data analyst has checked that the inferential tools are valid and not seriously influenced by one or two observations, the structure of the model itself can be refined by testing terms to see which should be included.
310
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

11.1
CASE STUDIES
11.1.1 Alcohol Metabolism in Men and Women—
An Observational Study
Women exhibit a lower tolerance for alcohol and develop alcohol-related liver disease more readily than men. When men and women of the same size and drinking history consume equal amounts of alcohol, the women on average carry a higher concentra- tion of alcohol in their bloodstream. According to a team of Italian researchers, this occurs because alcohol-degrading enzymes in the stomach (where alcohol is partially metabolized before it enters the bloodstream and is eventually metabolized by the liver) are more active in men than in women. The researchers studied the extent to which the activity of the enzyme explained the first-pass alcohol metabolism and the extent to which it explained the differences in first-pass metabolism between women and men. Their data (read from a graph) are listed in Display 11.1. (Data from M. Frezza et al., “High Blood Alcohol Levels in Women,” New England Journal of Medicine 322 (1990): 95–99.)
The subjects were 18 women and 14 men, all volunteers living in Trieste. Three of the women and five of the men were categorized as alcoholic. All subjects received ethanol, at a dose of 0.3 grams per kilogram of body weight, orally one day and intravenously another, in randomly determined order. Since the intravenous admin- istration bypasses the stomach, the difference in blood alcohol concentration—the
First-pass metabolism of alcohol in the stomach (mmol/liter-hour) and gastric alcohol dehydro- genase activity in the stomach (mol/min/g of tissue) for 18 women and 14 men
DISPLAY 11.1
11.1 Case Studies 311
Alcoholic (1=A, 0=N) Female (1=F, 0=M)
Gastric activity Metabolism
Subject
Alcoholic (1=A, 0=N) Female (1=F, 0=M)
Gastric activity Metabolism
Subject
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

312 Chapter 11 Model Checking and Refinement
DISPLAY 11.2
First-pass metabolism and gastric alcohol dehydrogenase activity in alcoholic and nonalcoholic men and women
Females Males Nonalcoholics
Alcoholics
12 10 8 6 4 2 0
12345
Gastric AD Activity (mmol/min/g of tissue)
concentration after intravenous administration minus the concentration after oral administration—provides a measure of the “first-pass metabolism” in the stom- ach. In addition, gastric alcohol dehydrogenase (AD) activity (activity of the key enzyme) was measured in mucus samples taken from the stomach linings. The data are plotted in Display 11.2.
Several questions arise. Do levels of first-pass metabolism differ between men and women? Can the differences be explained by postulating that men have more dehydrogenase activity in their stomachs? Are the answers to these questions complicated by an alcoholism effect?
Statistical Conclusion
The following inferences pertain only to individuals with gastric AD activity levels between 0.8 and 3.0 mol/min/g. No reliable model could be determined for val- ues greater than 3.0. There was no evidence from these data that alcoholism was related to first-pass metabolism in any way (p-value D 0:93, from an F -test for sig- nificance of alcoholism and its interaction with gastric activity and sex.) Convincing evidence exists that first-pass metabolism was larger for males than for females over- all (two-sided p-value D 0:0002, from a rank-sum test) and that gastric AD activity was larger for males than for females (two-sided p-value D 0:07 from a rank-sum test). Males had higher first-pass metabolism than females even after accounting for differences in gastric AD activity (two-sided p-value D 0:0003 from a t-test for
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
First-Pass Metabolism (mmol/liter-hour)

11.1 Case Studies 313
equality of male and female slopes when both intercepts are zero). For a given level of gastric dehydrogenase activity, the mean first-pass alcohol metabolism for men is estimated to be 2.20 times as large as the mean first-pass alcohol metabolism for women (approximate 95% confidence interval from 1.37 to 3.04).
Scope of Inference
Because the subjects were volunteers, no inference to a larger population is justified. The inference that men and women do have different first-pass metabolism is greatly strengthened, however, by the existence of a physical explanation for the difference. The conclusions about the relationship between first-pass metabolism, gastric AD dehydrogenase activity, and sex are restricted to individuals whose gastric AD activity is less than 3. The sparseness of data for individuals with greater gastric AD activity levels prevents any resolution of the answers in the wider range.
11.1.2 The Blood–Brain Barrier—A Controlled Experiment
The human brain is protected from bacteria and toxins, which course through the bloodstream, by a single layer of cells called the blood–brain barrier. This barrier normally allows only a few substances, including some medications, to reach the brain. Because chemicals used to treat brain cancer have such large molecular size, they cannot pass through the barrier to attack tumor cells. At the Oregon Health Sciences University, Dr. E. A. Neuwelt developed a method of disrupting the barrier by infusing a solution of concentrated sugars.
As a test of the disruption mechanism, researchers conducted a study on rats, which possess a similar barrier. (Data from P. Barnett et al., “Differential Perme- ability and Quantitative MR Imaging of a Human Lung Carcinoma Brain Xenograft in the Nude Rat,” American Journal of Pathology 146(2) (1995): 436–49.) The rats were inoculated with human lung cancer cells to induce brain tumors. After 9 to 11 days they were infused with either the barrier disruption (BD) solution or, as a control, a normal saline (NS) solution. Fifteen minutes later, the rats received a standard dose of the therapeutic antibody L6-F(ab0)2. After a set time they were sacrificed, and the amounts of antibody in the brain tumor and in normal tissue were measured. The time line for the experiment is shown in Display 11.3. Measurements for the 34 rats are listed in Display 11.4.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 11.3 Time line for blood–brain barrier disruption experiment
Days After Inoculation 15 min Sacrifice Time
Inoculation with cancer cells
Treatment infusion
Antibody
Sacrifice; measurement of antibody in tumor

314
Chapter 11 Model Checking and Refinement
DISPLAY 11.4
Case
Response variable, design variables (explanatory variables associated with the assignment of experimental units to groups), and several covariates (explanatory variables not associated with the assignment) for 34 rats in the blood–brain barrier disruption experiment
Response variable
Brain tumor count (per gm) Liver count (per gm)
Design variables
Sacrifice time (hours) Treatment
Covariates
Days post inoculation Tumor weight (10–4 grams) Weight loss (grams) Initial weight (grams)
Sex
Since the amount of the antibody in normal tissue indicates how much of it the rat actually received, a key measure of the effectiveness of transmission across the blood–brain barrier is the ratio of the antibody concentration in the brain tumor
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

11.1 Case Studies 315
to the antibody concentration in normal tissue outside of the brain. The brain tumor concentration divided by the liver concentration is a measure of the amount of the antibody that reached the brain relative to the amount of it that reached other parts of the body. This is the response variable: both the numerator and denominator of this ratio are listed in Display 11.4. The explanatory variables in the table comprise two categories: design variables are those that describe manipulation by the researcher; covariates are those measuring characteristics of the subjects that were not controllable by the researcher.
Was the antibody concentration in the tumor increased by the use of the blood– brain barrier disruption infusion? If so, by how much? Do the answers to these two questions depend on the length of time after the infusion (from 1/2 to 72 hours)? What is the effect of treatment on antibody concentration after weight loss, total tumor weight, and other covariates are accounted for? A coded scatterplot relating to the major questions is shown in Display 11.5.
Statistical Conclusion
The median antibody concentration in the tumor (relative to that in the liver) was estimated to be 2.22 times as much for rats receiving the barrier disruption infusion than for those receiving the control infusion (95% confidence interval, from 1.56 to
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 11.5
Log-log scatterplot of the ratio of antibody concentration in brain tumor to antibody concentration in liver versus sacrifice time, for 17 rats given the barrier disruption infusion and for 17 rats given a saline (control) infusion
3 2 1
10 –1
–2 –3 –4 –5 –6 –7
Saline control Barrier disruption
Log 0 1 2 3 4 Scale
10
0.1 0.01 0.001
0.5 3 24 72
Sacrifice Time (hours)
Tumor-to-Liver Concentration Ratio

316 Chapter 11 Model Checking and Refinement
3.15 times as much). This multiplicative effect appears to be constant between 1/2 and 72 hours after the infusion (the p-value for a test of interaction between treatment and sacrifice time is 0.92, from an F -test on 3 and 26 degrees of freedom).
Scope of Inference
One hitch in this study is that randomization was not used to assign rats to treat- ment groups. This oversight raises the possibility that the estimated relationships might be related to confounding variables over which the experimenter exercised no control. Including the measured covariates in the model helps alleviate some concern, and the results appear not to have been affected by these potential con- founding variables. Nevertheless, causal implications can only be justified on the tenuous assumption that the assignment method used was as effect-neutral as a random assignment would have been.
11.2 RESIDUAL PLOTS
Faced with analyzing data sets like those involved in the blood–brain barrier and alcohol metabolism studies, a researcher must seek good-fitting models for answer- ing the questions of interest, bearing in mind the model assumptions required for least squares tools, the robustness of the tools against violations of the assump- tions, and the sensitivity of these tools to outliers. Since model-building efforts are wasted if the analyst fails to detect problems with nonconstant variance and out- liers early on, it is wise to postpone detailed model fitting until after outliers and transformation have been thoroughly considered.
Much can be resolved from initial scatterplots and inspection of the data, but it is almost always worthwhile to obtain the finer picture provided by a residual plot. Creating this plot involves fitting some model in order to get residuals. On the basis of the scatterplots, the analyst can choose some tentative model or models and conduct residual analysis on these, recognizing that further modeling will follow.
Selecting a Tentative Model
A tentative model is selected with three general objectives in mind: The model should contain parameters whose values answer the questions of interest in a straightforward manner; it should include potentially confounding variables; and it should include features that capture important relationships found in the initial graphical analysis.
It is disadvantageous to start with either too many or too few explanatory variables in the tentative model. With too few, outliers may appear simply because of omitted relationships. With too many (lots of interactions and quadratic terms, for example), the analyst risks overfitting the data—causing real outliers to be explained away by complex, but meaningless, structural relationships. Overfitting becomes less of a problem when the sample sizes are substantially larger than the number of model parameters.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

11.2 Residual Plots 317
For large sample sizes, therefore, the initial tentative model for residual analysis can err on the side of being rich, including potential model terms that may not be retained in the end. For small sample sizes, several tentative models may be needed for residual analysis; and the data analyst must guard against including terms whose significance hinges on one or two observations. As evident in the strategy for data analysis laid out in Display 9.9, the process of trying a model and plotting residuals is often repeated until a suitable inferential model is determined.
Example—Preliminary Steps in
the Analysis of the Blood–Brain Barrier Data
The coded scatterplot in Display 11.5 is a good starting point for the analysis. Apparently, the disruption solution does allow more antibody to reach the brain than the control solution does; this effect is about the same for all sacrifice times (time between antibody treatment and sacrifice); an increasing proportion of anti- body reaches the brain with increasing time after infusion; and this increasing relationship appears to be slightly nonlinear. A matrix of scatterplots and a corre- lation matrix (an array showing the sample correlation coefficients for all possible pairs of variables), which are not shown here, indicate further that the covariates— days after inoculation, initial weight, and sex of the rat—are associated with the response. These covariates are also related to the treatment given. (Recall that randomization was not used.) In particular, rats treated at longer days after inoc- ulation were also assigned to the longer sacrifice times. Furthermore, all male rats were assigned to the longer sacrifice times.
This initial investigation suggests the following tentative regression model (using the shorthand model specification of Section 9.3.5):
fantibody j SAC, TREAT, DAYS, FEM, weight, loss, tumorg
D SAC C TREAT C (SAC  TREAT) C DAYS C FEM C weight C loss C tumor;
where antibody is the logarithm of the ratio of antibody in the brain tumor to that in the liver. SAC is the sacrifice time factor with four levels; TREAT is treatment, with two levels; DAYS is days after inoculation, with three levels; and FEM is sex, with two levels. Weight, loss, and tumor are the initial weight, weight loss, and tumor weight variables. Display 11.5 shows a strong linear effect of log sacrifice time on the response, but some additional curvature may be present as well. To avoid mismodeling the effect of sacrifice time at the start, it is treated as a factor with four levels. Similarly, the coded scatterplot suggests that the difference between the two treatments may be greater for the shorter sacrifice times than for the longer ones. Consequently, the sacrifice time by treatment interaction terms are included in the tentative model. Although more terms may be added to this model later, it captures the most prominent features of the scatterplot. Display 11.6 shows the plot of residuals versus the fitted values from the regression model. (Note: Even if prior experience or initial inspection had not led the researchers to consider the logarithms of the response, the coded scatterplot and residual plot would have revealed that the variability increases with increasing response, leading them to the same consideration.)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

318 Chapter 11 Model Checking and Refinement
DISPLAY 11.6
Scatterplot of residuals versus fitted values from the fit of the logged response on a rich model for explanatory variables—brain–barrier data
#31
#34
1.0 0.5 0 – 0.5 –1.0
–4 –3 –2 –1 0 1 2
Fitted Values
The residual plot in Display 11.6 exemplifies the ambiguity that can arise with small data sets. Is there a funnel-shaped pattern, or is the apparent funnel only due to a few outliers? The usual course of action consists of three steps:
1. Examine the outliers for recording error or contamination.
2. Check whether a standard transformation resolves the problem.
3. If neither of these steps works, examine the outliers more carefully to see
whether they influence the conclusions (following the strategy suggested in Section 11.3).
The residual plot is based on a response that has already been transformed
into its logarithm. A reciprocal transformation corrects more pronounced funnel- shaped patterns than does the log. Here, however, it does not help, and there is no suggestion of a recording error. Consequently, the analyst must proceed with further model fitting, paying careful attention to the roles of observations 31 and 34.
Example—Preliminary Steps in the Analysis of the
Alcohol Metabolism Data
Refer to the coded scatterplot in Display 11.2. The next step is to examine a residual plot for outliers and to assess the need for transformation. The plot in Display 11.7 is a residual plot from the regression of first-pass metabolism on gastric AD activity (gast), an indicator variable for females ( fem), an indicator for alcoholics (alco), and the interaction terms gast  fem, fem  alco, gast  alco, and gast  fem  alco. (The last term is a three-factor interaction term, formed as the product of three explanatory variables.)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Residuals

11.3 A Strategy for Dealing with Influential Observations 319
DISPLAY 11.7
Residual plot from the regression of first-pass metabolism on gastric activity, sex indicator, alcoholism indicator, and all two- and three-factor interactions
3 2 1 0
–1 –2 –3
#32
#31
0 5 10 15 Fitted Value
The plot draws attention to two observations: one that has a considerably larger residual than the rest and one that has a fitted value quite a bit larger than the rest. These are cases 31 and 32, and they appear in the coded scatterplot of Display 11.2 in the upper right-hand corner, separated from the rest of the points. There appears to be a downward trend in the residual plot, excluding cases 31 and 32. This could reflect a model that is heavily influenced by one or two observations and consequently does not fit the bulk of the observations well.
11.3 A STRATEGY FOR DEALING WITH INFLUENTIAL OBSERVATIONS
Least squares regression analysis is not resistant to outliers. One or two observations can strongly influence the analysis, to the point where the answers to the questions of interest change when these isolated cases are excluded. Although any influential observation that comes from a population other than the one under investigation should be removed, removing an observation simply because it is influential is not justified. In any circumstance, it is unwise to state conclusions that hinge on one or two data points. Such a statistical study should be considered extremely fragile.
There are two approaches for dealing with excessively influential observations in regression analysis. One is to use a robust and resistant regression procedure. The other is to use least squares but to examine outliers and influence closely to
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Residual FPM

320 Chapter 11 Model Checking and Refinement
see whether the suspect observations are indeed influential, why they are influential (this can help dictate the subsequent course of action), and whether they provide some interesting extra information about the process under study. Using a robust and resistant regression procedure is particularly useful if past experience indicates that the response distribution tends to have long tails and that outliers are an expected nuisance. When influential observations are discovered in the course of a regression analysis, however, The Statistical Sleuth recommends closer examination. This often clarifies the problems and sometimes reveals additional, unexpected information.
Assessment of Whether Observations Are Influential
The strategy for assessing influence involves temporarily removing suspected influ- ential observations to see whether the answers to the questions of interest change. Does the evidence from a test change from slight evidence to convincing evidence? Does the decision to include a term in the model change? Does an important estimate change by a practically relevant amount? If not, the observation is not influential and the analysis can proceed as usual. If so, further action must be taken.
What to Do About Influential Observations
If an observation is influential and it substantially differs from the remaining data in its explanatory variable values, perhaps it is being accorded too much weight in fitting a model over a sparsely represented region of the explanatory variables. For example, given 30 observations for X between 0 and 5 and a single value of X at 15, it is unrealistic to try to model the regression of Y on X over the entire range of 0 to 15. The observations in the sparsely represented region can be removed, the model fit on the remaining data points, and conclusions stated only for the restricted range of explanatory variables. This restriction should be stated explicitly, with the added comment that more data would be needed to model the regression accurately over the broader range of explanatory variables.
If an influential observation is not particularly unusual in its explanatory vari- able values, and if no definitive explanation for its unique behavior can be found, omitting it cannot be justified. More data are needed to answer the questions of interest. As a last resort, the results can be reported with and without the influential observation.
A complete strategy is summarized in Display 11.8. Although this is not stated explicitly in the strategy, the analyst should first check any unusual observation for recording accuracy and for alternative explanations of its unusualness before proceeding to this statistical approach.
Example—Alcohol Metabolism Study
The tentative model is fit with and without cases 31 and 32, to examine which aspects of the fit change and by how much. The resulting changes in estimates, standard errors, and p-values are shown in Display 11.9.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 11.9
Variable
Regression parameter estimates, standard errors, and p-values from the regression of first-pass metabolism on gastric activity, an indicator for female, an indicator for alcoholic, and all second- and third-order interactions: first with all observations and then with all observations except 31 and 32
11.3 A Strategy for Dealing with Influential Observations 321
DISPLAY 11.8 A strategy for dealing with suspected influential cases Do the conclusions change when the case is deleted?
NO YES
Proceed with the case in- cluded. Study it to see if anything can be learned.
Is there reason to believe the case belongs to a popu- lation other than the one under investigation?
YES NO
Does the case have unusu- Omit the case and proceed. ally “distant” explanatory
variable values?
Estimate
Estimate
YES
Omit the case and proceed. Report conclusions for the reduced range of explana- tory variables.
NO
Not much can be said. More data (or clarification of the influential case) are need- ed to resolve the questions.
All 32 observations
Cases 31 and 32 removed
Standard error
Two-sided p-value
0.11 <0.0001 0.28 0.20 0.013 0.61 0.18 0.69 Standard error p-value 0.61 0.0045 0.74 0.40 0.15 0.72 0.38 0.80 A striking consequence of the exclusion of cases 31 and 32 is the drop in sig- nificance of the interaction of gastric activity and sex from a p-value of 0:013 to one of 0:15. The reason for this change is evident from the coded scatterplot in Display 11.2. Ignoring the effect of alcoholism, imagine the slope in the regression of first-pass metabolism on gastric AD activity for males and females separately. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Two-sided 322 Chapter 11 Model Checking and Refinement 11.4 The slope for males is substantially greater with cases 31 and 32 included, than with them excluded. What does this mean? Maybe the estimated slope with those cases is accurate and males have a larger slope than females; but alternatively, perhaps the rela- tionship is not a straight line for gastric activity greater than 3. It is difficult to know how to model the relationship in that region. Proceeding from the guideline that it is unwise to state conclusions that hinge on one or two data points, the prudent action is to exclude cases 31 and 32, and to restrict the model building and conclusions to the restricted range of gastric AD activity less than 3. CASE-INFLUENCE STATISTICS Case-influence statistics are numerical measures associated with the individual influ- ence of each observation (each case). When provided by a statistical computer program, they are useful for two reasons: they can help identify influential observa- tions that may not be revealed graphically; and they partition the overall influence of an observation into what is unusual about its explanatory variable values and what is unusual about its response relative to the fitted model. This partition may be useful in following the strategy suggested in Display 11.8 for dealing with cases of suspect influence. 11.4.1 Leverages for Flagging Cases with Unusual Explanatory Variable Values The leverage of a case is a measure of the distance between its explanatory variable values and the average of the explanatory variable values in the entire data set. As illustrated in the alcohol metabolism study, cases with high leverage may exert strong influence on the results of model fitting. When only a single explanatory variable X is involved, the leverage of the ith case is where sX is the sample standard deviation of X. Aside from the parts involving n, the first formulation shows that the leverage is a distance of Xi from X , in units of standard deviations; and the second formulation shows that the leverage is the proportion of the total sum of squares of the explanatory variable contributed by the ith case. When two or more explanatory variables are involved, the leverage can only be expressed in matrix notation. The interpretation is a straightforward extension of the one-variable case, however. The leverage for case i is a measure of the distance of case i from the average (in a multivariable sense). The one aspect of leverage in the multiple regression setting that is not an obvious extension of the preceding formulas is that the distance from the average is relative to the joint spread of the explanatory variables. Display 11.10 illustrates a problem in which one case is "#2 2 1 Xi 􏰀X 1 .Xi 􏰀X/ 1 hi D.n􏰀1/ s Cn or P.X􏰀X/2 Cn; X Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 11.10 An illustration of what is meant by ‘‘far from the average’’ of multiple explanatory variables when they are correlated This point is unusual in its explanatory variable values, even though it is not unusual in either X 1 or X 2 individually. X2 11.4 Case-Influence Statistics 323 X1 relatively far from the two-dimensional scatter of the other cases, although it is not particularly unusual in either of the single dimensions. It is important to identify this case, since it stands alone. Because it would be largely responsible for dictating the location of the estimated regression surface in the surrounding region, the point has a high potential for influence. The multiple regression version of leverage would be large for such an observation. Cases with Large Leverage Leverages are greater than 1/n and less than 1 for each observation, and the average of all the hi ’s in a data set is always p=n, where p is the number of regression coef- ficients. Leverages also depend on what model is being entertained. The standard deviation of the residual for the ith case is related to its leverage: SD.Residuali / D  p.1 􏰀 hi /: A case with large leverage has a residual with low variability. Because its explana- tory variable values are so unusual, it dictates the location of the estimated regression over the whole region in its vicinity; no other points in the region share the responsibility. Because its residual must be small, this case acts like a mag- net on the estimated regression surface. If, however, its response falls close to the regression surface (as determined by the remaining observations alone), it is not necessarily influential. Therefore, while a large leverage does not necessarily indi- cate that the case is influential, it does imply that the case has a high potential for influence. Cases with large leverage can easily be overlooked in scatterplots and other graphical displays. Display 11.10 shows how a case with high leverage can be visible in a two-dimensional scatterplot, even though it would not be exceptional in either of the component one-dimensional histograms. Similarly, a case with high leverage may be visible in a three-dimensional plot but not in any of the component two- dimensional scatterplots. Therefore, examining the numerical measures of leverage Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 324 Chapter 11 Model Checking and Refinement DISPLAY 11.11 Case influence statistics for three sample situations Influential case Including Excluding Note the scales Cook’s Distances 161 000 1 Leverages 0 +2 –2 Studentized Residuals A. High leverage and mild departure changes the slope so that the residual is small. Cook’s Distance identifies the offending case. B. High leverage and huge departure drastically pulls the line away from all observations. Cook’s Distance identifies the case. C. Low leverage does not allow the large departure to alter the slope, so it ends up with a big residual. Cook’s Distance shows a mild problem. by themselves is important. The leverage measure hi would identify the case in Display 11.10 because its distance takes into account the correlations among the variables. It is difficult to say how large a value of hi is sufficiently large to warrant further attention. Since the average of the hi’s is p=n, some statisticians (and statistical computer programs) use twice the average—2p=n—as a lower cutoff for flagging cases that have a high potential for excessive influence. This formulation is somewhat arbitrary. The main point is to use the leverage measure in conjunction with the other case influence statistics to get some overall assessment of influence. Display 11.11 will show one way to display the leverages in conjunction with other case influence statistics. Leverage Computations Most statistical computer programs will carry out the calculations for leverage as part of their regression routine. If not, the calculations may be made by using the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 11.4 Case-Influence Statistics 325 formula  SE.fiti / 2 hiD O : The values for SE(fiti) are often available. If not, they may be found with the method in Section 10.2.3. 11.4.2 Studentized Residuals for Flagging Outliers A studentized residual is a residual divided by its estimated standard deviation. Some residuals naturally have less variation than others because of their leverages. Therefore, the usual residual plot may not direct attention to cases whose residuals lie much farther from zero than expected. The studentized residuals, resi studresi D p ; O 1􏰀hi put all residuals on a common scale: numbers of standard deviations. Since roughly 95% of normally distributed values fall within two standard deviations of their mean, it is common to investigate observations whose studentized residuals are smaller than 􏰀2 or larger than 2. Of course, it is not unusual to find roughly 5% of observations outside this range, and 5% can be a sizeable number if the sample size is large. (Technically, this is called the internally studentized residual; see Note 1 at the end of Section 11.4.4.) As with leverages, studentized residual calculations are typically performed by the statistical computer program. Example—Observation #31 from the First-Pass Metabolism Study For the fit of the regression of metabolism on gastric activity, sex indicator, and their interaction, the observed value for the 31st observation is 9.5 and its fitted value is 11.0024. This leaves the residual of res31 D .9:5􏰀11:0024/ D 􏰀1:5024. From computer calculations, its leverage is h31 D 0:5355. Notice that the rough lower cutoff for flagging large influence, 2p=n, is 2  4=32 D 0:25; according to that rule, case 31 has a high potential for influence. The estimated standard deviation of the residual is 1:20730.1 􏰀 0:5355/1=2 D 0:8228. The studentized residual is 􏰀1:8260. This is moderately far from zero, but not alarmingly so. 11.4.3 Cook’s Distances for Flagging Influential Cases Cook’s Distance is a case statistic that measures overall influence—the effect that omitting a case has on the estimated regression coefficients. For case i, Cook’s Distance can be represented as Xn .YOj.i/􏰀YOj/2 DiD pO2 ; jD1 where YOj is the jth fitted value in a fit using all the cases; YOj.i/ is the jth fitted value in a fit that excludes case i from the data set; p is the number of regression Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 326 Chapter 11 Model Checking and Refinement 11.4.4 coefficients; and O 2 is the estimated variance from the fit, based on all observations. The numerator measures how much the fitted values (and, therefore, the param- eter estimates) change when the ith case is deleted. The denominator scales this difference in a useful way. A case that is influential, in terms of the least squares estimated coefficients changing when it is deleted, will have a large value of Cook’s Distance. An equivalent expression for Cook’s Distance is DiD1.studresi/2 hi : p 1􏰀hi This alternate expression is useful for computing, since it does not require that the ith case actually be deleted. More importantly, it shows that an influential case—with a large Cook’s Distance—is influential because it has a large studentized residual, a large leverage, or both. Cook’s Distance for case 31 of the alcohol metabolism data is 0.9610. Some statisticians use a rough guideline that a value of Di close to or larger than 1 indicates a large influence. Realize, however, that Cook’s Distance measures the influence on all the regression coefficients. By identifying potentially problematic cases, the data analyst can directly refit the model with and without the indicated observations to see whether the answers to the important questions of interest change. The effect of the case removal on a single coefficient of interest may be much more or much less dramatic than what is indicated by the general measure Di . Nevertheless, Cook’s Distance is very useful for calling attention to potentially problematic cases. A Strategy for Using Case Influence Statistics Inspecting graphical displays and scatterplots may alert the analyst to the need for case influence investigations. In addition, the presence of statistically significant, complex effects that make little sense may indicate problems with influence. But when the residual plot from fitting a good inferential model fails to suggest any problems, there is generally no need to examine case influence statistics at all. The suggested strategy in Display 11.8 requires some assessment of influence, of the unusualness of a case’s explanatory variable values, and of the degree to which a case is an outlier. Therefore, the trio of case influence measures—Di , hi , and studresi (or similar trios described later)—are examined jointly. Since values of these measures exist for every observation in the data set, the examination of a full list may be difficult. Some computer programs use rough guidelines (such as Di > 1, hi > 2p=n, or jstudresi j > 2) to flag the relevant cases. Ideally, a graphical display of the case statistics, like Display 11.12 for the alcohol metabolism data, makes case influence analysis convenient.
In the top plot, the values of Cook’s Distance for cases 31 and 32 are obviously substantially larger than the rest, indicating what was previously observed: these two observations are influential. In addition, they both have high leverages, as one would expect from their gastric AD activity values’ being so much larger than the rest. One other case—number 17—has a large leverage. This is the female with
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

11.4 Case-Influence Statistics 327
DISPLAY 11.12
Case-influence statistics for the fit of first-pass metabolism on gastric activity, sex indicator, and their interaction
1.0 0.8 0.6 0.4 0.2
0.5 0.4 0.3 0.2 0.1
3 2 1 0
–1 –2
5 10 15 20 25 30
5 10 15 20 25 30
5 10 15 20 25 30
Case Number
the largest gastric AD activity value. No evidence indicates that this observation is influential, however, so it need not be studied further.
Notes About Case Influence Statistics
1. Externally studentized residuals. A potential problem with the internally student- ized residual is that the estimate of  from the fit with all observations may be tainted by case i if i is indeed an outlier. The externally studentized residual is
 resi
s t u d r e s i D O p 1 􏰀 h ;
.i/ i
where O.i/ is the estimate of the standard deviation about the regression line
from the fit that excludes case i.
2. External studentization in measures of influence. If external studentization makes
sense for residuals, it also makes sense for the measure of influence. Although it is not widely used, an externally studentized version of Cook’s Distance, Di, can be obtained by using O.i/ in place of O in the definition—or, equivalently, by using studresi in place of studresi in the computing version. A measure that is widely used is DFFITSi, which is .pDi/1=2. It measures influence in the
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Studentized Cook’s Residual Leverage Distance

328
Chapter 11 Model Checking and Refinement
11.5
same way as the externally studentized version of Cook’s Distance, but on a slightly different scale. The decision about which of these measures to use is based largely on which is available in the statistical computer program.
3. These case statistics address one-at-a-time influence. If two or more cases are jointly influential and, in particular, if they are together in an unusual region of the explanatory variables, then Cook’s Distance and the leverage measure may fail to detect their joint influence and joint leverage. The user must be on guard for this situation. It is always possible to remove a pair of observations to investigate their joint influence directly.
REFINING THE MODEL 11.5.1 Testing Terms
The key assumption for the correctness of the statistical conclusions is that the terms in the model sufficiently describe the regression of the response on the explanatory variables. It is misleading to leave out important explanatory vari- ables. On the other hand it is also important to use Occam’s Razor (Section 10.4.6) to trim away nonessential terms. Therefore, after transformations and outliers have been resolved, the analysis focuses on finding a simple, good-fitting model.
Example—Alcohol Metabolism Study
Once the decision is made to set cases 31 and 32 aside, the analyst must refit the model and examine the new residual plot. No additional problem is indicated, so model refinement may begin.
Since alcoholism is not of primary concern, and since so few alcoholics are included in the data set, it would be helpful if this variable could be ignored. One approach in the investigation is to test whether all the terms involving alcoholism in the tentative model can be dropped, using an extra-sum-of-squares F -test. There are four such terms: alco, gastalco, femalco, and gastfemalco. The F -statistic is 0.21. By comparison to an F -distribution on 4 and 22 degrees of freedom, the p-value is 0:93, so the data are consistent with there being no alcoholism effect.
With alcoholism left out, the resulting model for consideration is
fmetabolism j gast, femg D ˇ0 C ˇ1gast C ˇ2 fem C ˇ3.gast  fem/;
the separate regression lines model. The estimates of regression parameters, their standard errors, and their p-values appear in Display 11.13.
It may appear that sex plays no significant role, because the parameters ˇ2 (the amount by which the women’s intercept exceeds the men’s intercept) and ˇ3 (the amount by which the women’s slope exceeds the men’s slope), have nonsignificant p-values individually. This is deceiving. A sex difference is distinctly noticeable on the scatterplot (Display 11.2). The p-values suggest, however, that there is no need for different slopes if different intercepts are included in the model, and no need for different intercepts if different slopes are included.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 11.13
Least squares estimates for the regression of first-pass metabolism on gastric AD activity, sex, and their interaction (excluding cases 31 and 32)
DISPLAY 11.14
In Display 11.2, the intercepts for both men and women are near zero. Since, in addition, a zero intercept makes sense in this application (because there is no first-pass metabolism if there is no activity of the enzyme), it is useful to force both lines to go through the origin, by dropping the constant term and the female indicator variable:
fmetabolism j gast; femg D ˇ1 gast C ˇ2 .gast  fem/:
In this model, first-pass metabolism is directly proportional to gastric activity, but the constant of proportionality differs for men and for women. The F-statistic comparing this model to the one whose fit is summarized in Display 11.13 is 0.06 with 2 and 26 degrees of freedom, so the smaller model is adequate.
The fit to the new model appears in Display 11.14. In this model, both terms are essential, so this is accepted as the final version for inference. The conclusions stated in the summary of statistical findings are based on this fit. Notice in particular that, for any level of gastric AD activity (in the range of 0.8 to 3.0), the mean first-pass metabolism for males divided by the mean first-pass metabolism for females is ˇ1=.ˇ1 Cˇ2/, which is estimated as 2.20. Thus, the mean for males is estimated to be 2.20 times the mean for females, even after accounting for gastric dehydrogenase activity.
Results for mean metabolism being proportional to gastric activity
Standard Two-sided Variable Estimate error t-statistic p-value
<0.0001 <0.0001 Partial Residual Plots A scatterplot exhibits only the marginal association of two variables, which may depend heavily on their mutual association with a third variable. The question 11.5.2 11.5 Refining the Model 329 Variable Estimate Standard error Two-sided t-statistic p-value 0.087 0.93 3.843 0.0007 −0.269 0.79 −1.351 0.19 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 330 Chapter 11 Model Checking and Refinement DISPLAY 11.15 Scatterplot of log brain weight versus log gestation length, and scatterplot of the partial resid- uals of log brain weight (adjusted for log body weight) versus log gestation length—mammal brain weight data from Section 9.1.2 8 6 4 2 0 8 6 4 2 0 of interest may be better addressed by a plot showing the association of the two variables, after getting the effect of the third variable out of the way. The top scatterplot in Display 11.15 shows log brain weight versus log gestation length for the 96 species of mammals examined in the study discussed in Section 9.1.2. An important question of interest is whether an association exists between brain weight and gestation, after body weight is accounted for. The multiple regres- sion coefficient addresses this directly, but a graphical display in conjunction with it would be helpful. Partial Residual of Log Brain Weight Adjusted for Log Body Weight Log Brain Weight (g) 3456 Log Gestation (days) 3456 Log Gestation (days) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 11.5 Refining the Model 331 Suppose that flbrain j lbody; lgestg D ˇ0 C ˇ1 lbody C f .lgest/; where lbrain, lbody, and lgest represent the logarithms of brain weight, body weight, and gestation length, and where the last term is some unspecified function of lgest. The purpose of a partial residual plot is to explore the nature of the func- tion f.lgest/, including whether it can be adequately approximated by a single linear term ˇ2lgest and whether the estimated relationship might be affected by one or several influential cases. In this setup, f .lgest/ D flbrain j lbody; lgestg 􏰀 .ˇ0 C ˇ1 lbody/; so it would be useful to plot lbrain 􏰀 .ˇ0 C ˇ1lbody/ versus lgest to visually explore the function f .lgest/. Since the ˇ’s are unknown, however, this is impossible. They can be replaced by estimates, but not just any estimates will work. It would not be appropriate to estimate them by the regression of lbrain on lbody alone, since the necessary coefficients ˇ0 and ˇ1 are those in the regression of lbrain on lbody and lgest. On the other hand, since f .lgest/ is unspecified, it is unclear how to include it in the model. Partial Residuals The idea behind a partial residual plot is to approximate f.lgest/ with the linear function ˇ2lgest. This may be a crude approximation, but it is often good enough to estimate the correct ˇ0 and ˇ1 for plotting purposes. The following steps are used to draw a partial residual plot of lbrain versus lgest, adjusting for lbody: 1. Obtain the estimated coefficients in the linear regression of lbrain on lbody and lgest: flbrain j lbody; lgestg D ˇ0 C ˇ1 lbody C ˇ2 lgest. 2. Compute the partial residuals as pres D lbrain 􏰀 ˇO0 􏰀 ˇO1lbody. 3. Plot the partial residuals versus lgest. A partial residual plot is shown in the lower scatterplot of Display 11.15. After getting the effect of log body weight out of the way, less of an association remains between log brain weight and log gestation, but some association does persist and a linear term should be adequate to model it. When the effects of many other explanatory variables need to be “subtracted,” an easier calculation formula is available. Steps 1 and 2 of the method just described can be replaced with these: 1. Obtain the residuals, res, from the fit to the linear regression of lbrain on lbody and lgest (include all explanatory variables—those whose effects are to be subtracted, and the one that is to be plotted). 2. Compute the partial residuals as pres D res C ˇO2lgest (the residuals from the fit with all explanatory variables plus the estimated component associated with the effect of the explanatory variable under question). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 332 Chapter 11 Model Checking and Refinement The meaning of the partial residuals is clearer in the first version, but the cal- culation is often more straightforward with the second. Because of this calculating formula, partial residual plots are sometimes referred to as component plus residuals plots. Notes About Partial Residuals When Should Partial Residual Plots Be Used? Partial residuals are primarily useful when analytical interest centers on one explanatory variable whose effect is expected to be small relative to the effects of others. They are also useful when uncertainty exists about a particular explanatory variable that needs to be modeled carefully or when the underlying explanation for why an observation is influential on the estimate of a single coefficient needs to be understood. Augmented Partial Residuals. Rather than using ˇ2lgest as an approximation to f.lgest/, some statisticians prefer to use ˇ2lgest C ˇ3lgest2. Here, partial resid- uals are obtained just as in the preceding algorithms, except that lgest2 is also included as an explanatory variable in step 1. (In step 2 of the component-plus- residual version, pres D res C ˇO2lgest C ˇO3lgest2.) If they are equally convenient to use, the augmented partial residuals are preferred. In many cases, however, the difference between the partial residual and the augmented partial residual is slight. Example—Blood–Brain Barrier The residual plot in Display 11.6 indicated some potential outliers, but further investigation does not show that these points are influential in determining the structure of the model or in answering the questions of interest (see Exercise 11.18). The key explanatory variables are the indicator variable for whether the rat received the disruption infusion or the control infusion, the length of time after infusion that the rat was sacrificed, and the interaction of these. The additional covariates should be given a chance to be included in the model, for two rea- sons. First (and most importantly), since randomization was not used, it behooves the researchers to demonstrate that the differences in treatment effects cannot be explained by differences in the types of rats that received the various treatments. Second, even if randomization had been used, including important covariates can yield higher resolution. If the covariates have some additional association with the response, smaller standard errors and more powerful tests should result from their inclusion. Among the covariates, sex and days after inoculation are associated with both the response and the design variables. To some extent the effects of these variables are confounded, since their effects on the response cannot be separated. On the other hand, the effects of the design variables can be examined after the covariates are accounted for, and the effects of the covariates can be examined after the design variables are accounted for. This is shown graphically in the partial residual plots of Display 11.16. The top scatterplot indicates that the relationship between the response and the design variables (sacrifice time and treatment) is much the same when the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 11.16 Some partial residual plots for the blood–brain barrier data, with log of antibody concentration ratio (brain tumor-to-liver) as response 11.5 Refining the Model 333 Augmented Partial Residual (response adjusted for design variables and other covariates) Partial Residual (response adjusted for design variables and other covariates) Augmented Partial Residual (response adjusted for all covariates) 4 2 0 20 10 0 –10 –20 2.0 1.0 0.0 –1.0 01234 Log Sacrifice Time (+ a smidgen for disrupted rats) 9.0 10.0 11.0 Days After Inoculation (jittered) Males Sex (jittered) Females effects of the covariates are included as when they are ignored (Display 11.5). The lower two plots show that, after the effects of the design variables are accounted for, little evidence exists of a sex effect, although slight visual evidence exists of a days-after-inoculation effect. This conclusion is further investigated through model fitting. A search through possible models that contain covariates shows that sex and days after inoculation (treated as a factor) are the only ones associated with the response. When the design variables are included as well, three conclusions are supported: 1. The covariates are not significant when the design variables are also included in the model. 2. The design variables are significant when the covariates are also included in the model. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 334 Chapter 11 Model Checking and Refinement DISPLAY 11.17 Results from the regression of log ratio of antibody concentration (brain tumor-to-liver) on sacrifice time (treated as a factor) and treatment 11.6 RELATED ISSUES 11.6.1 Weighted Regression for Certain Types of Nonconstant Variance Although nonconstant variance can sometimes be corrected by a transformation of the response, in many situations it cannot. If enough information is known about the form of the nonconstant variance, the method of weighted least squares may be used. The weighted regression model, written here with two explanatory variables, is fYi jX1i;X2igDˇ0Cˇ1X1iCˇ2X2i VarfYi jX1i;X2igD2=wi; where the wi ’s are known constants called weights (because cases with larger wi ’s have smaller variances and should be weighted more in the analysis). Variable Estimate Standard error t-statistic Two-sided p-value <0.0001 0.0001 <0.0001 <0.0001 0.0002 3. The conclusions regarding the design variables depend very little on whether the covariates are in the model. These results suggest that the conclusions can be based satisfactorily on the model without the covariates. Since the effect of log sacrifice time is not linear (and since the addition of a quadratic term does not remedy the lack-of-fit), sacrifice time is treated as a factor with four levels. Therefore, the final model used to estimate the treatment effect has the following terms: TIMECTREAT. The estimates and standard errors are shown in Display 11.17. The coefficient of the indicator variable for the blood–brain barrier disruption treatment is 0:797. So, expressed in accordance with the interpretation for log-transformed responses, the median ratio of antibody concentration in the brain tumor to antibody concentration in the liver is estimated to be exp.0:797/ D 2:22 times greater for the blood–brain barrier diffusion treatment than for the control. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 11.6 Related Issues 335 This model arises in at least three practical situations: 1. Responses are estimates; SEs are available. Sometimes the response values are measurements whose estimated standard deviations, SE.Yi /, are available. In the preceding model, the wi ’s are taken to be 1=ŒSE.Yi /2; that is, the responses with smaller standard errors should receive more weight. 2. Responses are averages; only the sample sizes are known. If the responses are averages from samples of different sizes and if the ordinary regression model applies for the individual observations (the ones going into the average), then the weighted regression model applies to the averages, with weights equal to the sample sizes. The averages based on larger samples are given more weight. 3. Variance is proportional to X. Sometimes, while the regression of a response on an explanatory variable is a straight line, the variance increases with increases in the explanatory variable. Although a log transformation of the response might correct the nonconstant variance, it would induce a nonlinear relationship. A weightedregressionmodel,withwi D1=Xi (orpossiblywi D1=Xi2)maybe preferable. The weighted regression model can be estimated by weighted least squares within the standard regression procedure in most statistical computing programs. The estimated regression coefficients are chosen to minimize the weighted sum of squared residuals (see Exercise 21 for the calculus). It is necessary for the user to specify the response, the explanatory variables, and the weights. 11.6.2 The Delta Method When, as in the alcohol metabolism study, there is a quantity of interest that is a nonlinear function of model parameters, calculating a standard error for the estimate of the quantity requires advanced methods. One such method—the delta method—requires some calculus and is therefore presented as an optional topic. Taking the alcohol metabolism study’s example, suppose interest centers on the parameter  D ˇ1=.ˇ1 C ˇ2/, where estimates of ˇ1 and ˇ2 are available. Substituting the estimates into the equation for  produces an estimate for . Two inputs are required for calculating its standard error: (1) the variance–covariance matrix of the ˇ-estimates, which should be available from the computer, and (2) the partial derivatives of  with respect to each of the ˇ’s. Display 11.18 illustrates how these pieces combine to produce the standard error for this . 11.6.3 Measurement Errors in Explanatory Variables Sometimes a theoretical model specifies that the mean response depends on certain explanatory variables that cannot be measured directly. This is called the errors- in-variables problem. If, for example, a study is examining the relationship between blood cholesterol .Y / and the dietary intake of polyunsaturated fat .X /, and if the intake of polyunsaturated fat is estimated from a questionnaire individuals supply on what they eat in a typical week, then the questionnaire results will not measure X precisely. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 336 Chapter 11 Model Checking and Refinement DISPLAY 11.18 The delta method for calculating the standard error of a nonlinear function of parameter estimates, applied to the alcohol metabolism study If the purpose of the regression is prediction, and if the prediction of future responses is to be based on measured explanatory variables that have the same kind of measurement errors as the ones used to estimate the regression, then mea- surement errors in explanatory variables do not present a problem. The model of interest in this case is the one for the regression of the response on the measured explanatory variables. The regression on the exact explanatory variables is not relevant. For other purposes, however, measurement errors in explanatory variables present a problem. The least squares estimates based on the imprecisely measured explanatory variables are biased estimates of the coefficients in the regression of the response on the precisely measured explanatory variables. If there is a single explanatory variable, the slope estimate tends to be closer to zero than it should be. If there are many explanatory variables, some of which are measured with error, the individual coefficients (including the coefficients of variables that are free of measurement error) may be over- or underestimated, depending on the correlation structure of the explanatory variables. Alternatives to least squares that account for measurement errors in explana- tory variables do exist, but they are sophisticated and require extra information about the measurement errors (for example, that replicate measurements are Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 11.7 Summary 337 available on a subset of subjects). The advice of a professional statistician may be required for this problem. 11.7 SUMMARY This chapter focuses on the first three steps—exploring the data, fitting a model, and checking the model—of the strategy for data analysis using statistical models (Display 9.9). After initial exploration, the analyst fits a tentative model and uses the residuals to check on the need for transformation or outlier action. The explo- ration continues by entertaining various models and testing terms within the model. There is not necessarily any “best” or “final” model. Often different questions of interest are addressed through different models. In the blood–brain barrier data set, for example, one of the questions of interest is investigated via interaction terms. When these are found to be insignificant, they are dropped in favor of a different model for making inferences about the treatment effect. Alcohol Metabolism Study Several questions are asked of these data. For two-sample questions like “Does the first-pass metabolism of alcohol differ between males and females?” the rank-sum test is used to avoid considering the outliers. To investigate whether metabolism differs between males and females once the effect of gastric AD activity has been accounted for, a regression model for metabolism as a function of gastric AD activity and an indicator variable for sex should be used. Finding a model is made difficult by the need to consider quite a few terms on the basis of a small data set, as well as by the influence of two observations with atypical values of the explanatory variable. Since the data are not capable of resolving a regression relationship for gastric AD activities larger than 3, the two extreme cases are set aside and the subsequent analysis and conclusions are restricted to the reduced range. Within that reduced range (and ignoring the effect of alcoholism), either of two models can be used: the parallel regression lines model or the regression model forced through the origin with different slopes for males and females. The latter is selected for inference primarily because it seems somewhat more likely to apply in the broader range (and because it results in a smaller estimate of residual variation). Blood–Brain Barrier Study The lack of random assignment of the rats to the treatment groups is a major concern. In partial compensation for this design flaw, tentative regression models include potentially confounding covariates—measured but uncontrolled character- istics of the experimental units. Although some covariate differences are detected among the treatment groups, the regression analysis is able to clarify the treatment effects after accounting for the covariates. Without randomization, however, the causal conclusions remain tied to the adequacy of the models and to the specu- lation that no additional unmeasured covariates that might explain the treatment effects differ between the groups. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 338 Chapter 11 Model Checking and Refinement 11.8 EXERCISES Conceptual Exercises 1. Alcohol Metabolism. The subjects in the study were given alcohol on two consecutive days. On one of the days it was administered orally and on the other it was administered intravenously. The type of administration given on the first day was decided by a random mechanism. Why was this precaution taken? 2. Alcohol Metabolism. Here are two models for explaining the mean first-pass metabolism: Model 1W ˇ0 C ˇ1gast C ˇ2fem Model 2W ˇ0 C ˇ1gast C ˇ2gast  fem: (a) Why are there no formal tools for comparing these two models? (b) For a given value of gastric activity, what is the mean first-pass metabolism for men minus the mean first-pass metabolism for women (i) from Model 1? (ii) from Model 2? 3. Alcohol Metabolism. What would be the meaning of a third-order interactive effect of gastric activity, sex, and alcoholism on the mean first-pass metabolism? 4. Blood–Brain Barrier. (a) How should rats have been randomly assigned to treatment groups? How many treatment groups were there? What is the name of this type of experimental design and this type of treatment structure? (b) How should rats have been randomly assigned to treatments if the researchers suspected that the sex of the rat might be associated with the response? What is the name of this type of experimental design? 5. Blood–Brain Barrier. The residual plot in Display 11.6 contains two distinct groups of points: a cluster on the left and a cluster on the right. (a) Why is this? (b) Does it imply any problems with the model? 6. Robustness and resistance are different properties. (a) What is the difference? (b) Why are they both relevant when the response distribution is “long-tailed”? 7. Display 11.19 shows a hypothetical scatterplot of salary versus experience, with different codes for males and females. The male and female slopes differ significantly if the male with the most experience is included, but not if he is excluded. What course of action should be taken, and why? DISPLAY 11.19 Hypothetical scatterplot of salary versus experience for males and females MMM M M MMMFM F MFF MMMF F MMMF FMFF MFF FMF F 0 5 10 15 Experience (years) 8. (a) Why does a case with large leverage have the potential to be influential? Why is it not neces- sarily influential? (b) Draw a hypothetical scatterplot of Y versus a single X, where one observation Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Salary ($) 11.8 Exercises 339 has a high leverage but is not influential. (c) Draw a hypothetical scatterplot of Y versus a single X, where one observation has a high leverage and is influential. 9. Suppose it is desired to obtain partial residuals in order to plot Y versus X2 after getting the effect of X1 out of the way. The first task is to fit the regression of Y on X1 and X2. Let the estimated coefficients be ˇO0, ˇO1, and ˇO2, and let the residuals from this fit be represented by resi. The definition of the ith partial residual is presi D Yi 􏰀 ˇO0 􏰀 ˇO1X1i . The alternative computational formula is resi C ˇO2X2i . Why are these formulas equivalent? Computational Exercises 10. Pollen Removal. Reconsider the pollen removal data in Exercise 3.27. (a) Draw a coded scat- terplot of the log of the proportion of pollen removed relative to the proportion unremoved (if p is the proportion removed, take Y D logŒp=.1 􏰀 p/) versus the log of the duration of visit, with a code to distinguish queens from workers. (b) Fit the regression of Y on the two explanatory vari- ables and their interaction, and obtain a residual plot. Does the residual plot indicate any problems? (c) Obtain a set of case influence statistics. Are there any problem observations? What is the most advisable course of action? (d) Does a significant interaction appear to exist, or can the simpler parallel regression lines model be used? 11. Chernobyl Fallout. The data in Display 11.20 are the cesium (134Cs C 137Cs) concentrations (in Bq/kg) in soil and in mushrooms at 17 wooded locations in Umbria, Central Italy, from August 1986 to November 1989. Researchers wished to investigate the cesium transfer from contaminated soil to plants—after the Chernobyl nuclear power plant accident in April 1986—by describing the distribution of the mushroom concentration as a function of soil concentration. (a) Obtain a set of case influence statistics from the simple linear regression fit of mushroom concentration on soil concentration. What do these indicate about case number 17? (b) Repeat part (a) after taking the logarithms of both variables. (Data from R. Borio et al., “Uptake of Radiocesium by the Mushrooms,” Science of the Total Environment 106 (1991): 183–90.) 12. Brain Weights. Reconsider the brain weight data of Display 9.4. (a) Fit the regression of brain weight on body weight, gestation, and log litter size, using no transformations. Obtain a set of case-influence statistics. Is any mammal influential in this fit? (b) Refit the regression without the influential observation, and obtain the new set of case influence statistics. Are there any influ- ential observations from this fit? (c) What lessons about the connection between the need for a log transformation and influence can be discerned? 13. Brain Weights. Identifying which mammals have larger brain weights than were predicted by the regression model might point the way to further variables that can be examined. Fit the regression of log brain weight on log body weight, log gestation, and log litter size, and compute the studentized Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 11.20 Cesium (134CsC137Cs) concentrations (in Bq/kg) in soil and in mushrooms at 17 locations in Italy, after the Chernobyl nuclear power plant accident; first 5 of 17 rows Mushroom Soil 1 33 9 55 14 138 17 319 20 415 340 Chapter 11 Model Checking and Refinement residuals. Which mammals have substantially larger brain weights than were predicted by the model? Do any mammals have substantially smaller brain weights than were predicted by the model? 14. Corn Yield and Rainfall. Reconsider the data in Exercise 9.15. Fit the regression of corn yield on rainfall, rainfall-squared, and year. (a) Obtain the partial residuals of corn yield, adjusted for rain- fall, and plot them versus year. (b) Obtain the augmented partial residual of corn yield, adjusted for year, and plot these values versus rainfall. (c) In your opinion, do these plots provide any clarification over the ordinary scatterplots? 15. Election Fraud. Reconsider the disputed election data from Exercise 8.20. (a) Draw a scatter- plot of the Democratic percentage of absentee votes versus the Democratic percentage of machine votes for the 22 elections. Fit the simple linear regression of Democratic percentage of absentee votes on the Democratic percentage of machine votes and include the line on the plot. (b) Find the internally studentized residual for case number 22 from this fit. (c) Find the externally studentized residual for case number 22 from this fit. (d) Are the externally and internally studentized residu- als for case 22 very different? If so, what can explain the difference? (e) What do the studentized residuals for case 22 indicate about the unusualness of the absentee ballot percentage for election 22 relative to the pattern of absentee and machine percentages established from the other 21 elections? 16. First-Pass Metabolism. Calculate the leverage, the studentized residual, and Cook’s Distance for the 32nd case. Use the model with gastric activity, a sex indicator variable, and the interaction of these two. 17. Blood–Brain Barrier. (a) Using the data in Display 11.4, compute “jittered” versions of treat- ment, days after inoculation, and an indicator variable for females by adding small random numbers to each (uniform random numbers between 􏰀0:15 and 0:15 work well). (b) Obtain a matrix of the correlation coefficients among the same five variables (not jittered!). (c) In pencil, write the relevant correlation (two digits is enough) in a corner of each of the scatterplots in the matrix of scatterplots. (d) On the basis of this, what can be said about the relationship between the covariates (sex and days after inoculation), the response, and the design variables (treatment and sacrifice time)? 18. Blood–Brain Barrier. Using the data in Display 11.4, fit the regression of the log response (brain tumor-to-liver antibody ratio) on all covariates, the treatment indicator, and sacrifice time, treated as a factor with four levels (include three indicator variables, for sacrifice time D 3, 24, and 72 hours). (a) Obtain a set of case influence statistics, including a measure of influence, the leverage, and the studentized residual. (b) Discuss whether any influential observations or outliers occur with respect to this fit. 19. Blood–Brain Barrier. (a) Using the data in Display 11.4, fit the regression of the log response (brain tumor-to-liver antibody ratio) on an indicator variable for treatment and on sacrifice time treated as a factor with four levels (include three indicator variables, for sacrifice time D 3, 24, and 72 hours). Use the model to find the estimated mean of the log response at each of the eight treatment combinations (all combinations of the two infusions and the four sacrifice times). (b) Let X represent log of sacrifice time. Fit the regression of the log response on an indicator variable for treatment, X, X2, and X3. Use the estimated model to find the estimated mean of the log response at each of the eight treatment combinations. (c) Why are the answers to parts (a) and (b) the same? 20. Warm-Blooded T. Rex? The data in Display 11.21 are the isotopic composition of struc- tural bone carbonate .X/ and the isotopic composition of the coexisting calcite cements .Y/ in 18 bone samples from a specimen of the dinosaur Tyrannosaurus rex. Evidence that the mean of Y is positively associated with X was used in an argument that the metabolic rate of this dinosaur resembled warm-blooded more than cold-blooded animals. (Data from R. E. Barrick and W. J. Showers, “Thermophysiology of Tyrannosaurus rex: Evidence from Oxygen Isotopes,” Science 265 (1994): 222–24.) (a) Examine the effects on the p-value for significance of regression and on Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 11.8 Exercises 341 R-squared of deleting (i) the case with the smallest value of X, and (ii) the two cases with the small- est values of X. (b) Why does R-squared change so much? (c) Compute the case influence statistics, and discuss interesting cases. (d) Recompute the case statistics when the case with the smallest X is deleted. (e) Comment on the differences in the two sets of case statistics. Why may pairs of influen- tial observations not be found with the usual case influence statistics? (f) What might one conclude about the influence of the two unusual observations in this data set? DISPLAY 11.21 Isotopic composition of carbonate and of calcite cements in 18 samples of bone from a Tyrannosaurus rex specimen Carbonate Calcite 21.3 20.5 23.6 23.2 26.7 27.0 26.8 28.7 27.0 27.9 27.1 27.9 26 27.2 29.0 27.3 27.7 27.5 27.6 27.6 29.6 28.0 28.0 28.0 29.2 28.2 27.5 29.328.4 29.4 28.5 29.4 29.3 29.4 30.0 29.5 31.0 24 22 30 28 2224262830 Isotopic Composition of Carbonate 21. Calculus Problem. The weighted least squares problem in multiple linear regression is to find the parameter values that minimize the weighted sum of squares, n SSw.ˇ0;ˇ1;:::;ˇp/DXwi.Yi 􏰀ˇ0􏰀ˇ1X1i 􏰀􏰀ˇpXpi/2; iD1 with all wi > 0. (a) Setting the partial derivatives of SSw with respect to each of the parameters
equal to zero, show that the solutions must satisfy this set of normal equations:
ˇ0 Pwi C ˇ1 PwiX1i C ˇ2 PwiX2i CC ˇp PwiXpi DPwiYi ˇ0PwiX1i C ˇ1PwiX21i Cˇ2PwiX1iX2i CCˇpPwiX1iXpi DPwiX1iYi ˇ0 PwiX2i Cˇ1 PwiX2iX1i C ˇ2 PwiX2i CCˇp PwiX2iXpi DPwiX2iYi
:
ˇ0 PwiXpi Cˇ1 PwiXpiX1i Cˇ2 PwiXpiX2i CC ˇp PwiX2 DPwiXpiYi:
pi
(b) Show that solutions to the normal equations minimize SS.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
: : : :
Isotopic Composition of Calcite

342
Chapter 11 Model Checking and Refinement
DISPLAY 11.22
Data Problems
22. Deforestation and Debt. It has been theorized that developing countries cut down their forests to pay off foreign debt. Two researchers examined this belief using data from 11 Latin American nations. (Data from R. T. Gullison and E. C. Losos, “The Role of Foreign Debt in Deforestation in Latin America,” Conservation Biology 7(1) (1993): 140–7.) The data on debt, deforestation, and population appear in Display 11.22. Does the evidence significantly support the theory that debt causes deforestation? Does debt exert any effect after the effect of population on deforestation is accounted for? Describe the effect of debt, after accounting for population.
Foreign debt, annual deforestation area, and population for 11 Latin American countries
DISPLAY 11.23
City
23. Air Pollution and Mortality. Does pollution kill people? Data in one early study designed to explore this issue came from five Standard Metropolitan Statistical Areas (SMSA) in the United States, obtained for the years 1959–1961. (Data from G. C. McDonald and J. A. Ayers, “Some Applications of the ‘Chernoff Faces’: A Technique for Graphically Representing Multivariate Data,” in Graphical Representation of Multivariate Data, New York: Academic Press, 1978.) Total age- adjusted mortality from all causes, in deaths per 100,000 population, is the response variable. The explanatory variables listed in Display 11.23 include mean annual precipitation (in inches); median number of school years completed, for persons of age 25 years or older; percentage of 1960 popula- tion that is nonwhite; relative pollution potential of oxides of nitrogen, NOX ; and relative pollution potential of sulfur dioxide, SO2. “Relative pollution potential” is the product of the tons emitted per day per square kilometer and a factor correcting for SMSA dimension and exposure. The first three explanatory variables are a subset of climate and socioeconomic variables in the original data set. (Note: Two cities—Lancaster and York—are heavily populated by members of the Amish religion,
Air pollution and mortality data for 5 U.S. cities, 1959–1961; first 5 of 60 rows
Mortality Precipitation Education Nonwhite NOx SO2
Country
Debt (millions of dollars)
6,990
Deforestation (thousands of hectares)
12,150 2,680 1,557 1,500 1,430 1,250
550
400
300
250
90
Population (thousands of people)
128,425.0 74,194.5 8,750.5 27,254.0 16,170.5 18,496.5 3,021.5 29,400.5 5,970.5 3,424.5 2,439.5
Peru 10,707 Nicaragua 3,985 Argentina 36,664 Bolivia 3,810 Paraguay 1,479 Costa Rica 3,413
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 11.24
Species
who prefer to teach their children at home. The lower years of education for these two cities do not indicate a social climate similar to other cities with similar years of education.) Is there evidence that mortality is associated with either of the pollution variables, after the effects of the climate and socioeconomic variables are accounted for? Analyze the data and write a report of the findings, including any important limitations of this study. (Hint: Consider looking at case-influence statistics.)
24. Natal Dispersal Distances of Mammals. Natal dispersal distances are the distances that juve- nile animals travel from their birthplace to their adult home. An assessment of the factors affecting dispersal distances is important for understanding population spread, recolonization, and gene flow— which are central issues for conservation of many vertebrate species. For example, an understanding of dispersal distances will help to identify which species in a community are vulnerable to the loss of connectedness of habitat. To further the understanding of determinants of natal dispersal distances, researchers gathered data on body weight, diet type, and maximum natal dispersal distance for var- ious animals. Shown in Display 11.24 are the first 6 of 64 rows of data on mammals. (Data from G. D. Sutherland et al., “Scaling of Natal Dispersal Distances in Terrestrial Birds and Mammals,” Conservation Ecology 4(1) (2000): 16.) Analyze the data to describe the distribution of maximum dispersal distance as a function of body mass and diet type. Write a summary of statistical findings.
Natal dispersal distances and explanatory variables for 64 mammals; first 6 of 64 rows
Maximum dispersal Body mass (kg) Diet type distance (km)
25. Ingestion Rates of Deposit Feeders. The ingestion rates and organic consumption percent- ages of deposit feeders were considered in Exercise 9.21. The data set ex1125 repeats these data, but this time with three additional bivalve species included (the last three). The researcher wished to see if ingestion rate is associated with the percentage of organic matter in food, after accounting for ani- mal weight, but was unsure about whether bivalves should be included in the analysis. Analyze the data to address this question of interest. (Data from L. M. Cammen, “Ingestion Rate: An Empirical Model for Aquatic Deposit Feeders and Detritivores,” Oecologia 44 (1980): 303–10.)
26. Metabolism and Lifespan of Mammals. Use the data from Exercise 8.26 to describe the distribution of mammal lifespan as a function of metabolism rate, after accounting for the effect of body mass. One theory holds that for a given body size, animals that expend less energy per day (lower metabolic rate) will tend to live longer.
Answers to Conceptual Exercises
1. By randomly determining order, the researchers avoid bias in determining first-pass metabolism that would occur if an order effect existed.
2. (a) Neither of the models is a subset of the others, so it is impossible to test a term in a “full model” to see whether the “reduced model” does just as well. (Incidentally, the models explain the data about equally well.) (b) (i) ˇ2 (ii) ˇ2gast.
3. It would mean that the effect of gastric AD activity on first-pass metabolism differed between males and females, and that the amount of the sex difference differed between alcoholics and
11.8 Exercises 343
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

344 Chapter 11 Model Checking and Refinement
nonalcoholics. (Two-factor interactions are hard enough to describe in words. Three- and higher- factor interactions typically involve very long and confusing sentences. A theory without interactions is obviously simpler than one with interactions.)
4. (a) Rats should have been randomly assigned to one of eight groups, corresponding to the eight combinations of treatment and sacrifice time. This is a completely randomized design with factorial .2  4/ treatment structure. (b) If the response is suspected to be related to the sex of the rat, a randomized block experiment should be performed. The procedure in part (a) can be followed separately for male and female rats.
5. (a) The fitted values are noticeably larger for the rats in the groups with longer sacrifice times. (b) No.
6. (a) Robustness describes the extent to which inferential statements are correct when specific assumptions are violated. Resistance describes the extent to which the results remain unchanged when a small portion of the data is changed, perhaps drastically (and therefore describes the extent to which individual observations can be influential). (b) When the distribution is long-tailed, the robustness against departures from normality cannot be guaranteed. Put another way, there are likely to be outliers, which can have undue influence on the results, since the least squares method is not resistant.
7. In the absence of further knowledge, it is safest to exclude the very experienced male from the data set and restrict conclusions about the differences between male and female salaries to individuals with 10 years of experience or fewer. It may be that males and females have different slopes over the wider range of experience, or it may be that the straight line is not an adequate model over the wider range of experiences. There is certainly insufficient data in the more-than-10-years range to resolve this issue.
8. (a) A large leverage indicates that a case occupies a position in the “X -space” that is not densely populated. It therefore plays a large role in shaping the estimated regression model in that region. Since it does not share its role (much) with other nearby points, it must draw the regression surface close to it. For this reason it has a high potential for influence. If, however, the fit of the model without that point is about the same as the fit of the model with it, it is not influential.
(b) The case with high leverage ( ) exerts no influence on the slope. The line without the case ( ) only has its intercept changed when the case is included ( ).
(c) When the case with high leverage
has its explanatory variable value outside those of the other cases, the slope of
the regression can be changed dramatically.
9. Since resi D Yi 􏰀 ˇO0 􏰀 ˇO1X1i 􏰀 ˇO2X2i , the alternative calculating formula is Yi 􏰀 ˇO0 􏰀 ˇO1X1i 􏰀 ˇO2X2i C ˇO2X2i . The last two terms cancel, leaving the original definition.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 12 Strategies for Variable
Selection
There are two good reasons for paring down a large number of explanatory variables to a smaller set. The first reason is somewhat philosophical: Simplicity is preferable to complexity. Thus, redundant and unnecessary explanatory variables should be excluded on principle. The second reason is more concrete: Unnecessary terms in the model yield less precise inferences.
Various statistical tools are available for choosing a good subset from a large pool of explanatory variables. Discussed in this chapter are sequential variable-selection techniques, and comparisons among all possible subsets through examination of Cp and the Bayesian Information Criterion. The most impor- tant practical lessons are that the variable selection process should be sensitive to the objectives of the study and that the particular subset chosen is relatively unimportant.
345
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

346
Chapter 12 Strategies for Variable Selection
12.1
CASE STUDIES
12.1.1 State Average SAT Scores—An Observational Study
When, in 1982, average Scholastic Achievement Test (SAT) scores were first pub- lished on a state-by-state basis in the United States, the huge variation in the scores was a source of great pride for some states and of consternation for others. Average scores ranged from a low of 790 (out of a possible 1,600) in South Carolina to a high of 1,088 in Iowa. This 298-point spread dwarfed the 20-year national decline of 80 points. Two researchers set out to “assess the extent to which the compo- sitional/demographic and school-structural characteristics are implicated in SAT differences.” (Data from B. Powell and L. C. Steelman, “Variations in State SAT Performance: Meaningful or Misleading?” Harvard Educational Review 54(4) (1984): 389–412.)
Display 12.1 contains state averages of the total SAT (verbal C quantitative) scores, along with six variables that may be associated with the SAT differences among states. Some explanatory variables come from the Powell and Steelman article, while others were obtained from the College Entrance Examination Board (by Robert Powers). The variables are the following: Takers is the percentage of the total eligible students (high school seniors) in the state who took the exam; income is the median income of families of test-takers, in hundreds of dollars; years is the average number of years that the test-takers had formal studies in social sciences, natural sciences, and humanities; public is the percentage of the test- takers who attended public secondary schools; expend is the total state expenditure on secondary schools, expressed in hundreds of dollars per student; and rank is the median percentile ranking of the test-takers within their secondary school classes.
Notice that the states with high average SATs had low percentages of takers. One reason is that these are mostly midwestern states that administer other tests to students bound for college in-state. Only their best students planning to attend college out of state take the SAT exams. As the percentage of takers increases for other states, so does the likelihood that the takers include lower-qualified students. After accounting for the percentage of students who took the test and the median class rank of the test-takers (to adjust, somewhat, for the selection bias in the samples from each state), which variables are associated with state SAT scores? After accounting for the percentage of takers and the median class rank of the takers, how do the states rank? Which states perform best for the amount of money they spend?
Statistical Conclusion
The percentage of eligible students taking the test and the median class rank of the students taking the test explain 81.5% of the variation in state average test scores. This confirms the expectation that much of the between-states variation in SAT scores can be explained by the relative quality of the students within the state who decide to take the test. After the percentage of students in a state who take the test and the median class rank of these students are accounted for, convincing
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

12.1 Case Studies 347
DISPLAY 12.1 Average SAT scores by U.S. state in 1982, and possible associated factors
Rank State
SAT Takers Income Years Public Expend Rank
1,088 1,075 1,068 1,045 1,045 1,033 1,028 1,022 1,017 1,011 1,001
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

348
Chapter 12 Strategies for Variable Selection
12.1.2
evidence exists that both state expenditures (one-sided p-value < 0:0001) and years of formal study in social sciences, natural sciences, and humanities (one-sided p-value D 0.0005) are associated with SAT averages. Alaska had a substantially higher expenditure than other states and was excluded from the analysis. The ranking of states after accounting for the relative quality of students in the state who take the exam (as represented by the percentage of takers and the median class rank of the students taking the exam) is shown on the left side of Display 12.2. Here, the states are ordered according to the size of their residuals in the regression of SAT scores on percentage of takers and median class rank. For example, the SAT average for New Hampshire is 49 points higher than the estimated mean SAT for states with the same percentage of students taking the exam and median class rank. This ranking and the ranking based on raw averages show some dramatic differences. South Dakota ranks second in its raw SAT scores, for example (see Display 12.1), but only 2% of its eligible students took the exam. After percentage of takers and median class rank are accounted for, South Dakota ranks 24th. The ranking of states after additionally accounting for state expenditure is shown on the right side of Display 12.2. This ranking provides a means of gauging how states perform for the amount of money they spend (but see the cautionary notes in the next subsection regarding scope of inference). For example, Oregon ranks 31st in its unadjusted average SAT. But after accounting for the percentage of takers, their median class rankings, and the state’s expenditure per student, it ranks 46th, indicating that its students performed below what might have been expected given the amount of money the state spends on education. Scope of Inference The participating students were self-selected; that is, each student included in a state’s sample decided to take the SAT, as opposed to being a randomly selected student. Therefore, a state’s average does not represent all its eligible students. Including the percentage of takers and the median class rank of takers in the regres- sion models adjusts for this difference, but only to the extent that these variables adequately account for the relative quality of students taking the test. No check on this assumption is possible with the existing data. In addition, these are obser- vational data, for which many possible confounding factors exist, so the statistical statements of significance (as for the effect of expenditure, for example) do not imply causation. Sex Discrimination in Employment—An Observational Study Display 12.3 lists data on employees from one job category (skilled, entry-level clerical) of a bank that was sued for sex discrimination. These are the same 32 male and 61 female employees, hired between 1965 and 1975, who were considered in Section 1.1.2. The measurements are of annual salary at time of hire, salary as of March 1977, sex (1 for females and 0 for males), seniority (months since first hired), age (months), education (years), and work experience prior to employment with the bank (months). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 12.2 Rank State SAT scores after adjustment (in points above or below average) 12.1 Case Studies 349 SATs adjusted for % taking exam and their median class rank Adjusted State SAT average SATs adjusted for % taking exam, rank, and expenditure Adjusted Rank State SAT average Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 350 Chapter 12 Strategies for Variable Selection DISPLAY 12.3 Sex discrimination data Beginning salary 1977 salary Fsex (1 = F) Seniority Age Education Experience Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.1 Case Studies 351 DISPLAY 12.3 Sex discrimination data—continued Beginning salary 1977 salary Fsex (1 = F) Seniority Age Education Experience Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 352 Chapter 12 Strategies for Variable Selection 12.2 Did the females receive lower starting salaries than similarly qualified and similarly experienced males? After accounting for measures of performance, did females receive smaller pay increases than males? Statistical Conclusion The data provide convincing evidence that the median starting salary for females was lower than the median starting salary for males, even after the effects of age, education, previous experience, and time at which the job began are taken into account (one-sided p-value <0:0001). The median beginning salary for females was estimated to be only 89% of the median salary for males, after accounting for the variables mentioned above (a 95% confidence interval for the ratio of adjusted medians is 85% to 93%). There is little evidence that the pay increases for females differed from those for males (one-sided p-value D 0:27 from a t-test for the dif- ference in mean log of average annual raise; one-sided p-value D 0:72 after further adjustment for other variables except beginning salary; one-sided p-value D 0:033 after further adjustment for other variables including beginning salary). Inferences Since these are observational data, the usual dictum applies: No cause-and-effect inference of discrimination can be drawn. Of course that argument disallows nearly all claims of discrimination, because supporting data are always observational. To evaluate such evidence, U.S. courts have adopted a method of burden-shifting. Plaintiffs present statistical analyses as prima facie evidence of discrimination. If the evidence is substantial, the burden shifts to the defendants to show either that these analyses are flawed or that alternative, nondiscriminatory factors explain the differences. If the defendants’ arguments are accepted, the burden shifts back to the plaintiffs to show that the defendants’ analyses are wrong or that their explanations were pretextual. If plaintiffs succeed in this, the inference of discrimination stands. SPECIFIC ISSUES RELATING TO MANY EXPLANATORY VARIABLES 12.2.1 Objectives Several convenient tools are available for paring down large sets of explanatory variables. But without understanding what they offer, one may incorrectly suppose that the computer is uncovering some law of nature. Like any other statistical tool, these paring tools are most helpful when used to address well-defined questions of interest. Although it may be tempting to think that finding “the important set” of explanatory variables is a question of interest, the actual set chosen is usually one of several (or many) equally good sets. Objective I: Adjusting for a Large Set of Explanatory Variables In the sex discrimination example the objective is to examine the effect of sex after accounting for other legitimate determinants of salary. A game plan for the analysis Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.2 Specific Issues Relating to Many Explanatory Variables 353 is to begin by finding a subset of the other explanatory variables with a variable- selection technique, and then to add the indicator variable for sex into the model. The variable-selection techniques are entirely appropriate for this purpose. The set of explanatory variables chosen is evidently one of several (or perhaps many) equally useful sets. Although a particular explanatory variable may not be included in the final model, it has still been adjusted for, since it was given a chance to be in the model (prior to inclusion of the sex indicator). No interpretation is made of the particular set chosen, nor is any interpretation made of the coefficients. The coefficient of the sex indicator variable is interpreted, but this is straightforward: It represents the association between sex and salary after accounting for the effects of the other explanatory variables. Objective II: Fishing for Explanation In many studies, unfortunately, no such well-defined question has been posed. One question likely to be asked of the SAT data is vague: “Which variables are important in explaining state average SAT scores, after accounting for percentage of takers and median class rank?” Variable-selection techniques can be used to identify a set of explanatory variables, but the analyst may be tempted to attach meaning to the particular variables selected and to interpret coefficients—temptations not encountered in Objective I. There are several reasons to exercise great caution when using regression for this purpose: 1. The explanatory variables chosen are not necessarily special. Inclusion or exclu- sion of individual explanatory variables is affected strongly by the correlations between them. 2. Interpreting the coefficients in a multiple regression with correlated explanatory variables is extremely difficult. For example, an estimated coefficient may have the opposite sign of the one suggested by a scatterplot, since a coefficient shows the effect of an explanatory variable on a response after accounting for the other variables in the model. It is often difficult to recognize what “after accounting for the other variables in the model” means when many variables are included. 3. A regression coefficient continues to be interpreted (technically) as a measure of the effect of one variable while holding all other variables fixed. Unfortu- nately, increases in one variable are almost always accompanied by changes in many others, so the situation described by the interpretation lies outside the experience provided by the data. 4. Finally, of course, causal interpretations from observational studies are always suspect. The selected variables may be related to confounding variables that are more directly responsible for the response. Objective III: Prediction If the purpose of the model is prediction, no interpretation of the particular set of explanatory variables chosen or their coefficients is needed, so there is little room for abuse. The variable-selection techniques are useful for showing a few models Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 354 Chapter 12 Strategies for Variable Selection 12.2.2 that work well. From these, the researcher selects one with explanatory variables that can be obtained conveniently for future prediction. Different Questions Require Different Attitudes Toward the Explanatory Variables With regard to the SAT score example, a business firm looking for a place to build a new facility may have as its objective in analyzing the data a ranking of states in terms of their ability to train students. The only relevant question to this firm is whether the raw SAT averages accurately reflect the educational training. The problem of selection bias is critical, so inclusion of the percentage of SAT takers or of the median rank is essential. All other variables reflect factors that will not affect the firm’s decision, so they are not relevant. This firm could fit a model using the percentage of takers as an explanatory variable and use the residuals as a way of ranking the states. A legislative watchdog committee, on the other hand, may have the objective of determining the impact of state expenditures on state SAT scores. It might include all variables that could affect SAT scores before including expenditures. Under this arrangement, the committee would claim an effect for expenditures only when the effect could not be attributed to some other related factor. If prediction is the purpose, all explanatory variables that can be used in mak- ing the prediction should be considered eligible for inclusion. (Prediction is not reasonable in the SAT score example, because one would not know the explanatory variables until the SAT scores themselves were available.) Loss of Precision The precision in estimating an important regression coefficient or in predicting a future response may be decreased if too many explanatory variables are included in the model. The standard error of the estimator for a multiple regression coefficient of an explanatory variable, X, can be expressed as the standard error in the simple linear regression multiplied by the square root of the product of two factors, a mean square ratio and a variance inflation factor (VIF). The mean square ratio is the ratio of estimate of residual variance from the multiple and the simple regression models. If useful predictors are added in the multiple regression model then this ratio should be less than one. Often more important, however, is the variance inflation factor, VIFD1=.1􏰀RX2 / where RX2 is the proportion of the variation in X that is explained by its linear relationship to other explanatory variables in the model. When X can be explained well by the additional variables—a condition called multicollinearity—the inflation factor can be very high. Adding additional explanatory terms, therefore, may either decrease or increase precision depending on the relative effects on the mean square ratio and the VIF. These conflicting effects highlight a fundamental tension in statistical modeling. If the purpose is to estimate the coefficient of X (or to predict a future Y ) as precisely Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.2 Specific Issues Relating to Many Explanatory Variables 355 as possible, additional explanatory terms may help if those terms reduce the unex- plained variation in the response, but may hurt if this reduction is insufficient to overcome the increase in the variance inflation factor. Sections 12.3 and 12.4 return to this issue, introducing tools for finding sets of explanatory variables that include “enough” but “not too many” terms. 12.2.3 A Strategy for Dealing with Many Explanatory Variables A strategy for dealing with many explanatory variables should include the following elements: 1. Identify the key objectives. 2. Screen the available variables, deciding on a list that is sensitive to the objectives and excludes obvious redundancies. 3. Perform exploratory analysis, examining graphical displays and correlation coefficients. 4. Perform transformations as necessary. 5. Examine a residual plot after fitting a rich model, performing further transfor- mations and considering outliers. 6. Use a computer-assisted technique for finding a suitable subset of explana- tory variables, exerting enough control over the process to be sensitive to the questions of interest. 7. Proceed with the analysis, using the selected explanatory variables. Example—Preliminary Analysis of the State SAT Data The objectives of the SAT study were set out earlier. The variables in Display 12.1 were screened from the original source variables. (Several irrelevant variables were not retained.) Display 12.4 shows the matrix of scatterplots for the SAT data. Examination of the bottom row indicates some nonlinearity in the relationship between SAT and percentage of takers and shows some potential outliers with respect to the variables public school percentage and state expenditure. Using the logarithm of the percentage of takers responds to the first problem, yielding a relationship that looks like a straight line. The outliers were identified: Louisiana is the state with the unusually low percentage of students attending public schools, and Alaska is the state with the very high state expenditure. These require further examination after a model has been fit. The questions of interest call for adjustment with respect to percentage of SAT takers and median class rank of those takers in each state. When a preliminary regression of SAT was fit on both of these variables (a fit unaffected by Louisiana and Alaska), the variables were found to explain 81.5% of the variation between state SAT averages. Partial residual plots at this stage help the researcher evaluate the effects of some of the other explanatory variables, after the first two are accounted for. Display 12.5 shows a partial residual plot of the relationship between SAT and expenditure, after the effects of percentage of takers and class rank have been Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 356 Chapter 12 Strategies for Variable Selection DISPLAY 12.4 Median Rank Years of Study Median Income Public School % State Expenditure SAT Matrix of scatterplots for SAT scores and six explanatory variables Percentage of Median Takers Rank Years of Study Median Income Public School % State Expenditure cleared out of the way. This plot has two striking features: It reveals the noticeable effect of expenditure, after the two adjustment variables are accounted for; and it demonstrates that Alaska is very influential in any fit involving expenditure. To clarify this, the diagram shows two possible straight line regression fits—one with and one without Alaska. The slopes of these two lines differ so markedly that nei- ther value would lie within a confidence interval based on the other. Case influence statistics confirm that Alaska is influential. It has a large leverage .hi D 0:458, from a statistical computer program) and does not fit well to the model that fits the other states (studentized residual D 􏰀3:28). The prudent step is to set Alaska aside for the remainder of the analysis. It can be argued that the role of expenditure is somewhat different in that state, since the costs of heating school buildings and transporting teachers and students long distances are far greater in Alaska, and these expenses do not contribute directly to educational quality. Furthermore, too few states have similar expenditures to Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.3 Sequential Variable-Selection Techniques 357 DISPLAY 12.5 Partial residual plot of state average SAT scores (adjusted for percentage of students in the state who took the test and for median class rank of the students who took the test) versus state expenditure on secondary education NH TN Slopes Without Alaska 4.46 (0.70) Alaska With Alaska 2.85 (0.60) SC 120 100 80 60 40 20 0 –20 20 30 40 50 Expenditure ($100s per student) permit an accurate determination of the proper form of the model for expenditures greater than $3,500 per student. A similar plot of partial residuals versus percentage of students in public schools provides no reason to be concerned about Louisiana. The effect of the percentage of students who attend public schools in a state appears to be insignificant whether Louisiana is included or not. 12.3 SEQUENTIAL VARIABLE-SELECTION TECHNIQUES The search for a suitable subset of explanatory variables may encompass a large array of possible models. Computers facilitate the process immensely, since hun- dreds or even thousands of models can be analyzed in a short period of time. Yet in some instances the search may be so wide as to tie up even the best computer for an intolerable amount of time. Sequential variable selection procedures offer the option of exploring some (but not all) of the possible models. A step in any sequential (or stepwise) procedure begins with a tentative cur- rent model. Several other models in the neighborhood of the current model (but differing from the current model in having one of its variables excluded or having one additional variable included) are examined to determine whether they are in some sense superior. If so, the best is chosen as the tentative model for the next step. Procedures may differ in their definitions of neighborhood, in their criteria for superiority, and in their initial tentative model. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Partial Residual 358 Chapter 12 Strategies for Variable Selection 12.3.1 Forward Selection The forward selection procedure starts with a constant mean as its current model and adds explanatory variables one at a time until no further addition significantly improves the fit. Each forward selection step consists of two tasks: 1. Consider all models obtained by adding one more explanatory variable to the current model. For each variable not already included, calculate its “F -to-enter” (the extra-sum-of-squares F -statistic for testing its significance). Identify the variable with the largest F -to-enter. 2. If the largest F -to-enter is greater than 4 (or some other user-specified number), add that explanatory variable to form a new current model. Tasks 1 and 2 are repeated until no additional explanatory variables can be added. Backward Elimination In the backward elimination method, the initial current model contains all possible explanatory variables. Each step in this procedure consists of two tasks: 1. For each variable in the current model, calculate the F-to-remove (the extra-sum-of-squares F -statistic for testing its significance). Identify the vari- able with the smallest F -to-remove. 2. If the smallest F -to-remove is 4 (or some other user-specified number) or less, then remove that explanatory variable to arrive at a new current model. Tasks 1 and 2 are repeated until none of the remaining explanatory variables can be removed. Stepwise Regression The constant mean model with no explanatory variables is the starting current model. Each step consists of the following tasks. 1. Do one step of forward selection. 2. Do one step of backward elimination. Tasks 1 and 2 are repeated until no explanatory variables can be added or removed. Inclusion of Categorical Factors Each categorical factor is represented in a regression model by a set of indicator vari- ables. In the absence of a good reason for doing otherwise, this set should be added or removed as a single unit. Some computer packages allow this automatically. No Universal Best Model Forward selection, backward elimination, and stepwise regression can lead to differ- ent final models. This fact should not be alarming, since no single best model can 12.3.2 12.3.3 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.3 Sequential Variable-Selection Techniques 359 be expected. It does, however, emphasize a disadvantage of these methods: Only one model is presented as an answer, which may give the false impression that this model alone explains the data well. As a result, unwarrantedly narrow attention may be accorded to the particular explanatory variables in that single model. 12.3.4 Sequential Variable-Selection with the SAT Data Display 12.6 is a skeleton of all possible models in the SAT example (with Alaska excluded). Such a display would not be used in practice, but it illustrates how sequential techniques find a good-fitting model even though they search through only a handful of all possible models. The models on the display are labeled with one-character symbols associated with each explanatory variable. The model labeled 1 has only the intercept. The model labeled T has the intercept and t (the log of the percentage of takers) only. The model labeled ET has the intercept, the log of percentage of takers (t), and state expenditure (e). And so on. All models in the same row contain the same number of explanatory variables. Models are coded so that the variables whose F -statistics are greater than 4 are listed in uppercase letters, and those with F - statistics less than or equal to 4 are listed in lowercase letters. So, for example, in the fit to the four-variable model with income, years, public, and expenditure, listed as IYPe, expenditure is not significant, but the other variables are. The lines connecting the boxes in the display represent the paths for getting from one model to another that has one fewer or one more explanatory variable. Forward Selection Model 1 is taken as the initial current model, and all single-variable models are considered. In the second row of Display 12.6, models I, Y, R, and T all have coefficients whose F -statistics are larger than 4. The one of these with the largest F-to-enter is T, so it is taken as the next current model. Next, all models that include T and one other variable are examined. Only Y and E add significantly when added to the model with T. Of these, E has the larger F-to-enter, so the next current model is ET. Next, all three-variable models that include E and T are considered, but in no case is the additional variable significant. Therefore, the forward selection process stops, and the final model is ET. The entire procedure required the fitting of only 16 of the 64 possible models. Backward Elimination The model with all variables, iYpERT, is taken as the starting point. Of the variables in the model, p (public) has the smallest F -statistic, and p is dropped because its F is less than 4. The resulting model is iYERT. The least significant coefficient in the new current model is the one for i (income), and its F -statistic is less than 4, so it is dropped. The resulting model is YERT. All of the variables in this model have F -statistics greater than 4, so this is the final model. This procedure required the fitting of only 3 of the 64 possible models, and none of the 3 was in the set considered by forward selection. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 12.6 Anatomy of sequential variable selection—SAT example 1 A “significant” variable (F > 4) is listed with a capital letter.
Forward
IYpeRT
Iy IP Ie Yp IR Ye pe iT YR pR YT ER pT ET rT
IYP Iye IPe IYR Ype ipR iYT YpR IER ipT iET YpT YER irT PER yET YRt pET prT ErT
IYPe IYpR IYER iYPT iPER iyET iYRt ipET YPER iprT ypET iErT Yprt YERT pErT
iYpER iypET iYprt
iYERT ipErT YpERT
iYpERT
Backward
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

12.4
Stepwise Regression
Stepwise regression starts with one step of forward selection to arrive at the model T. No variables can be dropped, so it tries to add another. It arrives at ET. It then checks whether any of the variables in this model can be dropped. None can, so it seeks to add another variable, but no others add significantly, so the procedure stops at ET .
12.3.5 Compounded Uncertainty in Stepwise Procedures
The cutoff value of 4 for the F-statistic (or 2 for the magnitude of the t-statistic) corresponds roughly to a two-sided p-value of less than 0.05. The notion of “signif- icance” cannot be taken seriously, however, because sequential variable selection is a form of data snooping.
At step 1 of a forward selection, the cutoff of F D 4 corresponds to a hypothesis test for a single coefficient. But the actual statistic considered is the largest of several F -statistics, whose sampling distribution under the null hypothesis differs sharply from an F -distribution.
To demonstrate this, suppose that a model contained ten explanatory variables and a single response, with a sample size of n D 100. The F -statistic for a single variable at step 1 would be compared to an F -distribution with 1 and 98 degrees of freedom, where only 4.8% of the F-ratios exceed 4. But suppose further that all 11 variables were generated completely at random (and independently of each other), from a standard normal distribution. What should be expected of the largest F -to-enter?
This random generation process was simulated 500 times on a computer. Dis- play 12.7 shows a histogram of the largest among ten F -to-enter values, along with the theoretical F-distribution. The two distributions are very different. At least one F -to-enter was larger than 4 in 38% of the simulated trials, even though none of the explanatory variables was associated with the response.
This and related arguments imply that sequential procedures tend to select models that have too many variables if the set contains unimportant ones. This may not be a serious problem for some data problems, but better techniques are avail- able. In part, variable-selection routines are important for historical reasons, since they were the only tools available when computing time was substantially slower. They are also important because they extend in an obvious way to other types of modeling. Now that computers can look at every possible regression model, how- ever, criteria not based on sequential significance address more pertinent features in desired models.
MODEL SELECTION AMONG ALL SUBSETS
A second approach to model selection involves fitting all possible subset models and identifying the ones that best satisfy some model-fitting criterion. Since sequential selection is avoided, the criteria can be based directly on the key issues: including
12.4 Model Selection Among All Subsets 361
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

362
Chapter 12 Strategies for Variable Selection
DISPLAY 12.7 Simulated distribution of the largest of ten F-statistics
F-distribution with 1 and 98 d.f. (theoretical curve)
Largest of ten F-to-enter values (histogram from 500 simulations)
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
F-Statistic
12.4.1
enough explanatory variables to model the response accurately without the loss of precision that occurs when essentially redundant and unnecessary terms are included.
The two criteria presented in this section are the Cp statistic and Schwarz’s Bayesian Information Criterion. These are calculated for the fit to a model, so each of the possible regression models receives a numerical score. Before these are examined, some simpler choices should be mentioned.
R2 andAdjustedR2
Comparing two models with the same number of parameters is relatively easy: The one with the smaller residual mean square O 2 is preferred. When applied to comparisons of models that have different numbers of parameters, R2 (not adjusted) always leads to selecting the model with all variables. Because R2 is incapable of making a sensible selection, some researchers use the adjusted R2. This is equivalent to selecting the model with the smallest O 2—a criterion that generally favors models with too many variables.
The Cp Statistic and Cp Plot
The Cp statistic is a criterion that focuses directly on the trade-off between bias due to excluding important explanatory variables and extra variance due to including too many. The bias in the ith fitted value is
BiasfYOi g D fYOi g 􏰀 fYi g:
This is the amount by which the mean in the sampling distribution of the ith fitted
value differs from the mean it is attempting to estimate. The mean squared error
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

12.4 Model Selection Among All Subsets 363
is the squared bias plus the variance:
MSEfYOi g D ŒBiasfYOi g2 C VarfYOi g:
The total mean squared error (TMSE) for a given model is the sum of these over all
observations:
n
TMSE D X MSEfYOi g: iD1
It is desired to find a subset model with a small value of TMSE. The squared bias terms are small if no important explanatory variables are left out, and the variance terms are small if no unnecessary explanatory variables are included.
The Cp statistic is an estimate of TMSE/2, based on assuming that the model with all available explanatory variables has no bias. For a model that has p regression coefficients (including ˇ0), the Cp statistic is computed as
where O2 is the estimate of 2 from the tentative model, and O2 is the estimate full
of 2 from the fit with all possible explanatory variables. One Cp statistic can be calculated for each possible model.
Models with small Cp statistics are looked on more favorably. If a model lacks
important explanatory variables, it will show greater residual variability than the
full model with all explanatory variables will show. Thus, O 2 􏰀 O 2 will be large. full
On the other hand, if the difference in estimates of 2 is close to zero, including p in the formula will add a penalty in the Cp statistic for having more explanatory variables than necessary.
The Cp Plot
A Cp plot is a scatterplot with one point for each subset model. The y-coordinate is the Cp statistic, and the x-coordinate is p—the number of coefficients in the model. Each point in the plot is labeled to show the model to which it corresponds, often by including one-letter codes corresponding to each explanatory variable that appears in the model.
The Cp plot, which is available in many statistical computer packages, can be scanned to identify several models with low Cp statistics. The line at Cp D p is often included on the plot, since a model without bias should have Cp approximately equal to p. Some users treat this line as a reference guide for visual assessment of the breakdown of the Cp statistic into bias and variance components; but the Cp statistic itself is the criterion. Thus, the models with smallest Cp statistics are considered. There is nothing magical about the model with the smallest Cp, since the actual ordering is likely to be affected by sampling variability; thus, a different set of data may result in a different ordering. Picking a single model from among all
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
CP DpC.n􏰀p/
O 2 full
full ;
. O 2 􏰀 O 2 /

364
Chapter 12 Strategies for Variable Selection
Three criteria for comparing regression models with different subsets of X ’s. Subsets that pro- DISPLAY 12.8 duce small values of these are thought to strike a good balance between small sum of squared
residuals (SSRes) and not too many regression coefficients (p).
Criterion to make small = SS Res. part + Penalty for number of terms
SSRes
Cp 5 2n 12p
full
BIC 5 n3log_SSRes+ 1 log(n)×(p+1) n
AIC 5 n3log_SSRes+ 1 2×(p+1) n
12.4.2
those with small Cp statistics is usually a matter of selecting the most convenient one whose coefficients all differ significantly from zero.
Akaike and Bayesian Information Criteria
The Cp statistic takes a measure of the lack of fit of a model and adds a penalty for the number of terms in the model. As more terms are included in the model, lack of fit decreases, but the penalties increase. Models with small Cp statistics balance the lack of fit and the penalty.
Two alternative model selection statistics incorporating similar penalties are Akaike’s Information Criterion (AIC) and Schwarz’s Bayesian Information Criterion (BIC). Display 12.8 shows the formulas for these statistics.
Some computational versions of BIC and AIC differ from the formulas in Display 12.8 by a constant. Since the constant is the same for all models, this will not affect the ordering of models indicated by the model-fitting criteria.
The BIC penalty for number of betas is larger than the AIC penalty for all sample sizes larger than 7, and the difference increases with increasing sample size. Consequently, BIC will tend to favor models with fewer X’s than AIC, especially from large samples. There is no theory for clarifying the relative benefits of these two criteria; they simply reflect different approaches for balancing under- and over- fitting. In general, AIC seems more appropriate if there are not too many redundant and unnecessary X’s in the starting set; BIC seems more appropriate if there are many redundant and unnecessary. The distinction between these two situations is rarely clear in practice, but BIC is particularly useful when the researcher places a larger burden of model determination on the computer, such as when a set of measured X’s, their quadratic terms, and all possible two-term interactions are included in the starting set.
In any case, it is important to realize that no criterion can be superior in all situations. It is also important to realize that variable-selection routines will not discover a scientific law of nature. There are usually many possible subsets— formed from highly interconnected explanatory variables—that explain the response
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

12.5 Posterior Beliefs About Different Models 365
DISPLAY 12.9
Cp plot for state SAT averages (excluding Alaska and showing only those models with Cp < 10/; t D log percentage of takers, i D income; y D years; p D public; e D expend, and r D rank 10 9 8 7 6 5 te In the region above this line, models may produce biased estimates of mean responses. tpe tie ter tye y per tiye tier type tper iyer tiper iyper typer tiyer tiyper 4 tyer 3 2 1 Below this line, models likely have no problems with bias, as long as the full model has none. 234567 p (Number of Coefficients in the Model) variation equally well. As the famous English statistician George E. P. Box said, “All models are wrong, but some are useful.” SAT Example Display 12.9 shows a Cp plot for the SAT data (without Alaska), including only models with Cp less than 10. The models are identified on the plot by the variables included, with t D log percentage of takers, i D income, and so on. Observe that the Cp statistic for the general model that includes all variables—tiyper—equals the maximum number of terms, 7 (including the constant). The model tyer, which was identified by backward elimination, has the smallest Cp statistic. The model tyer has the smallest BIC, at 322.4. It is followed by te with BIC D 322:7, tye with BIC D 324:2, and ter with BIC D 324:6. The models with smallest AIC values are tyer with AIC D 311:1, tiyer with AIC D 311:9, typer with AIC D 312:7, and tiyper with AIC D 313:9. 12.5 POSTERIOR BELIEFS ABOUT DIFFERENT MODELS One branch of statistical reasoning, called Bayesian statistics, assumes that beliefs in various hypotheses can be expressed on a probability scale. The elegant theorem of English mathematician Thomas Bayes (1702–1761), known as Bayes’ Theorem, specifies precisely how beliefs held prior to seeing the data should be altered by Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Cp Statistic 366 Chapter 12 Strategies for Variable Selection statistical evidence to arrive at a set of posterior beliefs. In the present setting, Bayesian statistics can be used to update the probability that each subset model is correct, given the available data. Suppose that consideration is confined to models M1;M2;:::;MK, and sup- pose that prior probabilities (probabilities of belief prior to seeing the data) on these models are prfM1g, prfM2g;:::; prfMKg. Applying a Bayesian formulation, Schwarz showed that the updated probabilities for the models, given the data (D), were approximately prfMj jDg D prfMj g  expf􏰀BICj g=SUM where K SUM D X prfMi g  expf􏰀BICi g; iD1 whereprfMjjDg,calledaposteriorprobability,istheprobabilityofMj afterseeing the data. When no prior reasons exist for believing that one model is better than any other, prfMj g is the same for all j , and the posterior probabilities are simple functions of the BIC values for each model. For the SAT example, the values of BIC have been calculated for each model and then used in this formula to identify the posterior probabilities. The posterior probability that the model is te is 0.764, followed by tyer with 0.115, tie with 0.060, and tpe with 0.041. The posterior probability that the model is any of the other 60 models is 0.020, and no other single model has a posterior probability greater than 0.006. 12.6 ANALYSIS OF THE SEX DISCRIMINATION DATA To investigate male/female differences in beginning salaries requires a strategy that convincingly accounts for variables other than the sex indicator before adding it to the equation. Initial investigation indicates that beginning salary should be examined on the log scale. Scatterplots of log beginning salary versus other variables show that the effect of experience is not linear. Beginning salaries increase with increasing expe- rience up to a certain point; then they level off and even drop down for individuals with more experience. A quadratic term could reproduce this behavior well. A similar effect is seen with age: a correlation between age and experience may be responsible for that effect, but it is wise initially to consider a squared term for both variables. It may seem that seniority (number of months working with the company) is an inappropriate term to include for modeling beginning salary, but its inclusion accounts for increasing beginning salaries over time. Rather than as seniority, it might be thought of as time prior to March 1977 that the individual was hired. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.6 Analysis of the Sex Discrimination Data 367 Such considerations point to the necessity of including in the investigation a model rich enough to be extremely unlikely to miss an important relationship between log beginning salary and all explanatory variables other than the sex indi- cator. A saturated second-order model that includes all quadratic terms and all interaction terms satisfies that criterion. (See Section 12.7.3 for further discussion of second-order models.) Notation Fourteen variables appear in the saturated second-order model, so naming variables with single letters utilizes space well, even though it sacrifices clarity. The full complement of explanatory variables is given in Display 12.10. A word represents a model whose explanatory variables consist of the letters that make up the word. For example, the word saebc represents the model with seniority, age, education, the square of age, and the product of age with education—a model with six parameters in all (including the constant). A total of 16;384.D 214/ models are formed by all possible combinations of the 14 terms in the preceding box. The goal is to find a good subset of these terms for explaining log salary, to which the sex indicator variable may be added. Although quadratic and interaction terms should be considered, it is not good practice to include quadratic terms without the corresponding linear term; neither is it good practice to include interaction terms without the two corresponding main effects. The preferred approach, therefore, is to identify the better models (of the 16,384) and then to identify the best subset of these that meets the narrower criteria restrictions of “good practice.” Identifying Good Subset Models Display 12.11 shows a Cp plot. The Cp statistics were based on the full model containing all 14 terms. To reduce clutter, the plot displays Cp statistics only for models that meet the criteria discussed in the previous paragraph and, in addi- tion, have small Cp values. Only a few good-fitting models with more than seven parameters are shown on this plot. Models saexck and saexnck have lower Cp statistics than any others, and they appear to have no bias relative to the saturated model (since they fall near or below the line at Cp D p). The BIC clarifies the issue further: among 382 models examined, the BIC assigns a posterior probability of 0.7709 to saexck, with saexyc Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 12.10 Explanatory variables for the sex discrimination data Main effect variables Quadratic variables Interaction variables 368 Chapter 12 Strategies for Variable Selection DISPLAY 12.11 Cp plot for the sex discrimination study 15 aexck 10 aexyc Cp Statistic 5 saexkq saexyk saexck saextnck saexnck 5 10 15 Number of Model Parameters receiving the second highest posterior probability of 0.0625. Display 12.12 shows the 20 models that recorded the highest posterior probabilities. Evaluating the Sex Effect When the sex indicator variable is added into model saexck, its estimated coefficient is 􏰀0:1196, with a standard error of 0.0229. The t-statistic is 5.22, and the test that the coefficient is zero against the alternative that it is negative has a one-sided p-value D 6:3  10􏰀7. Thus, conclusive evidence exists that sex is associated with beginning salary, even after seniority, age, education, and experience are accounted for in this model. The median female salary is estimated to be exp.􏰀0:1196/ D 0:887 times as large as (that is, about 11% less than) the median male salary, adjusted for the other variables. Accounting for Model Selection Uncertainty Using the BIC The preceding inferential statements pertain specifically to the single model saexck, selected to represent the influence of the potentially confounding variables. One criticism of this result is that it fails to account for the uncertainty involved in the model selection process. A second criticism is that the addition of the sex indicator Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.6 Analysis of the Sex Discrimination Data 369 DISPLAY 12.12 Bayesian posterior analysis of the difference between male and female log beginning salaries Model BIC saexck 2404.15 saexnck 2401.91 saexyc 2401.63 saexkq 2401.03 saexbck 2400.32 saextck 2400.21 saexbkq 2400.19 saexync 2400.16 saexfck 2399.95 saexckq 2399.89 saexyck 2399.74 saexmck 2399.68 saexvck 2399.63 aexyc 2399.49 aexck 2399.18 saexyq 2398.64 saextyc 2398.42 saectnck 2398.14 saexbc 2397.95 saexyvc 2397.93 all others combined Posterior Coefficient probability of sex SE 0.6909 20.1196 0.0229 0.0738 20.1173 0.0229 0.0558 20.1287 0.0226 0.0306 20.1244 0.0221 0.0150 20.1195 0.0229 0.0134 20.1189 0.0232 0.0132 20.1206 0.0221 0.0129 20.1258 0.0225 0.0104 20.1196 0.0230 0.0097 20.1208 0.0230 0.0084 20.1257 0.0232 0.0079 20.1195 0.0231 0.0076 20.1196 0.0231 0.0065 20.1247 0.0238 0.0048 20.1135 0.0246 0.0028 20.1328 0.0218 0.0023 20.1271 0.0228 0.0017 20.1163 0.0232 0.0014 20.1230 0.0237 0.0014 20.1281 0.0226 0.0294 One-sided p-value 6.16E-07 9.31E-07 8.21E-08 1.16E-07 6.57E-07 8.97E-07 2.36E-07 1.34E-07 6.80E-07 5.43E-07 2.75E-07 7.32E-07 7.17E-07 5.48E-07 6.86E-06 1.46E-08 1.41E-07 1.41E-06 6.83E-07 9.97E-08 s 5 Seniority a 5 Age e 5 Education x 5 Experience t 5 s2 b 5 a2 f 5 e2 y 5 x2 m 5 s 3 a n 5 s 3 e v 5 s 3 x c 5 a 3 e k 5 a 3 x q 5 e 3 x variable to other good-fitting models might produce less convincing evidence of a sex effect. The posterior probabilities for various models allow the analyst to address both criticisms. Suppose that ı represents the coefficient of the sex indicator variable and that f .ıjMj / represents some function f .ı/ based on the assumption that model Mj is correct. The Bayesian analysis permits an average estimate of f.ı/ over different models. Furthermore, the average is weighted to represent the strength of belief in each of the various models. The estimate of f .ı/ in this way incorporates the uncertainty in model selection. The weighted average is Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. K f fıjDg D X f .ıjMj /  prfMj jDg: iD1 370 Chapter 12 Strategies for Variable Selection 12.7 Two choices for f .ı/ are ı itself (the estimate of the sex effect) and the p-value for testing its significance. The sex indicator variable was added to each of the 382 models and combined as shown in the preceding equation to produce the single (posterior) estimate of 􏰀0:1206 and a single (posterior) p-value of 6:7  10􏰀7 (this requires some programming). A listing of the top 20 candidate models, together with their contributions to the posterior information, is shown in Display 12.12. The use of Bayesian statistics requires that somewhat different interpretations be given to the estimate and to the p-value. The average estimate is termed a Bayesian posterior-mean estimate, while the average p-value is called the posterior probability that ı is greater than zero. The probability refers to a measure of belief about the hypothesis that the sex coefficient is zero. This is a different philosophical attitude than any previously considered, but two issues argue in its favor for this application. First the formula itself gives the p-value for every model a chance to contribute in the final estimate, with a weight appropriate to the support given the model by the data. Second, no known statistical procedures based on other philosophies incorporate model selection uncertainty in this way. RELATED ISSUES 12.7.1 The Trouble with Interpreting Significance when Explanatory Variables Are Correlated When explanatory variables are correlated, interpretation of individual regression coefficients and their significance is quite difficult and perhaps too convoluted to be of use. The central difficulty is that interpreting a single coefficient as the amount by which the mean response changes as the single variable changes by one unit, holding all other variables fixed, does not apply; this is because the data generally lack experience with situations where one variable can be changed in isolation. Consider the variable expend—the per student state expenditure—in the SAT example. This variable can be added to any model that does not already contain it. This was done for all models not containing expend, with the results shown in Display 12.13. The first three columns of Display 12.13 are self-explanatory, the key point being that the p-values vary widely. The last column is the addition to R2 resulting from the addition of expend to the model. The variation in these percentages can be traced to the correlation between expend and the other variables used in the model. The last column can be interpreted as the extra sum of squares due to expend, expressed as a percentage of the total sum of squares. The fourth column is the extra sum of squares due to expend, expressed as a percentage of the sum of squared residuals. The huge variations in that column arise because of the differing amounts of variability explained by the different models not containing expend. This is most directly related to the variation in p-values for expend, but the correlational aspect also plays a role. Ultimately, the answer to the often-asked question, “Which variables are sig- nificant?” has to be “It depends.” Similarly, there is usually no definitive answer Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.7 Related Issues 371 DISPLAY 12.13 Statistical measures for the contribution of expend to different models (Alaska removed) % Variation explained by expend Model t-statistic Two-sided p-value 0.79 0.69 0.39 0.86 0.00002 0.0000002 0.94 0.92 0.00001 0.0000005 0.30 0.0001 0.000003 0.0000003 0.0000004 0.0000002 0.36 0.00008 0.000005 0.000001 0.000001 0.0000004 0.00002 0.00002 0.000005 0.0000001 0.0001 0.00009 0.00001 0.0000004 0.000007 0.00003 Previous residual 0.2 0.3 1.6 0.1 33.2 44.3 0.0 0.0 24.6 43.4 2.4 28.2 38.5 44.6 43.7 45.5 1.9 30.1 38.0 41.4 41.5 44.4 34.4 34.2 38.3 47.2 29.8 30.4 36.8 45.1 38.0 33.9 Total variation to the question, “Which variable is most significant?” It is best to try to focus attention on questions that ask specifically for the assessment of significance after accounting for other specified variables or groups of variables. 12.7.2 Regression for Adjustment and Ranking One valuable use of regression is for adjustment. Consider the regression of state SAT averages on percentage of eligible students in the state who decide to take the test and on the median class rank of the students who take the exam. A residual plot from the fit (excluding Alaska) is shown in Display 12.14. The residuals are the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 6.7 372 Chapter 12 Strategies for Variable Selection DISPLAY 12.14 Scatterplot of residuals versus fitted values from the regression of state SAT average on percentage of takers and median class rank of takers New Hampshire South Carolina 100 50 0 –50 –100 900 950 1,000 Fitted Values 1,050 12.7.3 state SATs with the estimated linear effects of log percentage of takers and median class rank removed. Thus, they serve as the SATs adjusted for these two variables (and are scaled so that the average is zero). New Hampshire, for example, whose “raw” SAT average is 925 (which is 23 points less than the overall average of all states) has a very high percentage of eligible students who take the exam and a fairly low median class rank among the takers. The estimated mean SAT score for a state with these values is 876. Since New Hampshire’s actual SAT score was 925, its value exceeded the prediction (according to the model with percentage of takers and median class rank) by 49 points. It is therefore appropriate to say that New Hampshire’s SAT adjusted for percentage of takers and median class rank of takers is 49 points above average. The ranking on the left side of Display 12.2 is based directly on the residuals shown in Display 12.14. New Hampshire has the largest residual, and therefore the largest SAT adjusted for percentage of takers and median class rank. South Carolina has the smallest. The ranking on the right side of Display 12.2 is based on the residuals from a model that also includes expenditure. In this case, New Hampshire’s SAT, adjusted for percentage of takers, median class rank, and expenditure, is 67 points above the average predicted for a state with the same values of percentage of takers, median rank, and expenditure. Saturated Second-Order Models A saturated second-order model (SSOM) includes the squares of all explanatory variables and all cross products of pairs of explanatory variables. It describes .Y / Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Residuals 12.7 Related Issues 373 as a completely arbitrary parabolic surface. The SSOM should contain a subset model that describes the regression surface well. Numbers of Subset Models Given K original variables, the SSOM itself contains ŒK.K C 3/=2 C 1 parameters. When all possibilities are taken into account, the total number of p-parameter hierarchical models (meaning ones where, for example, X12 appears only if X1 also appears, and X1X2 appears only if both X1 and X2 appear) available from K original variables is K XCK;j C.CjC1;2/;.p􏰀1􏰀j/; jD0 where Cn;m, recall, is nŠ=ŒmŠ.n 􏰀 m/Š and Cn;m D 0 whenever n < m. Holding out the sex indicator in the sex discrimination problem leaves K D 4 explanatory vari- ables: seniority, age, education, and experience. The full SSOM has 15 parameters, and subset models have 1; 2; 3; : : : ; 14 parameters. The number of distinct hierar- chical models that can be considered is the number of hierarchical modes with one parameter plus the number with two parameters and so on up to the number of hierarchical models with fourteen parameters. According to the formula, a total of 1,337 distinct models can be considered. Strategies for Exploring Subsets of the SSOM The SAT study featured K D 6 explanatory variables. The SSOM for that problem contains 28 parameters. The number of hierarchical models with 17 parameters, for example, is 352,716, and the total of all hierarchical models to consider is 2,104,489. Things rapidly get out of hand, and it becomes necessary to plan a strategy for sorting through some—but not all—of the models for promising candidates. The strategy employed in the sex discrimination study was to examine all subset models up to some level .p D 7/ first. Forward selection from the best models with p  7 came next, followed by backward elimination from the saturated second-order model. Finally, models in the neighborhood of promising models were included. A neighborhood of one model consists of all models that can be obtained by adding or dropping one variable. Another strategy involves grouping variables into sets that have a common theme and exploring each set separately to determine its best subset. When these are combined into an overall model, subsets consisting of products of retained variables from one set with those from another may also be examined. A third strategy is to identify which of the original variables are important, by examining all subsets with main effects only (i.e., excluding squared and interaction terms), and then to build the SSOM from those variables alone and explore subsets. 12.7.4 Cross Validation Inference after the use of a variable selection technique is tainted by the data snooping involved in the process. The selected model is likely to fit much better to Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 374 Chapter 12 Strategies for Variable Selection the data that gave it birth than to fresh data. Thus, p-values, confidence intervals, and prediction intervals should be used cautiously. If the data set is very large, the analyst may benefit from dividing it at random into separate model construction and validation sets. A variable selection tech- nique can be used on the model construction set to determine a set of explanatory variables. The selected model can then be refit on the validation set, without any further exploration into suitable explanatory variables, and inferential questions can be investigated on this fit, ignoring the construction data. When the purpose of the regression analysis is prediction, it is recommended that the validation data set be about 25% of the entire set. Although the saving of the 25% of the data for validation seems reasonable for other purposes, the actual benefits are not very well understood. 12.8 SUMMARY Model selection requires an overall strategy for analyzing the data with regression tools (see Display 9.9). After giving initial thought to a game plan for investigating the questions of interest, the preliminary analysis consists of a combination of exploration, model fitting, and model checking. Once some useful models have been identified, the answers to the questions of interest can be addressed through inferences about their parameters. Tools for initial exploration include graphical methods (such as a matrix of scatterplots, coded scatterplots, jittered scatterplots, and interactive labeling) and correlation coefficients between various variables. Certain tricks for modeling are used extensively in the case studies—indicator variables, quadratic terms, and inter- action terms. For model checking and model building, a number of other tools are suggested: residual plots, partial residual plots, informal tests of coefficients, case influence statistics, the Cp plot, the BIC, and sequential variable selection techniques. Finally, some inferential tools are presented: t-tests and confidence intervals for individual coefficients and linear combinations of coefficients, extra sums-of-squares F -tests, prediction intervals, and calibration intervals. SAT Study Although this example is used to demonstrate variable-selection techniques, the actual analysis is guided by the objectives, and variable selection played only a minor role. These data have been used to rank the states on their success in sec- ondary education, but in this regard selection bias poses a serious problem. In some states, for example, a high SAT average reflects the fact that only a small proportion of students—the very best ones—took the test, rendering the self-selected sample far from representative of high school students in the state overall. One goal of the regression analysis is to establish a ranking that accounts for this selection bias. Although overcoming the limitations of a self-selected sample is impossible, it is pos- sible to rank the states after subtracting out the effects of the different proportions of students taking the test and their different median class rankings. Accomplishing Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.9 Exercises 375 this involves fitting the regression of SAT scores on these two explanatory variables, and ranking the states according to the sizes of their residuals. A further question is exploratory in nature: Are any other variables associated with SAT score? For example, is the amount of money spent on secondary education related to it? Variable selection techniques may be useful for sorting through various models to identify promising predictors. Whatever models are suggested, though, only the ones that include percentage of takers and median class rank should be chosen, since a question does not make sense unless it addresses the effect on SAT after these two variables associated with the selection bias are accounted for. After performing a transformation of the percentage takers and setting Alaska aside, the Cp plot selects the model tyer with log takers, years (studying natural science, social science, and humanities), expenditure, and median rank as explanatory variables. Sex Discrimination Study Model selection in this example is motivated by the need to account fully for the nondiscriminatory explanatory variables before the sex indicator variable is introduced. Initial scatterplots indicate the important explanatory variables, which permit fitting a tentative model on which residual analysis can be conducted. After transformation, the analysis consists of using a variable selection technique to iden- tify a good set of variables for explaining beginning salary. An inferential model is formed by this set plus the sex indicator variable, making precise the objective of seeing whether sex constitutes an important explanatory factor after everything else is accounted for. It may be disconcerting to realize that the different variable selection routines indicate different subset models; but it is reassuring that the estimated sex effect is about the same in all cases. 12.9 EXERCISES Conceptual Exercises 1. State SATs. True or false? If the coefficient of the public school percentage is not significant ( p-value > 0.05) in one model, it cannot be significant in any model found by adding new variables.
2. State SATs. True or false? If the coefficient of income is significant ( p-value < 0:05/ in one model, it will also be significant in any model that is found by adding new variables. 3. State SATs. Why are partial residual plots useful for this particular data problem? 4. Sex Discrimination. Suppose that another explanatory variable is length of hair at time of hire. (a) Will the estimated sex difference in beginning salaries be greater, less, or unchanged when length of hair is included in the set of explanatory variables for adjustment? (b) Why should this variable not be used? 5. Suppose that the variance of the estimated slope in the simple regression of Y on X1 is 10. Suppose that X2 is added to the model, and that X2 is uncorrelated with X1. Will the variance of the coefficient of X1 still be 10? 6. In a study of mortality rates in major cities, researchers collected four weather-related variables, eight socioeconomic variables, and three air-pollution variables. Their primary question concerned Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 376 Chapter 12 Strategies for Variable Selection DISPLAY 12.15 the effects, if any, of air pollution on mortality, after accounting for weather and socioeconomic differences among the cities. (a) What strategy for approaching this problem should be adapted? (b) What potential difficulties are involved in applying a model-selection strategy similar to the one used in the sex-discrimination study? 7. In the Cp plots shown in Display 12.9 and Display 12.11, the model with all available explana- tory variables falls on the line (with intercept 0 and slope 1), meaning that the value of Cp for this model is exactly p. Will this always be the case? Why? 8. What is the usual interpretation of the probability of an event E? How does a Bayesian interpretation differ? 9. How does the posterior function, discussed in Section 12.5, account for model-selection uncertainty? Computational Exercises 10. A, B, and C are three explanatory variables in a multiple linear regression with n D 28 cases. Display 12.15 shows the residual sums of squares and degrees of freedom for all models. Data for Exercise 10 Residual sum Degrees Model variables of squares of freedom (a) Calculate the estimate of 2 for each model. (b) Calculate the adjusted R2 for each model. (c) Calculate the Cp statistic for each model. (d) Calculate the BIC for each model. (e) Which model has (i) the smallest estimate of 2? (ii) the largest adjusted R2? (iii) the smallest Cp statistic? (iv) the smallest BIC? 11. Using the residual sums of squares from Exercise 10, find the model indicated by forward selection. (Start with the model “None,” and identify the single-variable model that has the smallest residual sum of squares. Then perform an extra-sum-of-squares F -test to see whether that variable is significant. If it is, find the two-variable model that includes the first term and has the smallest residual sum of squares. Then perform an extra-sum-of-squares F -test to see whether the additional variable is significant. Continue until no F -statistics greater than 4 remain for inclusion of another variable.) 12. Again referring to Exercise 10, calculate expf􏰀BIC C BICming for each model. Add these and divide each by the sum. What is the resulting posterior distribution on the models? 13. Use the computer to simulate 100 data points from a normal distribution with mean 0 and variance 1. Store the results in a column called Y . Repeat this process 10 more times, storing results in X1 ; X2 ; : : : ; X10 . Notice that the Y should be totally unrelated to the explanatory variables. (a) Fit Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.9 Exercises 377 the regression of Y on all 10 explanatory variables. What is R2? (b) What model is suggested by forward selection? (c) Which model has the smallest Cp statistic? (d) Which model has the smallest BIC? (e) What danger (if any) is there in using a variable selection technique when the number of explanatory variables is a substantial proportion of the sample size? 14. Blood–Brain Barrier. Using the data in Display 11.3 (file case1102), perform the following variable-selection techniques to find a subset of the covariates—days after inoculation, tumor weight, weight loss, initial weight, and sex—for explaining log of the ratio of brain tumor antibody count to liver antibody count. (a) Cp plot (b) forward selection (c) backward elimination (d) stepwise regression. 15. Blood–Brain Barrier. Repeat Exercise 14, but include sacrifice time (treated as a factor with three levels), treatment, and the interaction of sex and treatment with the other explanatory variables. 16. Sex Discrimination. The analysis in this chapter focused on beginning salaries. Another issue is whether annual salary increases tended to be higher for males than for females. If an annual raise of 100r% is received in each of N successive years of employment, the salary in 1977 is: Sal77 D SalBeg  .1 C r/N . Seniority measures the number of months of employment, so the number of years of employment is N D seniority=12; and log.1 C r/ D .12=seniority/  .Sal77=SalBeg/ D z.say/ for each individual. Calculate z from beginning salary, 1977 salary, and seniority; then calculate r as exp.z/ 􏰀 1. Now consider r as a response variable (the average annual raise). (a) Use a two- sample t-test to see whether the distribution of raises is different for males than for females. (Is a transformation necessary?) (b) What evidence is there of a sex effect after the effect of age on average raise has been accounted for? (c) What evidence is there of a sex effect after the effects of age and beginning salary have been accounted for? 17. Pollution and Mortality. Display 12.16 shows the complete set of variables for the problem introduced in Exercise 11.23. The 15 variables for each of 60 cities are (1) mean annual precipitation (in inches); (2) percent relative humidity (annual average at 1 P.M.); (3) mean January temperature (in degrees Fahrenheit); (4) mean July temperature (in degrees Fahrenheit); (5) percentage of the population aged 65 years or over; (6) population per household; (7) median number of school years completed by persons of age 25 years or more; (8) percentage of the housing that is sound with all facilities; (9) population density (in persons per square mile of urbanized area); (10) percentage of 1960 population that is nonwhite; (11) percentage of employment in white-collar occupations; (12) percentage of households with annual income under $3,000 in 1960; (13) relative pollution potential of hydrocarbons (HC); (14) relative pollution potential of oxides of nitrogen (NOX ); and (15) relative pollution potential of sulphur dioxide (SO2). (See Display 11.22 for the city names.) It is desired to determine whether the pollution variables (13, 14, and 15) are associated with mortality, after the other climate and socioeconomic variables are accounted for. (Note: These data have prob- lems with influential observations and with lack of independence due to spatial correlation; these problems are ignored for purposes of this exercise.) (a) With mortality as the response, use a Cp plot and the BIC to select a good-fitting regression model involving weather and socioeconomic variables as explanatory. To the model with the lowest Cp, add the three pollution variables (transformed to their logarithms) and obtain the p-value from the extra-sum-of-squares F -test due to their addition. (b) Repeat part (a) but use a sequential variable selection technique (forward selection, backward elimination, or stepwise regression). How does the p-value compare? Suppose that a problem involves four explanatory variables (like the weather variables in Exercise 17). How many variables would be included in the corresponding saturated second-order model (Section 12.7.3)? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 18. 378 Chapter 12 Strategies for Variable Selection DISPLAY 12.16 Pollution and mortality data for 60 cities; first 6 of 60 rows SMSA Mortality (d/100.000) Precipitation (in/yr) Humidity (annual av%) January temperature (F) July temperature (F) Weather Demographic Over 65(%) Population per household Pollution potentials Sulfur dioxide Nitrogen oxides Hydrocarbons Housing (% sound) Density (popn/mi2) Nonwhite(%) White collar(%) Poor(%<$3,000) Education (years) 19. In the expression (Section 12.7.3) for the number of subset models with p parameters, the index j of summation refers to the number of original variables in a particular model. If there are a total of five original explanatory variables, the total number of subset models with seven parameters that have exactly three original variables is the j th term in the sum, C5;3  C6;3 D 10  20 D 200. The reasoning here is that there are 10 ways to select three of the original five variables; and that, with three variables, there are three quadratic plus three product terms, or a total of six second-order terms; so, to make up a model with seven parameters, you have the constant (1) and the original variables (3), so you need 7 􏰀 1 􏰀 3 D 3 second-order terms from the six available. Problem: Let the original variables be a, b, c, d, and e. Select any three of them. Then write down all 20 of the seven-parameter models involving only those three original variables. Data Problems 20. Galapagos Islands. The data in Display 12.17 come from a 1973 study. (Data from M. P. Johnson and P. H. Raven, “Species Number and Endemism: The Galapagos Archipelago Revisited,” Science 179 (1973): 893–5.) The number of species on an island is known to be related to the island’s area. Of interest is what other variables are also related to the number of species, after island area is accounted for, and whether the answer differs for native species and nonnative species. (Note: Elevations for five of the islands were missing and have been replaced by estimates for purposes of this exercise.) 21. Predicting Desert Wildflower Blooms. Southwestern U.S. desert wildflower enthusiasts know that a triggering rainfall between late September and early December and regular rains through March often lead to a good wildflower show in the spring. Display 12.18 is a partial listing of a data set that might help with the prediction. It includes monthly rainfalls from September to March and the subjectively rated quality of the following spring wildflower display for each of a number of years at each of four desert locations in the southwestern United States (Upland Sonoran Desert near Tucson, the lower Colorado River Valley section of the Sonoran Desert, the Baja California region of the Sonoran Desert, and the Mojave Desert). The quality of the display was judged subjec- tively with ordered rating categories of poor, fair, good, great, and spectacular. The column labeled Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 12.17 Island Coamano Observed species Total Native 2 1 Area Elevation (km2) (m) 1.05 130 Distance(km) From From nearest Santa island Cruz 1.9 1.9 Area of nearest island (km2) 903.82 DISPLAY 12.18 Monthly rainfalls (inches) for seven months and rated quality of wildflower display in the spring, for multiple years in each of four desert regions; first 5 of 122 rows 12.9 Exercises 379 Plant species and geography of the Galapagos Islands; first 5 rows of 30 Year Region 1970 baja 1971 baja 1972 baja 1974 baja 1975 baja Sep Oct Nov Dec Jan Feb Mar Total Rating Score 0.27 0.00 0.00 0.00 1.35 0.00 0.00 0.12 0.00 0.01 0.01 0.04 0.00 0.00 0.00 0.00 0.00 0.04 0.00 0.00 0.00 0.04 0.12 0.43 Poor 0 0.00 0.04 0.00 1.51 Poor 0 0.00 0.00 0.00 0.06 Poor 0 0.04 0.00 0.00 0.04 Poor 0 0.00 0.00 0.00 0.04 Poor 0 Score is a numerical representation of the rating, with 0 for poor, 1 for fair, 2 for good, 3 for great, and 4 for spectacular. Although this is a made-up number and the suitability of regression for such a discrete response is questionable, an informal regression analysis might nevertheless be helpful for casual prediction. Analyze the data to find an equation for predicting the quality score from the monthly rainfalls. What is the predicted quality score for a season with these rainfall amounts in the Upland region: Sep: 0.45, Oct: 0.02, Nov: 0.80, Dec: 0.76, Jan: 0.17, Feb: 1.22, and Mar: 0.37? Also find a 95% prediction interval. Although the conditions are far from the ideal normal- ity assumptions for the justification of the prediction interval, the rough prediction interval might be a useful way to clarify the precision with which the quality score can actually be predicted. (Data from Arizona-Sonora Desert Museum, “Wildflower Flourishes and Flops—a 50-Year History,” www.desertmuseum.org/programs/flw wildflwrbloom.html (July 25, 2011).) 22. Bush–Gore Ballot Controversy. Review the Palm Beach County ballot controversy descrip- tion in Exercise 8.25. To estimate how much of Pat Buchanan’s vote count might have been intended for Al Gore in Palm Beach County, Florida, that exercise required the fitting of a model for predict- ing Buchanan’s count from Bush’s count from all other counties in Florida (excluding Palm Beach), followed by the comparison of Buchanan’s actual count in Palm Beach to a prediction interval. One might suspect that the prediction interval can be narrowed and the validity of the procedure strength- ened by incorporating other relevant predictor variables. Display 12.19 shows the first few rows of a data set containing the vote counts by county in Florida for Buchanan and for four other presi- dential candidates in 2000, along with the total vote counts in 2000, the presidential vote counts for three presidential candidates in 1996, the vote count for Buchanan in his only other campaign in Florida—the 1996 Republican primary, the registration in Buchanan’s Reform party, and the total Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 380 Chapter 12 Strategies for Variable Selection DISPLAY 12.19 County Buchanan’s 2000 presidential vote count, and predictor variables, in 67 Florida counties (first five rows) Buchanan Gore Bush NaderBrowne Total Clinton Dole Perot Buchanan Reform Total 2000 2000 2000 2000 2000 2000 1996 1996 1996 1996 reg. 2000 reg. 2000 political party registration in the county. Analyze the data and write a statistical summary predicting the number of Buchanan votes in Palm Beach County that were not intended for him. It would be appropriate to describe any unverifiable assumptions used in applying the prediction equation for this purpose. (Suggestion: Find a model for predicting Buchanan’s 2000 vote from other variables, excluding Palm Beach County, which is listed last in the data set. Consider a transformation of all counts.) 23. Intelligence and Class as Predictors of Future Income (Males only). In their 1994 book, The Bell Curve: Intelligence and Class Structure in American Life, psychologist Richard Hernstein and political scientist Charles Murray argued that a person’s intelligence is a better predictor of suc- cess in life than is education and family’s socioeconomic staus. The book was controversial mostly for its conclusions about intelligence and race, but also for the strength of its conclusions drawn from regression analyses on observational data using imperfect measures of intelligence and socio- economic status. Hernstein and Murray used data from the National Longitudinal Survey of Youth (NLSY79). Display 12.20 lists the variables in the ex1223 data file on a subset of 2,584 individuals from the NLSY79 survey who were re-interviewed in 2006, who had paying jobs in 2005, and who had complete values for the listed variables, as previously described in Exercises 2.22 and 3.30. For males only, see whether intelligence (as measured by the ASVAB intelligence test score, AFQT, and its Components, Word, Parag, Math, and Arith) is a better predictor of 2005 income than educa- tion and socioeconomic status (as measured by the variables related to respondent’s class and family education in 1979). Suggestion: First use exploratory techniques to decide on transformations of the response variable Income2005. Then, Stage 1: Use a variable selection procedure to find a subset of variables from this set: Imagazine, Inewspaper, Ilibrary, MotherEd, FatherEd, FamilyIncome78, and Educ to explain the distribution of Income2005. Note the percentage of variation explained by this model. Now use a variable selection procedure to find a subset starting with this same initial set of variables and the ASVAB variables. By how much is R2 increased when the intelligence measures are included? Use an extra-sum-of-squares F -test to find a p-value for statistical significance of all the ASVAB variables in the final model (i.e., after accounting for Educ and the class variables). Stage 2 (reverse the order): Use a variable selection procedure to find a subset of variables from the set of all ASVAB variables. Note the percentage of variation explained by this model. Now use a variable selection procedure to find a subset from this same initial set of variables plus Educ and the family class, education, and 1979 income variables. By how much is R2 increased when Educ and the class variables are included? Find a p-value for statistical significance of the class variables after account- ing for education and ASVAB variables. Use the Stage 1 and Stage 2 results to draw conclusions about whether the class variables or the ASVAB variables are better predictors of 2005 income. (As noted in Exercise 3.30, the coded incomes greater than $150,000 in NLSY79 were replaced in this data file by computer-simulated values to better match a true distribution of incomes.) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 12.9 Exercises 381 DISPLAY 12.20 Variables measured on 2,584 Americans who were between 14 and 22 in 1979, who took the Armed Services Vocational Aptitude Battery (AFVAB) of tests in 1981, who were available for re- interview in 2006, who had paying jobs in 2005, and who had complete records of the variables listed below Variables Related to Family Class, Education, and Income in 1979 Personal Demographic Variables Variables Related to ASVAB Test Scores in 1981 Imagazine 1 if any household member magazines regularly when respondent was about 14 Inewspaper 1 if any household member newspapers regularly when respondent was about 14 Ilibrary 1 if any household member had a library card when respondent was about age 14 MotherEd Mother’s years of education FatherEd Father’s years of education FamilyIncome78 Family’s total net income in 1978 Race 1 = Hispanic, 2 = Black, 3 = Non-Hispanic, Non-Black Gender Female or male Educ Years of education completed by 2006 Science Score on General Science component Arith Score on Arithmetic Reasoning component Word Score on Word Knowledge component Parag Score on Paragraph Comprehension component Numer Score on Numerical Operations component Coding Score on Coding Speed component Auto Score on Automotive and Shop Information component Math Score on Mathematics Knowledge component Mechanic Score on Mechanical Comprehension component Elec Score on Electronics Information component AFQT Armed Forces Qualifying Test Score (a combination of Word, Parag, Math, and Arith) Variables Related to Life Success in 2006 Income2005 Total income from wages and salary in 2005 Esteem1 “I am a person of worth” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem2 “I have a number of good qualities” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem3 “I am inclined to feel like a failure” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem4 “I do things as well as others” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem5 “I do not have much to be proud of” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem6 “I take a positive attitude towards myself and others” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem7 “I am satisfied with myself” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem8 “I wish I could have more respect for myself” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem9 “I feel useless at times” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Esteem10 “I think I am no good at all” 1: strongly agree, 2: agree, 3: disagree, 4: strongly disagree Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 382 Chapter 12 Strategies for Variable Selection 24. Intelligence and Class as Predictors of Future Income (Females only). Repeat Exercise 23 for the subset of females. 25. Gender Differences in Wages. Display 12.21 is a partial listing of a data set with weekly earnings for 9,835 Americans surveyed in the March 2011 Current Population Survey (CPS). What evidence is there from these data that males tend to receive higher earnings than females with the same values of the other variables? By how many dollars or by what percent does the male dis- tribution exceed the female distribution? Note that there might be an interaction between Sex and Marital Status. (Data from U.S. Bureau of Labor Statistics and U.S. Bureau of the Census: Current Population Survey, March 2011 http://www.bls.census.gov/cps ftp.html#cpsbasic; accessed July 25, 2011.) Answers to Conceptual Exercises 1. False. In the model with P and E, neither variable is significant (Display 12.6). But both are significant in the model PER. 2. False. Both income and rank are significant in the model IR. When T is included, however, neither is significant. (See Display 12.6.) 3. There are two reasons. (i) Percentage of takers and median rank explain so much of the vari- ation that any additional effect of the other variables is hidden in the ordinary scatterplots. (ii) The questions of interest call for the examination of some of the variables after getting percentage of takers and median rank out of the way. The partial residual plots allow visual investigation into these questions. 4. (a) The estimated sex difference will probably be less after length of hair is accounted for. If there are differences between male and female hair lengths, then that variable is picking up the sex differences and the sex indicator variable will be less meaningful when it is included. (b) The males and females should be compared after adjustment for nondiscriminatory determinants of salary. 5. If X2 explains some variation in Y in addition to what is explained by X1,  will be smaller, so the variance of the coefficient of X1 will decrease. 6. (a) Use model selection tools to find a good-fitting model involving the weather and socioeco- nomic variables. Then include the pollution variables, using t - and F -statistics to judge importance. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 12.21 Region of the United States (Northeast, Midwest, South, or West) where individual worked, Metropolitan Status (Metropolitan, Not Metropolitan, or Not Identified), Age (years), Sex (Male or Female), Marital Status (Married or Not Married), EdCode (corresponding roughly to increas- ing education categories), Education (16 categories), Job Class (Private, Federal Government, State Government, Local Government, or Private), and Weekly Earnings (in U.S. dollars) for 9,835 individuals surveyed in the March 2011 Current Population Survey; first 5 of 9,835 rows Region Northeast West West West South MetropolitanStatus Not Metropolitan Metropolitan Metropolitan Metropolitan Not Metropolitan Age Sex 20 Male 59 Male 62 Male 39 Male 60 Female MaritalStatus Edcode Not Married 39 Married 43 Married 34 Married 39 Married 36 Education JobClass WeeklyEarnings HighSchoolDiploma Private BachelorsDegree Private SeventhOrEighthGrade Private HighSchoolDiploma Private TenthGrade Private 467.50 1,269.00 1,222.00 276.92 426.30 12.9 Exercises 383 As an alternative, employ the Bayesian strategy of averaging the pollution effects over a wide range of models. (b) A key weather variable (like humidity) may not be directly related to mortality, but it may interact with air pollution variables to affect mortality. A model selection method that chooses one “best” model may leave the key variable out. (See Exercise 17.) 7. Yes. Notice what happens to the formula for Cp when the model under investigation is also the “full” model: the second term is zero, so Cp D p. 8. The probability of E is taken to be the proportion of times when E occurs in a long run of trials. Bayesian statistics also interprets probability as a measure of belief. If M is a particular model among many, a Bayesian probability for M would be the proportion of one’s total belief that is assignable to the belief that M is the correct model. 9. Estimates of the treatment effect can be made with all models involving confounding variables. The posterior function draws its conclusions based on all these estimates, with weights assigned according to the strength of the evidence supporting each model. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 13 The Analysis of Variance for Two-Way Classifications Two-way analysis of variance is multiple regression analysis with two categorical explanatory factors. This data structure arises in both observational studies and in randomized experiments. In cases where the data are balanced (i.e., the same number of observations in each cell of the table), the regression analysis can be simplified in two respects: (1) a single analysis of variance table conveniently shows F -tests for row, column, and interactive effects, and (2) the least squares estimated means are straightforward combinations of row and column averages. Although there is some special terminology associated with analysis of variance tools and some special considerations due to the particular structure of the data, the steps in the analysis are very similar to those used for multiple regression analysis. 384 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.1 CASE STUDIES 13.1.1 Intertidal Seaweed Grazers—A Randomized Experiment To study the influence of ocean grazers on regeneration rates of seaweed in the intertidal zone, a researcher scraped rock plots free of seaweed and observed the degree of regeneration when certain types of seaweed-grazing animals were denied access. The grazers were limpets (L), small fishes (f ), and large fishes (F ). A plot was taken to be a square rock surface, 100 cm on each side. Each plot received one of six treatments, named here by which grazers were allowed access: LfF: All three grazers were allowed access. fF: Limpets were excluded by surrounding the plot with caustic paint. Lf: Large fish were excluded by covering the plot with a coarse net. f: Limpets and large fish were excluded. L: Small and large fish were excluded by covering the plot with a fine net. C: Control: limpets, small fish, and large fish were all excluded. The fish enclosures were made of wire netting mounted on cages set in holes drilled in the rock. Cages were also mounted over LfF and fF plots to eliminate confusion of the results with a possible cage effect where fish grazers might avoid a plot simply because of the presence of a cage. These treatments nearly constitute a factorial arrangement of three factors (limpets, large fish, small fish), where each factor can be either present or absent and all combinations of presence/absence are used. However, two combinations are missing because it was impossible to exclude small fish without also excluding large fish. Display 13.1 presents a diagram of the six treatments. Because the intertidal zone is a highly variable environment, the researcher applied the treatments in eight blocks of 12 plots each. Within each block she randomly assigned treatments to plots so that each treatment was applied to two plots. The blocks covered a wide range of tidal conditions. 13.1 Case Studies 385 Block #1: Block #2: Block #3: Block #4: Block #5: Block #6: Block #7: Block #8: Just below high tide level, exposed to heavy surf Just below high tide level, protected from the surf Midtide, exposed Midtide, protected Just above low tide level, exposed Just above low tide level, protected On near-vertical rock wall, midtide level, protected On near-vertical rock wall, above low tide level, protected This was a randomized block experiment: Separate randomizations were used to assign the six treatment levels to plots within each of the blocks. Under control conditions, the seaweed regeneration should be less variable among the plots within a block than it is across plots in different blocks, so blocking makes it possible to Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 386 Chapter 13 The Analysis of Variance for Two-Way Classifications DISPLAY 13.1 Six treatments excluding three kinds of intertidal grazers from regenerating seaweed on the Oregon coast LfF This treatment has a cage but it excludes no grazers. fF Limpets are excluded by a caustic paint strip. Lf Large fish are excluded by a coarse net of wire. Limpets and large fish are excluded. Small and large fish are excluded by a fine net of wire. Limpets, small fish, and large fish are excluded. fLC look at treatment differences on similar plots. Selecting a wide range of exposure conditions also broadens the scope of inference. If the effects of the treatments are similar in all blocks, one can make a more universal claim about them. Four weeks after treating the plots, the researcher returned to determine rates of regeneration. She did this by covering each plot with a square piece of metal sheeting with 100 small holes drilled in it. She used the number of holes directly over regenerating seaweed as an estimate of the percentage of seaweed cover on the plot. Display 13.2 shows percentages of seaweed cover on all of the plots. (Data based on the study of Annette Olson, Evolutionary and Ecological Interactions Affecting Seaweeds, Ph.D. Thesis. Oregon State University, 1993.) The overall goal of the study was to determine the impacts of the three different grazers on regeneration rates of seaweed. Which one consumes the most seaweed? Do the different grazers influence the impacts of each other? Are the grazing effects similar in all microhabitats? Statistical Conclusion There is little evidence that treatment differences changed from one block to another (p-value for interaction D 0.12 from an F -statistic of 1.437 with 35 and 48 degrees of freedom). Effects of treatments are best described as multiplicative factors changing the regeneration ratio R D percent covered/percent uncovered. Allowing limpets access to plots caused a significant reduction in the regeneration of seaweed (two-sided p-value < 0.0001 from a t-statistic of 14.97 with 83 d.f.). The median regeneration ratio when limpets were present is estimated to be only 0.161 times Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 13.2 Block # Percentage of regenerated seaweed cover on plots with different grazers excluded, in eight blocks of differing tidal situation and exposure Treatment: Grazers with access Control L f Lf fF LfF 13.1.2 as large as the median regeneration ratio when they are excluded (95% confidence interval: 0.126 to 0.205). Although there was conclusive evidence that the pres- ence of small and large fish also reduced the regeneration ratio (two-sided p-values were 0.0001 and 0.010, respectively), the effects were smaller than for limpets. The median regeneration ratio when large fish were present is estimated to be 0.541 times as large as the regeneration ratio when they are excluded (95% CI: 0.402 to 0.729). The median regeneration ratio when small fish were present is estimated to be 0.675 times as large as the median regeneration ratio when they were excluded (95% CI: 0.501 to 0.909). There is no evidence that the effect of limpets depended on whether small fish or large fish were present (two-sided p-values D 0.50 and 0.71, respectively.) The Pygmalion Effect—A Randomized Experiment Pygmalion was a mythical king of Cyprus who, according to one account, sculpted a figure of the ideal woman and then fell in love with his own creation. The Pygmalion effect in psychology refers to a situation where the high expectations of a supervisor or teacher translate into improved performance by subordinates or students. It is a special case of the self-fulfilling prophecy. Many experiments have demonstrated the validity of the effect. In a typical experiment, a supervisor is placed in charge of a new unit with, say, 20 workers. In a private conversation, the supervisor’s manager explains that 5 of these workers are exceptional, whereas in fact the 5 were selected at random. Later, an independent test to evaluate work performance compares the 5 exceptional workers with the other 15. If the Pygmalion effect is present, the 5 will significantly outperform the 15. A researcher observed that such experiments involve interpersonal contrasts: The other 15 may perceive the supervisor’s increased expectations of the 5 and reduced expectations of them and may therefore oblige with a reduced perfor- mance. The researcher proceeded to conduct a different experiment involving no interpersonal contrasts. 13.1 Case Studies 387 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 388 Chapter 13 The Analysis of Variance for Two-Way Classifications DISPLAY 13.3 Ten companies of soldiers in an army training camp were selected for the study. Each company had three platoons. Each platoon had its own platoon leader. Using a random mechanism, one of the three platoons was selected to be the Pygmalion platoon. The randomization was conducted separately for each company to create a randomized block experiment with companies as blocks. Prior to assuming command of a platoon, each leader met with an army psy- chologist. To each of the Pygmalion treatment platoon leaders, the psychologist described a nonexistent battery of tests that had predicted superior performance from his or her platoon. At the conclusion of basic training, soldiers took a battery of real tests. The Practical Specialty Test evaluated soldiers on their ability to operate weapons and answer questions about their use. This test was chosen for the study because it was considered particularly vulnerable to the Pygmalion effect. Display 13.3 shows aver- age scores on the Practical Specialty Test for the soldiers in the different platoons. (Data based on the study of Dov Eden, “Pygmalion Without Interpersonal Con- trast Effects: Whole Groups Gain from Raising Manager Expectations,” Journal of Applied Psychology 75(4) (1990): 395–98.) Average scores of soldiers on the Practical Specialty Test, for platoons given the Pygmalion treatment and for control platoons Treatments Company Pygmalion Control Observe that the entire platoon’s average is taken as one observation. This may appear strange because individual scores were measured for all the soldiers in each of the platoons. But the treatments were randomized and assigned to platoons as a whole—not to individual soldiers—so platoons are the experimental units. Notice also that one company had only two platoons, so it had only one control. Statistical Conclusion The Pygmalion treatment adds an estimated 7.22 points to a platoon’s score (95% interval: 1.80 to 12.64 points). The evidence strongly suggests the effect is real (one- sided p-value D 0:0060), and the experimental design allows for a causal inference. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.2 ADDITIVE AND NONADDITIVE MODELS FOR TWO-WAY TABLES 13.2.1 The Additive Model Both data sets may be viewed as two-way tables, meaning that each observation is identified with 2 categorical explanatory factors. In the seaweed grazers study, the factors are block (with 8 levels) and treatment (with 6 levels). The design is balanced, with 2 observations in each of the 6  8 D 48 treatment combinations (cells). In the Pygmalion study the categorical explanatory factors are company (with 10 levels), and treatment (with 2 levels). It has an unbalanced design, because unequal numbers of observations occur in the 2  10 D 20 cells. In an additive model, the effects of one factor are the same at all levels of the other factor. For the 20 populations defined by all combinations in the Pygmalion study, a set of hypothetical additive means would appear as in the table in Display 13.4. The mean score in Pygmalion-treated platoons is 8 units more than the mean score of the control platoons, within each company. It is also true that the difference between the mean scores of control platoons in two different companies is the same as the difference between the mean scores of the Pygmalion platoons in the two; in other words, block effects are the same within all treatments. Hypothetical mean scores on the Practical Specialty Test, illustrating additivity of treatment and company effects Treatments Treatment effects Company Pygmalion Control (Pygmalion—Control) DISPLAY 13.4 13.2 Additive and Nonadditive Models for Two-Way Tables 389 The additive model says that the Pygmalion effect adds the same value to the score of a treated platoon regardless of the company. Because this result gives the Pygmalion effect a degree of universality, the additive model is an important inferen- tial setting to consider. The model allows the researcher to make statements about the effect without any qualifications regarding the individual companies involved. If the Pygmalion data, however, do not fit an additive model, then the discus- sion of treatment effects will necessarily be cluttered by repeated references to the individual companies. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 390 Chapter 13 The Analysis of Variance for Two-Way Classifications DISPLAY 13.5 Mean scores on the Practical Specialty Test according to the additive model, in terms of coefficients in a multiple regression model with indicators Treatments Treatment effects Company Pygmalion Control (Pygmalion—Control) With score representing a platoon’s average score and TREAT and COMP rep- resenting the factors treatment and company (with 2 and 10 levels, respectively), a representation of the additive model is fscorejTREAT, COMPg D TREAT C COMP: A Regression Parameterization for the Additive Two-Way Model A parameterization is a particular way to assign parameters to represent the means in a model. One convenient parameterization results from using indicator variables to model the categorical explanatory variables in a multiple regression model. If pyg is an indicator for platoons that received the Pygmalion treatment, and if cmp2, cmp3; : : : ; cmp10 are indicator variables for companies 2 through 10, then a multiple linear regression expression for the additive model is fscorejTREAT; COMPg D ˇ0 C ˇ1pyg C ˇ2cmp2 C ˇ3cmp3 C    C ˇ10cmp10: The means for each cell in the table (see Display 13.5) are functions of the regression parameters. For example, the mean score for Pygmalion platoons in the third company is obtained by setting pyg D 1, cmp3 D 1, and all the other indicator variables to 0; fscore j pyg D 1, cmp3 D 1g D ˇ0 Cˇ1 Cˇ3. The entire table of means, expressed in terms of the regression coefficients, appears in Display 13.5. In terms of the regression coefficients, the Pygmalion treatment effect is ˇ1 units, in any company. Similarly, the mean score in company 3 is ˇ3 􏰀 ˇ2 units more than the mean score in company 2, for treated as well as for control platoons. Notice that 11 regression coefficients are needed. For I rows and J columns, there are .I 􏰀 1/ terms for row effects (for example, the coefficients of the I 􏰀 1 indicator variables needed to distinguish I levels); there are .J 􏰀 1/ terms for column effects; and there is the constant term ˇ0, so there are .I C J 􏰀 1/ distinct parameters used to describe the means in an additive model. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 13.6 fscorejTREAT ; COMPg D TREAT C COMP C TREAT  COMP; which in the regression parameterization is ˇ0 C.ˇ1pyg/C.ˇ2cmp2Cˇ3cmp3CCˇ10cmp10/ C.ˇ11Œpyg  cmp2 C ˇ12Œpyg  cmp3 C    C ˇ19Œpyg  cmp10/; where parentheses have been included to distinguish the terms for treatment main effects, for company main effects, and for treatment-by-company interactive effects. The explanatory variables for describing interactions are formed as all possible products of the treatment and company indicator variables. The table of means for this saturated model looks like Display 13.6. The mean score for treated platoons is ˇ1 units more than the mean score of control platoons in company 1, but it is ˇ1 Cˇ11 units more in company 2. Treatment effects depend on company. The effects are not necessarily additive, and no interpretation for a main effect of treatment can be formulated. Mean scores on the Practical Specialty Test, in terms of the parameters in a saturated multiple linear regression model with interaction Treatments Treatment effects Company Pygmalion Control (Pygmalion—Control) 13.2 Additive and Nonadditive Models for Two-Way Tables 391 13.2.2 The Saturated, Nonadditive Model A regression model that includes interactions between treatment and companies is This model has 20 regression coefficients. In general, for I rows and J columns, there is a ˇ0 term, there are .I 􏰀 1/ row main effect terms, .J 􏰀 1/ column main effect terms, and .I 􏰀 1/  .J 􏰀 1/ interaction terms. The total number is I  J . Since there are as many coefficients as there are cells in the table, this is called a saturated model. It is the most general model possible for these data, and it is equivalent to modeling them as a one-way table with I  J groups. In the saturated model, the cell means are completely unrelated. Therefore, the least squares estimate of the mean in any cell is the sample average of responses in Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 392 Chapter 13 The Analysis of Variance for Two-Way Classifications 13.2.3 that cell. Since the cell averages are the fitted values, the residuals are the differences between responses and cell averages. The estimate of 2 from the saturated model is therefore the pooled estimate of variance from all cells, with pooled degrees of freedom: n 􏰀 I  J . A Strategy for Analyzing Two-Way Tables with Several Observations per Cell The fixed effects analysis of two-way tables is a regression analysis based on the constant variance model of Section 9.2.1. The analysis proceeds in much the same way as other regression analyses. Typically, a graphical procedure is used for initial exploration, including consideration of outliers and the need for transformation. Then a tentative rich model, including interactions, is fit and a residual plot is examined for further exploration of outliers and transformation. The presence of interactions complicates the task of answering questions of interest about the main factor effects. When there are significant interactions, the best forms of communication are a table of estimated means and a graph of the means against one factor showing separate curves for the levels of the other factor. If there is no evidence that interaction terms are needed, the questions of inter- est may be addressed through the parameters of the additive model. For example, a further F -test can be used to test whether the additive effects of the row cate- gories are zero. Special questions of interest, such as “which seaweed grazers reduce regeneration of seaweed the most and by how much?” can be investigated through particular terms in the additive model or by examining linear combinations of group means. The Analysis of Variance F -Test for Additivity If the coefficients of all the interaction terms are zero then the nonadditive model reduces to the additive model. Thus, the check on the additive model is accomplished by comparing the (full) nonadditive model, fscorejTREAT; COMPg D TREAT C COMP C TREAT  COMP; to the (reduced) additive model, fscorejTREAT; COMPg D TREAT C COMP; with an extra-sum-of-squares F -test. There are I  J parameters in the nonadditive model, so .n􏰀I J/ degrees of freedom go into the estimate of 2. Since there are .I 􏰀1/.J 􏰀1/ interaction terms, the F-test for additivity has .I 􏰀1/.J 􏰀1/ numerator degrees of freedom and n 􏰀 .I  J / denominator degrees of freedom. (Note: If there is only one observation per cell then n D I  J with, consequently, no degrees of freedom to estimate 2 in the full model. Special considerations are needed for the analysis of this type of two-way table; see Chapter 14.) 13.2.4 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.3 ANALYSIS OF THE SEAWEED GRAZER DATA 13.3.1 Initial Assessment of Additivity, Outliers, and the Need for Transformation A coded scatterplot of the cell averages versus block number appears in Display 13.7. Blocks appear along the horizontal axis according to the average size of the responses, because the blocks themselves are of little interest and because they have no natural order. Connecting the treatment averages with lines makes it easy to track treatment differences in the different blocks. 13.3 Analysis of the Seaweed Grazer Data 393 DISPLAY 13.7 Average percentages of seaweed regeneration with different grazers allowed 100 90 80 70 60 50 40 30 20 10 0 Grazers Allowed Small Large Limpets Fish Fish C f fF L Lf LfF Treatment differences are larger in block 4 than in block 1. 12758634 Block Number (ordered from smallest to largest average response) Treatments with limpets excluded (represented by darkened symbols) had a higher rate of seaweed regeneration than those with limpets present (represented by open symbols), for all blocks. Limpets are apparently the heaviest grazers. It appears that the other treatments consistently differ across blocks, as well. Display 13.7 shows evidence of nonadditivity. For example, the difference between average responses to the fF and f treatments appears to be much larger Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Percentage Seaweed Regrowth 394 Chapter 13 The Analysis of Variance for Two-Way Classifications DISPLAY 13.8 Residual plot from the saturated model fit to the seaweed grazer data +20 +10 0 −10 −20 Saturated Model Residuals 0 20 40 60 80 100 Fitted Percent Regeneration in block 4 than in block 1. A consistent pattern to these effects can be observed— treatment differences appear to be larger in blocks with larger response means. This type of nonadditivity can often be removed by transformation. Before a formal assessment of interaction, the residual plot from the saturated model is examined (Display 13.8). It appears to have a funnel shape at both the high and the low ends of the percentage scale. The funnel shape is more noticeable at the low end of the scale where the majority of the observations lie. This pattern, typical of residual plots when the responses are between 0 and 1 (or between 0% and 100%), suggests the need for transformation. (Note: The symmetry of the residual plot about the zero line is simply an artifact of having two observations in each cell and is not a pattern that requires special attention.) Transformation Two transformations often work well for responses that are proportions: the arcsine square root transformation, arcsine.Y1=2/; and the logit transformation, logŒY =.1 􏰀 Y /. The first of these, although sometimes useful, does not provide a particularly appealing measure for interpretation, nor can it be back-transformed to any convenient statement. The logit, on the other hand, provides for a useful interpretation as a regeneration ratio—here, the proportion of the plot covered by seaweed divided by the proportion remaining uncovered. The logit is the log of the regeneration ratio. A coded scatterplot of group averages of the log of the regeneration ratio versus block number is shown in Display 13.9. If the averages exhibited perfect additivity then the treatment averages would be parallel. Although this is not exactly true in the plot, the differences between treatments appear to be roughly constant across blocks, and the lack of parallelism may be due to sampling variation. Although not shown, the residual plot from the fit to the nonadditive model after transformation indicates no evidence of nonconstant variance or outliers. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 13.9 Averages of the log of the seaweed regeneration ratio versus block number, with code for treatment DISPLAY 13.10 Block Number (ordered from smallest to largest average response) Analysis of variance for the log of the seaweed regeneration ratio: nonadditive model 13.3 Analysis of the Seaweed Grazer Data 395 logit scale +4.0 +3.0 +2.0 80 +1.0 50 0 40 30 −1.0 20 10 −2.0 5 −3.0 − 4.0 1 Grazers Allowed Small Large Limpets Fish Fish 99 95 90 Percentage Seaweed Regrowth 70 60 Treatment differences are relatively uniform in all blocks. 12758634 Source of variation Sum of squares d.f. Mean square F-statistic p-value R 13.3.2 adj. R The Analysis of Variance Table from the Fit to the Saturated Model The analysis of variance table, Display 13.10, simultaneously displays the F -test for the interaction terms, an F -test for the block effects, and an F -test for the treat- ment effects. The F -statistic in the Between Groups row is the one-way analysis of Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 396 Chapter 13 The Analysis of Variance for Two-Way Classifications 13.3.3 Row 4 of the table in Display 13.10 shows the extra-sum-of-squares F-test comparing the nonadditive to the additive model. The residual sum of squares from the nonadditive model is the Within Groups sum of squares. The residual sum of squares from the additive (reduced) model is not shown, but the difference, the sum of squares explained by the interaction terms, is listed as the Interaction sum of squares, with .I 􏰀1/.J 􏰀1/ D 75 D 35 degrees of freedom. The F-statistic is the Interaction mean square divided by the estimate of 2 from the saturated model. The large p-value, 0.1209, suggests that the data are consistent with an additive model. The Analysis of Variance Table for the Fit to the Additive Model The analysis of variance table in Display 13.11 comes from the fit to the additive model. This table is the same as the one in Display 13.10, except that the sum of squares for Interaction has been pooled with (added to) the Within Groups sum of squares to form a single source called Residual. The estimate of 2 in the additive model is the Residual mean square. Which Test for Treatment Effects? Displays 13.10 and 13.11 offer two different tests for the hypothesis of no treatment effects. The first test for no treatment effects from the fit to the nonadditive model is the following comparison: Full model: TREAT C BLOCK C .TREAT  BLOCK/ Reduced model: BLOCK C .TREAT  BLOCK/: variance F -statistic for testing equality of means in the 48 groups (all combinations of blocks and treatments). It compares the full model, fY jBLOCK; TREATg D BLOCK C TREAT C .BLOCK  TREAT/; to the reduced model, fY jBLOCK; TREATg D  (the constant term only). What is new in this analysis of variance table is the decomposition of the Between Groups sum of squares into three separate components designed to test three different hypotheses. The F-tests in the indented rows are comparisons of the full, nonadditive model TREAT C BLOCK C (TREAT  BLOCK) to the reduced models obtained by omitting the specified effects. Tested Effects Blocks Treatments Interactions Reduced Model TREAT C (TREAT  BLOCK) BLOCK C (TREAT  BLOCK) TREAT C BLOCK Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.3 Analysis of the Seaweed Grazer Data 397 DISPLAY 13.11 Analysis of variance for the log of the seaweed regeneration ratio: additive model Source of variation Sum of squares d.f. Mean square F-statistic p-value R adj. R The second test for no treatment effects from the additive model is the following comparison: Full model: TREAT C BLOCK Reduced model: BLOCK: Opinions differ about which is appropriate. The second is more transparent: Given an additive model with treatment and block effects, is there any need to include treatment effects in a model that also has block effects? Such a question would be asked once it was determined that there were no significant interactive effects. The argument against this test is that the nonsignificance of the interaction terms does not prove that they are zero, but only that there is insufficient evidence to justify concluding otherwise. Therefore, the estimate of 2 used in the denominator of the second test may be biased due to the omission of relevant terms. The estimate of 2 from the saturated model, on the other hand, does not depend on any model being correct. The trouble with the first test, however, is that the reduced model rarely makes much sense. It is contradictory to state that there are no treatment effects while simultaneously saying that treatment effects change from block to block. When the questions of interest involve main effects, the authors of this book consider that the proper inferential model is the additive one. The nonadditive model is used tentatively for model checking (just as other regression models were used tentatively in previous multiple regression examples), and a test for the sig- nificance of interaction follows in the model refinement stage to see if the additive model is appropriate for answering the questions of interest. For the seaweed data, the nonsignificance of the interaction terms provides evidence in support of using the additive model for estimating and testing treatment effects. The model may not be entirely correct, but its structure allows further questions to be answered directly. The Test for Blocks Since the researcher selected the eight different blocks to span a wide range of inter- tidal environments and wanted to account for them in the treatment comparisons, there is little use for a formal test of block effects here. The researcher already knows that there are differences between blocks; formal significance tests do not Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 398 Chapter 13 The Analysis of Variance for Two-Way Classifications 13.3.4 answer a question of interest. (In other two-way tables, both row and column effects may be of interest.) Answers to Specific Questions of Interest Using Linear Combinations The analysis of variance table in Display 13.11 demonstrates significant treatment differences (p-value < 0.0001), but it would be a mistake to stop the analysis without further investigation and clarification. Specific questions concerning the roles of limpets, small fish, and large fish as grazers can now be addressed in the context of the additive model for the log of the seaweed regeneration ratio. This section shows how the questions can be investigated through contrasts of treatment effects. Identical results can also be obtained using indicator variables in multiple regression, as discussed in the next section. The table in Display 13.12 shows the cell averages for the 48 cells of the table, along with row and column averages. From this, the estimates of the additive block and treatment effects (in the classical parameterization described in Section 13.5.6) are calculated as the differences of row or column averages from the overall average (which would not be the case if the data were unbalanced). The fitted value for each cell is the sum of the overall average, a block effect (Y i : : 􏰀 Y : : :/, and a treatment effect .Y :j : 􏰀 Y : : :/. The “dot notation” used here indicates summing or averaging over all levels of the subscript. (See Section 13.5.6.) For example, the fitted value corresponding to block 1 and the control treatment is 􏰀1:23 􏰀 1:40 C 1:41 D 􏰀1:22. (The fitted value from the saturated model, on the other hand, is 􏰀1:51.) The logs of regeneration ratios in block 1 tend to be smaller than the overall average by about 1.40, but those in the control treatment tend to be about 1.41 larger than the overall average. Table of averages of log percentage of seaweed regeneration ratio with different grazer combinations in eight blocks Treatment: Grazers with Access Block Block Block Control L f Lf fF LfF average effect DISPLAY 13.12 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 13.13 Separate effects of grazers using linear combinations of treatment means LfF fF Lf f L C 13.3 Analysis of the Seaweed Grazer Data 399 Recall that a contrast is a linear combination of means such that the coeffi- cients add up to zero. Since the additive model applies, it is convenient to think of treatment means, such as fF for the mean log regeneration ratio when small fish and large fish are allowed access. One measure of the effect of large fish on the response is fF 􏰀 f , the effect of large fish in the presence of small fish. Another is LfF 􏰀 Lf , the effect of large fish in the presence of small fish and limpets. If there is no difference between these two large fish effects, a contrast measuring the common large fish effect is the average of the two: .1=2/ .fF 􏰀 f / C .1=2/.LfF 􏰀 Lf /. A similar strategy can be used for determining appropriate contrasts for four addi- tional questions about treatment effects. The meanings for all five are described next. Their estimates are summarized in Display 13.13, along with standard errors and t-statistics (for the hypotheses that the contrasts are zero). 1. Do large fish have an effect on the regeneration ratio? If so, how much? The dif- ference between means from fF and f treatments measures this effect in the presence of small fish only; the difference between means from the LfF and Lf treatments measures the effect in the presence of both small fish and limpets. The large fish effect is taken to be the average of those two separate effects: 1 D .1=2/.fF 􏰀 f / C .1=2/.LfF 􏰀 Lf /. This effect averages over different limpet conditions, so it measures a meaningful effect only if there is no limpet-by-big-fish interaction. If there is an interaction, it is better to estimate separate big fish effects for the cases where limpets are present and absent (see question 5). 2. Do small fish have an effect on the regeneration ratio? If so, how much? This is investigated through the average of the difference between the f and C treatment means (the effect of small fish when neither of the other grazers is present) and the Lf and L treatment means (the effect of small fish in the presence of limpets): 2 D .1=2/.f 􏰀 C / C .1=2/.Lf 􏰀 L/. This also averages over different limpet conditions, so it measures a meaningful effect only if there is no small fish-by-limpet interaction (see question 4). 3. Do limpets have an effect on the regeneration ratio? If so, how much? This is investigated with: 3 D .1=3/.L 􏰀 C / C .1=3/.Lf 􏰀 f / C .1=3/.LfF 􏰀 fF /. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. t-Stat 400 Chapter 13 The Analysis of Variance for Two-Way Classifications Again, this averaging is appropriate only when there are no limpet-by-big-fish or limpet-by-small-fish interactions. 4. Do limpets have a different effect when small fish are present than when small fish are not present? The average of the two limpet effects where small fish are present, Œ.LfF 􏰀 fF / C .Lf 􏰀 f /=2, is contrasted with the limpet effect where small fish are excluded, .L 􏰀C /, giving a measure of how the effect of limpet exclusion changes with small fish exclusion: 4 D .1=2/.LfF 􏰀 fF/ C .1=2/.Lf 􏰀 f / 􏰀 .L 􏰀 C /. The averaging here means that this measures a meaningful effect only when there is no limpet-by-big-fish interaction. 5. Do limpets have a different effect when large fish are present than when large fish are not present? The difference LfF 􏰀 fF measures the limpet effect where all fish are allowed, and the difference Lf 􏰀 f measures the limpet effect where only small fish are allowed. The difference between the two effects estimates how much the limpet effect changes when large fish are allowed versus when they are excluded: 5 D.LfF 􏰀fF/􏰀.Lf 􏰀f/. The contrasts are estimated by substituting the appropriate treatment averages (over all 16 observations) for the corresponding means. For example, the Large Fish estimate of 􏰀0.6140 in Display 13.13 is .1=2/.Y fF 􏰀 Y f / C .1=2/.Y LfF 􏰀 Y Lf /. As long as the data are balanced, the effects of the blocks need not be considered. Using the estimate of  that comes from the model with blocks included, the standard error of a linear combination (Section 6.2.2) has systematic block effects removed. Drawing Conclusions About Effects For the seaweed grazers data, the estimate of  is 0.5989 with 83 degrees of freedom. The standard errors of the estimated contrasts in Display 13.13 come from the formula in Section 6.2.2 using this estimate of . The t-tests indicate the evidence regarding the various contrasts. Since the questions dealing with grazer main effects (questions 1–3) involve assumptions about treatment interactions, it is important to examine the interac- tion questions first. The limpet-by-large-fish interaction comes first, because the other depends on it. The estimate provides no evidence that the limpet effects depend on whether large fish are excluded or allowed (two-sided p-value D 0.48). Next, the limpet-by-small-fish contrast does not indicate that the limpet effects depend on whether small fish are excluded (two-sided p-value D 0:71). Therefore, the contrasts that involve averaging of effects—like the average of the limpet effect in the absence of large fish and the limpet effect in the presence of large fish—can be easily interpreted. All grazer main effects are statistically significant. Allowing limpets (two-sided p-value < 0:0001/ produces the largest and most statistically significant effect, followed by that of allowing large fish (two-sided p-value D 0.0001) and small fish (two-sided p-value D 0.01). Since the limpet contrast is the mean log regeneration ratio when limpets are present minus the mean log regeneration ratio when limpets are absent, the antilog of the estimate, e􏰀1:8288, estimates the ratio of median regeneration ratios. The median regeneration ratio when limpets are allowed is estimated to be only 0.161 of the median regeneration ratio when they are excluded. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.3 Analysis of the Seaweed Grazer Data 401 A 95% confidence interval for this ratio of medians is obtained, as usual, by taking the antilogarithms of the endpoints of a 95% confidence interval for the limpet contrast (0.126 to 0.205). The numerical conclusions reported in the summary of statistical findings about small fish and large fish were found in a similar fashion. 13.3.5 Answers to Specific Questions of Interest Using Multiple Regression with Indicator Variables The inferences about the seaweed grazers above can also be derived by fitting a multiple linear regression analysis using indicators as explanatory variables. Since the computer does more of the work, this can be an easier approach to answering the questions of interest. The trick is to set up the indicator variables properly and to recognize the interpretations of the regression coefficients. Question-Oriented Indicator Variables The following variables are indicators of presence/absence, rather than of treatment combination: lmp: an indicator that is 1 for plots in which limpets were allowed to graze; sml: an indicator that is 1 for plots in which small fish were allowed to graze; big: an indicator that is 1 for plots in which large fish were allowed to graze. Each variable sets up a contrast measuring the difference in mean responses between where the grazer is present (indicator D 1) and where it is absent (indicator D 0). Two additional variables measuring interactions between grazers are the products, lmp  sml and lmp  big. Other interactions are not estimable because of the constraints of the experimental design. Little fish could not be excluded without also excluding large fish, and a computer regression procedure would show an error message if the sml  big interaction is included. A multiple linear regression analysis that parallels the previous analysis of contrasts begins by fitting the model: ˇ0 C BLOCK C ˇ8lmp C ˇ9sml C ˇ10big C ˇ11.lmp  sml/ C ˇ12.lmp  big/: Least squares estimation of this model does not directly reproduce the contrast estimates in Display 13.13. The estimate of the limpet-by-large-fish interaction, ˇ12, is the same as the contrast estimate of the limpet-by-large-fish interaction effect, but estimates of the other coefficients do not match the corresponding contrast effects. The reason for this is that the other contrast effects involve some averaging of simple effects, and the regression analysis does not average the simple effects if the model specifies that the simple effects are different because of interaction. However, the model ˇ0 C BLOCK C ˇ8lmp C ˇ9sml C ˇ10big C ˇ11.lmp  sml/ specifies that no limpet-by-large-fish interaction exists, so the regression analysis does the appropriate averaging and comes up with an estimate of the limpet-by- small-fish interaction parameter, ˇ11, that agrees with the contrast estimate of the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 402 Chapter 13 The Analysis of Variance for Two-Way Classifications 13.4 limpet-by-small-fish interaction effect. By fitting the model ˇ0 C BLOCK C ˇ8lmp C ˇ9sml C ˇ10big with no grazer interactions whatsoever, multiple linear regression averages all the appropriate simple effects to produce estimates of the main effect parameters—ˇ8, ˇ9, and ˇ10—that agree with the contrast estimates of main effects. The regres- sion analyses, however, produce slightly different standard errors for the coefficient estimates. ANALYSIS OF THE PYGMALION DATA The Pygmalion data are also from a randomized block experiment. Although there is no particular interest in the different response means for the different companies, it is important to compare the treatment difference after possible company differ- ences are accounted for. One difference from the seaweed grazers data, however, is that the data here are unbalanced, since some of the treatment-block combinations had two experimental units and some had only one. 13.4.1 Initial Exploration and Check on Additive Model The starting point in the analysis is a visual display of the data, as in Display 13.14. From this several features emerge: The Pygmalion platoons do seem to score higher DISPLAY 13.14 Average scores for platoons on the Practical Specialty Test Control Platoon Pygmalion Platoon 1 2 3 4 5 6 7 8 9 10 Company Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Platoon Score 60 70 80 90 DISPLAY 13.15 than the control platoons in most companies; some companies seem to score higher than others; there are no obvious outliers and no obvious need for a transformation. Next it is appropriate to fit the saturated model, check residual plots, and examine the significance of interactions. Since the data are unbalanced and since the Pygmalion effect can be conveniently examined through the coefficient of an indicator variable, a regression approach is chosen. Multiple Linear Regression Model Let pyg be the variable indicating the Pygmalion treatment (pyg D 1 for those platoons that were reported by the psychologist as likely to perform well and pyg D 0 for the other platoons), and let cmp2, cmp3, and so on be indicator vari- ables for companies 2; 3; : : : ; 10 (with the first company as the reference level). The full data layout based on these indicator variables appears in Display 13.15. The Pygmalion data with indicator variables defining treatment and companies in an additive model 13.4 Analysis of the Pygmalion Data 403 Case Score pyg cmp2 cmp3 cmp4 cmp5 cmp6 cmp7 cmp8 cmp9 cmp10 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 404 Chapter 13 The Analysis of Variance for Two-Way Classifications The full, nonadditive model for the mean platoon score given company and treatment is fscorejPYG; COMPg D PYG C COMP C .PYG  COMP/: A residual plot from the fit to this model (not shown) does not indicate any prob- lems, but it is only partially useful since the residuals for those treatment-company combinations with only a single platoon are necessarily zero in the full model. Next, examine the F -test for the interaction terms (shown in Display 13.16) and, if the additive model seems appropriate given this F -test, reexamine a residual plot after fitting the additive model. The large p-value of 0.72 suggests no problem with using the additive model for the analysis. Although a slight funnel shape appears in the residual plot from the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 13.16 F-test for interactions between companies and treatment: Pygmalion data Analysis of variance table from regression fit to the full, nonadditive model, PYG 1 COMP 1 PYG 3 COMP: Source of variation Regression Residual Total Sum of squares 1,321.3221 467.04 d.f. Mean square F-statistic 19 69.5433 1.3401 9 51.8933 p-value 0.3358 p-value Source of variation Sum of squares d.f. Mean square F-statistic 1,788.3621 28 Analysis of variance table from regression fit to the additive model, PYG 1 COMP: Regression 1,009.8581 Residual 778.5039 Total 1,788.3621 Residual sum of squares from reduced model 10 100.9858 2.3349 0.0564 18 43.2502 28 Residual sum of squares from full model F-statistic = (778.5039 2 467.0400)/(18 2 9) = 34.6071 = 0.667, 51.8933 51.8933 Residual mean square (est. of 2) from full model p-value for interaction 5 Pr(F9,9 . 0.667) 5 0.72 13.4 Analysis of the Pygmalion Data 405 DISPLAY 13.17 Residual plot from the fit of the additive model to the Pygmalion data 10 5 0 25 210 70 75 80 85 Fitted Scores additive model (Display 13.17), the funnel is headed in the opposite direction from what would be corrected by the log transformation. No suitable transformation applies here and, since the degree of nonconstant variance is small, the analysis will be pursued with the additive model on the original scale. 13.4.2 Answering the Question of Interest with Regression The results of fitting the additive multiple linear regression model appear in Display 13.18. The estimate of the treatment effect and its standard error, t-statistic, and two-sided p-value appear in boldface. A 95% confidence interval on the Pygmalion effect completes the standard anal- ysis. With 18 degrees of freedom, the appropriate multiplier is t18.0:975/ D 2:101, the interval half-width is .2:101/.2:5795/ D 5:4195, and the interval goes from a low of .7:2205 􏰀 5:4195/ D 1:8 points to a high of .7:2205 C 5:4195/ D 12:6 points. The mean score for the Pygmalion platoons was estimated to be 7.22 points higher than the mean score for the control platoons, after accounting for the effects of company (95% confidence interval: 1.8 to 12.6 points). 13.4.3 A Closer Look at the Regression Estimate of Treatment Effect To see how the regression analysis controls for differences between companies, con- sider Display 13.19, which shows separate estimates of treatment effect from each company. The estimate for any particular company equals the difference between the score in the one treated platoon and the average of the two scores from the control platoons (except for company 3, where the average control score is from one platoon). Because each of these estimates is constructed within a company, Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Residual Scores 406 Chapter 13 The Analysis of Variance for Two-Way Classifications DISPLAY 13.18 Multiple linear regression output from the fit of the additive model to the Pygmalion data:  {score j PYG, COMP} D PYG C COMPANY DISPLAY 13.19 Residual SD 5 6.5765 on 18 d.f. Different estimates of the treatment effect, from each company and from the combined data ignoring company differences Averages Company Difference Variable Coefficient Constant 68.3932 Standard error 3.8931 t-statistic 17.5679 Two-sided p-value ,0.0001 0.0119 0.3308 0.9743 0.8591 0.1015 0.0203 0.7094 0.9951 0.8400 0.4407 i Pygmalion Control i differences between companies cannot affect them. That is, these within company estimates of treatment effect control for company differences. The regression analysis produces a composite (as in a paired t-analysis), but it gives slightly different weight to company 3 than to the others because of the dif- ferent numbers of control observations. The least squares estimate of the treatment effect in the additive model is equivalent to the weighted average ıOW D .w1ıO1 Cw2ıO2 CCw10ıO10/; .w1 Cw2 CCw10/ Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.4 Analysis of the Pygmalion Data 407 where the weights are proportional to 1/Var.Yi1:􏰀Yi2:/, which, with the constant 1/2 dropped, is D .1=ni1 C 1=ni2/􏰀1. Equivalently: ni1 ni2 wi = (ni1 + ni2 )= (1)(1)=1,forcompanyi =3 (1+1) 2 (1)(2) = 2 , for the other 9 companies (1+2) 3 (and the weighted average turns out to be 7.2205 points, as given in the regression output). Because the regression estimate is a linear combination of averages in the 20 different groups, the standard deviation can be determined directly with the formula in Section 6.2.2 (with Ci D wi ): SD.ıOW/Dr2 D0:39223: 13 Here, using the different weights gives a slight improvement over the standard deviation in the sampling distribution of the unweighted average of estimates; the latter would be SD.ıOU/Dr31 D0:39370: 200 In fact, the multiple linear regression estimate will always give the most efficient weighting to estimates from different levels of a confounding variable in unbalanced situations. Although the difference in this case between using the regression esti- mate and using the unweighted average of effects is small, that is because this study was nearly balanced. In less balanced examples, the difference can be substantial. 13.4.4 The p-Value in the Randomization Distribution Randomization tests were introduced in Chapter 4, where they helped make pre- cise the notion of inferences for randomized experiments. With any data based on randomization, it is possible to construct a randomization distribution by consid- ering the distribution of a test statistic over all possible ways the randomization could have turned out. Since the actual calculation of the randomization p-value is usually quite difficult, however, the usual analysis based on a population model is often accepted as an approximation to the exact measure of uncertainty based on a randomization distribution. For the Pygmalion randomized block design an exact randomization test requires considering the numerical results under all possible rearrangements of the platoon scores within a given block (since the randomization was carried out separately for each block). The randomization distribution of the t-statistic for treatment effect refers to the distribution of the t-statistic under all possible group- ings of the platoons within a company into a control group (of size 1 for company 3 and size 2 for other companies) and a Pygmalion group (of size 1). There are Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 408 Chapter 13 The Analysis of Variance for Two-Way Classifications 13.5 The actual observed t-statistic (from the output in Display 13.18) was 2.799. The proportion of t-statistics in the randomization distribution that exceed or are equal to this is 0.0038. The chance that the evidence of a Pygmalion effect is as large as it is, simply as a consequence of randomization, is 0.0038. Although this p-value is the most meaningful for this problem, it is difficult to compute. The approximation based on a comparison to the t-distribution on 18 degrees of freedom is 0.0060 (one-sided p-value). Thus the results using the standard regression analysis can be viewed as approximations to the randomization test, if that interpretation is desired. RELATED ISSUES 13.5.1 Additivity and Nonadditivities As the term suggests, nonadditivity means anything other than additivity. There are .I 􏰀 1/  .J 􏰀 1/ parameters more in the saturated model than in the additive model, and all describe nonadditivity. When nonadditivities are present, although computation of row and column averages and row and column effects is still possible, 2  39 D 39;366 such arrangements. This is the product of 3 arrangements within company 1, times 3 arrangements within company 2, times 2 arrangements within company 3, times 3 arrangements within company 4, and so on. Calculating the t-statistic for each arrangement of the observed scores (with a computer program) yields the histogram in Display 13.20. DISPLAY 13.20 Randomization distribution for the Pygmalion effect t-statistic in a multiple linear regression analysis with no interactions −4 −3 −2 −1 0 1 2 One-sided p-value from the randomization distribution is 0.0038. 3 4 t-statistic from the multiple linear regression analysis is t = 2.799. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 13.21 these summaries do not measure meaningful parameters. Consequently, making global statements about treatment differences can be highly misleading. Nonadditivity may speak in many languages, not all of which are unintelligi- ble. Display 13.21 shows several instances of a simple structure in a nonadditive Hypothetical treatment curves plotted against another factor, illustrating additive and some nonadditive conditions Additive 13.5 Related Issues 409 Control Treatment Nonadditive (I) Nonadditive (III) Nonadditive (II) Nonadditive (IV) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 410 Chapter 13 The Analysis of Variance for Two-Way Classifications situation. The upper left panel shows what the mean response to a control treat- ment might be at seven different levels of a categorical explanatory variable (plotted along the horizontal scale). The upper right panel shows how the means plot would appear in an additive situation with two different treatments applied at the same levels of the factor. The situation is additive because the vertical change from con- trol to each treatment (the treatment effect) is the same at all levels of the factor. Notice that additive in the language of algebra translates to parallel in the language of geometry. If the panel is turned on its side to show seven different factor curves, each tracing the mean response from the three treatments, that picture would also show parallel lines. The remaining four panels of Display 13.21 depict nonadditive situations. In each, the treatment effects change with the different factor levels. (But in all, the control treatment curve is the same.) The nonadditive (I) panel shows a case where the treatment effects change sys- tematically; they increase steadily with increasing levels of the explanatory factor. Assuming that the factor levels as listed are ordered according to the values of an explanatory variable, then including treatment-by-explanatory variable product terms in a multiple linear regression is likely to account for the nonadditivity. The nonadditive (II) panel shows a situation in which treatment differences increase systematically as the mean response increases. At factor levels where the control mean is small, treatment effects are small. Where the control mean is larger, so are the treatment effects. On a transformed scale, mean responses are likely to exhibit additivity. Compare this panel with Display 13.7. The nonadditive (III) panel illustrates a case where one of the treatments has a drastically different effect from the others. It may be that this treatment killed most of the subjects. Clearly it has destroyed the association between the mean response and the explanatory factor. Here the best strategy is to present separate accounts of what happened for each of the different treatments. Only the nonadditive (IV) panel appears highly complex. No simple pattern emerges for the nonadditivities. Treatment effects do not vary systematically with either the explanatory factor or the mean response. These situations do arise, sometimes showing statistically significant nonadditivities. Several explanations are possible. First, there may be intraclass correlation, where observations within groups are not independent and tend to be more closely concentrated than a truly random sample would be. Second, the residual estimate of variability may under- estimate the population variability, just by chance. The estimate is, of course, an estimate—sometimes above its target and sometimes below. If it is below, all com- parisons between cell means tend to look more significant. (The reason for pooling sources of variability to estimate  is to get as much information about it as pos- sible to reduce this problem.) Third, other important explanatory factors neither controlled in the design nor represented in the analysis may be confounding the issue. As these examples illustrate, nonadditivity can arise in meaningful ways. Meth- ods for dealing with it depend on what kind of nonadditivity is involved. The common thread in all these situations is that simply reporting treatment main effects fails to tell the whole story. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.5 Related Issues 411 13.5.2 Orthogonal Contrasts Two contrasts are orthogonal if the sum of the products of their coefficients equals zero. For example, the large fish and limpets contrasts in Display 13.13 are orthog- onal because .C1=2/.C1=3/ C .C1=2/.􏰀1=3/ C .􏰀1=2/.C1=3/ C .􏰀1=2/.􏰀1=3/ C .0/.C1=3/ C .0/.􏰀1=3/ D 0. A set of contrasts is considered mutually orthogonal if the contrasts are orthogonal pairwise to each other. For balanced studies, estimates of orthogonal contrasts are statistically inde- pendent of each other, which is of course desirable. Indeed whenever there are I different treatments, it is possible to construct a set of .I 􏰀 1/ mutually orthogo- nal contrasts, and whenever the questions of interest are easily phrased in terms of orthogonal contrasts, using them is a good plan. On the other hand, when the questions of interest are most succinctly described in terms of contrasts that are not orthogonal, these should be used. In the seaweed study, the large fish and small fish contrasts were not orthogonal. Yet they are clearly the contrasts of interest, so they were estimated rather than any orthogonal contrasts (even though these might be straightforwardly constructed). 13.5.3 Randomized Blocks and Paired-t Analyses Randomized block experiments extend the paired-t analysis of Chapter 3 to the case where there are more than two units per block. An ordinary paired-t analysis is a test of treatment effect in a two-way analysis of variance in which the pair (block) is one of the categorical factors and the treatment (with two levels) is the other. In a randomized block study, more generally, several comparisons are made within each block. 13.5.4 Should Insignificant Block Effects Be Eliminated from the Model? The general advice for regression analysis has been to discard insignificant terms. For data from a randomized block experiment, however, block effects should be retained in the model, even though they may not be significant. This may seem at first to be an inconsistent policy. The reason for retention is to ensure that the control exercised over block differences in the design is maintained in the analysis. By including the block main effects, the inferences are the ones that most closely approximate the randomization tests (Section 13.4.4). 13.5.5 Multiple Comparisons The seaweed grazers study included specific planned comparisons among the six treatments, so no adjustments for multiple comparisons were needed. For unplanned comparisons the multiple comparison adjustment procedures of Section 6.3 can be applied but the estimate of 2 and the associated degrees of freedom are from the two-way analysis of variance. If the study merely asks which treatments differ from which other treatments, or if attention is drawn to a specific comparison by looking at the data (data snooping), then the Tukey–Kramer approach is recommended. If there are I levels Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 412 Chapter 13 The Analysis of Variance for Two-Way Classifications 13.5.6 of a factor, then confidence intervals will use a multiplier from the Studentized Range distribution corresponding to I groups and whatever degrees of freedom are associated with the estimate of 2. An Alternate Parameterization for the Additive Model It is convenient to represent the additive model generally as fY jROW;COLgDROWCCOL: The parameterization in Section 13.2.1 used I 􏰀 1 indicator variables for ROW and J 􏰀 1 indicator variables for COL, with a convenient choice for the reference level. A traditional parameterization for the mean of the row i and column j cell is subject to ij DC ̨iCˇj (foriD1;:::;IandjD1;:::;J/ ̨1 C ̨2 CC ̨I D0 and ˇ1 Cˇ2 CCˇJ D0: The parameter  is thought of as an overall mean; ̨i is the ith row effect; and ˇj is the j th column effect. Although there are 1 C I C J parameters in this version of the model, the constraints imply two restrictions, so there are actually only 1 C .I 􏰀 1/ C .J 􏰀 1/ independent parameters, just as discussed before. The benefit of this parameterization is that, with balanced data, the least squares estimates of the parameters are simple functions of the row, column, and overall averages. Let Yijk denote the kth listed response in the ith row and jth column. Dot notation signifies summation over all levels of a subscript that is replaced by a dot. So Y5:: represents the sum over all responses in row 5, and Y:2: represents the sum of all responses in column 2. This notation combines with the overbar notation for averages, so that Y 5: represents the average of all responses in row 5. The fitted value based on the fit of the additive model to a balanced two-way table is fitijk DOfYijkgDY::: C.Yi:: 􏰀Y:::/C.Y:j: 􏰀Y:::/; whereY::: istheoverallaverage,andYi::andYj:aretheaverageoftheithrow,the jth column, respectively. The fitted value is the sum of the overall average, the ith estimated row effect (the deviation of the i th block average from the overall average), and the j th estimated column effect (the deviation of the j th treatment average from the overall average). These are the estimates of the parameters above and satisfy the given constraints. An example of this breakdown is shown in Display 13.12. Fitting Models with ANOVA or Regression Routines Statistical computer programs have separate routines for analysis of variance (ANOVA) and for regression. Since the additive and nonadditive models can both be fit with multiple regression using indicator variables, it is possible to Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.6 Summary 413 analyze two-way tables with either procedure. ANOVA routines use the param- eterization discussed in this section and regression routines use a parameterization corresponding to whatever indicator variables are specified. An important consideration is whether the data are unbalanced. Several choices are available for the analysis of variance decomposition of Between Group sums of squares into row, column, and interactive effects. The user should clearly under- stand what analysis is being performed. With regression, on the other hand, since the user is forced to specify the full and reduced models in order to carry out the calculations of F -tests, the user has less chance of misunderstanding the hypothesis being tested. 13.6 SUMMARY Two-way analysis of variance is regression analysis with two categorical explanatory variables. The term analysis of variance stems from the central role of the analysis of variance F -tests associated with the row, column, and interaction effects. Two- way tables of data arise from randomized block designs in which the levels of a single treatment are randomly assigned to experimental units within each block separately, completely randomized designs in which all combinations of levels of two treatments are randomly assigned to the experimental units, and observational studies in which responses are identified with each of two categorical explanatory variables. As usual, causal statements can be made from randomized experiments but not from observational studies. Although the structure of the data may be quite similar for different data problems, the focus of inference (as in regression analysis more generally) depends on the questions of interest being asked. For some problems, a test of the significance of the interactive effects is of primary interest. For others, the interactions may be tested in a first stage of the analysis to check that the additive model, which is considerably more interpretable, can be pursued. In these cases there may be interest in the column effects after accounting for the row effects with no particular interest in the row effects themselves (or vice versa), or there may be interest in both row and column main effects. F-tests are used for initial screening. Subsequent attention to contrasts, or equivalently to coefficients of indicator variables in the multiple regression analysis of the data, is required to answer particular questions of interest. If the data are unbalanced, then regression analysis with indicator variables is particularly helpful in avoiding confusion and the computer can do the work. If there are no particular questions of interest other than which treatment levels are different from which others, a multiple comparison adjustment, such as the Tukey–Kramer method is appropriate. Seaweed Grazers An important first step in the analysis is assessment of the need for transforma- tion, based on graphical displays of the data and residuals. When the log of the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 414 Chapter 13 The Analysis of Variance for Two-Way Classifications regeneration ratio is used as a response, the variance of the residuals is roughly constant and there is no evidence of an interaction between blocks and treatments. The interaction is investigated via the extra sum of squares F -test comparing the nonadditive to the additive model. This is most conveniently obtained with an anal- ysis of variance procedure in a statistical computer program. Analysis of variance is then used on a fit to the additive model, to show that the treatment effects are significant. Although the subsequent analysis can be based on tests and confidence intervals for appropriate linear combinations of treatment means (Section 13.3.4), it is more easily couched in terms of a regression model with indicator variables (Section 13.3.5). In particular, indicator variables for the presence of large fish, small fish, and limpets permit the analyst to obtain confidence intervals and tests that can be directly reported in the summary of statistical findings. Pygmalion Effect Since the F-test for interaction between companies (blocks) and treatment is insignificant, the additive model is used for inferences. A single term describes the additional average score of a pygmalion-treated platoon over a control platoon. Section 13.4.4 demonstrates, for this example, how a p-value is tied directly to the chance involved in the randomization process. Although this is a very good approach, it is typically easier and quite adequate to use the usual regression approach as an approximation. 13.7 EXERCISES Conceptual Exercises 1. Seaweed. If, instead of the five treatment variables in the regression formulation of Section 13.3.5, the control treatment is used as a reference and five indicators for the other five treatments (grazer combinations) are defined, how would the results be different? 2. Seaweed. Display 13.11 shows that R2 from the fit to the nonadditive model is 92.84%. R2 from the additive model is 85.34%. Does this indicate that the nonadditive model is better? 3. Pygmalion. Why are the average scores of the platoon used as the response variable, rather than the scores of the individual soldiers? 4. Why is there so little interest in how the mean response is associated with blocks in a randomized block experiment? 5. Why is balance important? 6. What does it mean when there are significant interactions but no significant main effects? 7. If the F -test for treatments is not significant but the t -test for one of the contrasts is significant, is it proper to report the contrast? 8. Is it possible to examine whether an additive model is appropriate in cases where there is only one observation in each cell? 9. Seaweed. Why is the residual SD from the additive model a better choice than the residual SD from the full interactive model for calculating standard errors for the seaweed study linear combinations (Section 13.3.4)? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.7 Exercises 415 10. What is the difference between a randomized block design and a completely randomized design with factorial treatment structure? How might the analyses differ? Computational Exercises 11. Pygmalion. Analyze the Pygmalion data using the regression approach described in Section 13.4. (a) Obtain the p-value for the test that interactions are zero. (b) Obtain a p-value, from the additive model, for testing the hypothesis that the treatment effect is zero. 12. Seaweed. (a) Calculate the sample variance of the six treatment averages in Display 13.13. Multiply this by 16, and verify that the result equals the Treatments Mean Square in Display 13.11. (b) Verify that the Blocks Mean Square in Display 13.11 equals 12 times the sample variance of the block averages from Display 13.12. (c) Verify that the Between Groups Mean Square (i.e., the Model Mean Square) in Display 13.10 is 2 times the sample variance of the 48 cell averages from Display 13.12. (Note: The operative rule here is that the sample variance of a set of averages gets multiplied by the number of observations going into each average.) (d) You can easily work backward from the mean squares to the sums of squares. Then verify that the Interactions Sum of Squares is the difference between the Between Groups Sum of Squares and the sum of the Blocks and Treatments Sum of Squares. 13. Seaweed. Carry out the analysis of the seaweed data with multiple linear regression, as out- lined in Section 13.3.5. Using the regression fit, obtain a set of fitted values and residuals. Construct a residual plot. Take the antilogarithms of the fitted values to get estimated medians of percent regeneration scale and construct a plot of these versus block number, ordered as in Display 13.7. 14. Seaweed. Using the fit to the regression model described in Section 13.3.5, estimate the mean log regeneration ratio on plots in the reference block with both small and large fish allowed but limpets excluded. Back-transform the estimate and word a statement about the median regeneration ratio. 15. Blood–Brain Barrier. Analyze the effect of the design variables—sacrifice time and treatment—on the log of the ratio of brain count to liver count in the data set described in Section 11.1.2 (file: case1102). (a) Ignore the covariates and use an analysis of variance procedure to fit the data. Fit a model that includes interaction terms; plot the residuals versus the fitted values. (b) Test whether there is an interactive effect of treatment and sacrifice time. What are the F -statistic, the degrees of freedom, and the p-value? (c) If there are no interactive effects, test whether there are main effects of treatment and sacrifice time. (d) Complete the analysis by describing the effects of treatment and sacrifice time, either by estimating the appropriate contrasts or by using a regres- sion procedure with indicator variables to model treatment (one indicator) and sacrifice time (three indicators). 16. Toxic Effects of Copper and Zinc. Reconsider the data in Display 10.20 (file: ex1014). (a) Is the experiment a randomized block design or a completely randomized design with factorial treat- ment structure? (b) Analyze the data using two-way analysis of variance. (c) How does the analysis of variance compare to the regression analysis (i.e., what are the issues in deciding which analysis is more appropriate)? 17. Dinosaur Extinctions—An Observational Study. About 65 million years ago, the dinosaurs suffered a mass extinction virtually overnight (in geologic time). What happened in this period, the Cretaceous–Tertiary (KT) boundary, that could have produced such calamity? Among many clues, one that all scientists regard as crucial is a layer of iridium-rich dust that was deposited over much of the earth at that time. Data from one of the first discoveries of this layer are shown in Display 13.22. The diagram traces iridium concentrations in soil samples taken from extensive shale and limestone Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 416 Chapter 13 The Analysis of Variance for Two-Way Classifications DISPLAY 13.22 Iridium trace at Gubbio, Italy Shale Limestone 900 800 700 600 500 400 300 200 100 0 345 346 347 348 349 Depth (meters) 350 351 deposits at Gubbio, Italy. Iridium (parts per trillium) is graphed against the depth at which samples were taken, with depth giving a crude measure of historic time. Iridium is a trace element present in most soils. But concentrations as high as those at the peak near 347 meters, at the KT boundary, can only occur in association with highly unusual events, such as volcanic eruptions or meteor impacts. So the theory is that such an event caused a massive dust cloud that blanketed the earth for years, killing off animals and their food sources. But was the cause a meteor (coming down on the Yucatan peninsula in central America) or volcanic eruptions (centered in southern China)? Two articles debating the issue appeared in the October 1990 issue of Scien- tific American—W. Alvarez and F. Asaro, “What Caused the Mass Extinction? An Extraterrestrial Impact,” Scientific American 263(4): 76–84, and E. Courtillot, “What Caused the Mass Extinction? A Volcanic Eruption,” Scientific American 263(4): 85–93. A crucial issue in the debate is the shape of the iridium trace because the timing and extent of the source give clues to its nature. The raw data are provided in Display 13.23. (a) Fit the two-way, saturated model to the untrans- formed data and draw a plot of the residuals versus estimated means to see if a transformation is suggested. (b) Fit the two-way model (after transformation if appropriate) and test for interac- tion, using a multiple regression routine. (c) If appropriate with your statistical software, repeat part (b) using an analysis of variance routine. 18. El Nin ̃ o and Hurricanes. Reconsider the El Nin ̃ o and Hurricane data set from Exercise 10.28. (a) Regress the log of the storm index on West African wetness (treated as a categorical factor with 2 levels) and El Nin ̃o temperature (treated as a categorical factor with 3 levels); retain the sum of squared residuals and the residual degrees of freedom. (b) Regress the log of the storm index on West African wetness (treated as categorical with 2 levels), El Nin ̃o temperature (treated as numerical), Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Iridium (ppt) DISPLAY 13.23 Iridium (ppt) in samples from two strata at Gubbio, Italy, by depth category Depth category (meters) 345–346 346–347 347–348 348–349 349–350 350–351 13.7 Exercises 417 and the square of El Nin ̃o temperature. Retain the sum of squared residuals and the residual degrees of freedom. (c) Explain why the answers to (a) and (b) are the same. (d) Explain why a test that the coefficient of the temperature-squared term is zero can be used to help decide whether to treat temperature as numerical or categorical. Data Problems 19. Nature–Nurture. A 1989 study investigated the effect of heredity and environment on intel- ligence. From adoption registers in France, researchers selected samples of adopted children whose biological parents and adoptive parents came from either the very highest or the very lowest socio- economic status (SES) categories (based on years of education and occupation). They attempted to obtain samples of size 10 from each combination: (1) high adoptive SES and high biological SES, (2) high adoptive SES and low biological SES, (3) low adoptive SES and high biological SES, and (4) low SES for both parents. It turned out, however, only eight children belonged to combination three. The 38 selected children were given intelligence quotient (IQ) tests. The scores are reported in Display 13.24. (Data from C. Capron and M. Duyme, “Children’s IQs and SES of Biological and Adoptive Parents in a Balanced Cross-fostering Study,” European Bulletin of Cognitive Psychology 11(3) (1991): 323–48.) Does the difference in mean scores for those with high and low SES biolog- ical parents depend on whether the adoptive parents were high or low SES? If not, how much is the mean IQ score affected by the SES of adoptive parents, and how much is it affected by the SES of the biological parents? Is one of these effects larger than the other? Analyze the data and write a report of the findings. 20. Gender Differences in Performance on Mathematics Achievement Tests. Display 13.25 shows a sample of five rows from a data set on 861 ACT Assessment Mathematics Usage Test scores from 1987. The test was given to a sample of high school seniors who met one of three profiles of high school mathematics course work: (a) Algebra I only; (b) two Algebra courses and Geome- try; and (c) two Algebra courses, Geometry, Trigonometry, Advanced Mathematics, and Beginning Calculus. Analyze the data to determine whether male scores are distributed differently than female scores, after accounting for coursework profile, and whether the difference is the same for all pro- files. Write a brief summary of statistical findings and include a graphical display. (These data were generated from summary statistics for one particular form of the test, as reported in A. E. Doolittle, “Gender Differences in Performance on Mathematics Achievement Items,” Applied Measurement in Education, 2 (2) 1989: 161–77.) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 418 Chapter 13 The Analysis of Variance for Two-Way Classifications DISPLAY 13.24 IQ scores for adopted children whose biological and adoptive parents were categorized either in the highest or the lowest socioeconomic status category SES of SES of adoptive biological parents parents High High 136 High Low 94 Low High 98 Low Low 92 99 103 99 IQ scores of adopted children 121 133 125 99 125 111 91 124 100 131 103 115 93 101 116 113 116 117 94 125 91 119 91 98 83 99 68 76 115 86 116 DISPLAY 13.25 ACT mathematics test scores for a set of high school seniors having one of three mathematics course profiles; 5 sample rows from 861 Gender Profile Score male a 5 male b 13 female a 18 female c 28 male c 32 21. Pygmalion. The term Pygmalion effect (used in the Section 13.1.2 data problem) originated with the 1960s’ work of psychologist Robert Rosenthal and elementary school principal Lenore Jacobson, who conducted a randomized block experiment on the children in Jacobson’s elemen- tary school. In each classroom (i.e., for each block of students), they assigned roughly 20% of the students to a “likely to excel” treatment group and the remainder to a control group. After all stu- dents took a standardized test at the begining of the school year, Rosenthal and Jacobson identified to teachers those students that had been indicated by the intelligence test as very likely to excel in the coming year. This was false information, though. The “likely to excel” students were simply those who had been assigned by a chance mechanism to the “likely to excel” treatment group. The researchers deceived the teachers with this false information to create artificial expectations and to explore the effect of those expectations on student test score gains. Display 13.26 is a partial listing of a data set simulated to match the summary statistics and conclusions from Table A-7 of Rosenthal and Jacobson’s report (R. Rosenthal, and L. Jacobson, 1968, Pygmalion in the Classroom: Teacher Expectation and Pupil’s Intellectual Development, Holt, Rinehart, and Winston, Inc.). Analyze the data to summarize the evidence that teachers’ expectations affect student test score gains. Write a statistical report of your conclusions. 22. Pygmalion; Mixed Effects Model. The blocks in the Pygmalion study of Excercise 21 are the different classrooms in the school. To model possible differences among the 17 classrooms (such as the effects of the different classroom teachers) as a categorical factor, 16 parameters are needed. Some researchers would prefer to think of the classrroom effects as random, which would mean acting as if the 17 teachers were a random sample from some larger population of teachers. The treatment effect would be handled in the usual way and would be referred to as a “fixed effect.” A model that includes both fixed and random effects is called a mixed effects model. Analyze the data of Exercise 21 but treat the block effects as random by using a mixed linear model routine in a statistical computer program. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13.7 Exercises 419 DISPLAY 13.26 Results of a randomized block experiment to see whether teacher’s expectations affect student’s intelligence test score gains, with Grade (1 through 6), Class (to indicate distinct classes at each grade), Treatment (either control or Pygmalion), and Gain (standardized test score at end of year minus score on test at beginning of year); first 5 of 320 rows Student Grade Class Treatment Gain control 24 control 0 control 219 control 24 control 19 1 1 1a 2 1 1a 3 1 1a 4 1 1a 5 1 1a Answers to Conceptual Exercises 1. This would be almost exactly like the analysis of Section 13.3.5. Instead of measuring interest- ing contrasts, the coefficients would measure effects of applying treatment combinations. To tease out the separate effects of each grazer, it would be necessary to consider linear combinations of the regression coefficients. (Notice how the judicious choice of indicator variables in Section 13.3.5 avoided the messy contrast approach.) 2. No. As usual, R2 is always larger for a model with more terms, whether or not those terms are significantly different from zero. 3. The experimental unit—that which receives the treatment—is the platoon, not the individual soldier. 4. The association is not an issue. Blocks are formed to provide similar units on which to compare treatments. Also, the randomization is not conducive to drawing inferences about block differences. 5. The simple row and column means in a balanced table produce simple estimates of model parameters. To see that the treatment effects are not influenced by block differences, try adding a certain fixed amount to all responses in one block. It will not change any of the treatment differences in a balanced table. But it will in an unbalanced table. 6. It simply means that there are significant interactions. When there is nonadditivity, the best strategy is to avoid talking about main effects. 7. If the contrast was planned in advance, report it. If it is a comparison that the data suggested, you should account for the data snooping when attaching any significance to it. 8. The analysis of variance table will have no within-group entry if there is only one observation in each cell. So there will be no formal analysis of variance test for nonadditivity. But the answer to the question is yes, and the next chapter will discuss how. 9. If there are interactions, there is no sense in estimating the linear combinations. 10. In the randomized block design the random allocation of treatment levels to experimental units is conducted separately for each block. In a completely randomized design the treatment levels are randomly allocated to all experimental units at once, but the levels correspond to all possible com- binations of the levels of two distinct treatments. In the randomized block data there is generally no interaction expected and there is little interest in the block effects. In the design with factorial treatment arrangement there may be interest in an interactive effect and there is typically interest in the effects of both treatments. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 14 Multifactor Studies Without Replication 420 Chapter 13 emphasized that the analysis of variance for two-way tables is regression with categorical indicator variables. As long as factor effects are treated as fixed (not random; see Section 14.5.1), any number of factors and numerical explanatory variables—and their interactions—can be accommodated in a regression model. There is little need to distinguish between analyses that focus on numerical explanatory variables and those that focus on categorical factors, except to recognize that analysis of variance F -tests play a more central role in the latter. One important strategic issue, however, is associated with the presence or absence of replicates in a multifactor study. Given more than one observation at some explanatory variable combinations, sample variances may be computed and pooled together as an estimate of 2 that does not hinge on the accuracy of any model for the mean. In regression this is called the pure error estimate of 2, which is used to perform a lack-of-fit test. In the absence of replicates, the residuals from a saturated model are necessarily zero, with no degrees of freedom for estimating 2 from the residuals. Following a common tactic in regression, the analysis may proceed if a simpler model with fewer parameters can be assumed to fit, thus leaving degrees of freedom for estimating residual variation. For two-way tables, this means proceeding as if the interaction terms can be ignored. If one of the factors has three or more numerical levels, this means modeling the effect of the factor as a linear function of the numerical variable. The estimate of 2 is based on the sum of squared residuals. Even though some questions cannot be answered under these circumstances, much can be learned from such analyses. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 14.1 CASE STUDIES 14.1.1 Chimpanzees Learning Sign Language— A Controlled Experiment An irony of the space age is that, while humans beam coded messages toward distant galaxies in search of responsive intelligent life forms, communication with highly intelligent animals on this planet remains a mystery. In one study, however, a researcher taught 10 signs of American Sign Language (ASL) to four chimpanzees. (Data from R. S. Fouts, “Acquisition and Testing of Gestural Signs in Four Young Chimpanzees,” Science 180 (1973): 978–80.) The study’s goals were to determine whether some signs were more easily acquired than others and whether some chimps tended to learn signs more quickly than other chimps. The subjects were four young chimpanzees—males Bruno and Booee, and females Cindy and Thelma—at the Institute for Primate Studies at the University of Oklahoma. The ASL signs—hat, shoe, fruit, drink, more, look, key, listen, string, and food—covered a wide range of objects, actions, and concepts. Chimpanzees were taught individually, using a system of rewards (and in the case of a reluctant Bruno, threats), until they could successfully produce unprompted responses on five consecutive occasions. Display 14.1 shows the times, in minutes, required to teach each sign to each subject, according to that criterion. The factors are arranged according to increasing average times. Minutes to acquisition of American Sign Language signs by four chimps Listen Drink Shoe Key More Food Fruit Hat Look String Large differences between times required to acquire different signs appear. Lis- ten, shoe, and drink were acquired quickly by all four chimps, but look and string were seemingly quite difficult. There are some less apparent but consistent differ- ences among the chimps. Booee, who was “willing to sell his soul for a raisin,” seemed to acquire the signs quickly; while Thelma took considerably longer, being easily distracted by such intrusions as a fly in the cage. What can be said about whether such differences are systematic? Statistical Conclusion These data provide suggestive but inconclusive evidence that some chimpanzees were faster than others at learning words (p-value D 0:064 from an F-test on 3 and 27 degrees of freedom). They provide convincing evidence that some signs were learned more quickly than others (p-value D 0:00002 from an F -test on 9 and 27 DISPLAY 14.1 14.1 Case Studies 421 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 422 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.2 Multiple comparisons of sign means on the log scale Key Shoe Hat String Listen 10 Drink Food More Fruit Look HSD Minutes to Acquisition 100 14.1.2 degrees of freedom). Display 14.2 shows the mean completion times for each word. The double-arrow line is the half-width of a 95% confidence interval (based on the Tukey–Kramer procedure for multiple comparisons of means). A test of equality of any two sign means will have a p-value of less than 0.05 if the difference between the means is greater than the length of the HSD (“honest significant difference”) line (Section 6.4.1). (See Exercises 9–11 for further exploration into the problem.) Effects of Ozone in Conjunction with Sulfur Dioxide and Water Stress on Soybean Yield—A Randomized Experiment The National Crop Loss Assessment Network (NCLAN) was a series of studies designed to estimate the benefits to agriculture in the United States that followed from reducing levels of ambient ozone. These studies, conducted from 1980 to 1987, involved many crops in many locations. One of the most damaged crops was found to be soybeans, but serious questions were raised about the effects and possible interactions of ozone with sulfur dioxide and with water stress. This 1982 study at the Beltsville, Maryland, Agricultural Research Center was a randomized experiment involving two different soybean cultivars. The 30 pos- sible combinations of ozone (at five levels), sulfur dioxide (at three levels), and water stress (at two levels) were randomly assigned to 30 open-topped chambers specially constructed to maintain stable conditions. Two soybean cultivars—Forrest and Williams—were randomly assigned to two rows within each chamber, with sepa- rate randomizations within each chamber. The soybeans were planted in July; sulfur dioxide and ozone were piped in and monitored daily; soil moisture was maintained by watering and was measured at a depth of 0.25 to 0.45 meters. In September, the crops were harvested, each row producing a quantity of soybean seeds that was con- verted into kilograms per hectare. These data appear in Display 14.3. (Data from H. E. Heggestad and V. M. Lesser, “Effects of Chronic Doses of Sulfur Dioxide, Ozone, and Drought on Yields and Growth of Soybeans Under Field Conditions,” Journal of Environmental Quality 19 (1990): 488–95.) Many previous studies had found that ozone and sulfur dioxide reduce yield. Evidence about interactions between ozone and sulfur dioxide had not been con- sistent, nor was it clear how moisture stress influenced the results. Three questions were of interest in this study: (1) Is there an additional influence of soil moisture Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 14.3 Seed yields for soybean cultivars Forrest and Williams from chambers kept under varying conditions of ozone, sulfur dioxide, and water stress 14.1 Case Studies 423 Water stress SO2 ( L/L) O3 ( L/L) Yields (kg/ha) 4,376 5,561 4,544 5,947 2,806 4,273 3,339 3,470 3,320 3,080 3,747 5,092 4,570 4,752 4,635 4,232 3,613 2,867 3,259 3,106 4,179 4,736 5,077 3,672 3,401 3,386 3,371 2,854 2,158 2,557 4,977 4,520 3,780 3,047 3,804 3,526 3,941 3,357 2,863 2,663 5,573 4,869 3,555 3,774 3,340 2,955 3,243 3,513 2,802 2,838 4,589 4,056 3,250 2,758 3,045 3,094 2,827 2,398 2,979 2,101 stress? (2) Are there interactive effects among the three factors? and (3) Do the stress variables have different effects on the two cultivars? Statistical Conclusions Forrest Cultivar. This experiment provided no evidence of any interactive effects of ozone, sulfur dioxide, and water stress on soybean seed yields from the Forrest cultivar (p-value = 0.56 from an extra-sum-of-squares F -test comparing the model Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 424 Chapter 14 Multifactor Studies Without Replication with all two-factor and three-factor interactions to the model with no interactions, when O3 and SO2 are treated as numerical variables and water stress is a factor with two levels). The experiment did provide convincing evidence that increasing ozone caused a reduction in yield (one-sided p-value < 0.0001). Each additional 0.01 L/L increase in ozone (within the range of 0.02 to 0.10 L/L) caused an estimated 5.3% decrease in the median yield (95% confidence interval: 3.5% to 7.1% decrease). The experiment also provided suggestive but inconclusive evidence that increas- ing sulfur dioxide caused a reduction in soy bean yield (one-sided p-value D 0.057). Each additional 0.01 L/L increase in sulfur dioxide (within the range of 0.01 to 0.06 L/L) caused an estimated 1.9% decrease in median yield (95% confidence interval: 4.1% decrease to 0.5% increase). The experiment provided no evidence that decreasing soil water moisture from 􏰀0.05 MPa to 􏰀0.40 MPa caused a decrease in Forrest cultivar soybean yield (one-sided p-value D 0.27). Although the data are consistent with no effect of water stress, the best estimate is that the decrease in soil moisture caused a 3.2% decrease in median yield (95% confidence interval: 13.3% decrease to 8.0% increase). Although the data are consistent with no interactive effects, the left-hand scat- terplot in Display 14.4 shows the results of estimated regression models for log of yield on ozone, sulfur dioxide, water stress, and all two-factor interactions. The detrimental effect of an increase in 0.01 L/L of ozone on median yield is estimated to be 1.9% greater when sulfur is at its high value than when it is at its low value (95% confidence interval: 2.6% smaller to 6.7% greater). The detrimental effect is estimated to be 1.5% greater when the water level is stressed than when it isn’t (95% confidence interval 2.4% smaller to 5.5% greater). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 14.4 6,000 5,000 4,000 3,000 2,000 0.02 6,000 5,000 4,000 3,000 2,000 Scatter plots of Forrest and Williams soybean seed yields (on log scale) versus ozone concen- tration, and estimated models with all two-factor interactions SO2: 0.0045 SO2: 0.017 SO2: 0.059 SO2: 0.0045, stressed SO2: 0.017, stressed SO2: 0.059, stressed 0.04 0.06 0.08 0.10 0.02 0.04 0.06 0.08 0.10 Ozone (μL/L), jittered Ozone (μL/L), jittered Yield of Forrest Cultivar (kg/ha) Yield of Williams Cultivar (kg/ha) 14.2 Williams Cultivar. There is similarly no evidence from the data of any interactive effects of the experimental conditions on the Williams soybean yield (p-value D 0.73 from an extra sum of squares F -test comparing the model with all two-factor and three-factor interactions to the model with no interactions, when O3 and SO2 are treated as numerical variables and water stress is a factor with two levels). The experiment provided convincing evidence that increasing ozone caused a reduction in Williams cultivar yield (one-sided p-value < 0.0001). Each additional 0.01 L/L increase in ozone (within the range of 0.02 to 0.10 L/L) caused an estimated 6.6% decrease in the median yield (95% confidence interval: 5.3% to 7.9% decrease). The experiment provided convincing evidence that increasing sulfur dioxide caused a reduction in soy bean yield (one-sided p-value < 0.001). Each additional 0.01 L/L increase in sulfur dioxide (within the range of 0.01 to 0.06 L/L) caused an estimated 4.0% decrease in median yield (95% confidence interval: 2.4% decrease to 5.7% increase). The experiment also provided convincing evidence that decreasing soil water moisture from 􏰀0.05 MPa to 􏰀0.40 MPa caused a decrease in Williams cultivar soybean yield (one-sided p-value < 0.0001). The decrease in soil moisture caused an estimated 16.3% decrease in median yield (95% confidence interval: 9.4% decrease to 22.7% increase). Regarding interactive effects: The detrimental effect of an increase in 0.01 L/L of ozone on median yield is estimated to be 0.9% greater when sulfur is at its high value than at its low value (95% confidence interval 2.4% smaller to 4.3% greater); and the detrimental effect of ozone is estimated to be 1.4% greater when the soil moisture was unstressed than when it was stressed (95% confidence interval 1.4% smaller to 4.2% greater). Note The NCLAN soybean study had a split-plot design, which will be discussed fur- ther in Chapter 16. Chambers were whole plots, receiving treatment combinations of ozone, sulfur dioxide, and water. Within each chamber were two split plots, one receiving each cultivar. A split-plot analysis of variance could be conducted and would lead to direct comparisons of the cultivars and their interactions with the whole-plot treatments. The analysis in this chapter illustrates the alternative approach of conducting separate univariate analyses for each cultivar, which is adequate for answering most of the questions asked. STRATEGIES FOR ANALYZING TABLES WITH ONE OBSERVATION PER CELL 14.2.1 Rationale for Designs with One Observation per Cell Both case studies in this chapter are multifactor studies with a single observation at each combination of the factors. The chimp data arose from a repeated measures 14.2 Strategies for Analyzing Tables with One Observation per Cell 425 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 426 Chapter 14 Multifactor Studies Without Replication 14.2.2 experiment, meaning that the experimental units (the chimps) were observed under each of several conditions (the signs). A more general discussion of repeated mea- sures is provided in Chapter 16. For now, the important factor of the experiment was the effort to teach each sign to each chimp: Treating chimp as a block permits comparing signs without interference from chimp-to-chimp learning variability. One consequence of this design is the impossibility of obtaining replicates: A given sign cannot be taught independently to the same chimp twice. In the soybean study the experimental units were the growing chambers. In this case more than one chamber could have been assigned to receive each com- bination of the experimental factors; but given the limited number of available chambers, the question here is whether replication constitutes the wisest allocation of the resources. The use of replicates with the same number of chambers would have precluded simultaneous examination of the three factors of interest and their interactions. The researchers elected to examine the questions of interest without the benefits of replication, realizing that much could be learned anyway. The major benefit of replication is that it permits model-free estimation of variability of the responses; that is, the adequacy of the estimate of variance does not hinge on the correctness of any presumed model. Replication allows formal testing of the lack of fit for any model (as with the lack-of-fit test for regression discussed in Section 8.5.3). Sometimes, however, it is more important to expend resources on aspects of the design that pertain to the questions of interest than on aspects that enable the analyst to test it for lack of fit. This is especially so when either of the following conditions is true: prior information strongly supports a simple model or structure, which need not be checked prior to being used; or exploratory and diagnostic procedures can be introduced to sort out the model without reliance on a formal lack-of-fit test. Without replication, estimates of 2 (and hence, tools of inference) are only possible by fitting nonsaturated models. For the chimp data, this is accomplished by assuming that no chimp-by-sign interactions exist. For the soybean data, it is accomplished by treating ozone as a numerical explanatory variable, rather than as a categorical one, and by using a linear model to describe the effect of ozone. Strategy for Data Analysis in the Absence of Replicates The suggested analysis here is much the same as for regression analysis in general (see Display 9.9). Graphical displays of the data, such as coded scatterplots of the response versus a code for one of the factors, are usually helpful. A plot of residuals versus fitted values from a fairly rich model should be used to investigate the need for transformation and the possible presence of outliers. After transformation and outliers have been considered and resolved, model refinement may take place with informal testing of model terms. One aspect of this strategy requires more skill than do corresponding strategies for problems with replication: the choice of a rich model on which residual exami- nation is conducted. Including too few terms might mask relevant patterns in the residual plot, if some of the omitted terms are actually important. Including too many terms will produce a fit tied too closely to the particular data. It is important Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 14.3 Analysis of the Chimpanzee Learning Times Study 427 to identify the major sources of variation in the exploratory analysis, and then to fit a model that explains most of the variability with as few terms as possible. In a forward selection approach, main effects are considered and retained if significant. Then the two-factor interactions (interaction between two factors) are investigated, but only between factors whose main effects have already been found to be significant. If appropriate, three-factor interactions (interactions among three factors) are considered next, but only among factors whose main effects and second- order interactions have been determined to be significant. In a backward elimination approach, a rich model is fit. Then testable highest- order interactions are considered and dropped if not significant. Then next-highest- order interactions are considered; and so on. Under either approach, including an interaction term is generally inappropriate unless the main effects of all the variables in the interaction are also included in the model. If any of the explanatory variables can be treated as numerical, as opposed to categorical, it is usually appropriate to attempt the simpler fit involved in treat- ing them as such. If this works, it will result in a model with fewer parameters and a simpler interpretation. Furthermore, some problems (like the soybean data problem) simply do not have enough degrees of freedom to permit estimation of the interactions of interest, so using a linear effect of the numerical variables (like ozone) at an early stage in the analysis helps to “save degrees of freedom” for subsequent investigation of interactions. 14.3 ANALYSIS OF THE CHIMPANZEE LEARNING TIMES STUDY Exploratory Analysis There is no obvious ordering to either the chimpanzees or the different signs. Hence, it is convenient to order the levels of both factors according to increasing average learning times, as in Display 14.1. This helps the analyst visualize how steadily and regularly the times increase. Although there aren’t universally useful graphical displays for exploring the effects of two categorical factors on a response variable, it is sometimes helpful to plot the response variable versus the ranks (according to average response variable) of the categories of one of the factors (usually the one with the most categories), with different codes to represent the different levels of the other factor, as in Display 14.5. For these data, it’s clear that the variability of the untransformed response increases with increasing mean. Fitting the Additive Model The numerical analysis begins with a fit to the additive model. Because the data are balanced (with one observation in each cell), fitted values can be calculated easily, without the use of a computer, as shown in Section 13.3.3. The first step in obtaining fitted values is to calculate average times for each sign (row average), for each chimp (column average), and for all observations in the table (overall average). The estimated sign effects are the sign averages minus the overall average, as shown in the last column of Display 14.6. The estimated chimp effects are the chimp Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 428 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.5 400 300 200 100 Coded scatterplots of acquisition times versus the order number of each sign, from fastest to slowest learned; untransformed and log-transformed scales Cindy Thelma Booee Bruno 500 200 100 50 20 10 5 02 Listen Shoe More Fruit Drink Key Food Sign Look String Listen Drink Shoe More Fruit Key Food Sign Look String Hat Hat averages minus the overall average, as shown in the last row of that figure. The fitted values from the additive model are then Fitted value D Overall average C Chimp effect C Sign effect; and the residuals are found by subtracting fitted values from observed values. The fitted value for Bruno’s learning the sign for hat, for example, is the overall average time (107.375 minutes) adjusted for the fact that Bruno on average takes 29.025 minutes longer than all chimps do and for the fact that the sign for hat takes 55.625 minutes longer than the average sign. Fitted value D 107:375 C 29:025 C 55:625 D 192:025 minutes. The observed time was 14.025 minutes below the fitted time. This table casts serious doubt on the additive model, because negative means are estimated for several cells, when the actual data must be positive. Occasionally this happens even with good data from a truly additive model. Here, however, many such cells are in evidence, and they occur in a definite pattern, as revealed by the residual plot in Display 14.7. The pattern is horn-shaped—showing a curve trend and increasing variabil- ity with increasing estimated means. The curved pattern in the plot is due to the points in the upper left quadrant, which correspond to observations with negative fitted values. The additive model is evidently not correct since it leads to estimates for these chimp–sign combinations that are much lower than expected. This pat- tern, however, is typical of residual plots from additive fits to positive data where nonadditivity may be eliminated by a suitable transformation. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Acquisition Time (min) Acquisition Time (min); log Scale DISPLAY 14.6 Observed values, fitted values, and residuals for the additive fit to the chimpanzee sign acquisition times (all in minutes) 14.3 Analysis of the Chimpanzee Learning Times Study 429 Fitted Value Sign Residual Effect Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 430 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.7 Residual plot for the additive model fit to chimpanzee acquisition times 150 100 50 0 –50 –100 –150 –50 0 50 100 150 200 250 300 350 Fitted Value (minutes) Transformation The logarithm is usually the transformation to try first, because it provides the most desirable interpretation. After making the transformation, redraw the residual plot, and then try another transformation if there is still some pattern in this residual plot. Display 14.8 shows the residual plot from the additive fit after a log transformation. This plot indicates that no further transformations are needed; the convenient log transformation is satisfactory (see Display 14.5). Analysis of Variance With log of acquisition times as responses, the analysis of variance table appears in Display 14.9. Since there is no within-group (“pure error”) mean square, the mean square for residuals from the additive model is used as the estimate of 2 and, consequently, as the denominator in F-statistics for tests about the main effects. The hope is that an additive model is correct on this scale. Is it? There is no clear way to tell, but plots of the raw data on the minutes scale and on the log scales (shown in Display 14.10) suggest that the transformation has uncovered some degree of parallelism. The initial screening provided by the F-tests, assuming the additive model is correct, indicates convincing evidence of a sign effect (p-value D 0:00001) and suggestive but inconclusive evidence of a chimp effect (p-value D 0:0642). In fact, 66.5% of the variability in log acquisition times is explained by differences between signs (45.69/68.6755), whereas 7.8% is explained by chimp differences. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Residual (minutes) DISPLAY 14.8 Residual plot for the additive model fit to log (acquisition times) 1.5 1.0 0.5 0.0 –0.5 –1.0 –1.5 logs 2 3 4 5 6 10 100 Fitted Minutes to Acquisition Analysis of variance for the additive model fit to log (acquisition times) Source of variation Sum of squares d.f. Mean square F-statistic Residual (log-minutes) DISPLAY 14.9 R 14.3 Analysis of the Chimpanzee Learning Times Study 431 Multiple Comparisons of Sign Effects There are 45 differences between averages in pairs of signs. For a test asking “Which signs are different from which other signs?” the Tukey–Kramer multiple comparison adjustment is appropriate (see Section 6.4.1). The confidence interval for comparing sign j to sign k is .Y:j 􏰀Y:k/ ̇M SE.Y:j 􏰀Y:k/; p where M D qI;d:f:.:05/= 2 and qI;d:f:.:05/ is the 95th percentile of the studentized range distribution for I groups and d.f. degrees of freedom in the estimate of . Since each sign average is based on four observations, SE.Y:j 􏰀Y:k/DO.1=4C1=4/1=2: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. p-value 432 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.10 400 300 200 100 Chimpanzee data plots: natural scale and logarithmic scale Natural Scale Thelma Bruno Booee Cindy drink key food hat string listen shoe more fruit look 103 102 10 1 Logarithmic Scale Thelma 6 Bruno 5 Minutes to Acquisition Minutes to Acquisition log (minutes) Booee 4 Cindy 3 2 1 drink key food hat string listen shoe more fruit look With O D 0:8086; I D 10, and d.f. D 27, the half-width of the confidence interval for all 45 comparisons—also called the HSD, for “honest significant difference”—is found to be HSD D 1:95. It is not very effective to list all 45 confidence intervals. Instead, a chart of the sign averages, on the log scale, with an indication of the size of the HSD can be displayed, as in Display 14.2. The reader can visually compare the different signs to one another, realizing that differences between averages exceeding the HSD correspond to two-sided p-values of less than 0.05. Although this plot was constructed on the log scale, the labels for the sign effects are shown in minutes. To illustrate the relative effects of chimps and signs further, and to highlight the multiplicative nature of the model on the original scale, Display 14.11 shows the antilogarithms of the fitted values from the additive fit to the logarithms of acquisition times. This can be compared to the plot on the left in Display 14.10. 14.4 ANALYSIS OF THE SOYBEAN DATA The data in Display 14.3 come from a completely randomized experiment with a 2  3  5 factorial treatment structure. Each of the 30 treatment combinations cor- responds to a single response for each of the two cultivars, which are analyzed here as separate response variables. An estimate of  based on replication is impossi- ble, but linear effects of the explanatory variables sulfur dioxide and ozone may be exploited to obtain an estimate of  in a reasonably rich regression model. One should check the linearity assumption with scatterplots, residual plots, and tests of quadratic terms so the inferential model can confidently be substantiated. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 14.4 Analysis of the Soybean Data 433 DISPLAY 14.11 Cell median estimates from additive model on the log scale 400 300 200 100 Thelma Bruno Cindy Booee drink key food hat string listen shoe more fruit look 14.4.1 Exploratory Analysis Previous studies have suggested that the variance of soybean seed yield is roughly constant on the log scale. Display 14.12 suggests that yield on the log scale decreases linearly with ozone for both cultivars. The effect of sulfur dioxide might be linear, but the plots are inconclusive. The next step is to examine a residual plot based on a fairly rich model, but one that exploits the patterns in the scatterplots. The scatterplot in Display 14.13 shows the residuals from the regression of yield on ozone (treated as a numerical explanatory variable), on sulfur dioxide and water (both treated as categorical), and on all second-order interactions of these. The plots show no signs of problems. Assessment of Linearity in Ozone The linear patterns in the scatterplots of log yield versus ozone are convincing. It is possible to test informally for linearity by including a quadratic term in ozone in the models used to obtain the residual plots of Display 14.12. The p-values for the tests that the coefficients of ozone2 are 0 are 0.49 for the Forrest cultivar and 0.56 for the Williams cultivar. As a final check, to ensure that the nonsignificance of the quadratic effect is not due to one or two outliers, a plot of the residuals (from the model with only the linear effect) versus ozone are examined (not shown here). This does not indicate any pattern or potentially influential observation. It seems appropriate to proceed with modeling the effect of ozone as linear. Assessment of Interactions Between Ozone and the Other Treatments If an interaction between ozone and sulfur dioxide exists, the effect of ozone—the change in mean response per unit increase in ozone—depends on the level of sulfur dioxide. These interactions, and similarly the ozone-by-stress interactions, can be investigated graphically by plotting the log yield versus ozone separately for each Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Minutes to Acquisition 434 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.12 6,000 5,000 4,000 3,000 2,000 5,000 4,000 3,000 2,000 Scatterplots of soybean seed yield (log scale) versus ozone and sulfur dioxide, with different plotting symbols to indicate water stress Well-watered Stressed 0.02 0.04 Ozone (mL/L), jittered 0.01 0.02 Sulfur Dioxide (mL/L), jittered 0.06 0.08 0.10 0.03 0.04 0.05 0.06 combination of sulfur dioxide and water stress, as in Display 14.14. Also shown on these plots are the least squares fits to the linear regression of log yield on ozone from these points alone. An interaction between ozone and the other variables would be indicated if the slopes on these plots differed. Notice that the slopes for the Williams cultivar are remarkably similar. For the Forrest cultivar, the slopes show some variability, but they do not depend in any systematic fashion on sulfur dioxide or water stress. Whether the observed differences in slopes represent a true interaction or simply sampling variability can be checked with tests for the appropriate interaction terms. If all three factors—ozone, sulfur dioxide, and water stress—were treated as categorical explanatory variables, it would be impossible to test for a third-order interaction among them. Since the effect of ozone can be safely modeled as linear, Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Yield of Williams Cultivar (kg/ha); Yield of Forrest Cultivar (kg/ha); log Scale log Scale 14.4 Analysis of the Soybean Data 435 DISPLAY 14.13 Residual plots from the regression of log soybean seed yield on ozone (numerical) sulfur dioxide (categorical), water stress (categorical), and two-factor interactions Forrest Williams 0.2 0.2 00 – 0.2 – 0.2 7.5 8.0 8.5 9.0 Fitted Values 7.5 8.0 8.5 9.0 Fitted Values all interactions can be tested with extra-sums-of-squares F -tests that compare full models with the specific interactions (and treat ozone as a numerical explanatory variable) to the reduced models without them. Shown in Display 14.15 are analysis of variance tables that summarize F -tests for all effects. Each sum of squares is the sum of squared residuals from the full model minus the sum of squared residuals from the reduced model that excludes the effect designated in that row. The p-values indicate that ignoring the interaction terms has little consequence. While there is no evidence of a sulfur or water effect on the Forrest cultivar yields, there is strong evidence that these are important factors on yield of the Williams cultivar. Assessment of Linearity of Sulfur Dioxide To this point, sulfur dioxide has been treated as a factor because of the evi- dence in the original scatterplots of a possible deviation from linearity and because the linearity of ozone sufficiently freed up degrees of freedom for testing other effects. It is appropriate now to see whether the sulfur dioxide effect can be represented by a linear term. When sulfur dioxide is treated as a numerical explana- tory variable and when linear and quadratic terms are included, the p-value for a test that the coefficient of sulfur2 is zero is 0.6. Thus the model with just a single term to represent the linear effect of sulfur dioxide will be used. (Note: Since water stress has only two levels, the fit is the same whether it is treated as a numerical explanatory variable or as a categorical one, and it is impossible to fit a quadratic effect.) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Residuals Residuals 436 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.14 8.5 8.0 8.5 8.0 8.5 8.0 SMS SO2: 0.0045 8.44 – 5.04 x R2 = 67.0% 8.5 Scatterplots of log yield against ozone at all combinations of sulfur and water for both cultivars, with simple linear regression estimates Forrest SMS SO2: 0.0045 8.58 – 5.35 x R2 = 75.6% Forrest SMS SO2: 0.0170 8.68 – 7.73 x R2 = 89.9% Forrest SMS SO2: 0.0590 8.44 – 5.46 x R2 = 81.0% Forrest WW SO2: 0.0045 8.47 – 4.36 x R2 = 46.5% Forrest WW SO2: 0.0170 8.40 – 1.91 x R2 = 15.7% Forrest WW SO2: 0.0590 8.65 – 7.79 x R2 = 60.8% W illiams SMS SO2: 0.0170 8.54 – 6.00 x R2 = 78.2% W illiams SMS SO2: 0.0590 8.41 – 7.39 x R2 = 87.4% W illiams W illiams W illiams WW SO2: 0.0170 8.72 – 7.22 x R2 = 80.6% 0.10 0.05 Williams WW SO2: 0.0590 8.59 – 7.44 x R2 = 99.3% 0.10 0.05 0.10 8.0 WW SO2: 0.0045 8.88 – 8.10 x R2 = 81.1% 0.05 14.4.2 Answering Questions of Interest with the Fitted Models Conclusions About Main Effects Display 14.16 shows the least squares estimates of the coefficients of ozone, sulfur, and water in the multiple regression models in which the first two explanatory variables are numerical and water is a factor. The conclusions and confidence inter- vals reported in the summary of Section 14.1.2 follow from these statistics via back-transforming. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Log(seed yield) Log(seed yield) Log(seed yield) Log(seed yield) DISPLAY 14.15 Analysis of variance tables for screening effects on log soybean seed yield. The sums of squares are extra sums of squares DISPLAY 14.16 Coefficient estimates and standard errors for the linear soybean models, with Y D log(soybean seed yield) Forrest Cultivar Williams Cultivar Coefficient One-sided Coefficient One-sided 14.4 Analysis of the Soybean Data 437 Forrest Cultivar Source d.f. Sum of squares Mean square F-statistic p-value Williams Cultivar Source d.f. Sum of squares Mean square F-statistic p-value Variable estimate Std. error p-value estimate Std. error p-value A graph that shows the fitted values converted to the original scale of measure- ment (kilograms per hectare) provides a convenient summary of the final model and offers an indication of the relative importance of the various effects. Display 14.17 was constructed by choosing a set of values that span the range of ozone and cal- culating estimated median yields at these values of ozone and at each of two values of sulfur dioxide and water stress. For each of the four combinations of these last two variables, the estimated means were plotted versus the ozone values and con- nected by lines. As an advanced addition to this plot, confidence intervals for the median yield were computed at each of several values and drawn on the plot. The Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 438 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.17 6 5 4 3 2 Estimated median seed yields of Forrest and Williams cultivars at several combinations of ozone, sulfur dioxide, and water deprivation Legend WW SMS SO2 0.005 0.065 water Legend WW SMS SO2 0.005 0.065 water 0.02 0.04 Ozone ( 0.10 0.02 0.04 0.06 0.08 0.10 Ozone ( L/L) 0.06 0.08 L/L) standard errors for the estimated means were found with the centering procedure, and confidence intervals were widened by the Scheff ́e method so that the intervals indicate the uncertainty in estimation over the entire region (see Section 10.2.3). Descriptive Summaries of Interactions To gain some insight into the precision of this study’s estimates of interaction, suppose that there actually was an interaction between ozone and sulfur dioxide, as in the model flog.yield/g D ˇ0 C ˇ1ozone C ˇ2sulfur C ˇ3water C ˇ4.ozone  sulfur/: If so, the effect of an increase of 0.01 L/L in ozone on mean log yield is .ˇ1 C ˇ4sulfur/  0:01. Back-transforming for interpretation: a 0.01 L/L increase in ozone causes a Œexp.ˇ1 C ˇ4sulfur/  0:01-fold multiplicative change in median seed yield. Inserting estimates of the Forrest regression coefficients implies that at sulfur’s highest value (0.0590 L/L) each 0.01 L/L increase in ozone causes an estimated 0.9364-fold change in median yield; that is, a 6.4% decrease. At sulfur’s lowest value (0.0045 L/L), each 0.01 L/L increase in ozone causes a 0.9545-fold change; that is, a 4.5% decrease in median yield. The ratio of the multiplicative decreases in median yield associated with a 0.01 L/L increase in ozone at the high and low values of sulfur is expŒ􏰀ˇ4.0:0590 􏰀 0:0045/  0:01. The estimate of ˇ4 for the Forrest cultivar is 􏰀35.1208 with a standard error of 40.3395, so an estimate of 􏰀ˇ4 .0:0590 􏰀 0:0045/  0:01 is 0.01914 and a 95% confidence interval is 􏰀0.02614 to 0.06442. Exponentiating leads to this Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Seed Yield (103kg/ha) 14.5 conclusion about interaction: The detrimental effect of increasing ozone by 0.01 L/L is estimated to be 1.9% greater when sulfur is 0.0590 L/L than when when sulfur is 0.0045 L/L (95% confidence interval: 2.6% smaller to 6.7% greater). Similar calculations were used to summarize the interactive effect of water stress and ozone, as reported in Section 14.1.2. RELATED ISSUES 14.5.1 Random Effects Models In an investigation like the chimp study, one potentially important issue involves the inferences (if any) that can be drawn to a wider population of chimps. If such inferences are desired, the most appealing way to structure the problem is to assume that chimp effects are random, rather than fixed. Each chimp is assumed to have an effect randomly selected from a population of such effects. The population has mean zero, and the overall contribution of chimp differences is represented by the variance C2 in the population of chimp effects. If there is little difference among chimps, after accounting for sign differences, C2 will be small. The model for the responses, ltime D log.learning time), is fltime j SIGNSg D SIGNS with Varfltime j SIGNSg D 2 C C2 ; where the responses from the same chimp are correlated as a result of the chimp effect: C o r r f l t i m e i j ; l t i m e i k g D  C2 = f  2 C  C2 g : The parameter 2 represents replication variation (although it is not possible to replicate learning the same sign on the same chimp). Analysis of the random effects model still centers on the analysis of variance table (Display 14.9). Inferences about the sign effects are unchanged by assuming random rather than fixed chimp effects. Estimation of the chimp-effect variance proceeds as in Section 5.6.3. Inferences are subject to the reservation that one must justify the assumption that these chimps truly represent the population to which inference is desired. 14.5.2 Nested Classifications in the Analysis of Variance Do learning times of male and female chimps consistently differ? Answering that question requires introducing a SEX factor into the model along with the CHIMP and SIGN factors. In this case, however, the levels of CHIMP are nested within the levels of SEX. When every level of one factor appears in combination with every level of another factor, the two factors are said to be crossed. This is impossible with the factors SEX and CHIMP, since two of the CHIMP levels, Booee and Bruno, can only 14.5 Related Issues 439 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 440 Chapter 14 Multifactor Studies Without Replication 14.5.3 appear in combination with the male level of SEX; and similarly, the levels Thelma and Cindy can only appear in combination with the female level of SEX. Chimp individuals are nested within the levels of the SEX factor, rather than being crossed with them. The nested model may be represented symbolically by fltime j SIGNS, SEX, CHIMPSg D SIGNS C SEX C SEX=CHIMPS: The last two terms are read as SEX plus CHIMP nested within levels of SEX. An indicator variable representation for these last two parts is SEX C SEX=CHIMPS D ˇ1female C ˇ2Bruno C ˇ3Thelma; where female takes on the value 1 for females and 0 for males, and Bruno and Thelma are indicator variables for Bruno and Thelma. The rule for this representation is that a reference level of the nested factor (CHIMPS) will exist for every level of the factor it is nested within. Thus Booee is the reference level for male chimps, and Cindy is the reference level for female chimps. Neither of their indicator variables is included in the model. This reparameterization produces the following mean responses for the refer- ence sign: For Booee: ˇ0 For Bruno: ˇ0 C ˇ2 For Cindy: ˇ0 C ˇ1 For Thelma: ˇ0 C ˇ1 C ˇ3 Here ˇ1 describes the sex effect—the amount by which the mean log learning time for females exceeds that for males; ˇ2 is the difference between Bruno’s mean and Booee’s mean (the reference male); and ˇ3 is the difference between Thelma’s mean and Cindy’s mean (the reference female). An extra-sum-of-squares F -test for the two parameters, ˇ2 and ˇ3 , exam- ines the evidence for differences between individuals of the same sex. If there is none, the CHIMP effects may be dropped and a subsequent test of the parame- ter ˇ1 may be used to assess the female–male difference. If there is evidence of within-sex differences, the subsequent test should not be performed, for lack of clear interpretation. The general preparatory procedure for nested classifications is to create a set of primary class indicators, then to select a reference within each primary class, and finally to define indicators for secondary levels within each primary level. At this point, one can test for secondary level variation within primary level and (if there is none) examine variation across primary levels. Further Rationale for One Observation per Cell Replication is good; but sometimes, when presented with limited experimental units, the researcher may be wiser to forgo replication in favor of increased blocking. The objective of an experimental design is to learn as much as possible with as Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 14.18 little outlay as possible. This translates into making the standard deviations in sampling distributions small. The SD of a cell average—SD.Y / D =pn—can be made smaller by increasing the number of observations (n) in the cell. But 1=pn does not decrease very fast as n increases (as can be seen by plotting). Experience has shown that a more effective way to reduce the SD is by reducing the —the standard deviation of the response, given the explanatory variables. This can be accomplished by improving experimental measurement, but also by including major sources of variation as design factors in the experiment. Hypothetical Example #1 Suppose that a researcher wants to test a method for reducing aggressive behavior in preschool children. She plans to allocate four highly aggressive children randomly to the new method and to a control method and then to measure their post- treatment aggressiveness. Prior to randomization, she measures their aggressiveness (0–8 scale), with the results listed in Display 14.18. If the four are randomized, two to each treatment, the standard deviation of the difference between sample means is estimated to be 1:19  p1=2 C 1=2 D 1:19. Part of the variation, however, is a sex variation. If separate randomizations are conducted for girls and for boys, treating sex as blocks, this leaves one child per cell; yet the estimated SD of a cell entry is the pooled SD across sexes (0.47). The treatment main effect will still be estimated by the difference between the average of the two treated children and the average of the two control children, so the SE of the difference will be about 0:47  p1=2  1=2 D 0:47. That is a 60% reduction. By identifying an important source of variation, one gains substantial advantage from performing the experiment in randomized blocks, even though doing so may mean forgoing replication. Aggressive children data with standard deviations 14.5 Related Issues 441 Child Aggressiveness Standard deviations Hypothetical Example #2 A researcher wants to compare two treatments for high blood pressure. Individu- als whose ages differ considerably are readily available, but it is known that blood pressure generally changes with age. How should the researcher choose six sub- jects? Suppose that the researcher expects something like the situation illustrated in Display 14.19 in the absence of treatment. If six members of the age 50–75 group are selected for the study, and if age is ignored, the kind of variability to expect is the variability around the average blood pressure of 122.2 (A); that is, SD D 6.1 units. It appears, however, that selecting six subjects of identical age may result in Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 442 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.19 Diastolic blood pressure example 130 A B 110 120 128 125 122 117 113 50 55 60 65 70 75 Subject Age 14.5.4 a variability in blood pressure more like SD D 3.8 units (the typical deviation of blood pressure from the mean for that age group). This is a substantial reduction, but it comes at a price: the inferential base is restricted to the one age chosen, and nothing is learned about whether the treatment effects are age-dependent. Suppose instead that the researcher retains subjects of different ages but pairs them by similar ages: the two youngest form one block, the two next youngest form the second block, and so on; with one member of each block randomly selected to receive the treatment. An analysis of the resulting data that includes age as a covariate (which has a linear effect in both groups) enables one to anticipate a residual SD closer to 3.8 units than to 6.1, while still having the generality of using individuals of different ages. More Reasons for Keeping Replications Low Cost is always a factor in designing studies. Whenever subjects are difficult or costly to obtain, designs that utilize few subjects are desirable. This is also true when treatments are expensive to apply or when sampling is destructive. (Destructive sampling usually means that the subject must be killed or rendered nonfunctional to measure variables of interest.) In addition to these factors, larger groups of subjects generally tend to exhibit more heterogeneity. When subjects are collected over longer time intervals or over greater spatial distances, they tend to be more variable. Keeping studies on a small scale can be an efficient means to avoid these kinds of variation. Uniformity Trials In the hypothetical situations of Section 14.5.3, the researchers had a good idea about the kinds of variation they were likely to encounter, because they could envi- sion what the responses would be when no treatments were applied. In practice, mock studies are sometimes run with no treatments applied just so the researchers can learn what kinds of variability to anticipate. Such studies are called uniformity trials. Uniformity trials are particularly valuable when conducted with the sub- jects or plots that will be used in the study. The set of responses obtained in the uniformity trial can then be used as a covariate in the actual study. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Diastolic Blood Pressure 14.7 Exercises 443 14.6 SUMMARY Does the adequacy of an estimate of 2, and hence the adequacy of the inferential tools based on that estimate, depend on the correctness of some specified model for the mean? If yes, the estimate and resulting inference are said to be model-based. When only one observation is made per cell, the only possible way of proceeding is with model-based inference. In some two-way tables with one observation per cell, like the chimp data, inferences can be made about row and column effects if the analyst can assume that there is no interaction. For some data problems, like the soybean data, inferences regarding questions of interest can be made if the effect of one of the factors of the table can be modeled as a linear effect, using a single parameter. In general, the statistical analyst constructs an estimate of variance from pieces of information that would otherwise estimate interaction or nonlinear effects. No new tools are needed for analyzing single-replicate studies. Multiple lin- ear regression is the tool of choice, even though the studies considered employ multifactor analysis of variance structures. Lack of replication imposes two costs: an inability to rely on the p-value from a formal statistical test in assessing model adequacy; and severely reduced preci- sion in estimating some interactions or nonlinearities in which one may have some interest. To deal with model adequacy, the analyst can rely on graphical proce- dures, searching for clues that suggest transformation and unsuspected effects. By starting with uncomplicated models and building up, one can maintain enough information in the residuals to provide tests for some of the effects. The lack of precision on interactive and nonlinear effects cannot be counteracted with clever analysis, however. If interactions are indeed of interest, additional studies will be required. 14.7 EXERCISES Conceptual Exercises 1. Chimp Learning Times. Why is the learning time data not analyzed as a 10-group analysis of variance (Chapters 5 and 6), with four observations on each sign? 2. Chimp Learning Times. What would have to be true to support the inference that these learn- ing time patterns are representative of learning times for these signs in a wider population of chimpanzees? 3. Chimp Learning Times. (a) Can you suggest simplifications to the additive model discussed in Section 14.3? (b) Can you suggest a model that is not additive but still has degrees of freedom available for residuals? 4. Chimp Learning Times. Why were Tukey–Kramer intervals used in the comparison of sign means? 5. Soybeans. If the seed yield had been recorded for each soybean plant, several observations would have been made in each of the groups. Would this have permitted analysts to assess interactions with more precision? 6. Soybeans. Why was cultivar not used as an explanatory factor along with the other factors? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 444 Chapter 14 Multifactor Studies Without Replication Computational Exercises 7. Chimp Learning Times. Compute 95% confidence interval half-widths for differences between signs, using (a) the Tukey–Kramer method and (b) the LSD method. Do the conclusions differ? 8. Chimp Learning Times—Bruno I. Construct a normal probability plot of the residuals from an additive model fit to the logarithms of chimp learning times. Notice three extreme residuals. The largest residual appears anomalous; the two smallest are less obvious. All three are from learning times of Bruno, the easily distracted chimp. Bruno’s time for more is the largest; his listen and food times produce the large negative residuals. One way to explore Bruno’s odd performance is to include three interaction terms: Bruno  more, Bruno  listen, and Bruno  food. Perform an extra-sum-of- squares F -test to determine what these three contribute. Then construct a picture like Display 14.2, but without the HSD interval, that illustrates the comparative times to learn the different signs (for Booee, say). Note how the predicted times for Bruno to learn more, listen, and food differ in this model from the additive model. 9. Chimp Learning Times—Bruno II. However, is Bruno really a quick learner who is just easily distracted? If so, perhaps the two negative residuals indicate his true abilities while the large positive residual was the result of that fly on the wall or some other distraction. Treat Bruno’s time on more as a suspected outlier. Refit the additive model excluding that time. Then construct another Display 14.2 picture to illustrate the comparative times to learn the different signs (again for Booee). Do your conclusions about the signs change? 10. Chimp Learning Times and Order of Learning. The researchers used a chance mechanism to decide on the order in which to teach the 10 signs, and they used the same order for all chimps: hat, shoe, fruit, drink, more, look, key, listen, string, and food. The variable named Order in the case1401 data file is the order in which a word was taught. An Order effect is possible if the chimps got better at learning as they learned the process. Why is it impossible to investigate a linear effect of Order after accounting for the effect of Signs? Draw a graphical display to explore a possible Order effect. Test for an Order effect by ignoring Sign. 11. Soybeans. (a) Fit a model for the mean of log(yield) for the Williams cultivar that includes all linear main effects and the ozone-by-water interaction. (b) Estimate the difference between ozone slope parameters for stressed versus well-watered plots. Convert the estimate and its 95% confidence interval to the scale of seed yield. (c) Write a summary of what the interval represents. (d) Compare your answer with the summary in Section 14.1.2. 12. Soybeans. Fit the full model shown in Display 14.15 for the Forrest cultivar. Verify the results in the table. 13. Consider the data from hypothetical example #1 (Section 14.5.3). (a) Roll a die (or use a random number table to select a number from 1 to 6), and select the treatment group according to the outcome, as follows: 1 D Dawn & Astrid; 2 D Dawn & Ibrahim; 3 D Dawn & Michael; 4 D Astrid & Ibrahim; 5 D Astrid & Michael; and 6 D Ibrahim & Michael. Subtract 1.5 units from the aggressiveness scores of the treated group. Then perform a two-sample t-test for a treatment difference. Note the t-statistic value and the standard error of the estimated treatment effect. (b) Flip a coin to decide whether to treat Dawn (heads) or Astrid (tails). Flip the coin again to select Ibrahim (heads) or Michael (tails). Again, subtract 1.5 units from the scores of the two in the treatment group. Then calculate the t-statistic for a treatment difference in the additive model with sex and treatment. Note the standard error. (c) Comment on the difference between the results. 14. Consider hypothetical example #2 of Section 14.5.3. (a) There are 20 ways to choose three subjects from the six. Record and order the combinations by listing the possible combinations for a treatment group of three subjects. Pick a random number between 1 and 20 to determine what Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 14.7 Exercises 445 treatment group to use. Subtract 8.0 units from the blood pressure of the treated group. Analyze the results with two-sample t -tools. (b) Flip a coin. If it is heads, use ages 50, 65, and 70 as the treatment group; if it is tails, treat ages 55, 60, and 75. Subtract 8.0 units from the blood pressure of the treated group. Analyze the results using a model that assumes equal slopes against age in the treated and control groups but has different intercepts. Estimate the treatment effect as the difference between intercepts. (c) Compare the results from (a) and (b). 15. Soybeans. In comparing the two soybean cultivars, using cultivar as an explanatory factor is not a valid approach. Here is how the comparison might be made. (a) To get an overall comparison of median yields of the two cultivars, perform a paired t-test (or signed rank test), using the cham- bers for pairing. (b) To see how the relative yield of the cultivars is influenced by the experimental factors, construct the response Y D log(Forrest yield/Williams yield) and perform a multiple linear regression analysis similar to the one done for each cultivar separately. Summarize your conclusions in a paragraph. Data Problems 16. Following the study described in Section 11.1.2, researchers at the Oregon Health Sciences University designed an experiment to investigate how delivery of brain cancer antibody is influenced by tumor size, antibody molecular weight, blood–brain barrier disruption, and delivery route. Sub- jects for the study were female rats of approximately the same age and weight. Tumor size was varied by starting treatments 8, 12, or 16 days after inoculation with tumor cells; three antibodies—AIB, MTX, and DEX7—having very different molecular weights were used; disruption (BD) was accom- plished with an intra-arterial (IA) injection of mannitol to one side of the brain and was compared to a similar injection of a saline solution (NS); and the antibody was delivered either by intra-arterial or intravenous (IV) injection. One key measure of the delivery of antibody to the affected half of the brain is the ratio of the concentration of antibody in the brain around the tumor (BAT) to the concentration in the other, lateral half (LH) of the brain. Display 14.20 shows the data from a sin- gle replication of all 36 treatment combinations. Treatments were randomized to rats in this study. (Data from P. A. Barnett et al., “Differential Permeability and Quantitative MR Imaging of a Human Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. First run of a study of the effects of four factors on the delivery of brain cancer antibody: Route DISPLAY 14.20 at levels IV and IA; barrier disruption Treatment at levels NS and BD; antibody Agent (AIB, MTX, or DEX7); and Days after inoculation (8, 12, or 16). Y D Counts of radio-tagged molecules Route: IV Treatment: NS BD BAT 70,034 129,134 156,655 10,049 10,540 4,808 109,594 23,254 17,224 IA NS BAT LH 20,870 8,944 27,708 9,242 22,006 7,237 5,598 1,724 2,393 1,070 5,076 1,228 18,172 8,148 20,636 6,041 15,959 7,016 BD BAT 129,747 68,775 53,808 9,683 23,173 22,293 159,458 45,550 96,754 Agent Days BAT LH LH 10,611 12,311 178,303 1,388 1,781 1,680 11,191 7,325 7,996 LH 9,992 6,316 4,333 1,424 1,520 1,777 13,460 9,113 8,070 12,025 10,510 10,327 10,345 15,852 13,255 3,995 1,285 1,786 1,077 1,828 1,731 6,097 7,997 4,684 5,721 7,927 7,120 446 Chapter 14 Multifactor Studies Without Replication DISPLAY 14.21 Second run of the barrier disruption study Lung Carcinoma Brain Xenograft in the Nude Rat,” American Journal of Pathology 146(2) (1995): 436–49.) Analyze these data and write a summary report. Consider the BAT/LH ratio and first determine whether a transformation is appropriate. Consider whether the response could be linear in days. Summarize the evidence for main effects. Explore possible interactions. 17. The researchers in Exercise 16 were unsure about the ability of a single replicate to provide sufficient evidence for effects, so they ran a second replicate (Display 14.21). Follow the same instructions as in Exercise 16. Route: IV Treatment: NS Agent Days BAT LH BD BAT LH IA NS BD BAT LH BAT LH 18. Analyze both replicates of the barrier disruption as a single experiment, including an indicator variable to signify replicate. Assess the significance of effects by using a pooled within-group SD to estimate . Compare the results of this analysis with the two separate analyses in Exercises 16 and 17. What has been gained by the second replicate? 19. Clever Hans Effect. Hans was a horse who would entertain German audiences in the early 1900s by tapping his hoof to indicate an answer to an arithmetic question. Because he was so good at this, several psychologists studied him carefully to try to explain the cleverness. They saw that Hans gave correct answers even to an objective questioner, but only if the horse could see the questioner and only if the questioner was aware of the correct answer to the question. They concluded that Hans was responding to cues in the posture and facial expressions of the questioner. In unintentional and nonverbal ways, the questioner was telling Hans when it was time to stop tapping. Because of this famous example, scientists call the effect of nonverbal communication of an experimenter on their animal subjects the “Clever Hans effect.” In a 1960s study of the Clever Hans effect, psychologists Robert Rosenthal and Kermit Fode performed a randomized block experiment on 12 experimental psychology students who trained rats to run a maze. Before assignment to treatment groups, the researchers asked the students (who had not previously worked with rats) to describe on a scale of 􏰀10 to 10 how successful they expected to be in training rats. The researchers used the responses to this question to form 6 blocks of 2 students each—one block had the two students with the two lowest prior expectations, another had the students with the next two lowest, and so on. Then they randomly assigned one of the students in each block to a “bright rat” treatment group and the other to a “dull rat” treatment group. The researchers gave each student 5 rats and instructions on how to train the rats to run a maze, but they Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 14.7 Exercises 447 explained that the “bright rat” students were given rats that had been bred to be good learners while the “dull rat” students were given unexceptional rats. In fact, there were no differences between the rats. The researchers deceived the students with this false information to induce expectations about the rats’ ability to learn. They wanted to see if the rats’ performances were affected by the handler’s expectations. Display 14.22 shows data simulated to roughly match the study’s summary statistics and conclu- sions. Each student trained their rats to find a dark platform in a maze by rewarding the rats with food when they reached that platform. The students ran 50 maze trials each day on each of 5 days. The data set contains the number of successful runs out of 50 on each of the 5 days. It also shows two summarizing statistics for each student: the overall success rate on all 5 days and the slope in the least squares regression of daily success rate (number of successes in a day divided by 50) on day. Also included are the student’s responses to the prior expectation of success question and the student’s responses to a post-experiment question about how relaxed they felt handling their rats (with higher values corresponding to more relaxed). (a) Analyze the data to address these research questions: (i) Is there any evidence that a student’s rat maze total success is affected by the student’s expectations? (ii) How much of the between-student success variability can be explained by the treatment effect? (iii) Is there any evidence that a student’s rat maze improvement is affected by the student’s expectations? (iv) Is there any evidence that the student success or improvement can be explained by how relaxed the student was? That is, did the treatment affect a student’s degree of relaxation and, if so, is there still a treatment effect even after accounting for degree of relaxation? (Note that cause and effect can’t be resolved: Did students’ rats perform better because the students were relaxed or were the students more relaxed because their rats performed better? Nevertheless, the answer to the question may lend some insight into possible mechanisms for the Clever Hans effect). Write a report to communicate your statistical conclusions. (Note: As a result of this study, Robert Rosenthal was encouraged to investigate the effect of expec- tations (of teachers, for example) on human performance, which he labeled the “Pygmalion effect”; see Section 13.1.2 and Exercise 13.21.) (Data from R. Rosenthal and K. L. Fode, “The Effect of Experimenter Bias on the Performance of the Albino Rat,” Behavioral Science 8:3 (1963): 183–89). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 14.22 Results of a randomized block experiment to see whether handler’s expectations affect rat maze performance; PriorExp is the student’s indicated prior expectation of success on a scale of 􏰀10 to 10, Block is a numerical code for the 6 blocks formed from consecutive pairs of students ordered by PriorExp, Treatment is treatment group (students in bright group were told their rats were bright), Day1 is the number of successful rat maze runs on day 1 out of 50, OverallSuccess is the proportion of successful runs on all 5 days, Relax is the student response to how relaxed they felt in handling their rats, on a scale of 0 to 10 with higher numbers indicating more relaxation, and ImprovementRate is the estimated slope in the simple linear regression of Success on Day, calculated separately for each student; first 5 of 12 rows Student PriorExp Block Treatment Day1 Day2 Day3 Day4 Day5 Relax TotalSuccess ImprovementRate 1 2 3 4 5 –7 1 –6 1 –5 2 1 2 2 3 dull bright bright dull bright 101312129 3 1820212330 9 1614202020 5 1120271716 6 2724262827 10 0.224 –0.006 0.448 0.054 0.36 0.028 0.364 0.014 0.528 0.008 448 Chapter 14 Multifactor Studies Without Replication (b) A large body of research on the Clever Hans and Pygmalion effects indicates that researchers’ expectations can have an effect on the outcome of their experimental subjects, both animal and human. (i) Explain whether or not random assignment in a randomized experiment eliminates the potential for this sort of bias. (ii) Find definitions of the terms blind and double-blind, as used in experimental design, and explain the way in which they are intended to eliminate the possibility of biases caused by the Clever Hans and Pygmalion effects. 20. Diet Wars. Exercise 6.23 considered the comparison of weight losses of subjects randomly assigned to one of three diets. The researchers also recorded additional covariates—sex, initial age, and body mass index [BMI D weight in kg/(height in m2)] for all subjects, as indicated in Display 14.23 and included in the data file ex1420. Is there any evidence of differences in the mean weight losses under different diets, after accounting for sex, age, and body mass index? What are the estimated differences? Answers to Conceptual Exercises 1. The same chimpanzees were trained on all 10 signs, so the observation times should be corre- lated; that is, a chimp whose learning time on one sign is longer than average is more likely to have a longer-than-average learning time on other signs. 2. The chimpanzees used in the study would have to have been randomly selected from the population of interest. 3. (a) Several are possible. Chimps of the same sex could have the same median learning times. There may also be sign groupings in which the median times for signs within groups are the same. (b) One form of nonadditivity might occur if, for example, the male chimps had more difficulty with conceptual signs than did the female chimps. 4. The researchers had no preplanned comparisons. They were looking for any differences that might show up. The Tukey–Kramer intervals protect against compounded uncertainty. 5. Any gain in precision is irrelevant, since such an analysis would not be valid. To be appropriate, the individual soybean plants would have to have been randomized to treatment. This was not done. Treatments were applied to rows of plants, so the row measure is the proper response to use. 6. Considering responses of the two cultivars separately, with a cultivar indicator variable distin- guishing between them, would yield two “cases” from each experimental unit. The cases would be correlated, violating the independence assumption. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 14.23 Results of a randomized experiment on weight loss from three diets; Diet is the treatment group, with categories Low-Fat, Mediterranean, and Low-Carbohydrate; BMI is the subject’s body mass index at the beginning of the study (kg/m2); and WtLoss24 is the amount of weight lost in 24 months on the diet (kg); first 5 of 297 rows Subject Diet Sex Age M 58 M 54 F 49 M 58 M 51 BMI WtLoss24 1 Low-Fat 2 Low-Fat 3 Low-Fat 4 Low-Fat 5 Low-Fat 30.33 2.2 35.13 –4.8 30.10 2.9 33.74 4.4 33.69 9.6 CHAPTER 15 Adjustment for Serial Correlation The methods discussed in previous chapters have been based on an assump- tion of independence. Response variables in regression analysis, for example, were assumed to be independent of each other, after accounting for the effects of the explanatory variables. Sometimes this assumption is not appropriate if data are collected over time (or space) and the observations that are taken close together are related. Time series analysis is a specialized field of statistics that deals with this type of problem. This chapter presents two extensions of regression methods to situations where the responses form a time series of the first-order autoregressive type. One method makes a multiplicative adjustment to the usual standard errors and the other per- forms the regression in the usual way after a special transformation of response and explanatory variables. In addition, diagnostic tools are presented for determining whether serial correlation may be a problem in ordinary regression and whether the first-order autoregressive model is adequate. 449 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 450 Chapter 15 Adjustment for Serial Correlation 15.1 CASE STUDIES 15.1.1 Logging Practices and Water Quality— An Observational Study Douglas fir forests in the Pacific Northwest are logged by clear-cutting entire sec- tions of the forest, a practice that involves stripping the land of all vegetation and burning what is left before replanting. The rationale for clear-cutting is that regen- erating Douglas fir seedlings thrive in full sunlight and low competition, and in any case the alternative logging methods are equally devastating. One consequence of the practice is its effect on water quality in the streams draining the logged areas. Higher peak runoff, increased silt, and higher water temperatures are factors that reduce the quality of the habitat for anadromous (river ascending) fish. One of the alternative methods is patch-cutting, where a watershed is cut in a patchwork pattern of clear-cut and unlogged sections. Display 15.1 shows the results of a study comparing the effects of patch-cutting a 68.4 hectare watershed to leaving a similar 48.6 hectare watershed undisturbed. (Data from R. D. Harr, R. L. Fredriksen, and J. Rothacher, “Changes in Streamflow Following Timber Harvest in Southwestern Oregon,” USDA/USFS Research Paper PNW-249 (1979), Pacific NW Forest and Range Experiment Station, Portland, Oregon.) Nitrates (NO3 –N) in runoff from patch-cut and undisturbed watersheds, for 5 years after logging DISPLAY 15.1 1.0 0.5 0.0 1.0 0.5 0.0 Undisturbed Nitrate Level (ppm) Nitrate Level (ppm) 50 100 150 Weeks Post Logging Patch- cut 200 250 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 15.1 Case Studies 451 Nitrate (NO3–N) levels are considered to be key indicators of the damage to water quality. The nitrate levels, in parts per million (ppm), of Display 15.1 were measured at approximately three-week intervals at stream gauges in each water- shed for a period of five years after logging occurred. In Display 15.1 the peaks in the patch-cut series appear to be somewhat higher than those of the undisturbed control. Is there sufficient evidence here that the mean (or median) nitrate levels differ in the two series? Statistical Conclusion These data provide no evidence that the median nitrate level is higher in the patch- cut than in the undisturbed watershed (one-sided p-value D 0:39, adjusted for an observed serial correlation of 0.64). The median nitrate in the patch-cut watershed is estimated to be 53% to 236% as large as the median nitrate concentration in the undisturbed watershed (approximate 95% confidence interval). Inferences Since the data are observational, no causal interpretation of the statistical results can be made. Furthermore, without random sampling from populations of patch- cut and undisturbed watersheds, the results only pertain to these two particular watersheds. The reader should note the desirability of having prelogging nitrate measurements taken on the two streams. If the prelogging series were comparable and the treatment stream selected randomly, the case for logging-induced effects could be much stronger. 15.1.2 Measuring Global Warming—An Observational Study Most countries of the world now recognize the dangers associated with the green- house effect, and they are taking measures to curtail those activities that might contribute to further global warming. What is the true extent of global warming? Is it a demonstrable effect? There have been several attempts at reconstructing mean temperature pro- files over long periods of time. Display 15.2, for example, shows the temperature (in degrees Celsius) averaged for the Northern Hemisphere over each full year from 1850 to 2010, expressed as a difference from the 161-year mean. (Data from P. D. Jones, D. E. Parker, T. J. Osborn, and K. R. Briffa, “Global and Hemispheric Temperature Anomalies—Land and Marine Instrumental Records” CDIAC, http://cdiac.ornl.gov/trends/temp/jonescru/jones.html, August 4, 2011.) The graph shows an obvious increasing trend in the series from 1850 to 2010. Is there, additionally, any evidence that the warming trend is accelerating (i.e., that the rate of temperature increase is increasing over this time span)? Statistical Conclusion These data provide convincing evidence of an acceleration of Northern Hemisphere annual temperature increase in the years 1850 to 2010 (one-sided p-value < 0.0001 from a test of the quadratic term in a regression model of temperature on year and Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 452 Chapter 15 Adjustment for Serial Correlation DISPLAY 15.2 +0.6 +0.4 +0.2 °C 0 –0.2 –0.4 –0.6 Annual temperature anomalies in the Northern Hemisphere—1850 to 2010 1850 1900 1950 2000 Year year2, adjusted for AR(1) serial correlation with a first serial correlation coefficient of 0.592). The rate of temperature increase is estimated to be 0.69ıC per century in 1950 (95% confidence interval 0.56 to 0.83ıC), 1.10ıC per century (95% confidence interval 0.82 to 1.3ıC per century) in 1985, and 1.39ıC per century in 2010 (95% confidence interval 1.17 to 2.20ıC per century). Scope of Inference These data are observational, so the statistical conclusion about the increase in temperature sheds no light on the cause of the increase. It is tempting to predict the future course of global temperatures using the model fit here. Although predictive methods for time series exist, their usage requires an assumption that the model continues to hold outside the range of the years used to estimate the model. There is no way to check that assumption, so any prediction of the future from the time series analysis requires speculative extrapolation. It is best to think of the analysis results as a description of the series within the time frame of the data. 15.2 COMPARING THE MEANS OF TWO TIME SERIES The Independence Assumption The methods of Chapters 2–6 for comparing several samples only apply if the observations within a group are independent of one another. Similarly, the regres- sion methods in Chapters 7–14 require that, after accounting for the effects of the explanatory variables, the responses be independent. The two major sources of nonindependence encountered in practice are cluster effects and serial effects. Serial effects require time series tools. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 15.2 Comparing the Means of Two Time Series 453 In many time series situations the comparison of the means of two (or more) time series can be accomplished using a straightforward correction of the standard error that accounts for serial correlation. This section explains how to measure serial correlation, why a correction is necessary, and how to make the correction. 15.2.1 Serial Correlation and Its Effect on the Average of a Time Series Serial correlation occurs when the course of a time series is influenced by its recent past. The typical behavior of a time series with serial correlation is that its values will go on extended excursions away from the long-run mean. This pattern is present in the logging and stream quality data. Let Nt be the concentration of nitrates in parts per million at the time t . The transformation Yt D log.1 C 100  Nt / was made in order to adjust for skewness in the nitrate concentrations. (Note: This is essentially a log transformation, with a small amount added to handle the zeros.) Next, each of the time series was mean-corrected by subtracting the series average from each observation, producing residuals listed in Display 15.3. Each residual series exhibits runs, where the values tend to be consistently positive or consistently negative for long periods. This is more clearly evident in Display 15.4, a time plot of the residuals in the undisturbed watershed. To demonstrate the trouble with using an average and its usual standard error with time series data, suppose that the average of the full five-year series is the long-run mean. In Display 15.4, this is represented by the zero line. The shaded region in the display highlights a segment of 27 values where the series has gone on an excursion away from its long-run mean. What would happen if this segment were the only sample available and if it was treated as a series of independent measurements? The sample average is 1.017, and the sample standard deviation is 0.551, giving a standard error of 0.106 for the average. The sample average is therefore 9.59 standard errors away from the long-run mean. If this sample were used to estimate the long-run mean, zero would be (incorrectly) considered an impossible value. Serial correlation in the series created two problems. First, a sample average in a serially correlated time series tends to be farther from the long-run mean than expected, because the series is inclined to drift away from its long-run mean. Sec- ondly, the serial correlation makes the values in the sample tend to be closer to each other than would be the case with an equal number of independent measurements, which makes them appear much less variable than they are. Since the estimate of how close the sample average is to the long-run mean is based upon sample vari- ability, serial correlation engenders an overly optimistic view of the true variation in the sample average. 15.2.2 The Standard Error of an Average in a Serially Correlated Time Series Fortunately, there is a simple way to adjust the standard error formula to account for serial correlation: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 454 Chapter 15 Adjustment for Serial Correlation DISPLAY 15.3 Week Residual nitrate readings (log ppm) from two watersheds—one logged by patch-cutting and the other undisturbed Patch- cut Patch- Undisturbed Week cut Undisturbed Week Patch- cut Undisturbed s1Cr1 s SE.Y/D 1􏰀r pn: 1 In this formula, the factor s=pn is the standard error calculated as if the data were independent (s is the usual sample standard deviation for one sample, or the pooled estimate for two or more independent samples). The quantity r1 is the sample first serial correlation coefficient. Notice that if r1 is zero (no serial correlation), then the adjustment factor in front of the usual standard error is 1. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 15.4 +2 +1 0 –1 –2 Mean-corrected nitrate concentrations after transformation, and a demonstration that the average of a segment of a time series may grossly misrepresent the full series mean Undisturbed Watershed 15.2 Comparing the Means of Two Time Series 455 Nitrate Residual Segment mean 50 Full series mean 100 150 Weeks Post Logging 200 250 If r1 is positive, then the adjustment factor is larger than 1; and if r1 is negative, the adjustment factor is less than 1. Like other correlation coefficients, r1 must fall between 􏰀1 and 1. The nitrate series from the undisturbed watershed, shown in Display 15.4, has r1 D 0:744 (calculation of r1 shown in next section), so the adjustment factor is 2:61 D f.1 C 0:744/=.1 􏰀 0:744/g1=2: The standard error of the serially corre- lated series is two and a half times what it would be if the series had independent measurements. First-Order Autoregression Model This adjustment to the standard error is appropriate under the following ideal model, called the autoregressive model of lag 1, or AR(1): 1. The series, fYt g, is measured at equally spaced points in time. 2. Let .Yt 􏰀 / be the deviation of an observation at time t from the long-run series mean . Let f.Yt 􏰀 / j past historyg be the mean of the tth deviation as a function of all previous deviations. Then, f.Yt 􏰀/jpast historygD ̨.Yt􏰀1 􏰀/; where the parameter ̨ is the autoregression coefficient. In other words, the regression of a deviation on all previous deviations depends only on the most recent one. Hence, the term lag 1. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 456 Chapter 15 Adjustment for Serial Correlation DISPLAY 15.5 A lag plot showing the relationship between adjacent residuals in the undisturbed watershed time series Current Residual (Yt – Y ) 15.2.3 All values in an AR(1) series are correlated with each other, yet the entire structure of the correlation is contained in the single parameter ̨. In the AR(1) model ̨ is also known as the population first serial correlation coefficient. It may be estimated by the sample first serial correlation coefficient, r1, which is discussed next. Estimating the First Serial Correlation Coefficient In a time series that embarks on excursions from the mean, the value of a deviation at one point in time tends to be similar to the value of the deviation at the most recent point in time. This behavior is evident in the scatterplot of residuals adjacent in time. Display 15.5 shows the scatterplot for the series from the undisturbed watershed. The plotted data are the 87 pairs of consecutive residuals in Display 15.3: (􏰀1:21; 􏰀1:91), (􏰀1:91; 􏰀1:91), and so on. The coefficient r1 provides a numerical summary measure of the correlation between adjacent residuals, apparent in Display 15.5. From a single time series, r1 is the sample correlation of the consecutive residuals, like those plotted in Display 15.5. The formula provided below is general enough to be extended easily to get a pooled estimate from several time series. The calculation of r1 in a single time series is the ratio: r1 D c1 ; c0 +2 +1 0 –1 –2 r1 = 0.744 Undisturbed Watershed –2 –1 0 +1 +2 Previous Residual (Yt–1 – Y ) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 15.2 Comparing the Means of Two Time Series 457 which involves the two autocovariance estimates, n c1D 1 Xrestrest􏰀1 n 􏰀 1 t D2 n c 0 D 1 X r e s 2t ; where rest is the deviation of observation t from its estimated mean, which for the case of a single time series with no explanatory variable is Yt 􏰀 Y . Note that c0 is just the sample variance of the residuals, and that r1 is similar to the estimated slope in a regression of Yt on Yt􏰀1. 15.2.4 Pooling Estimates and Comparing Means of Two Independent Time Series with the Same First Serial Correlation To arrive at a standard error for the difference in averages of two time series, a pooled estimate of the first serial correlation is required. This is carried out by obtaining pooled estimates of c1 and c0 and then taking r1 as their ratio. The calculations for the logging case study are summarized in Display 15.6. n 􏰀 1 t D1 DISPLAY 15.6 Pooling procedure for estimating the first lag serial coefficient—logging data Pooled Estimate = Patch-cut: Y = 2.016, c = 1.628, c = 0.932, = 0.872, d.f. = 87 d.f. = 87 (d.f.1 × est1) + (d.f.2 × est2) d.f.1 + d.f.2 C01 Undisturbed: Y = 1.905, c = 1.172, c U01 (87 × 0.932) + (87 × 0.872) (87 × 1.628) + (87 × 1.172) Pooled: c1= 87 + 87 c0 = 87 + 87 r1 = 0.902/1.400 = 0.644 A standard error of the difference in averages uses the same adjustment factor that is applied to the standard error of a single average. The adjusted standard error is the usual standard error (Chapter 2) times the adjustment factor: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 458 Chapter 15 Adjustment for Serial Correlation SE.YC 􏰀YU/Ds1Cr1sps 1 C 1 : 1􏰀r1 nC nU For the logging data this standard error is SE.YC 􏰀YU/Dr1C0:6441:183r 1 C 1 D0:383; 15.3 or 2.145 times larger than the SE of the difference that would be used if the data were treated as independent. An approximate 95% confidence interval for the difference may be formed by using the normal multiplier, 1.96. The interval half-width is (1.96)(0.383) D 0.751 and the estimated difference is 0.111, so the interval is .􏰀0:64;C0:86/. Similarly, a z-statistic for testing equality of means is z D 0:111=0:383 D 0:290: REGRESSION AFTER TRANSFORMATION IN THE AR(1) MODEL The global temperature series exhibits a general increase in Northern Hemisphere temperatures with an upward curving trend from 1850 to 2010. A regression of temperature on year and year2 may be useful for making inferences about this trend. In particular, a positive coefficient of year2 would indicate an acceleration of temperature increase. An ordinary least squares fit to this model, however, produces residuals that indicate serial correlation (see Display 15.8)—a feature that could have been guessed from the excursions the series takes away from the long-term trend in Display 15.2. Fortunately, there is a general approach that accounts for this violation of the independence assumption. This section describes that approach. 15.3.1 The Serial Correlation Coefficient Based on Regression Residuals Let Yt be the temperature for year t .t D 1; 2; : : : ; 161/. A regression model of interest is fYt jtg D ˇ0 C ˇ1t C ˇ1t2, which is a special case of a more general model fYt jtg D ˇ0 C ˇ1X1t C ˇ2X2t . The explanatory variables, such as X1t , may be t or functions of t, but they may also be any other explanatory variables measured at time t. The analysis that follows uses a scaled version of year: time D .year 􏰀 1900/=100, as an explanatory variable. The fitted model and the inferences will be the same as if year was used directly. Analysis begins with the estimation of the parameters in this model by ordinary least squares regression. Display 15.7 summarizes the fit and the analysis of vari- ance. Display 15.8 contains a time series plot of the residuals from the regression, in which a pattern of drifting from the mean is apparent. The plot suggests positive serial correlation, perhaps represented by a first-order autoregressive model for the 1􏰀0:644 88 88 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 15.3 Regression After Transformation in the AR(1) Model 459 DISPLAY 15.7 Fit of a quadratic trend to the annual global temperature anomaly data ignoring serial correlation: time D (year – 1900)/100 Variable Constant time time2 Estimate –0.3210 0.1259 0.5486 Standard error 0.0161 0.0448 0.0613 d.f. = 158 t-statistic –19.9659 2.8143 8.9481 Two-sided p-value 0.0000 0.0055 0.0000 Residual SD = 0.1503oC Source Regression Residual Sum of squares d.f 9.0109 2 3.5694 158 Mean squares F-statistic p-value 4.5054 199.4885 0.0000 0.0226 Total 12.5793 160 0.0786 series of deviations. The estimated first serial correlation coefficient is calculated by applying the method of section 15.2.3 to the series of residuals from the ordinary regression fit. The estimate is C0.592. 15.3.2 Regression with Filtered Variables In addition to correcting the standard error directly, serial correlation can be han- dled by a special transformation called filtering. The idea is to create a new response variable and a new explanatory variable such that the regression coefficient is the same but the deviations are independent. If the AR(1) model is adequate, then by taking Vt DYt 􏰀 ̨Yt􏰀1; andUt DXt 􏰀 ̨Xt􏰀1; it happens that fVt jUt g D 0 Cˇ1 Ut (a simple linear regression with the same slope as in the regression of Y on X), and there is no serial correlation in the deviations about the regression. The new intercept is related to the original intercept by 0 Dˇ0.1􏰀 ̨/: The result also applies to multiple regression: The coefficients of the filtered explanatory variables are the same as those of their unfiltered versions (except for the constant term), but the serial dependence is removed by filtering. Since the independence assumption for least squares is met for the filtered variables, one can simply use ordinary least squares on the filtered response and explanatory variables to estimate the regression coefficients and to obtain p-values and confidence inter- vals. The only hitch is that one must know ̨ to construct the filtered variables V and U. The simplest approach is to use r1 (the sample serial correlation coefficient, estimated from the residuals in the regression of Y on X) as an estimate of ̨. Then the filtered response variables Vt D Yt 􏰀 r1Yt􏰀1 and the filtered explanatory variables Ut D Xt 􏰀 r1Xt􏰀1 may be used in ordinary least squares regression. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 460 Chapter 15 Adjustment for Serial Correlation DISPLAY 15.8 +0.6 +0.4 +0.2 °C 0.0 –0.2 –0.4 –0.6 +0.6 +0.4 +0.2 °C 0.0 –0.2 –0.4 –0.6 Residual Series: Y = temperature, X1 = time, and X2 = time2 Residual time series plot for global temperature data; top panel: from ordinary least squares, bottom panel: from least squares fit using AR(1) filtering r1 = 0.5917 1850 1900 Noise Series: 1950 2000 Y = filtered temperature, X1 = filtered time, and X2 = filtered time2 r1 = –0.0799 1850 1900 1950 2000 Year For the global temperature data this means computing Vt D Yt 􏰀 r1Yt􏰀1, U1t D t 􏰀 r1.t 􏰀 0:01/, and U2t D t2 􏰀 r1.t 􏰀 0:01/2; with r1 D 0:5917; and using ordinary least squares to estimate coefficients in the regression of Vt on U1t and U2t . The results are shown in Display 15.9. To demonstrate that the AR(1) serial dependence has been removed, the second panel of Display 15.8 shows the residual series from this fit, along with the estimated first serial correlation coefficient from this set of residuals. Comparison of Filtering Method with Standard Error Adjustment With the untransformed residuals, the serial correlation of 0.452 would have given an adjustment factor (Section 15.2) of 1.628. Multiplying this by the standard error of the slope estimate, 0.00035, gives the same result as the standard error based on the filtered variables. The two methods constitute two approaches to the same result. However, the transformation approach is preferred because, as mentioned Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 15.4 above, it extends to time series models that include any explanatory variables that fluctuate cyclically. To summarize the procedure for filtering with more than one explanatory vari- able: If it can be determined that the time series of residuals about the regression is of the AR(1) type (checking for AR(1) is discussed in Section 15.5), then: 1. Fit the ordinary regression of the response on the explanatory variables and obtain residuals. 2. Calculate the autocovariance estimates c0 and c1 from the residuals. From these calculate the first serial correlation coefficient r1 D c1=c0. 3. Compute the filtered versions of the response and explanatory variables. 4. Fit the regression of the filtered response on the filtered explanatory variables, and use the usual tools to make inferences about the coefficients (but not the intercept). The intercept for the model of interest, if desired, is estimated by the reported intercept estimate divided by .1 􏰀 r1/. Many statistical computer programs can carry out these computations automati- cally. DETERMINING IF SERIAL CORRELATION IS PRESENT Even though observations come in the form of a time series, it may not be neces- sary to adjust for serial correlation. In this section, three tests are introduced for detecting serial correlation. Each of these tests should be performed using resid- uals from proposed models, rather than using the response variable directly. The primary function of the tests is diagnostic, to see if serial correlation is present. 15.4.1 An Easy, Large-Sample Test for Serial Correlation If one estimates a serial correlation coefficient from a series of n independent vari- 15.4 Determining If Serial Correlation Is Present 461 DISPLAY 15.9 Fit of a quadratic trend to the annual global temperature anomaly data; time D (year 􏰀 1900)/100; filtered as an AR(1) time series. Variable Constant time time2 Estimate –0.1311 0.0999 0.5849 Standard error 0.0129 0.0934 0.1227 d.f. = 157 t-statistic –10.1720 1.0690 4.7660 Two-sided p-value <0.0001 0.287 <0.0001 Residual SD = 0.1209oC ables with constant variance, the estimate has an approximate normal sampling distribution centered at zero with standard deviation 1=pn. This assumes that n is large—say 100 or so. The test statistic, Z D r pn, has an approximate standard 1 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 462 Chapter 15 Adjustment for Serial Correlation 15.4.2 normal distribution when no serial correlation is present. This simple test for serial correlation consists of determining whether jZj is too large. The serial correlation coefficient, r1 D 0:452, in the Jones global temperature series, comes from n D 108 regression residuals. The resulting Z D 4:70 is much larger than one would expect if Z came from a standard normal distribution. (A p-value is Pr.jZj > 4:70/, which is less than 0.0001.) One may safely conclude that serial correlation is present.
The Nonparametric Runs Test
A run is a string of values that are all above (or all below) the estimated mean. That is, a run is another term for an excursion. In serially correlated time series, runs tend to be long, so the number of different runs tends to be small. Consider a small example involving five residuals: 􏰀2:75; 􏰀2:31; C0:27; C1:66; and C3:13. The magnitudes do not affect the number of runs, so these residuals can be described by the sequence .􏰀;􏰀;C;C;C/, containing p D 3 plus values and m D 2 minus values. Here are all possible sequences having 3 plus and 2 minus signs.
Sequence Number of Runs in This Sequence
.C;C;C;􏰀;􏰀/ 2 .C;C;􏰀;C;􏰀/ 4 .C;C;􏰀;􏰀;C/ 3 .C;􏰀;C;C;􏰀/ 4 .C;􏰀;C;􏰀;C/ 5 .C;􏰀;􏰀;C;C/ 3 .􏰀;C;C;C;􏰀/ 3 .􏰀;C;C;􏰀;C/ 4 .􏰀;C;􏰀;C;C/ 4 .􏰀;􏰀;C;C;C/ 2
Notice that there are 10 different sequences. Ten is C5;2, the number of ways to select two positions for the minus values from the five available positions. (Recall that Ca;b D aŠ=ŒbŠ.a 􏰀 b/Š.) If the residuals have no serial correlation—if they are independent—then each of these sequences will have the same chance (1 in 10) of occurring. This independence condition is summarized in the null hypothesis distribution of the number of runs, which is:
Number of Runs
2 3 4 5
Chance of Occurrence
0.2 0.3 0.4 0.1
Low numbers of runs suggest positive serial correlation, so a p-value for the test comes from the lower tail of a distribution such as this. The example sequence had two runs, which is the most extreme case. But there is a good chance (0.2) that
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

15.5 Diagnostic Procedures for Judging the Adequacy of the AR(1) Model 463
this might happen with independence, so the strength of the statistical evidence for serial correlation is weak.
Tables of critical values for the number of runs are available for sample sizes up to about 20. (See Swed and Eisenhart (1943).) The concern here, however, is with longer series, where the sampling distribution of the number of runs may be approximated by a normal distribution. With a series of independent residuals, p of which are plus and m of which are minus, the mean number of runs is
D 2mp C1; mCp
and the standard deviation of the number of runs is
A test statistic is
 D s 2mp.2mp 􏰀 m 􏰀 p/ : .m C p/2.m C p 􏰀 1/
Z D .number of runs/􏰀CC; 
where C is a continuity correction: C D C0:5 if the number of runs is less than , and C D 􏰀0:5 if the number of runs is greater than . In a series of independent residuals, Z will have an approximate standard normal distribution.
To illustrate the runs test, consider the residual nitrate levels from the undis- turbed (control) watershed, in Display 15.3. The residuals begin with a run of 21 minuses, followed by another run of 15 pluses. Next come a run of a single minus, another long run of 11 pluses, and so on. In all, the pluses and minuses are evenly divided as p D m D 44, and the series has 15 distinct runs. For series of 88 independent observations having 44 pluses and minuses, the mean number of runs is 45 and the SD is 4.66. So the observed number of runs is very low. Formally, Z D 􏰀6:33, which represents convincing evidence of serial correlation.
15.5 DIAGNOSTIC PROCEDURES FOR
JUDGING THE ADEQUACY OF THE AR(1) MODEL
The main issue in this section is how to determine whether the first-order autore- gressive model, AR(1), fully accounts for all serial correlation. If it does not, then more sophisticated methods than the ones so far presented will be needed. Other issues of model checking also arise in regression analysis when serial correlation is present: normality of errors, equal variances, and so on. These can be tackled using tools already developed, such as plots of residuals versus fitted values. Before launching into the situations that may call for higher-order models for correlation, however, one piece of diagnostic advice about transformations is mentioned.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

464
Chapter 15 Adjustment for Serial Correlation
15.5.1
When Is a Transformation of a Time Series Indicated?
Why were the nitrate measurements transformed to the log scale? One clue comes from an examination of a time plot of the raw data, Display 15.1. The tools pre- sented in this chapter apply well to stationary, normally distributed time series. (Stationary means that, aside from the effects of the explanatory variables, the behavior of the time series is the same at different segments of time.) The plots characteristic of such series show no obvious long-term trends in either mean or variability, and the shapes of the peaks and the valleys are roughly the same. Imagine turning the time plot upside down. Does it look about the same? If not, a transfor- mation may be advisable. In Display 15.1, both series show very sharp peaks, but the valleys are broad and shallow. Because the logarithm squeezes large numbers together and spreads small numbers apart, it is a good candidate for toning down the peaks and deepening the valleys. Since there are zeros, a small number may be added to all measurements before taking the logarithms (1 has been added here). After transformation (Display 15.4) the peaks and valleys have about the same shape to them, which is an indication that the chosen transformation has been successful.
The Partial Autocorrelation Function (PACF)
Using the first serial correlation coefficient usually accounts for most of the serial correlation present in time series residuals. However, situations arise where the structure of the time relationship is more complex. The partial autocorrelation function is a tool for examining two aspects of this problem: Is the situation more complex than a first-order autoregressive model; and, if so, will a modest extension of the first-order model suffice?
In the first-order autoregressive model,
f.Yt 􏰀/jpasthistorygD ̨.Yt􏰀1􏰀/: In a second-order autoregressive model,
f.Yt 􏰀/jpast historygD ̨1.Yt􏰀1 􏰀/C ̨2.Yt􏰀2 􏰀/:
The last term is a lag 2 deviation. Similarly, it is possible to have higher-order autoregressive models by including higher-order lagged deviations. The first partial autocorrelation is the estimate of ̨ in the first-order autoregressive model, and this is already known to be r1. The second partial autocorrelation is the estimate of ̨2 in the second-order autoregressive model, AR(2). Other, higher-order partial autocorrelations are similarly defined.
The partial autocorrelation function (PACF) is a plot of partial autocorrelations versus lags. It is used to see which partial autocorrelations are close enough to zero to be ignored. If they can all be ignored, then no time series procedures are needed. If all but the first can be ignored, then the methods of this chapter will suffice.
Display 15.10 is the PACF for the global temperature residuals. The thin lines in the display indicate two SD limits around zero (based on the method of Sec- tion 15.4.1). Partial correlations falling within the limits do not significantly differ
15.5.2
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

15.5 Diagnostic Procedures for Judging the Adequacy of the AR(1) Model 465
DISPLAY 15.10
Partial autocorrelations in the Jones temperature residual series, to lag 10
+0.8 +0.6 +0.4 +0.2
0.0 –0.2 –0.4 –0.6 –0.8
1 2 3 4 5 6 7 8 9 10
Lag (Years)
from zero—at least their p-values are greater than 0.05—while those outside the limits do.
Knowing only that much, it is apparent from the display that only one partial autocorrelation is significantly different from zero. It is the first partial autocorre- lation. Thus it is apparent from Display 15.10 that the first-order autoregressive model of Section 15.3 adequately accounts for all serial correlation in the residuals from regression.
It is worthwhile to notice that the lag 2 partial autocorrelation is not simply the correlation of the residuals with the lag 2 residuals. It is the correlation of the residuals with the lag 2 residuals after accounting for the effects of the lag 1 residuals (by regression methods). This is why the term partial is present. Each partial autocorrelation measures the association between residuals spaced a certain number of lags apart in time, after accounting for the effects of the residuals between them. Typically partial autocorrelations are plotted for lags up to the square root of the series length.
For a series without serial correlation, the sampling distribution of the PACF at any lag is approximately normal with mean zero and SD D 1=pn. So the error limits in Display 15.10 are placed at ̇1:96=pn. Display 15.11 shows some common patterns for sample PACFs.
PACF A With no serial correlation at all, the residuals are all independent with zero means and the same variance. In time series terminology, this is known as white noise. If this is the pattern, there is no need to consider time series adjustments to standard analyses.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Partial Correlation

466
Chapter 15 Adjustment for Serial Correlation
DISPLAY 15.11
Partial autocorrelation functions for four different types of time series
A. White Noise B. Autoregression, Order = 3
C. Moving Average / ARIMA D. Nonstationary / ARIMA
PACF B Autoregressive models are characterized by a PACF that is nonzero out to a certain lag and then abruptly becomes zero beyond that lag. The maximum lag where partial autocorrelation exists (p D 3, in the example shown) is the order of the autoregression.
This is the modest extension of the AR(1) model mentioned earlier. If one fits a regression model for the mean and finds that the residuals have a PACF indicat- ing a pth order autoregression, then a p-step filtering procedure similar to that in Section 15.3 will give more efficient estimates of the regression parameters along with approximately correct standard errors. The first step is to fit the parameters in the autoregressive model. Most computer software packages can do this, once the number of lags in the model is specified. The computation of the partial autocor- relations is similar to fitting a regression of residuals on lagged residuals. (Details are not given here.)
The next step is to perform an autoregressive transformation of the response variable and all explanatory variables. If the second-order autoregressive model is appropriate, then the filtered response variable is Vt D Yt 􏰀 ̨O1Yt􏰀1 􏰀 ̨O2Yt􏰀2. A similar filtering is used on the explanatory variables. The final step is to recompute regression coefficients and perform the necessary tests and confidence intervals using the regression of the filtered variables.
PACF C Another class of stationary time series is called moving averages. This PACF shows the typical behavior of a series with a moving average component.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

15.6
After perhaps a few values having no particular pattern to them, the partial auto- correlations either decay exponentially toward zero, or they follow some decaying, cyclical pattern (as does the example given).
PACF D When the PACF fails to disappear or decay after the first several lags, the most likely explanation is large trends in the series that have not been accounted for in the initial regression model. In this case another time-related explanatory variable may be available for use in the regression equation. Alternatively, it may be that taking successive time differences will result in a series that fits the assumptions of a simple time series.
Such time series that require differencing belong to a general class of time series called Autoregressive Integrated Moving Averages, or ARIMA models. These (such as PACF C and PACF D) require very specialized statistical tools. Researchers with such problems should seek technical assistance from a professional statistician.
15.5.3 Bayesian Information Criterion
The aim of time series analysis is to develop a model in which residuals, after filtering and regression, have the same variability and have no serial correlation remaining. The distribution of these residuals is summarized by an estimate of their variance, O2.
Schwarz introduced the Bayesian Information Criterion (Section 12.4.2) as a criterion for deciding on the order of an autoregressive model in time series analysis. The criterion,
BIC D n log  SSRes  C k log.n/; n
can, however, be used to compare the fits of any models in the ARIMA class, where SSRes is the sum of squared residuals and k is the number of parameters in the model, including both the parameters describing serial correlation and the regression parameters.
In autoregressive models, the BIC can be calculated directly from the partial autocorrelation function. If Oj is the estimate of the jth partial autocorrelation, then the BIC for an autoregressive model of order p for the residuals from a regression with q parameters is
p
BIC D .p C q/ log.n/ C n X log.1 􏰀 Oj2 /:
jD1
The model with the smallest BIC gives the best fit to the data.
RELATED ISSUES
15.6.1 Time Series Analysis Is a Large-Sample Game
When the length of the time series is less than around n D 100, one must exercise care in verifying that assumptions are met. With n less than 50, the tools described
15.6 Related Issues 467
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

468
Chapter 15 Adjustment for Serial Correlation
15.6.2
15.6.3
in this chapter are unlikely to yield reliable results. As Display 15.4 shows, the mean value can be surprisingly misleading in short series.
In the absence of a long series, the analysis of serial correlation requires advanced techniques.
The Autocorrelation Function
Time series analysis usually employs the autocorrelation function (ACF) more than the partial autocorrelation function. The ACF describes the correlation between outcomes separated by various time lags. The information in the ACF is the same as that in the PACF, but is presented in a form that allows the user to spot moving averages.
Time Series Without a Time Series Package
Only the simplest adjustment for serial correlation should be attempted with- out computer software specifically designed for the task. Although it might seem possible to organize time series calculations—by creating lagged variables as new variables and computing correlations—in computer software packages that do not have a formal time series capability, this is not advised. The correlation formulas are slightly different from those used in the time series packages and the PACF is especially difficult to calculate outside a package.
Negative Serial Correlation
The examples in this chapter exhibit drift, with fewer crossings of the mean level than one would expect in a purely random series. Although this is the most com- monly encountered situation, there are some cases with more crossings of the mean level than one would expect in a random series. Observations that are unusually high tend to be followed by compensating values that are low and vice versa. These series possess negative serial correlation.
A short-run average in a series with negative serial correlation tends to be closer to its long-run mean than expected, because the values on both sides of the mean average out well. But the sample SD in a short-run series tends to look larger than expected because of the swings back and forth across the mean. This produces an effect that is similar to, but opposite from, the effect of positive serial correlation. The mean is closer than expected, while the SE is too large. Detecting negative serial correlation and adjusting the standard errors for it may be done exactly as has been outlined above for positive serial correlation.
15.6.4
15.7 SUMMARY
This chapter is concerned with regression analysis when the data are collected over time or space. In some situations no special adjustment for serial correlation is necessary. In others a simple adjustment along the lines of those described in
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

15.8 Exercises 469
Sections 15.2 and 15.3 is satisfactory. For others, more advanced techniques are required.
After the usual exploration, transformation, and model fitting, the diagnostic tests of Section 15.4 can be applied to the residuals to see whether serial correlation is present. If it is, then the tools of Section 15.5 can be used to explore possible models for the serial correlation and, in particular, to see if the AR(1) model is adequate. The partial autocorrelation function plot indicates whether the AR(1) model is appropriate. If it is, then the regression coefficients can be estimated by regressing a filtered response variable on filtered explanatory variables, as shown in Section 15.3.2.
Logging Practices
The scatterplot in Display 15.1 (or any other initial graphical display) indicates the need for a log transformation of nitrate level. Since the data were collected over time, next it is important to check for serial correlation. A runs test (Section 15.4.2) indicates conclusively that there is. Examination of a partial autocorrelation function (PACF) confirms that the autocorrelation can be represented by an AR(1) model. This permits the simple adjustment to the two-sample t-test, obtained by modifying the standard error of the difference in averages (Section 15.2.2) after obtaining a pooled estimate of the first serial correlation coefficient. The one-sided p-value for comparing the mean log nitrate level in the undisturbed watershed to the patch-cut watershed is 0.39.
Global Warming
The scatterplot of global temperatures versus time in Display 15.2 suggests an increasing trend in temperatures over the years 1850 to 2010, with a possible accel- eration over time. A partial autocorrelation plot of the residuals from an ordinary least squares fit to a quadratic model indicates the presence of AR(1) serial depen- dence. Re-fitting the regression on AR(1) filtered explanatory variables allows for estimation of and inference about the quadratic curve.
15.8 EXERCISES
Conceptual Exercises
1. Logging Practices. (a) Discuss the benefit of replication for the problem in Section 15.1.1. That is, how would the question of interest be better answered if there were data on several undis- turbed watersheds and several patch-cut watersheds? (b) Could the methods of this chapter be used to analyze data from such a study? (c) Would causal conclusions be possible?
2. Global Warming. What specifically is the problem with fitting the simple regression of temperature on time and using the slope as an estimate of the change in mean temperature per year?
3. To contrast the economic strength of England under each of the two political parties, a political scientist determined the monthly unemployment rates over the past 45 years. Is it reasonable to make
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

470
Chapter 15 Adjustment for Serial Correlation
DISPLAY 15.12
a comparison by looking at the difference between the average unemployment rates under Labour and those under Conservatives in a two-sample t-test (Chapter 2)?
4. To test a new pollution control device at a factory, dioxin concentrations at a downstream loca- tion were recorded daily for two full years before installation and for another two full years after installation. The pre- and postinstallation series showed similar strong serial correlation. So the t-test comparing the two groups (of 730 observations each) was adjusted, and it gave convincing evidence of a decrease in dioxin concentrations (one-sided p-value D 0:00003/. What is the scope of the inference that can be drawn from this?
5. To compare two diet preparations for before-school breakfasts, researchers plan to provide menu A on 75 school mornings and menu B on 75 other school mornings. At the end of each day, the stu- dents’ teachers will evaluate the students’ general level of accomplishment as the response variable. The researchers fully expect strong positive serial correlation in these responses from day to day. Knowing that, which of the following allocations is the best? and why?
(a) Give the students menu A for the first 75 days and menu B for the last 75 days. (b) Alternate menu A on one day with menu B on the next throughout the 150 days. (c) Select 75 of the 150 days at random for providing menu A.
6. Suppose that Yt is the gross national product of the United States in year t and Xt is the interest rate set by the Federal Reserve Board at the beginning of the year. If a time series adjustment is used to estimate the regression of Yt on Xt for the years 1950 to 1995, is there anything wrong with using the results to predict (forecast) Y for 1996 once X1996 is known?
Computational Exercises
7. The data file ex1507 contains the time series of annual temperature anomalies, as in Display 15.2, but for the Southern rather than the Northern Hemisphere. Duplicate the analysis in this chapter to see whether there is evidence of an accelerating temperature increase in the Southern Hemisphere. (Data from same source as the case study in Section 15.1.2.)
8. The zero-lag and first-lag covariances from four time series appear in Display 15.12. Assuming all four series have the same first-order serial correlation, determine the pooled estimate of the first serial correlation coefficient.
Data for Exercise 8
Series Length C0 C1
9. Perhaps the most intensively studied time series consists of annual counts of sunspots, begun in 1610 by Wolfer and continued to the present time; a partial listing of 311 years of the sunspot series appear in Display 15.13. (Data from SIDC—Solar Influences Data Center, http://sidc.oma.be/sunspot-data/. July 15, 2011) (a) Construct a time plot of this series. If this were a response variable, would it require a transformation? (b) After transformation (if necessary), use a computer to construct the PACF up to a lag of 20 years for the residuals from the average level.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

15.8 Exercises 471
DISPLAY 15.13
Sunspot counts for 1700–2010; partial listing
Year Sunspots
1700 5
1701 11
1702 16
1703 23
1704 36
2010 16.5
Interpret the result in terms of a time series model. (c) Use the Bayesian Information Criterion to select the best-fitting order for an autoregressive model.
10. An observer timed the dives of feeding ducks. There were four ducks each of two species, Lesser Scaup and Greater Scaup. The observer recorded the times (in seconds) of 10 consecutive dives by each bird. When the data were analyzed as a several-sample problem (the eight different birds being the groups), the analyst isolated different group comparisons in the following analysis of variance. This analysis suggests that all the ducks were doing their own thing. However, the analyst noted that the dives were serially correlated, with a pooled estimate of the first serial correlation being r1 D 0:4483.
Source of variation
Between birds Between species Between lessers Between greaters
Within birds Total
d.f. Sum of squares
7 1,469.950 1 305.200 3 675.833 3 488.862
72 3,853.800 79 5,323.750
Mean square
209.993 305.200 225.278 162.954
53.525
F-statistic p-value 3.923 0.0011
5.702 0.0196 5.209 0.0084 3.044 0.0342
(a) Determine the correction factor.
(b) Thinking of this as a correction factor for sp, the corresponding correction factor for sp2
would be its square. Calculate this, and apply it to the Within Birds mean square to get a mean square adjusted for serial correlation. Put an asterisk by that mean square to indicate that it has been adjusted.
(c) Recompute the F -statistics and the p-values to give an adjusted table (using the modified sp2 , rather than the unmodified version, as the divisor in F -statistics).
(d) Interpret the results.
El Nin ̃ o and Hurricanes. Reconsider the El Nin ̃ o and Hurricane data set from Exercise 10.28. Regress the log of the storm index on temperature and the indicator variable for West African wetness and retain the residuals. (a) Construct a lag plot of the residuals, as in Display 15.5. (b) Construct a partial autocorrelation function plot of the residuals. (c) Is there any evidence of autocorrelation? How many lags?
12. Difference Equation Behavior. Autoregressive time series are structured as solutions to dif- ference equations given shocks (“shocks” is the time series term for random errors) which disrupt them from following the basic pattern of such solutions. Solutions to difference equations without
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
11.

472 Chapter 15 Adjustment for Serial Correlation
shocks follow exponential declines and/or exponentially damped oscillations. To illustrate, consider the difference equation:
Yt D2:45Yt􏰀1􏰀2:26Yt􏰀2C0:80Yt􏰀3􏰀0:04Yt􏰀4
Pick any set of starting values, Y1, Y2, Y3, and Y4. Then generate the future values of your series
using this equation out to about t D 20. Notice the pattern that emerges by plotting the series.
13. False Correlation. The purpose of this exercise is to illustrate the fact that two time series that have similar autoregressive structures will appear to be highly correlated with each other, even if the two have completely independent shocks. Consider the second-order autoregression:
Yt D15:0C0:65.Yt􏰀1 􏰀15:0/C0:25.Yt􏰀2 􏰀15:0/CZt
which varies around a mean of 15.0 and where fZt g is a sequence of independent, normally dis- tributed shocks with zero mean and unit standard deviation. With a computer, generate a series of 200 values from this time series, as follows. Begin with Y1 D Y2 D 15:0. Then let Y3 D 15:0 C Z3, where Z3 is a normal variate. [In EXCEL, for example, Z3 D normsinv(rand()).] Continue generat- ing Y4; : : : ; Y20 in the same way, to get the series into its rhythm. Then use Y19 and Y20 as starting values to generate another 200 values for the series.
Next, consider the second-order autoregression:
Ut D10:0C0:68.Ut􏰀1 􏰀10:0/C0:22.Ut􏰀2 􏰀10:0/CVt
which varies around a mean of 10.0 and where fVtg is a sequence of independent, normally distributed shocks with zero mean and unit standard deviation. And these fVt g shocks are all inde- pendent of the previous fZt g shocks. Generate this fUt g series in the same way as you generated the fYt g series.
Plot the two time series. Then calculate correlations between Yt and Ut􏰀k for lags of k D 􏰀3, 􏰀2, 􏰀1, 0, C1, C2; and C3. Do the series appear to be correlated?
Data Problems
14. Melanoma and Sunspot Activity—An Observational Study. Several factors suggest that the incidence of melanoma (skin cancer) is related to solar radiation. Melanoma is more common in fair- skinned individuals, and among them it is more common nearer the equator. Display 15.14 gives data on age-adjusted melanoma incidence among males from the Connecticut Tumor Registry from 1936 to 1972, along with the annual sunspot series. (Data from A. Houghton, E. W. Munster, and M. V. Viola, “Increased Incidence of Malignant Melanoma After Peaks of Sunspot Activity,” Lancet (April 8, 1978): 759–60.) Is there any evidence that melanoma incidence is related to sunspot activity in the same year, or to sunspot activity in the previous one or two years?
15. Lynx Trappings and Sunspots. Many animal populations experience approximately 10-year cycles of boom and bust. An example is the Canadian lynx. Annual numbers of lynx trapped in the Mackenzie River district of northwest Canada from 1821 to 1934 appear in Display 15.15. (Data from C. Elston and M. Nicholson, “The Ten Year Cycle in Numbers of the Lynx in Canada,” Journal of Animal Ecology 11 (1942): 215–44.) One conceivable explanation is that these fluctuations are related to solar activity, as described by the sunspot series. Is there evidence that lynx numbers are related to sunspot activity in the same year or to sunspot activity in the previous one or two years?
16. Trends in Firearm and Motor Vehicle Deaths in the U.S. Display 15.16 shows the number of deaths due to firearms and the number due to motor vehicle accidents in the United States between 1968 and 1993. Is there evidence of an increasing or decreasing trend in firearm deaths over this period? What is the rate of increase or decrease? Is there evidence of an increasing or decreasing trend in motor vehicle deaths over this period? What is the rate of increase or decrease? (The data
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

15.8 Exercises 473
DISPLAY 15.14
Age-adjusted melanoma incidence per 100,000 males from Connecticut Tumor Registry, 1936–1972; partial listing
Year
1936
1937
1938
1939
1940
1972
Sunspot Melanoma
40 1.0 115 0.9 100 0.8
80 1.4 60 1.2
65 5.3
DISPLAY 15.15
Numbers of lynx trapped annually in the Mackenzie River district, Canada, and the corresponding sunspot numbers
Year Sunspot Lynx
1821 6 269 1822 1 321 1823 6 585 1824 10 871
1934 15 3,396
DISPLAY 15.16 Deaths due to firearms and motor vehicle accidents in the U.S., 1968–1993; 6 of 26 rows
Firearm deaths Motor vehicle deaths Year (thousands) (thousands)
were read from a Centers for Disease Control and Prevention graph reported in The Oregonian, June 17, 1997.)
17. S&P 500. The Standard and Poor’s 500 stock index (S&P 500) is a benchmark of stock market performance, based on the 400 industrial firms, 40 financial stocks, 40 utilities, and 20 transportation stocks. Display 15.17 shows the value of a $1 investment in 1871 at the end of each year from 1871 to 1999, according to the S&P 500, assuming all dividends are reinvested. Describe the distribution of the S&P value as a function of year.
18. Effectiveness of Measles Vaccine. Display 15.18 is a partial listing of the number of measles cases reported in the United States for each year from 1950 to 2008. (Data from the Centers
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

474 Chapter 15 Adjustment for Serial Correlation
DISPLAY 15.17
Value of a $1 U.S. stock investment in 1871 at the end of each year, based on the S&P 500 Composite stock index; partial listing
Year S&P 500 ($)
DISPLAY 15.18
Number of measles cases in the U.S. for each year from 1950 to 2008 and a factor indicating availability of measles vaccine in that year
Year
1950
1951
1952
1953
2008
Cases
Vaccine
319,124 no 530,118 no 683,077 no 449,146 no
132 yes
for Disease Control, http://www.cdc.gov/vaccines/pubs/pinkbook/downloads/appendices/G/cases& deaths.PDF, retrieved on July 23, 2009.) The measles vaccine was licensed in 1963. How strong is the evidence that the vaccine reduced the mean or median number of measles cases? (Notes: (1) Include Year, Vaccine, and their interaction in a model. Include the fitted model on a scatterplot, if possible. (2) It may be particularly appropriate to address the scope of inference in the statistical conclusion for this problem.)
19. El Nin ̃o and the Southern Oscillation. (Advanced) An El Nin ̃o event is a dramatic warming of the eastern equatorial Pacific Ocean. The principal explanation for an El Nin ̃o event is a change in the pattern of atmospheric pressures, called the Southern Oscillation. Typically higher atmospheric pressure in the eastern Pacific than in the western Pacific pushes the cold water of the Humboldt current coming north from Antarctica along the South American coast westward across the equator, where it is warmed by the tropical sun. But reductions in the pressure difference allow the warmer western water to stream back east along the equator, where it hits the Western Hemisphere and spreads north and south along the coasts. Such El Nin ̃os can devastate the anchovy fisheries of Peru and Ecuador and can cause severe weather throughout the Americas.
The U.S. National Weather Service (NWS), a division of the National Oceanographic and Atmo- spheric Administration (NOAA), provides Sea Surface Temperatures (SST) and Southern Oscillation Index (SOI) measurements (http://www.cpc.ncep.noaa.gov/data/indices/). SST records monthly aver- age sea surface temperature in ıC over the region 0–10ı S latitude by 80–90ı W longitude. SOI records the difference between monthly averages of sea level pressure (mb) in Tahiti and Darwin. This exercise examines these two time series over the years from 1950 to 2010 (data file ex1519). The exercise emphasizes that one must remove structural features on time series before attempting to correlate them.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

15.8 Exercises 475
The basic tool for exploring the relationship between two time series is the cross-correlation function (CCF). If fXt g and fYt g are the two series,
CCFk D Correlation .Xt;YtCk/; for k D 0; ̇1; ̇2;:::
For positive values of the lag k, the series fXt g leads the series fYt g; for negative values of k, fYt g leads fXt g.
(a) Construct monthly box plots for each series. Such patterns most likely reflect influences from temperate-zone factors affecting both SST and SOI rather than a direct association between them. So subtract the monthly averages from the series to produce time series of anomalies. (b) Calculate the CCF between the anomaly series for lags of 􏰀16 to C16 (two years). Can you make sense of the pattern? (c) For each anomaly series, calculate the PACF for lags up to 24 months, determine the order of the autoregression, and estimate the autoregression parameters. (d) Filter each series to remove the serial correlation. (e) Calculate the CCF between the filtered series. Can you make better sense of this pattern?
Answers to Conceptual Exercises
1. (a) With only one watershed of each type, it is impossible to separate the effect of patch- cutting from natural variation between any two watersheds. There may be a confounding factor. Using many watersheds provides information about the natural between-watershed variation and gives a comparison for the variation from logging practice differences. (b) Yes, as long as each watershed has the same autocorrelation structure. (c) No.
2. There is no problem with estimating the slope, but the standard error from the regression output is not an accurate measure of the uncertainty. Tests and confidence intervals could be misleading if serial correlation is present.
3. The monthly unemployment rate is a time series. There are strong a priori reasons for expecting positive serial correlation. So the two-sample t-test should not be used without correction.
4. Two questions to consider are: (a) Can one attribute the difference to the device? and (b) Can one expect the device to give the same reduction at another similar factory? A positive response to question (a) amounts to a cause-and-effect inference. This would require random assignment of treatment conditions, which is lacking here. Indeed, there may be many other reasons why emission measurements can drop from one period to the next (increased streamflow, for example). To infer yes to (b) does not require cause-and-effect necessarily. But it would require that this factory be representative of the group of factories under consideration, which would require that it be randomly selected from that group. Again, this is lacking. So the inference is strictly internal. Chance allocation does not seem to have caused the difference, but that is about the only agent that can be eliminated.
5. Option (a) is clearly wrong. If the accomplishment drifts, they might end up with a large imbal- ance in the numbers of higher-than-average accomplishment days being in the first half of the school year. Option (c) for random selection may seem the best because the random assignment controls for a variety of factors that are impossible to account for in the analysis. But if the researchers are certain about the strong positive serial correlation, they should expect today’s accomplishment level to be very close to yesterday’s (without treatment), so any differences that appear will be more easily attributed to differences in the diet. In effect, adjacent days are paired in (b) in a manner similar to a paired-t analysis. In engineering, this design strategy is known as putting the signal where the noise is lowest.
6. No, except that the prediction is outside the scope of the data on which the regression was based. Structural changes occurring in 1996 cannot be anticipated, and the inference based on the assumption of no structural changes is speculative and uncheckable.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 16
Repeated Measures and Other Multivariate Responses
476
Responses with several components are called multivariate responses. A repeated measure is a special kind of multivariate response obtained by measuring the same variable on each subject several times, possibly under different conditions.
Many kinds of studies lead to repeated measures. Some approaches to analyzing such measures are discussed in this chapter, but there is no single way to handle them all. The best policy is to let the question of interest and the structure of the repeated measure guide the analysis.
One approach is to reduce the several response variables to one or two sum- maries that address the questions of interest, followed by performing analyses that use those summaries as responses. The summaries might consist of, for example, the average, the maximum, or the change in the repeated measure.
If there are several distinct research questions, then ordinary univariate anal- yses on distinct summaries are usually appropriate. If, however, there is a single research question that involves several facets—so the question of interest is truly a multivariate one—then the answer obtained by separate univariate analyses can be misleading. Some multivariate tools for dealing with these situations are illustrated in this chapter.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.1
CASE STUDIES
16.1.1 Sites of Short- and Long-Term
Memory—A Controlled Experiment
Studies on memory-impaired human patients and primates suggest that short-term and long-term memory reside in separate locations in the brain. Patients suffer- ing retrograde amnesia often lose access to the recent past more readily than to the remote past. Patients with damage to the hippocampal formation and with loss of short-term memory have demonstrated unimpaired memory of the remote past. These observations led S. M. Zola-Morgan and L. R. Squire (“The Primate Hippocampal Formation: Evidence for a Time-limited Role in Memory Storage,” Science 250 (12 Oct. 1990): 288–90) to hypothesize that the hippocampal formation is not a repository of permanent memory.
To test the hypothesis, they trained 18 monkeys to discriminate 100 pairs of objects, 20 pairs each at 16, 12, 8, 4, and 2 weeks prior to a treatment. The objects were toys, cans, odd pieces of wood, etc., randomly selected from a population of such objects used for behavioral studies. After learning to distinguish each of the 100 pairs of objects, 11 monkeys were treated by blocking access to their hippocam- pal formations. The remaining 7 monkeys were untreated controls. After treatment, all monkeys were retested on distinguishing the object pairs. The response mea- surements were the percentages of correctly discriminated pairs among the 20 pairs learned at each of the five pretreatment times. Display 16.1 shows the average per- centages for the treated and control monkeys, with bars indicating the half-widths
16.1 Case Studies 477
DISPLAY 16.1
Percentage of correct identifications by treated and control monkeys of objects learned at five different pretreatment times, and bars indicating 95% confidence interval (C.I.) half-widths
90 80 70 60 50
95% C.I.
2 4 8 12 16
Training Week Prior to Treatment
Treated Untreated
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Percentage Correct

478
Chapter 16 Repeated Measures and Other Multivariate Responses
16.1.2
of 95% confidence intervals constructed for each mean using only the group average and standard deviation. The raw data appear in Display 16.4.
The two central questions are: (1) Is there evidence of a difference between groups in their abilities to discriminate pairs learned in the recent past—the short term? and (2) Is there evidence of such a difference in abilities to discriminate pairs learned in the remote past—the long term?
Statistical Conclusion
For each monkey, the percentage of correctly identified pairs learned 2 and 4 weeks prior to treatment was designated as a short-term memory response, while the percentage correct of those learned at 8, 12, and 16 weeks prior to treatment was designated as a long-term memory response. Hotelling’s T 2 statistic showed con- vincing evidence that the means of the responses differed in the control and the treated groups (p-value D 0:0007). The treatment was associated with a decrease of 17.2% correct in short-term memory score (95% confidence interval: 7.8 to 26.6%) and a decrease of 􏰀0:7% correct in the long-term memory score (95% confidence interval: 􏰀9:7 to 8.3%). Two of the monkeys were moderate outliers from their groups, but their presence did not affect the conclusions drawn.
Scope of Inference
The statistical analysis suggests that blocking the hippocampal formation affected short-term but not long-term memory for the monkeys in this experiment. The ran- dom selection of object pairs and the presence of controls make it very unlikely that these effects might have been caused by more difficult object pairs being presented in the recent past. It is difficult to draw inferences beyond the specific monkeys used in the experiment, however, because the authors do not describe how the monkeys were selected. Furthermore, randomization was not used for treatment assignment, so any causal inference is speculative.
Added Note Concerning Confidence Intervals
The research hypothesis states that the group difference on one response (short term) is nonzero while the difference on a second response (long term) is zero. The exclusion of zero from the 95% confidence interval for the difference in short-term score means is interpreted as strong evidence that the first hypothesis is true. That zero is included in the 95% confidence interval for the difference in long-term score means implies that the data are consistent with the second research hypothesis, but does not prove that the difference is zero. The range of the interval plays a key role here by giving bounds for the difference. Readers of the study’s findings can assess whether differences in the range of 􏰀9.7% and 8.3% are practically meaningful.
Oat Bran and Cholesterol—
A Randomized Crossover Experiment
Studies attempting to prove that supplementing a diet with fiber reduces serum cholesterol have had mixed results. Water-soluble fibers, such as the kind available
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.2 Tools and Strategies for Analyzing Repeated Measures 479
in oat bran, seem to be effective while water-insoluble fibers are much less so. An article in the New England Journal of Medicine (Jan. 18, 1990, “Comparison of the Effects of Oat Bran and Low-fiber Wheat on Serum Lipoprotein Levels and Blood Pressure,” by J. F. Swain, I. L. Rouse, C. B. Curley, and F. M. Sacks; 320, 1746–47) suggested a possible mechanism: “Oat bran could lower serum cholesterol levels by replacing foods in the diet that contain saturated fat and cholesterol, rather than by direct action of the soluble fiber.”
Twenty volunteer hospital employees were selected as subjects, after screen- ing for excess weight, medications, and hypertension. They entered a randomized, double-blind, crossover trial using diet manipulation. Two dietary supplements were prepared as entrees or muffins. A high-fiber preparation used oat bran, and a low-fiber preparation used refined, low-fiber wheat. All participants consumed their normal diet during a one-week baseline period, at the end of which they had blood chemistries taken. Then subjects were randomly assigned to either the high- or low-fiber dietary supplement, to be included in their diets for six weeks. At the end of six weeks, a second blood chemistry was obtained. Subjects returned to their normal diets for another two weeks, then crossed over to the opposite supplement from the one that they had received first. After six weeks on that diet a third chemistry was obtained.
Considerable numbers of measurements were taken during the course of the experiment. Display 16.2 shows only the three readings on total serum cholesterol (in milligrams per deciliter) prior to treatment, after the high-fiber diet supplement period, and after the low-fiber supplement period. The subjects in Display 16.2 have been ordered roughly by their general cholesterol levels, which vary considerably. The data appear in Display 16.9.
Is there evidence that the high-fiber supplements lowered serum cholesterol? If they did, but if the reduction is due to a reduction in fat consumption, then there might also be lower cholesterol after the low-fiber diet supplements. So, is there any difference between cholesterol measurements taken after the low-fiber and those taken after the high-fiber supplements?
Statistical Conclusion
The high-fiber supplement caused an estimated 13.85 mg/dl reduction in cholesterol (95% confidence interval for reduction is 4.17 to 23.53mg/dl) and the low-fiber supplement caused an estimated 13.00 mg/dl reduction (95% confidence interval is 3.48 to 22.52 mg/dl). The data are consistent with there being no difference in high- fiber and low-fiber effects (two-sided p-value D 0:81. A 95% confidence interval for high-fiber effect minus low-fiber effect is 􏰀10:5 to 8.8 mg/dl).
16.2 TOOLS AND STRATEGIES FOR ANALYZING REPEATED MEASURES
How to Recognize Multivariate Responses
Recall that the experimental unit in an experiment is the object to which the treat- ment is applied. A sampling unit in an observational study is the object that is
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

480 Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.2
Total serum cholesterol before treatment (baseline) and after dietary supplements of high- and low-fiber content: subjects ordered roughly from smallest to largest cholesterol levels
Subjects
Baseline High-fibe r Low-fiber
100 150 200 250
Total Serum Cholesterol (mg/dl)
selected from a population. If there are several response measurements for each experimental or sampling unit, then the response is multivariate. In the monkey memory data, for example, the treatment is applied to the monkeys, so the mon- keys are the experimental units and the five proportions constitute a five-variable response. In the oat bran study the treatments are applied to the volunteers in the study. Since there are three cholesterol readings for each volunteer, there is a three-variable response.
The responses need not be analyzed in the form in which they come. A few summarizing combinations of them may better address the questions asked. The objective in seeking such summaries is to reduce the original responses to a new set, where each new response addresses a different question of interest.
Repeated Measures
A repeated measure is a special kind of multivariate response in which the same vari- able is measured several times (or possibly at several locations) for each sampling or experimental unit, possibly under different conditions. The three measurements of cholesterols for the subjects in the oat bran study are a repeated measure.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.2 Tools and Strategies for Analyzing Repeated Measures 481
Since the different responses are measurements of the same variable under different conditions, simple summarizing functions of the responses are particularly relevant.
16.2.1 Types of Repeated Measures Studies Longitudinal Studies
In a longitudinal study the repeated measurements are of the same variable on the same subjects at different points in time. The sampling units in an observational longitudinal study typically belong to different groups and have different explanatory variable values. The experimental units in a randomized longitudinal experiment are given the treatments at the beginning of the study.
In one observational longitudinal study, IQ scores were obtained at four differ- ent ages from a sample of adopted children. It was desired to see how their IQ scores at different ages were related to the IQ scores of their natural and adoptive parents. In one randomized longitudinal experiment, hypertensive patients were assigned to receive either a new treatment or a standard treatment for reducing blood pressure. Their blood pressure was then measured every three months for five years.
Crossover Experiments
In a crossover experiment each subject receives more than one treatment level. The subjects’ first measure is the response after one level of the treatment. Then they cross over to another level, and their second measure is the response after that level of the treatment, and so on. The subjects are randomly assigned to one of several orders for receiving the treatment levels.
The oat bran study is an example of a crossover experiment with a two-level treatment. Half of the subjects were given the high-fiber diet first and the low-fiber diet second and the other half were given the diets in the opposite order. Cholesterol level was measured at the end of each diet period.
Split-Plot Experiments with Repeated Measures over Time
A split-plot experiment, for examining two separate treatments, has features of both the longitudinal study and the crossover experiment. A first randomization is used to allocate experimental units to one of several levels of the first treatment. Then, in a second randomization, the order of presentation of levels of a second treatment is determined and all levels of the second treatment are applied as in a crossover exper- iment. Notice that all experimental units receive all levels of the second treatment (the split-plot treatment) but only one level of the first treatment (the whole-plot treatment).
For example, suppose that patients with high blood pressure are randomly assigned to receive either a new drug or a standard drug for reducing blood pressure. Furthermore, the blood pressure of each patient is measured after six weeks on a standard diet and after six weeks on a special diet—with random assignment to the order in which the diets were given. Each subject receives only one of the drugs, but both of the diets. A key feature of split-plot experiments is that they involve two stages of randomization.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

482
Chapter 16 Repeated Measures and Other Multivariate Responses
16.2.2
Split-Plot Experiments with
Repeated Measures at Several Locations
Split-plot experiments are often used for agricultural trials when the repeated measure is over space rather than time. Large fields are randomly assigned to receive one of several levels of the first treatment. Each field is composed of a number of plots, which are randomly assigned to receive levels of the second treatment.
To explore the combined effects of type of fertilizer and crop variety on crop yield, for example, the fields are randomly assigned to receive one of the fertilizers. Then the plots within the fields are randomly assigned to receive one of the crop varieties. Each field is assigned to receive only one of the fertilizers, but each field receives every crop variety.
Profile Plots for Graphical Exploration
A profile plot is a scatterplot showing the response versus time or versus condition— whichever is appropriate—drawn separately for each subject. This plot should be customized to best address the questions of interest without undue clutter. For example, if there are only a few subjects, draw the profile plots on the same graph with lines connecting the points belonging to each subject and different line types (dashed or dotted, for example) showing the different treatment groups. With many subjects, however, this type of display is messy. A reasonable display strategy is to separate the profiles into different panels.
Display 16.3 is a profile plot showing the percentage of objects correctly iden- tified by the 18 monkeys in the memory-loss experiment, versus the weeks prior to treatment when the objects were learned. The broken lines show the short-term and long-term averages. The control monkeys, typified by Spank, tended to iden- tify about 80% of those objects taught within 2 to 4 weeks prior to treatment, but only about 70% of objects taught between 8 and 16 weeks prior to treatment. For the treated monkeys, typified by Irv, the corresponding percentages were roughly 60% and 70%. The preliminary indication, therefore, is that the treatment may have had an adverse effect on short-term memory but no effect on long-term memory.
Profile plots are valuable for preliminary analysis of repeated measures because they often exhibit a transparent relationship that is not evident from a perusal of the raw, multivariate data; and they often help focus the analysis on what is important. A plot of average responses versus time or condition, as in Display 16.1, is useful for gleaning an overall effect and structuring a model. The profile plots complement this by showing the subject-to-subject variability and clarifying to what extent the general pattern is evident in different subjects.
Strategies for Analyzing Repeated Measures
Univariate Analysis on a Summary of the Multivariate Response
The most practical strategy is to perform a univariate analysis on a single summary of the multivariate repeated measure, if a summary can be found that directly addresses a question of interest. Typical summaries are the profile average, the
16.2.3
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 16.3
90
80
70
60
50
40
90
80
70
60
50
40
90
80
70
60
50
40
90
80
70
60
50
40
90
80
70
60
50
40
Control Monkeys
16.2 Tools and Strategies for Analyzing Repeated Measures 483
Profile plots: percentage correct identification of 20 pairs of objects, versus week prior to treatment when learned (memory data)
Percentage Correct Identification Percentage Correct Identification
Spank
Poet
2 4 8 12 16
Irv
Joey
Sport
24 81216
Chim
Jessie
2 4 8 12 16
Chak
Phil
2 4 8 12 16
Alf
24 8 1216
Treated Monkeys
Edy
Just
Cornelius
24 81216
Allen
Junior
Duncan
24 81216
Poe
Andy
Short Long term term
24 81216
Weeks Prior to Treatment when Objects Were Learned
final response, the minimum, the maximum, a treatment difference, the time at which the maximum occurs or at which another condition is attained, and the estimated slope in a regression of the response on time.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

484 Chapter 16 Repeated Measures and Other Multivariate Responses
The univariate analysis will have one of two forms: (1) In longitudinal studies, the focus is on comparing subjects that receive different treatments, so the appro- priate tools are those that compare several groups, possibly after adjustment for related covariates. (2) For crossover or split-plot studies, the focus is on comparing treatments on a single unit and summarizing response variables as differences—such as score after treatment minus score after control—and analyses focus on whether the mean differences are zero, possibly after accounting for covariates.
Separate Univariate Analyses on Each of Several Summaries
If there are several summarizing responses that address several distinct research questions, then it may be appropriate to analyze each response separately with a univariate analysis as long as the separate responses are not strongly correlated. For example, suppose IQ test scores are measured at ages 2, 4, 8, and 13 for a sample of adopted children. It is desired to relate these repeated measures to the IQ test scores of the natural and foster mothers. Two separate questions concerning the relative effects of heredity and environment might be addressed: (1) Is the child’s overall IQ score associated with the foster mother’s IQ score, after accounting for the effect of the natural mother’s IQ? (2) Is the degree of change in IQ score from age 2 to age 13 associated with the foster mother’s IQ? The first question may be addressed by taking the average of the four IQ measures as the response, and regressing that response on the two mothers’ IQ scores. The second may be addressed by taking as a response either the difference (IQ at age 13 minus IQ at age 2) or perhaps the slope in the regression of IQ on year, computed separately for each child. The usual regression analyses will provide measures of uncertainty pertaining to each question individually.
Multivariate Analysis on Several Summaries
If there is a single research question with several components, or if the separate responses are correlated, then univariate analyses can provide misleading answers. Multivariate techniques are needed to supply measures of uncertainty pertaining to the joint analysis of several correlated responses.
In the memory-loss study, for example, the researchers hypothesized that the hippocampal formation is not a repository of long-term memory. They believed their hypothesis could be supported by simultaneously showing that blocking the hippocampal formation does have an effect on short-term memory (to show that their experimental procedure is working) and that it does not have an effect on long-term memory. There is a single research issue involving a two-part question. The measures of uncertainty should pertain to the two answers jointly.
A multivariate analysis provides a way of summarizing measures of uncertainty from several univariate analyses and adjusting for their correlations. These tech- niques parallel those already considered for single responses. For example, there are extensions of one-sample and two-sample t-tests, analysis of variance, and regres- sion to handle multivariate responses. The first two of these are demonstrated in the sections that follow.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.3
Treating Subjects as Levels of a Factor
The chimp learning time study in Section 14.1.1 was a repeated measures study with chimps as subjects. For each chimp, learning times were measured on each of 10 different signs of American Sign Language, producing a 10-variable response for each subject. Two-way analysis of variance was used to estimate sign effects on learning times, treating chimps and signs as factors. This approach is justifiable only when, after accounting for treatment (sign) effects, the different observations on the subjects (chimps) are independent. This would not be the case if there were carryover effects depending on the order in which the treatments are given.
There is often no direct interest in the particular subjects used in a repeated measures study. If the independence assumption is satisfied, subjects may be treated as blocks. If, however, the subjects are randomly selected from some broader popu- lation of subjects to which inference is desired, then one should treat subject effects as random effects (see Section 14.5.1).
COMPARING THE MEANS
OF BIVARIATE RESPONSES IN TWO GROUPS
Why Separate Univariate Analyses
May Fail to Address a Multivariate Question
It is supposed in this section that the question of interest is truly a multivariate one. For example, if researchers are investigating the effect of two treatments on the size of animals, and size is thought to be measured by both weight and height, then there is a single question about size, which happens to have two components. The question is a multivariate one.
The two-response analysis differs from two separate one-response analyses in that it must allow for possible correlation between the response variables. A naive solution is to obtain separate confidence intervals for each response individually, using the two-sample t-tools. This conveys the impression that the region of plausi- ble differences in means is a rectangle bounded by the confidence intervals. However, it ignores the correlation between the two estimated differences. The correct con- fidence region for both differences in means, simultaneously, has the shape of an ellipse.
Unfortunately, an ellipse is both difficult to compute and to present (and the dif- ficulty is even more severe with more than two responses). An adjustment, however, can be used that modifies the naive one-response confidence intervals to conserva- tively approximate the correct confidence ellipse. Thus, the recommended practical procedure consists of calculating univariate confidence intervals for each response component individually, but with Hotelling’s T2 adjustment to account for the number of components in the multivariate response and their correlations.
Summary Statistics for Bivariate Responses
It will help to refer to Display 16.4, which shows the data on the memory exam- ple. There are two groups of subjects: the control group with 7 monkeys and
16.3 Comparing the Means of Bivariate Responses in Two Groups 485
16.3.1
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

486 Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.4
Control group
Calculation of summary statistics for the bivariate response, short-term memory (weeks 2 and 4 average) and long-term memory (weeks 8, 12, and 16 average): memory data
Treated group
In pairs from week #
2 4 8 12 16
Memory scores
Short Long
Deviations from group average
Short Long
Product
In pairs from week #
2 4 8 12 16
Memory scores
Short Long
Deviations from group average
Short Long
Product
the treated group with 11. A short-term memory score is defined as the percent- age of object pairs learned 2 and 4 weeks prior to treatment that were correctly distinguished. So Spank, the first control monkey, had short-term memory score
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.3 Comparing the Means of Bivariate Responses in Two Groups 487
D .95 C 75/=2 D 85:00%. The second response variable, the long-term mem- ory score, is the percentage of object pairs taught 8, 12, and 16 weeks prior to treatment that were correctly distinguished. Spank’s long-term memory score was .80 C 65 C 70/=3 D 71:67%.
Let Yijk denote the measurement of the ith response variable on the kth subject within group j . Here i is 1 for short-term or 2 for long-term memory score; j is 1 for the control or 2 for the treated group; and k is 1, 2, . . . , 7 (in the control group) or 1, 2, . . . , 11 (in the treated group). Thus Y214 .D 65:00/ is the long-term memory score for the fourth control monkey, Alf. In the dot notation, Y ij : represents the average of the ith response variable for all subjects in group j.
The remainder of Display 16.4 exhibits the summary statistics required for
the multivariate analysis. The averages and sample variances for each response are
shown for each group. Y ij : represents the average of the i th response in group j
and s2 represents the sample variance for the ith response in group j, based on ij
nj 􏰀1degreesoffreedom;forresponsevariableiD1or2andgroupjD1or2. The final column of Display 16.4 contains the products of residuals (deviations from group average) from the two response variables. The sample covariance between the two response variables is the sum of these products divided by the degrees of
freedom:
nj
cj D 1 X.Y1jk 􏰀Y1j:/.Y2jk 􏰀Y2j:/
16.3.2 Pooled Variability Estimates
Sample variances and covariances are pooled across groups in the same way that variances were pooled (see Section 5.2.2). The pooled estimate of variance for response i is obtained by combining s2 from group 1 and s2 from group 2 by
.nj 􏰀1/kD1 calculated separately for groups j D 1 and 2.
i1
.n1 􏰀 1/s2 Si2 D i1
i2
.n1 Cn2 􏰀2/
for responses i D 1 and 2 separately. Covariances are pooled in the same way:
Pooled estimate of covariance D C D .n1 􏰀 1/c1 C .n2 􏰀 1/c2 : .n1 Cn2 􏰀2/
These calculations for the memory-loss example appear in Display 16.5.
Pooled Estimate of Correlation
The sample correlation coefficient of Section 7.5.4 between two variables is a scaled version of the sample covariance. For each group a sample correlation between the
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
C .n2 􏰀 1/s2 i2

488
Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.5
Pooled estimates of variance and covariance for the memory example
16.3.3
rjD cj ; .jD1;2/: s1j s2j
If it is assumed that the correlation between the two responses is the same in both groups, then a pooled estimate is appropriate. This is not obtained by pooling individual sample correlation coefficients, but by using the formula based on the pooled estimates of covariance and standard deviations:
RDC: S1 S2
This estimates the degree of correlation between the two responses and plays an important role in the Hotelling’s T 2 test for comparing the two bivariate means.
Hotelling’sT2 Statistic
The summary statistics in Display 16.5 give estimates of population quantities in a specific model. One ideal random sampling model has two populations of subjects, with two response variables measured on each, with the following assumptions:
1. The mean of response i in population j is ij .i D 1;2Ij D 1;2/.
2. The standard deviation, i , of response variable i is the same in both popu-
lations, for both responses i D 1 and 2.
3. The population correlation between the two response variables is the same in
both populations.
4. Subjects’ responses are distributed around their means according to a bivariate
normal distribution.
5. Subjects are randomly selected from each population.
6. The two groups of sampled subjects are selected independently.
A bivariate distribution describes relative frequencies of occurrence in the population of pairs of values for the bivariate response. In a bivariate normal distribution each component, individually, has a normal distribution and every possible linear combination of the components also has a normal distribution.
Short term Long term
{6(19.64) + 10(65.11)} 16
two responses may be calculated as
Control Treated Pooled
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.3 Comparing the Means of Bivariate Responses in Two Groups 489
Hotelling’s T 2 statistic is a tool for drawing joint inferences about differences in group means for both variables:
ı1 D11 􏰀12 and ı2 D21 􏰀22:
The Student’s t-ratio may be used to draw inferences about each difference, ıi,
individually:
ti D.Yi1:􏰀Yi2:/􏰀ıi: SE.Yi1:􏰀Yi2:/
n1 n2
Hotelling’s T 2 combines the two individual t -ratios into a single quantity,
The standard error of the difference between group averages is, as before, SE.Yi1:􏰀Yi2:/DSis1 C 1
for responses i D 1 and 2.
adjusting for the correlation of the two response components:
Hotelling’s T 2 D t12 C t2 􏰀 2Rt1t2 : 1􏰀R2
When T 2 is multiplied by a degrees of freedom factor, its sampling distribution is the F -distribution with numerator degrees of freedom 2 and denominator degrees of freedom n1 Cn2 􏰀3 (see Section 16.5.1 for an extension to more than two responses):
One use of T 2 is for testing to see if the data show group differences on either response variable. This is a screening test, with the null hypothesis that
H0Wı1 D0 and ı2 D0;
and the alternative hypothesis that at least one of the differences is nonzero. To perform the test, first calculate the usual Student’s t-statistics using the hypoth- esized (zero) differences; then calculate the T 2 statistic based on these and the pooled estimate of correlation, R. Convert it to an F -statistic, and see if the result looks like a typical F -value. Failure of the hypothesis in any way should result in a larger than anticipated F -statistic, so the appropriate p-value is the tail area in the F -distribution above the observed statistic. Display 16.6 develops this test for the memory-loss example.
The F -statistic with 2 and 15 degrees of freedom is 12.32 and has associated p-value D 0:0007, showing strong evidence against the hypothesis of no treat- ment effects. The individual t-statistics suggest that there is a treatment effect
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
F D .n1 Cn2 􏰀3/ T2 has an F2;.n1Cn2􏰀3/ distribution: 2.n1 Cn2 􏰀2/

490
Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.6
Hotelling’s T 2 calculations for the memory example Short Term
1
(Control – Treatment)
= (80.36 – 63.18)
Long Term
– 0.71 = (67.62 – 68.33)
3.22 = 6.66 1 + 1 7 11
–0.22 = –0.71 3.22
17.18 2 Standard errors 3.35
Average differences
3
t-statistics for individual
hypotheses of no difference
42 Hotelling’s T
5
F-statistic
= 6.93
= 17.18 3.35
1 + 1 7 11
5.12
26.28 12.32
(5.12)2 + (–0.22)2 –2(5.12)(–0.22)(–.0765)
= 2 1– (–.0765)
(15) (26.28)
= (2) (16) , d.f. = 2, 15
16.3.4
on short-term memory but contain no evidence of an effect on long-term memory. Before making these conclusions more precise with confidence intervals, it is wise to examine the assumptions upon which they are formally justified.
Checking on Assumptions
The distributional assumptions for the ideal model include the assumptions under- lying the individual t-tools for each response. Consequently, all diagnostic tools introduced earlier, such as the residual plots, apply here. Assumption 3—that the correlation between response components is the same in both groups—is new and important, so a new check is needed. Since the multivariate comparison is not very robust to departures from normality, careful attention to the normality of each component is also required. Normal probability plots are useful for this purpose (see Section 8.6.3).
Scatterplots of the response variables or their residuals show the nature of the joint distributions. Display 16.7, for example, is a coded scatterplot of the two responses in the memory problem, with distinct symbols for each group.
When data conform to a bivariate normal distribution (assumption 4), each group forms an elliptical cluster of points. The highest concentrations of points are at the centers, and the concentrations taper off from the centers. When the groups have the same standard deviations for each variable (assumption 2), the spread along each of the axes of the ellipse is roughly the same for both groups. When both groups have the same standard deviations and the same correlation between responses (assumption 3), the axes of orientation of the group ellipses are the same.
Looking at Display 16.7, all these features would appear plausible were it not for Edy and, perhaps, Chak. Edy’s responses appear atypical of the treated group (and more typical of the controls). In comparison to the variability in the rest of the diagram, Chak’s responses may also be anomalous. Examination of the resulting
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.3 Comparing the Means of Bivariate Responses in Two Groups 491
DISPLAY 16.7
Scatterplot of short- and long-term memory scores, by treatment group
Treated Control
Edy
Chak
80 70 60 50
50 60 70 80 90
Short-Term Percentage Correct
multivariate analysis with and without these outliers is considered in Exercise 10 of this chapter.
16.3.5 Confidence Ellipses and Individual Confidence
Intervals for Differences in Bivariate Means
Hotelling’s T 2 statistic also forms the basis for establishing confidence regions on the differences in means. The details of the calculations are difficult and not discussed here, but the rationale is fairly straightforward. A method for obtaining a 95% confidence region jointly for the difference in means of the first component and the second component of the response, ı1 and ı2, requires testing all possible hypothesized values of ı1 and ı2, and including those in the confidence region for which Hotelling’s T2 test produces a p-value greater than 0:05. Methods for calculation do not require actually testing all possible hypothesized values. When there are two components to the response, this procedure produces an elliptical confidence region, as shown by the bold ellipse in Display 16.8.
Elliptical confidence regions are the best technical description of what are and are not plausible values for the mean differences. Any values inside the ellipse are more consistent with the data than any values outside it. The confidence coefficient correctly assesses the frequency with which the procedure captures the correct population mean differences.
If there are more than two questions of interest, there will be more than two responses, and the confidence regions will be ellipsoids in higher dimensions. Ellip- soids are difficult to summarize in lower dimensional form for publication and are
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Long-Term Percentage Correct

492 Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.8
Ninety-five percent confidence ellipse for differences in long-term and short-term memory means, and approximate confidence rectangles, constructed with T 2 and t multipliers
Approximation using Student’s t-distribution multiplier
95% confidence ellipse
Approximation using Hotelling’s T 2-distribution multiplier
10
5
0
–5
–10
10 20 30
Short-Term Treatment Effect
also difficult to interpret. Therefore, it is important to devise a sensible way of conveying approximately the same information using separate intervals for each parameter, even though ellipsoids are technically superior.
Separate Confidence Intervals for Each Component
Separate confidence intervals for differences in means ı1 and ı2 have the form: .Yi1:􏰀Yi2:/ ̇ Multiplier  SE.Yi1:􏰀Yi2:/
for components i D 1 and 2. Multiplier is a multiplier chosen to give the desired cov- erage. Display 16.8 exhibits separate 95% confidence intervals (all subjects included) corresponding to two different choices for the multiplier.
One choice of multiplier is based on Hotelling’s T 2 -distribution: Multiplier D s2.n1 C n2 􏰀 2/F2;n1Cn2􏰀3.1 􏰀 ̨/:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
n1 Cn2 􏰀3
Long-Term Treatment Effect

16.4
The sample sizes were 7 and 11, so the degrees of freedom for F are 2 and 15. The 95th percentile of F2;15 is 3.682 so Multiplier D 2:803. The bold outer rectangle in Display 16.8 is the region where both the mean differences are within their separate intervals, with at least 95% confidence, as constructed from this T 2 multiplier.
The naive choice of multiplier—the Student’s t-distribution percentile—ignores the multivariate nature of the response. Its pooled degrees of freedom are 16, giving the multiplier of 2.120. The inner rectangle in Display 16.8 shows the region where both mean differences are within their individual t-based intervals.
Comparing the two rectangles with the elliptical 95% confidence region, one first notices that the t-based intervals have short ranges that exclude values that are in agreement with the data, according to the ellipse. This naive confidence region roughly approximates the ellipse when the correlation between responses is close to zero, but can seriously err when the correlation is substantially nonzero.
The T 2-based rectangle exactly matches the highest and lowest possible values admitted for each difference by the ellipse. The rectangle, therefore, includes all pairs of values within the ellipse, but it also includes many other pairs that are not in the ellipse. Consequently, the T2-based intervals have considerably more confidence attached and should be reported as having “at least 95% confidence.” They are conservative but are safer than the naive intervals when the correlation between responses is substantially nonzero.
Other multipliers, intermediate between the two displayed in Display 16.8, are possible. They arise from considerations similar to those in the multiple comparisons problem of Section 6.4. Bonferroni and other multipliers all produce confidence rectangles, and each excludes some values that are plausible by the ellipse method while including some that are not.
Extension to Higher Dimensions
Hotelling’s T2 test is also available for comparing two groups of multivariate responses with more than two dimensions. Although the formula for T 2 requires matrix algebra and is not presented here, statistical computer packages can do the arithmetic. If the response has p dimensions, then the formula for arriving at an F-statisticfromT2 isF D.n1 Cn2 􏰀p􏰀1/T2=Œp.n1 Cn2 􏰀2/andthiswould be compared to an F -distribution with p and n1 C n2 􏰀 p 􏰀 1 degrees of freedom to obtain a p-value for the test of equal multivariate means.
ONE-SAMPLE ANALYSIS WITH BIVARIATE RESPONSES 16.4.1 Treatment Differences in the Oat Bran Study
The question “Does the high-fiber diet reduce cholesterol?” can be investigated by testing whether the mean of the difference, cholesterol after high-fiber diet minus cholesterol after control diet, is zero. The question “Is the reduction in cholesterol the same after the low-fiber diet as after the high-fiber diet?” can be investigated by
16.4 One-Sample Analysis with Bivariate Responses 493
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

494
Chapter 16 Repeated Measures and Other Multivariate Responses
16.4.2
testing whether the mean of the difference, cholesterol after high-fiber diet minus cholesterol after low-fiber diet, is zero.
Whether each paired t-test should be conducted separately or whether a multi- variate adjustment for the correlation between the differences is necessary depends on whether these are considered as separate research questions or as two compo- nents of a single research question. The position taken here is that it is the latter. That is, to establish that a reduction in cholesterol after a high-fiber diet is due to the elimination of other foods from the diet, rather than due to direct effects of high fiber, the experiment must show that there is a high-fiber effect and that the effect is not different from the low-fiber effect. Both together support the research hypothesis.
There are two responses for each subject, and the inferential goal is to test whether the means of each are zero. The problem, therefore, is one of test- ing whether the means in a bivariate response are zero, from a single sample. Display 16.9 shows the raw cholesterol measurements and the computed differences of interest. The analysis could use separate one-sample t-tests on the two columns of differences (i.e., two separate paired t-tests). To account for correlation of the separate responses, a Hotelling’s T 2 adjustment will be used.
Summary Statistics for
a Single Sample of Bivariate Responses
Let Yij be the jth measurement on the ith response. For the oat bran example, Y1j refers to the cholesterol after the high-fiber diet minus the baseline cholesterol for the jth subject; and Y2j is the cholesterol after the high-fiber diet minus the cholesterol after the low-fiber diet, for the jth subject. The sample averages along with the sample standard deviations and correlation between these two variables appear in Display 16.9. Since there is only a single sample, no pooling is needed.
Hotelling’s T 2 Test That the Means
of a Bivariate Response Are Both Zero
Based on a model in which subjects are randomly selected from a population and where their responses have a bivariate normal distribution with means ı1 and ı2, the Hotelling’s T 2 test statistic for the hypothesis
HW ı1 D 0 and ı2 D 0
may be constructed from the individual, univariate t-statistics and the sample correlation coefficient for the two response components. If t1 and t2 are the one- sample t-statistics for HW ı1 D 0 and HW ı2 D 0, respectively, and if r is the sample correlation coefficient, then
T 2 D t 12 C t 2 2 􏰀 2 r t 1 t 2 : 1􏰀r2
16.4.3
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.4 One-Sample Analysis with Bivariate Responses 495
DISPLAY 16.9 Cholesterol measurements for subjects after three diet regimes, with two comparison measures Comparisons
Baseline High fiber Low fiber Hi – Base Hi – Lo Fiber order
Average: Sample SD: Correlation:
This formula is the same as for the two-sample combination of t-statistics, but the degrees of freedom differ here. The statistic converts to an F -statistic as follows:
F-statisticD .n􏰀2/ T2I d.f.D2;n􏰀2: 2.n􏰀1/
The p-value is the proportion of values from the F-distribution that are greater than this test statistic. Small p-values are taken as evidence that at least one of ı1 and ı2 is nonzero. The procedure is demonstrated on the oat bran data in steps 1 through 6 of Display 16.10.
Approximate Confidence Intervals
More specific conclusions can be made from constructing separate confidence intervals, using multipliers based on Hotelling’s T 2. The multiplier is
Multiplier D s 2.n 􏰀 1/ F2;n􏰀2 .:95/; .n􏰀2/
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

496 Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.10 Inferential tools applied to the oat bran data
1
2
3
4
5
6
7
Summary statistics:
Hi – Base
–13.85 15.80
Hi – Lo
– 0.85 15.78
Average: Sample SD:
Sample Size: Correlation:
20 0.516
Calculate standard errors for the average effects:
SE1 = 15.80 = 3.533 ; SE2 = 15.78 = 3.528 20 20
Calculate individual one-sample t-statistics:
t1 = –13.85–0.0 = –3.920 ; t2 = –0.85–0.0 = –0.241
3.533 3.528 Combine into Hotelling’s T 2:
T 2 = (–3.920)2 1 (–0.241)2 – 2 3 (0.516 ) 3 (–3.920) 3 (–0.241) = 19.693 1 – (0.516)2
3 19.693 5 9.328
Convert to an F- statistic: F-statistic = 18
19 3 2 Look up the p-value:
Numerator d.f. = 2
;
Denominator d.f. 5 18 provides convincing evidence that
p-value = 0.0017
Construct 95% separate confidence intervals:
at least one mean is nonzero
F2,18(0.95) = 3.555 from F-distribution table
Multiplier =
19 3 2
18 3 3.555 5 2.740
(2.740) 3 (3.533) = (2.740) 3 (3.529) =
Hi – Base: Hi – Lo:
–13.85 –0.85
–23.5 mg/dl – 4.2 mg/dl
+8.8 mg/dl –10.5 mg/dl
where F2;n􏰀2 .:95/ is the 95th percentile in the F -distribution. As shown in step 7 of Display 16.10, the high-fiber diet apparently caused a very significant reduction in cholesterol, but so too did the low-fiber diet. The difference in cholesterol reduction from the two diets appears to be small.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.5
16.4.4 Checking on Assumptions
With crossover designs, there is a danger that the responses of a subject to treat- ments may depend on the order in which the treatments are presented. This should be anticipated at the design stage, where different orders of presentation can be arranged and then randomly assigned to subjects. The oat bran study included three different diets. These were presented in two orders: (1) control followed by high-fiber followed by low-fiber (HL) and (2) control followed by low-fiber followed by high-fiber (LH). Random assignment of the two orders ensures that an order effect will not be confounded with the treatment effect. Nevertheless, it is impor- tant to check for an order effect. Its presence could invalidate the Hotelling’s T 2 comparison.
Display 16.11 is a scatterplot of the first response component versus the sec- ond, with codes indicating order of treatment presentation. The group that received the high-fiber diet first has slightly smaller averages on both components (suggest- ing that this group may exhibit somewhat lower mean cholesterol measurements after their high-fiber supplement period). A formal test has p-value D 0:41, indi- cating that any apparent carryover effect could just be due to sampling error. This test is the two-sample Hotelling’s T 2 test of Section 16.3.
RELATED ISSUES
16.5.1 Two-Sample Analysis with More Than Two Responses
Extending the Hotelling’s T 2 tools to situations involving more than two response variables is far from trivial. It is nearly impossible to tackle the calculations
16.5 Related Issues 497
DISPLAY 16.11
High-baseline and high–low cholesterol levels, by the order of assignment
Low fiber before high fiber (n = 11) High fiber before low fiber (n = 9)
40 30 20 10
0 –10 –20 –30
–40
–40 –30 –20 –10 0 10 20
High Fiber Minus Baseline Cholesterol Difference (mg/dl)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
High Fiber Minus Low-Fiber Cholesterol Difference (mg/dl)

498
Chapter 16 Repeated Measures and Other Multivariate Responses
16.5.2
for T2 without an understanding of linear algebra, including the use of matrix algebra. Nevertheless, the Hotelling T2 test statistic for comparing equality of two q-dimensional means from populations with the same variance and correlation structure can be calculated with statistical computer packages. Suppose that there are q responses for each subject and that there are n1 subjects in group 1 and n2 subjects in group 2. A p-value is obtained by comparing
F-statisticD.n1 Cn2 􏰀q􏰀1/T2=Œq.n1 Cn2 􏰀q/
to an F -distribution with q and .n1 C n2 􏰀 q 􏰀 1/ degrees of freedom. Drawbacks of this tool are that it is not robust if the variances and correlations differ in the two populations and it is not robust if the population distributions are not normal.
One-Sample Analysis with More Than Two Responses
The Hotelling’s T 2 test that the means of each response are zero also extends to the case of q response variables per subject. The T 2, once calculated by the computer, converts to an F -statistic by
F -statistic D .n 􏰀 q/T 2=Œq.n 􏰀 1/;
which is compared to an F -distribution with q and n 􏰀 q degrees of freedom.
More on T 2 Multipliers
In the summary of the statistical findings for the oat bran study, 95% confidence intervals were stated for three different response characteristics. One desirable fea- ture of using the T 2 multipliers is that confidence intervals may be constructed for any and all linear combinations of the basic response variables. Their use maintains at least 95% confidence that all population combinations are captured by their sam- ple intervals. To do this requires that q be one less than the number of repeated measures (as was the case in the oat bran example).
Multivariate Regression and Multivariate Analysis of Variance (MANOVA)
The conceptual difficulties of dealing with regression problems that have multi- variate responses are generally similar to those that arise with one-sample and two-sample analysis. From multiple responses several interesting comparison mea- sures are constructed, and each is analyzed separately by multiple linear regression. The role of multivariate analysis is to provide an overall assessment of the strength of the evidence about all comparisons, while taking into account that they are correlated.
Extra-Sums-of-Squares (and Cross-Products) Tests
The extra-sum-of-squares F -test for comparing a full to a reduced model generalizes directly to multivariate testing. In order to compare a model for all the responses with a more restrictive model, residuals of each response are calculated from the
16.5.3
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.5 Related Issues 499
fits of both models. If the residual-sum-of-squares and cross-products matrices are T in the reduced model and R in the larger version, the extra-sum-of-squares and cross-products matrix is .T 􏰀 R/. Tests of hypothesis are based on the matrix R􏰀1.T 􏰀 R/. Several test statistics, such as Wilk’s lambda, can be constructed from the characteristic roots (eigenvalues) of the matrix.
16.5.4 Planned and Unplanned Summaries
of Multivariate Measurements as Response Variables
In the two examples discussed in this chapter, more than two response variables were originally measured for each subject, but these were condensed to just two. These two responses were specifically related to the twofold nature of the research hypotheses. These are not instances of data snooping, however, since the deci- sions on how to summarize were based on the research question or on the inherent structure of the data, rather than on which summaries seemed to work best.
In contrast, some studies intentionally employ a strategy where a multitude of responses are measured to see what happens when experimental factors are varied. A few summary response variables may synthesize what the researcher observes. Using this data snooping strategy greatly diminishes the inferential strength of the study. It is best to treat the conclusions from such a study as suggestive and in need of objective verification by more focused research.
16.5.5 Planning an Experiment:
Benefits of Repeated Measurements
It is sometimes possible to give every treatment to every subject. In this case the subject essentially serves as a block, so for this case the benefits of the repeated measures design parallel those of a randomized block design. If substantial variation occurs between subjects, a more precise assessment of treatment effects can be achieved by within-subject comparisons. Thus, the between-subject variability is eliminated from the estimated treatment effects.
Consider the problem of designing the oat bran study (Section 16.1.2). The variability of baseline cholesterol levels (SD D 31mg/dl) might be available in advance. Previous studies probably suggest the amount by which an oat bran based high-fiber diet supplement can lower cholesterol. Suppose this is 14 mg/dl. If it is desired to randomly assign three different diets—control, high fiber, and low fiber— to different subjects, how many subjects should be assigned to each treatment group? With n subjects per treatment, the standard error of a treatment difference will be about .31:0/p.2=n/. Getting a treatment difference of 14 mg/dl declared statistically significant requires the t-ratio 14=f31:0p.2=n/g to be around 2.0 or larger. With n D 40 subjects in each group—a total of 120 subjects overall—the anticipated t-statistic will be 2.02, which is barely significant. Taking n D 40 is risky, because each of the two treatment comparisons will have to be modified to account for the multiple comparisons problem. A larger n is also advisable to protect against getting a somewhat unlucky sample. All in all, it would seem reasonable to involve 150 or more subjects in the study.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

500
Chapter 16 Repeated Measures and Other Multivariate Responses
16.5.6
The actual study, however, involved only 20 subjects. The high-fiber average minus the baseline average was 13.85 mg/dl; and the baseline sample standard deviation was indeed 31.0 mg/dl. How is it that the observed difference gave a highly significant t-statistic of 3.92? The design assigned all three treatments to each subject, allowing each of the two treatment differences to be compared to a standard error that did not involve the subject-to-subject variability in cholesterol levels. Thus the standard deviation of the baseline measurements was irrelevant. The sample standard deviations for the differences were considerably smaller.
Assigning all treatments to each subject has other advantages. First, the key question in most people’s minds is, “What can I expect to happen to my cholesterol if I change my diet in this way?” The design focuses precisely on that kind of change. Second, the fact that subject effects are eliminated means that one is less concerned about how representative the subjects are of a target population.
Notes Concerning Correlation
The correlation coefficient was introduced in Section 7.5.4. Some additional notes are appropriate here because it plays a key role in multivariate analyses.
Visual Assessment of Correlation
With practice one can learn to guess correlation coefficients values fairly accurately. Consider the scatterplot in Display 16.12(1), which shows a pair of normally dis- tributed variables. Such a scatter can be idealized to a smooth histogram—a surface above the plane of the variables, with height equal to the density of cases. The his- togram of density resembles a hill that is highest around the point of averages, .X ; Y /. Panel (2) represents this histogram by its contours. Panel (3) removes the point scatter to view the properties of the histogram.
There are two straight lines drawn through the contours. The “SD line” goes through the major axis of the elliptical contours. Its slope is B D sd.Y/=sd.X/, which means that one SD increase in X is accompanied by one SD change in Y . The second line is the regression line connecting the average of the Y ’s at each value of X. Notice that traversing a vertical line over the hill will take you up and down a bell-shaped elevational path. But the highest point on the path will be reached at the tangency to a contour, which is not along the SD line. The highest point of the path is where the regression line passes through. Its slope is the regression coefficient, b D r  sd.Y /=sd.X/ D r  B. Therefore, the correlation coefficient is r D b=B, as in diagram (3).
Graphical Diagnostics for Bivariate Responses
Two-sample analyses for bivariate responses—like the memory-loss example—are most appropriate when the ideal conditions of Chapter 2 hold for each variable individually (approximate normality, equal spread in the two groups, absence of contamination, independence of cases and of groups) and when additionally the correlation between responses is the same in the two groups. Display 16.13(A) illustrates this ideal situation, in which a treated group and a control group have
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.5 Related Issues 501
DISPLAY 16.12
(1)
Visually assessing the correlation coefficient value (hypothetical data)
(2)
A normal scatter: points scatter about a straight line relationship.
The density of points is a hill with the point of averages at the top: contours are lines of equal density.
The regression line goes through the tangency to a vertical line: its
slope is b = r SD(Y) / SD(X).
The SD line follows the ridge line: its slope is B = SD(Y) / SD(X).
B b
r=b/B
(about 1/2 in this example)
(3)
different mean responses, but in which the pattern of scatter about the means is similar in the two groups. Display 16.13(B) shows a contrary situation in which the usual assumptions apply for each individual response, but in which the correlation is different in the two groups. As a contrast to (B), panel (C) depicts a situation where the correlation is the same in the two groups but where the equal spread assumptions fail. Panel (D) illustrates a situation in which the relationship between responses is not linear, in which case the correlation coefficient does not adequately represent that relationship. Only in the ideal situation (A) should Hotelling’s T 2 analysis be considered.
Sampling Distributions with Correlated Responses
The single-variable sampling distribution theory relating to the two-sample problem (Chapter 2) carries over to the problems considered in this chapter. That is, the sampling distribution of each average is approximately normal, centered on the pop- ulation average, and with a spread that decreases with the square root of the sample size. The normal approximation improves with increasing sample size. The joint sampling distribution of the two averages in the bivariate normal case is approxi- mately normal, as well, with correlation equal to the within-population correlation coefficient (assuming each population has the same correlation between responses). The important thing to notice here is that the correlation between averages does not decrease with increasing sample size. If correlation is substantial, adjustments to inferences must be made regardless of sample size.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

502
Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.13
Diagnostic patterns for correlated responses in the two-sample problem (hypothetical data)
(A) Ideal
Treated Control
(C) Unequal spread
Control
(B) Unequal correlation
Control
Treated
(D) Correlation tells wrong story
Treated
Control
Treated
16.5.7
Star Plots for Multivariate Responses
Many graphical tools assist in the deciphering of multivariate information. The profile plot of Section 16.2.2 is one example. Another is a star plot, in which the size of each measurement taken on a subject is represented by the length of the ray of a star. Display 16.14 contains star plots for the monkeys in the memory-loss study. The short-term scores are the rays on the left side of each star. They are, with the exception of Edy, smaller in the treated group (lower) than in the control group.
Controlling False Discovery Rate in Large Families of Hypothesis Tests
In data mining and in genomics, researchers routinely test each of a very large num- ber of components of a multivariate response for statistical significance. This can be a big “fishing for significance” exercise. Biologists, for example, might perform two-sample comparisons on measurements of gene expression for each of 50,000 or more genes (in groups of patients with and without a kind of cancer, for exam- ple) to see which genes tend to differentially express in the two groups. In this case, the family of hypothesis tests is so large that control of the family-wise error rate is practically useless. For example, in order to draw conclusions of differential expression of a gene at a family-wise error rate of no more than 5% in a family of 50,000 genes, the Bonferroni approach would require—as evidence for differential
16.5.8
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.5 Related Issues 503
DISPLAY 16.14
Spank
Irv
Andy
Star plots of the memory-loss data
Chim
Edy
Sport
Chak Alf
CONTROLS TREATED
Allen Poe
Cornelius Duncan
Poet Jessie
Joey Just
Phil
Junior
2 weeks
16 weeks
4 weeks
8 weeks
Code
12 weeks
expression of one gene—that the p-value for comparing the two groups on that one gene be less than 0.000001.
Fortunately, these kinds of studies tend to be exploratory in nature, and researchers can tolerate a certain percentage of false discoveries, meaning incor- rect rejections of a null hypothesis. Rather than specifying a family-wise error rate, they can specify a false discovery rate (FDR). Display 16.15 clarifies the distinction.
The following table shows the outcomes of 20,000 statistical tests from computer-generated data constructed so that 19,500 null hypotheses were true and 500 were false. The statistical testing for this table was based on a 0.05 p-value cutoff for statistical significance without adjustment for multiple comparisons.
Statistical Test Result (No Adjustment)
Nonsignificant Statistically significant Null hypothesis actually true 18,528 972
Null hypothesis is actually false 175 325
The use of a 0.05 cutoff for statistical significance ensures that about 5% of true null hypotheses will be falsely rejected and 972/19,500 D 0:0498 is, indeed, close to 0.05. The lack of attention to multiple testing with this cutoff, though, would
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

504 Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.15
The difference between false discovery rate and family-wise error rate for a family of hypothesis tests
Let S, T, U, and V represent the numbers of hypothesis tests in the family that fall in the indicated combination of truth and research finding:
RESEARCH FINDING: null hypothesis true
RESEARCH FINDING: null hypothesis false
TRUTH: null hypothesis is actually true
S
T
TRUTH: null hypothesis is actually false
U
V
The family-wise error rate is the probability that T is greater than 0—the probability of at least one false discovery (i.e., at least one incorrect rejection of null hypotheses that are true).
The false discovery rate is the expected value of T/(T+V)— the expected proportion of false discoveries (i.e., the proportion of rejected null hypotheses that are incorrect rejections).
cause the researchers to make 972 false discoveries, which could lead them down the wrong track for scientific learning.
The use of a Bonferroni adjustment with a 0.05 family-wise error rate implies a stringent p-value cutoff of 0.0000025 (i.e., 0.05/20000) for each individual test, so that the number of statistically significant results, and hence the number of false discoveries, is greatly reduced:
Statistical Test Result (Bonferroni)
Nonsignificant Statistically significant Null hypothesis actually true 19,500 0
Null hypothesis is actually false 420 80
In fact, the false discoveries were completely eliminated in this example. But this reduction in false discoveries comes at the price of failing to find very many of the actually false null hypotheses. Only 16% (80/500) of the actually false null hypotheses were discovered.
The false discovery rates were 81% (972/1,297) in the first table and 0% (0/80) in the second. These are the rates that follow from p-value cutoffs for each individual hypothesis test of 0.05 in the first table and 0.0000025 in the second. It is possible to turn around this relationship between p-value cutoff and false discovery rate to find the approximate p-value cutoff for individual tests that would result in a specified false discovery rate for the family of tests. There are several computational procedures for doing this. The details are beyond the scope of this discussion but, in practice, a statistical computer program with an FDR routine can find the p-value
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.6 Summary 505
cutoff corresponding to a user-specified FDR. The following table, for example, is based on a specified FDR of 5%, which happens to produce a p-value cutoff of 0.0004 for this particular data problem.
Statistical Test Result (5% FDR)
Nonsignificant Statistically significant Null hypothesis actually true 19,488 12
Null hypothesis is actually false 334 166
The proportion of false discoveries in this table is 12=.12 C 166/ D 0:07. (This is close to, but not exactly, 0.05. The false discovery rate of 5% is the average that the procedure would produce in repeated applications.)
By controlling FDR, researchers can find a higher proportion of correct dis- coveries (166=500 D 33%) than they can by controlling the family-wise error rate (16%). The cost is a higher number of false discoveries, but this is a worthwhile price to pay in this type of fishing expedition. If the preceding table corresponds to identification of genes that express differently in cancer and non–cancer patients, for example, the researchers will have identified 178 genes of 20,000 genes that are candidates for further investigation.
The p-value cutoff for individual tests depends on the specified FDR, the num- ber of tests made, and on the distribution of actual p-values. Many statistical packages have routines for arriving at this cutoff or simply arriving at a list of tests that are indicated as statistically significant from a user-specified FDR. These routines can be used from a set of p-values, no matter what procedure was used to obtain the p-values. Some researchers find it useful to determine a q-value for each test, which is the smallest FDR at which the test result would be categorized as statistically significant. Although the q-values are not as useful as measures of evidence as p-values are, researchers can use them to order their tests from greatest to least amount of evidence against the null hypothesis.
16.6 SUMMARY
Since repeated measures problems come in so many different varieties, it is impos- sible to provide a single appropriate analysis for all of them. One tool advocated in this chapter, which is not universally applicable but which is simple and forces the analyst to directly address the questions of interest, is to condense the multivariate repeated measure into one or more summary statistics dictated by the questions of interest.
It is often reasonable, for example, when there is a question of whether the change in response over time depends on the level of a treatment variable, to fit a simple regression of response on time separately for each subject, then to treat the estimated slope as a response variable in a subsequent analysis. If there is one such summary, then it may be used as the response in an ordinary (univariate) analysis. If there are several correlated summaries, then it may be necessary to consider them jointly as a multivariate response.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

506 Chapter 16 Repeated Measures and Other Multivariate Responses
Hotelling’s T 2 tests are discussed in this chapter for multivariate one-sample and two-sample analyses. Extensions to multivariate regression and analysis of vari- ance are straightforward with statistical computer packages. The main adjustment provided by the multivariate analyses is for the correlations among the responses. Consequently, separate univariate analyses may be used instead of a multivariate analysis if it can be demonstrated that the correlations among the responses, after accounting for the effects of the explanatory variables, are all small. (This is checked by computing the correlation between residuals from separate univariate analyses.) If they are not, then univariate analyses give unreliable answers to the multivariate question.
Memory Data
Although the monkeys are tested on their memory of items taught at five different times prior to the treatment, the researchers reduce the scores to two summaries, representing long-term and short-term memory. The analysis focuses on a com- parison of the bivariate responses in the treated and control groups. Most of the exploratory analysis for this multivariate data problem involves standard techniques for univariate analysis, applied to each response component individually. An excep- tion is the scatterplot addressing the bivariate normality of the responses and the common standard deviations and correlations in the two groups (Display 16.7). A Hotelling’s T 2 test and corresponding confidence intervals provide the primary basis of inference for the results stated in the statistical conclusion.
Oat Bran Data
The main step in the analysis is the recognition of the appropriateness of con- verting the original three-dimensional response into a two-dimensional response of differences. Initial scatterplots show no need for transformation and do not indicate any crossover effect. Consequently, the formal analysis proceeds with a test that the mean differences are both zero and construction of confidence intervals for the mean differences. Hotelling’s T 2 procedure is used.
16.7 EXERCISES
Conceptual Exercises
1. What is the distinction between multivariate analysis and multiple linear regression analysis?
2. What is the conceptual difference between the two examples given in this chapter?
3. How would the robustness (to lack of normality, say) of Hotelling’s T 2 analysis compare to the
robustness of Student’s t analysis? More robust? About the same? Less robust?
4. Nature–Nurture. The data in Display 16.16 are a subset from an observational, longitudinal study on adopted children (M. Skodak and H. M. Skeels, “A Final Follow-up Study of One Hundred Adopted Children,” Journal of Genetic Psychology, 75 (1949): 85–125). Is child’s intelligence, as measured by IQ test scores at four different ages, related to intelligence of the biological mother
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 16.16
(measured by BMIQ, IQ test score at the time the child was placed for adoption) and the intelligence of the adoptive mother (measured by the surrogate variable AMED, years of education)?
(a) Is the multivariate response IQ at age 2, IQ at age 4, IQ at age 8, and IQ at age 13 a repeated measure?
(b) What reductions of this multivariate response might be helpful for addressing questions about the relative importance of the biological mother’s and adoptive mother’s intelligence?
(c) Suppose the following two reductions are used: the average of the four IQ scores and the change (IQ at age 13 minus IQ at age 2). One strategy for analysis is to conduct sepa- rate (univariate) regression analyses on these two responses (regressing each response on AMED and BMIQ). Under what conditions would this be a safe alternative to multivariate
regression?
(d) How could a check be made on the conditions of part (c)?
Skeels and Skodak data on adopted children; first 6 of 62 rows
AMED BMIQ Age 2 IQ Age 4 IQ Age 8 IQ Age 13 IQ
16.7 Exercises 507
Computational Exercises
5. Nature–Nurture. Reconsider the adopted children IQ data in Display 16.16, which are avail- able in file ex1605 and described in Exercise 4. Compute the average IQ score for each child. Compute the difference, IQ at age 13 minus IQ at age 2, for each child. Regress each of these, separately, on adoptive mother’s years of education (AMED) and biological mother’s IQ (BMIQ). (a) Find the correlation coefficient between the residuals from these two regressions. (b) If the corre- lation is fairly small, between 􏰀0:2 and 0:2 say, then use the separate regression analyses to answer these questions: (i) What proportion of variation in average IQ can be explained by the biological mother’s IQ? (ii) After accounting for the effect of the biological mother’s IQ, is there any addi- tional effect of the adoptive mother’s years of education? (Provide a p-value.) (iii) What proportion of variation in IQ change can be explained by the adoptive mother’s years of education? (iv) After accounting for the effect of the adoptive mother’s years of education, is there any additional effect of the biological mother’s IQ? (Provide a p-value.)
6. Suppose that two treatments (A and B) plus a control (C) applied to each of 18 subjects produced the following summary statistics.
A minus C Average: 2.4
Sample SD: 9.8 Sample size:
Correlation:
B minus C 3.7
11.6
18 􏰀:696
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

508 Chapter 16 Repeated Measures and Other Multivariate Responses
(a) For each of the indicated comparisons, (A minus C ) and (B minus C ), test a hypothesis that the mean effect is zero using one-sample t-tools.
(b) Compute the Hotelling’s T 2 statistic for testing the composite hypothesis that both mean effects are zero.
(c) Sketchapictureofa95%confidenceellipsewithacomputerprogramorwiththefollowing steps: (i) For each of several trial values of ı1 (the mean of A minus C )—say, 􏰀5, 􏰀3, 􏰀1, 1, 3, 5, 7, 9—compute the t-statistic, t1, for the hypothesis that ı1 is the trial value, using the summary statistics for the A minus C differences. (ii) Using F2;16.:95/ D 3:6337, find, for each value of t1 from part (i), the two values of t2 that satisfy
F -statistic D 16=.2  17/T 2 D F2;16.:95/;
whereT2 D.t12Ct2􏰀2rt1t2/=.1􏰀r2/(solvethequadraticequation).(iii)Fromthevalues of t2 and the summary statistics for the B minus C differences, calculate the hypothesized value of ı2 (the B minus C mean) to which each value of t2 corresponds. (iv) Sketch the ellipse by plotting the two values of ı2 versus the corresponding trial value of ı1. (Note: All pairs for ı1 and ı2 within this ellipse correspond to hypothesized values that jointly produce a p-value greater than 0:05 by Hotelling’s T 2 test.)
(d) Does the sketch reveal any explanation about the apparently contradictory results in parts (a) and (b) above?
Two species of flycatchers in the genus Empidonax are so similar that certain identification in the field is next to impossible. In hand, slight but consistent differences in the lengths of the first and the third primary flight feathers appear. The following summary statistics depict measurements (in millimeters) of feather lengths taken from samples of males of the two species.
7.
E. hammondii E. oberholseri
.n D 14/
.n D 17/
Average: Sample SD: Correlation:
1st primary
53.41 8.98
3rd primary
40.51 3.50
1st primary
59.83 7.73
3rd primary
43.62 4.25
r D C0:4655
r D C0:5303
(a) Construct t-statistics for comparing the mean lengths of the feathers separately. Does a 95% confidence interval on the difference between mean first primary lengths include zero? Does the 95% confidence interval for the difference between mean third primary lengths include zero? (b) Compute Hotelling’s T 2 statistic for comparing mean lengths of both feathers simultaneously. (Note: This will require the calculation of sample variances and covariances from the tabled values before pooling.) (c) Does the 95% confidence ellipse for mean differences include both being zero? (This can be answered from part (b), without computing the actual ellipse.) (d) Interpret the results.
8. Multivariate outliers are harder to spot than outliers on single variables. Consider the following (A—Control) and (B—Control) responses on 20 subjects.
A—Control: 5 7 3 7 4 4 2 6 2 5 8 4 3 2 6 6 8 7 3 5 B—Control: 3 6 3 5 4 2 2 5 7 4 6 3 1 1 4 6 7 7 2 5
(a) Construct stem-and-leaf diagrams for each variable separately. Can you see any outliers? (b) Construct a scatterplot for the two variables. Now can you see any outliers?
9. Memory Data. Pick several hypothetical short-term and long-term effects (pick some hypo- thetical values for ı1 and ı2) in the memory example. (See Display 16.8.) For each, confirm whether the hypothetical values are within or outside the 95% confidence ellipse.
10. Memory Data. (a) Find the Hotelling’s T 2 adjusted confidence intervals for the difference in mean long-term percentage correct and the difference in mean short-term percentage correct,
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 16.17
between the treated and control groups, without the outlier Edy. (b) Repeat (a), but excluding Chak instead of Edy. (c) Exclude both. (d) By comparing these results to the ones reported in the statistical conclusion, state whether either of these cases seems to be influential.
11. Religious Competition. Adam Smith, in Wealth of Nations, observed that even religious monopolies become weak when they are not challenged by competition. To illustrate the case, A. J. Gill gathered data from 21 countries in which the percentages of Catholics in the populations varied from a low 1.2% to a high 97.6%. (Data from A. J. Gill, “Rendering unto Caesar? Religious Competition and Catholic Political Strategy in Latin America, 1962–79,” American Journal of Politi- cal Science 38(2) (1994): 403–25.) In addition to the percentage Catholic, he determined the number of clergy per 10,000 Catholic parishioners (the priest-to-parishioner ratio) and the percentage of the Catholic clergy that was indigenous. His data, in Display 16.17, come from the early 1970s. The last two columns are thought of as responses (that measure the strength of the church in that country) and percentage Catholics is an explanatory variable. (Values for the percent indiginous are not available for Nicaragua and Sweden, so these countries should not be used in the analysis.)
(a) Construct a scatterplot of the priest-to-parishioner ratio versus the percentage Catholic and fit by simple linear regression, saving the residuals. (Call these respriestjcatholic.)
(b) Construct a scatterplot of the percentage nonindigenous versus the log of the priest- to-parishioner ratio. Fit a regression equation, again saving the residuals. (Call these
resclergyjpriest .)
(c) Construct a scatterplot of respriestjcatholic versus resclergyjpriest and estimate the correlation
between them.
(d) The purpose of this exercise is to emphasize the conditions under which two separate
regression analyses are appropriate. (i) Given that the researcher wishes to know whether the strength of the Catholic church in the country can be explained by the percentage of Catholics in the country, and given that strength is measured by two components, priest- to-parishioner ratio and percentage indigenous clergy, what is called for—a multivariate regression or two separate univariate regressions? (ii) The inference from multivariate regression can be approximated by the separate inferences from univariate regression only if the correlation between residuals from the two univariate regressions is close to zero. Does it appear that this is the case for this data problem? (iii) What kinds of conclusions regarding the relationship of church strength to percentage Catholics are suggested?
Catholic clergy in Latin America and selected countries; first 5 of 21 rows
% Catholics in Priest-to- % clergy Country population parishioner ratio indigenous
12. Wastewater. Municipal wastewater treatment plants are required by law to monitor their dis- charges into rivers and streams on a regular basis. Concern about the reliability of data from one of these self-monitoring programs led to a study in which samples of effluent were divided and sent to two laboratories for testing. Display 16.18 contains measurements of biochemical oxygen demand (BOD) and suspended solids (SS) obtained for n D 11 sample splits, from the two laboratories. (Data from R. A. Johnson and D. W. Wichern, Applied Multivariate Statistical Analysis, Englewood
16.7 Exercises 509
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

510 Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.18
Biochemical oxygen demand and suspended solid measurements from two laboratories; first 5 of 11 rows
Commercial laboratory State laboratory
Sample BOD SS BOD SS
Cliffs, N. J.: Prentice-Hall, 1988.) Do the two laboratories’ analyses agree? If they are different, how? Answer with the following steps:
(a) Create two laboratory difference measurements, one for BOD and one for SS.
(b) Determine a paired t-statistic for each difference measurement.
(c) Determine the correlation between differences.
(d) Calculate Hotelling’s T 2 statistic for the joint hypothesis that the means of both difference
measures are zero.
(e) Demonstrate that the joint 95% confidence ellipse does not contain the possibility that both
means are zero. (Hint: Exploit the connection between the 95% confidence ellipse and the
set of parameter values that are rejected by a 5% level hypothesis test.)
(f) Demonstratethatbotht-ratio95%confidenceintervalsforeachmeanseparatelydoinclude
zero.
(g) Whatshouldbeconcludedfromtheapparentdisagreementoftheconfidenceellipseandthe
confidence rectangle? Do the laboratories agree or disagree?
Data Problems
13. Flea Beetle Distinction. Two flea beetle species—Ch. concinna and Ch. heikertingeri—of the genus Chaetocnema are so similar that the most reliable method of distinguishing between them is to measure the sum of the widths (in micrometers) of the first joints of the first two feet and the sum of the widths of the second joints of the first two feet. A. A. Lubischew reported measurements on 18 beetles from each species (Display 16.19). (Data from A. A. Lubischew, “On the Use of Discriminant Functions in Taxonomy,” Biometrics 18 (1962): 455–77.) Estimate the differences in the means. In doing this, assess whether the methodology is appropriate.
DISPLAY 16.19
Widths (m) of first and second joints of feet in 18 beetles from each of two species; partial listing of 36 rows
Specimen
Species
Jnt1 Jnt2
191 131 185 134 200 137 186 107 211 122 201 114
1 conc
2 conc
3 conc
19 heik
20 heik
21 heik
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 16.20
14. Psychoimmunology. Can you will yourself to fend off a cold? Can your mental state con- tribute to your getting sick? Recent studies in the field of psychoimmunology suggest a link exists between behavioral events and the functioning of one’s immune system. Some have even suggested that the immune function might be conditioned to produce antibodies when challenged by antigens. In a study by Dr. William Keppel, 12 subjects, aged 20–50, were monitored during three distinct activities. The first activity, a baseline period, Phase A, consisted of neutral activity such as report- ing tasks and answering questions. During the second activity, Phase B, subjects listened through headphones to a cassette tape of exercises including images of heaviness and warmth in the body, relaxation-deepening images, suggestions to remember happy events, and suggestions to remember recovering from an illness. The third activity, Phase C, was a nonaudiotape follow-up stimulus con- sisting of continued relaxation as in Phase B and a verbal discussion of the positive aspects of the audiotape.
During each phase, the investigator measured Interleukin-1 (IL-1) activity from blood samples. IL-1 plays a central role in immune system regulation, and it has a short half-life. Display 16.20 shows the median IL-1 measurements, assayed using D-10.S thymocyte and reported in counts per minute. (Data from W. Keppel, “Effects of Behavioral Stimuli on Plasma Interleukin-1 Activity in Humans at Rest,” Journal of Clinical Psychology 49(6) (1993): 777–85.)
IL-1 levels (counts per minute) from 12 subjects during three activities; first 5 of 12 rows
Subject Phase A Phase B Phase C
The principal issues are (1) whether and how much difference there is between Phase B and the baseline Phase A levels of IL-1, and (2) whether and how much difference there is between the Phase C and Phase B responses. After answering the questions, comment on what inferences can be drawn from this study—in which the subjects were volunteers and the treatments were always given in the order A, B, C.
15. Trends in SAT Scores. Display 16.21 shows a partial listing of a data set with ratios of average Math to Average Verbal SAT scores in the United States plus the District of Columbia for 1989 and 1996–1999. Is the mean of the ratios different in 1999 than in 1989? Is there an increasing trend in the ratios over the period from 1996 to 1999? Analyze the data and write a brief statistical report of the findings.
16. Male and Female Intelligence I. Data file ex0222 contains intelligence test scores and gen- der for 2,584 individuals in the NLSY survey (see Exercise 2.22). Compare males and females on the two-dimensional response with components arithmetic knowledge (Arith) and paragraph comprehension (Parag). Is there evidence of a difference? Describe the difference.
17. Male and Female Intelligence II. Repeat Data Problem 16, but compare males and females on the four-component response: arithmetic reasoning (Arith), mathematical knowledge (Math), word knowledge (Word), and paragraph comprehension (Parag). Note: For a q-dimensional response, the Hotelling’s T2-based multiplier for 100  .1 􏰀 ̨/% confidence intervals should be
qq.n1Cn2􏰀q/Fq;n1Cn2􏰀q􏰀1.1􏰀 ̨/. n1Cn2􏰀q􏰀1
16.7 Exercises 511
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

512
Chapter 16 Repeated Measures and Other Multivariate Responses
DISPLAY 16.21
Average Math SAT scores divided by average Verbal SAT scores in five different years, for the United States and the District of Columbia
State M/V:89 M/V:96 M/V:97 M/V:98 M/V:99
DISPLAY 16.22
18. Galton Height Data. The data file ex0726 contains the heights of 453 adult females and 480 adult males along with the heights of their mothers and fathers, collected by Francis Galton in 1885. Exercise 10.32 called for finding a regression model for predicting a person’s height (in the same population) from their gender and from their parents’ height, but suggested ignoring the possible dependence of heights of children from the same family. The variable Family in the data set is a code for family, from 1 to 205. Repeat the analysis—find an equation for predicting height from a person’s gender and their parents’ heights, but account for the possible dependence. (Note: Including Family as a random effect is one possibility.) (See Exercise 7.26.)
19. Clever Hans. The data file ex1419 contains the results of the Clever Hans randomized block experiment described in Exercise 14.19. Students were asked to train rats to run a maze. The students in the bright treatment group were told their rats were bred to be good learners; those in the dull group were told their rats were not. In fact, though, all rats were the same; the researchers provided this deceptive information to investigate the effect of student expectation of success on actual success. The multivariate response is the number of successful maze runs out of 50 attempted on each of 5 days. Analyze the data to investigate the effect of treatment on maze success, ignoring the students’ prior expectation of success.
20. Differential Gene Expression with RNA Sequencing. High throughput sequencing of a bio- logical sample produces measures of gene expression for a large number of genes. In an experiment to identify genes of the plant Arabidopsis that react to a particular pathogen, researchers used RNA sequencing to produce gene profiles for a number of plants not subjected to the pathogen and sev- eral plants subjected to the pathogen. Tests comparing the distribution of gene expression in the two groups were performed for each gene individually. Display 16.22 is a partial listing of the data
p-values for two-sample comparisons of gene expression from two groups of Arabidopsis plant material, one group treated with a pathogen and the other with a mock treatment, with one p-value for each of 20,246 genes; first 5 of 20,246 rows
Gene Gene Name
1 AT1G01880
2 AT1G02210
3 AT1G02510
4 AT1G03103
5 AT1G03320
Gene Name p-Value
1.00000 0.003926 0.003926 0.003936 0.377724
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

16.7 Exercises 513
file that contains the p-values from all these tests. Use a false discovery rate routine (such as the Benjamini–Hochberg routine) in a statistical computer package to identify those genes that appar- ently differentially express, using a false discovery rate of 1%. (Data from Jeff Chang, Department of Botany and Plant Pathology, Oregon State University, personal communication.) (Note: These p-values happen to be from tests to compare two negative binomial samples. Negative binomial regression is discussed in Chapter 22.)
Answers to Conceptual Exercises
1. The distinction is the number of response variables. In multiple linear regression, there may be many explanatory variables but only one response. Multivariate analysis means there are two or more different responses.
2. The difference concerns the relationships of treatments and subjects. In the oat bran study, all subjects received each of the treatments (but in different orders). In the memory study, subjects were divided into two groups that received different treatments.
3. Because T2 involves the separate t-ratios, it can hardly be more robust. The additional bit of statistical information in T 2 is the correlation coefficient estimate, which is a second-order estimate. Like a variance estimate, it should be expected to be somewhat less robust than estimates of the mean. So T 2 should be expected to be a bit less robust.
4. (a) Yes. (b) If IQ is inherited to any extent, some measure of overall IQ, such as the measurement at age 2 or the average at all ages, is most likely to be related to the biological mother’s IQ. The adoptive mother’s education level is most likely related to some measure of the change in IQ brought about by learning, such as the final measurement at age 13 minus the initial measurement at age 2. (c) If the residuals from these regressions have little correlation, conclusions drawn from separate regressions are close approximations to the multivariate analysis conclusions. (d) Save the residuals from each regression, and calculate their correlation.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 17
Exploratory Tools
for Summarizing Multivariate Responses
514
In the case studies of Chapter 16, the researchers had little question about how to summarize the repeated measures into variables that addressed their questions of interest. In other studies, a useful reduction of the multivariate response is less obvious but still desirable. The decision about what summaries to construct in such cases may be postponed until after the researcher has had the opportunity to look at the data for clues. This chapter illustrates two methods that rely on the data to suggest summarizing linear combinations.
Principal components analysis (PCA) is a way to select several linear combi- nations that capture most of the variation of the multivariate responses. This is most useful if relatively few linear combinations explain most of the variability and if the linear combinations lend themselves to some useful interpretation. In the first case study of this chapter, principal components are used to characterize an 11-dimensional response in terms of three principal linear combinations, which are seen to describe meaningful features. The linear combinations suggested by the principal components are then used as the responses in a multivariate comparison, as in Chapter 16.
Canonical correlations analysis (CCA) is a method for describing and testing the linear relationships between two sets of variables. As a starting point, CCA finds a pair of linear combinations—one from each of the two sets—such that the corre- lation between the two combinations is as large as possible; then it finds another pair of linear combinations that have the highest possible correlation, but under the constraint that they be independent of the first pair; and so on.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

17.1
CASE STUDIES
17.1.1 Magnetic Force on Rods
in Printers—A Controlled Experiment
Engineers manipulated three factors to enhance the magnetic force surrounding a metal rod in an electronic printer: the electric current passing through the rod (0, 250, or 500 milliamperes); the configuration of components (0 or 1); and the type of metal from which the rod was made (1, 2, 3, or 4). Arranged factorially the current, configuration, and metal options yield 3  2  4 D 24 possible treatment combinations.
With a given treatment combination, a printer operated for 2 minutes; then the engineers measured the magnetic force at 11 equally spaced points along the rod. Two replicates were attempted for each treatment combination. Four trials failed, so the full data set in Display 17.1 contains only 44 trials. These unpublished data were provided by Dr. V. J. Wildman.
The main issue was this: How are the variations in magnetic forces along the rods related to the design factors? The phrase “variations in magnetic forces” needed clarification, however, because 11 different and highly correlated responses were involved. This raised further issues. Can the number of responses be reduced from 11 to just a few summary variables without eliminating important sources of variation? Can summary variables be chosen that are less highly correlated?
Statistical Conclusion
Principal components analysis identified three uncorrelated linear combinations of responses that account for 99.73% of the total variation in the original 11 mea- surements. The first principal component, accounting for 96.46%, measured the average magnetic force over all 11 positions on a rod. The second principal com- ponent, accounting for 2.57%, measured the difference between magnetic forces at the ends of a rod. The third principal component, accounting for 0.70%, measured the difference between the magnetic force at position #6 (in the middle of the rod) and the magnetic force at the first several positions.
The data provide no evidence that the average magnetic force was affected by any of the design factors (p-value D 0:97, from the analysis of variance F-test for initial screening). They provide suggestive but inconclusive evidence that the difference between magnetic forces at the ends was affected by the level of current (p-value D 0:051, from the analysis of variance F -test). Finally, the data provide no evidence that the variable measuring the difference between the magnetic force at position #6 and the first positions was affected by any of the treatment factors (p-value D 0:82, from the analysis of variance F -test for screening). A plot of the rods in the space of the principal components (Display 17.8) showed that the responses fell into four distinct groups. As the analyses of variance indicate, however, the groupings were not related to current, configuration, or metal. (When this analysis was presented to the researchers, a technician remembered that four different machines had been used in the study. No record of which rods were used in
17.1 Case Studies 515
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

516 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses
DISPLAY 17.1 Magnetic force measurements at 11 positions on each of 44 rods
Configuration Rod # Magnetic force measurements Current
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Metal

17.1 Case Studies 517
the different machines was kept, because the machines were thought to be identical. This appears to have been an incorrect assumption.)
17.1.2 Love and Marriage—An Observational Study
Thirty couples participated in a study of love and marriage, conducted by E. Hatfield. (Data reported in R. A. Johnson and D. W. Wichern, Applied Mul- tivariate Statistical Analysis, 2nd ed., Englewood Cliffs, N.J.: Prentice-Hall, 1988, Chapter 6.) Wives and husbands responded separately to four questions:
1. What is the level of passionate love you feel for your spouse?
2. What is the level of passionate love your spouse feels for you?
3. What is the level of compassionate love you feel for your spouse?
4. What is the level of compassionate love your spouse feels for you?
Each response was recorded on the following five-point scale: 1 D None, 2 D Very Little, 3 D Some, 4 D A Great Deal, and 5 D A Tremendous Amount. The responses appear in Display 17.2.
The average responses of subjects in the study suggest that they are generally happy in their marriages. Can anything be said about the relationships among cat- egories of responses? Is there a relationship between husbands’ responses and wives’ responses? (A “relationship” in this context would mean that the husbands of wives who scored above average on some combination of their responses would themselves score consistently above average on a combination of their own responses.) Is there a relationship between responses concerning passionate love and responses concern- ing compassionate love? Is there a relationship between love toward spouse and perception of spouse’s love in return? What is the nature of these relationships?
Statistical Conclusion
The data provide no evidence of any correlation between the husbands’ responses and the wives’ responses (p-value D 0:45, from a canonical correlation analysis). They also provide no evidence of any correlation between responses to ques- tions about passionate love and responses to questions about compassionate love (p-value D 0:43, from a canonical correlation analysis). They do, however, provide convincing evidence of a correlation between husbands’ and wives’ feelings of love and their perceptions of the love their spouses feel for them (p-value < 0:0001 from a canonical correlation analysis). Specifically, (1) the degree of a husband’s compas- sionate love for his wife is highly correlated with the degree of compassionate love he believes his wife has for him (estimated correlation D 0:93, p-value < 0:0001), (2) the degree of a wife’s compassionate love for her husband is correlated with the degree of compassionate love that she believes her husband has for her (estimated correlation D 0:81, p-value < 0:0001). The data also weakly suggest a correlation between a third pair of linear combinations, but the linear combinations do not have any obvious practical interpretation (p-value D 0:0516). There is no evidence supporting any further correlations (p-value D 0:5827). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 518 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses DISPLAY 17.2 Responses to questions about love with partner Level of love you feel for your spouse Type of love: Passionate Compassionate Respondent: Husband Wife Husband Wife Husband Wife Husband Wife Scope of Inference The interesting aspect of this is that both husbands and wives seem to think their spouses have compassionate and passionate feelings similar to their own, when in fact there is no evidence of actual similarity. (Differences in the levels of love for spouse were related only to differences in the perceived levels of love returned—not Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Level of love your spouse feels for you Passionate Compassionate 17.2 Linear Combinations of Variables 519 to differences in the actual levels returned.) The apparent implication that love is a creation of one’s own mind should be tempered by two considerations: the usual reservations about causal interpretations from observational studies; and the roughness of the p-values, whose validity is tied to a questionable assumption of normality. Since these subjects were not a random sample, it is difficult to justify the inference that a similar relationship holds in a more general population. 17.2 LINEAR COMBINATIONS OF VARIABLES It is desirable to replace the multivariate responses—the 11-dimensional measure- ment on the printer rods or the 8-dimensional response for each couple—with some summarizing quantities of smaller dimension. Here, however, unlike in the last chapter, no obvious summary suggests itself. This chapter presents two methods for finding linear combinations suggested by the data. These linear combinations may in turn suggest meaningful reductions of the multivariate responses, which can then be analyzed in accordance with Chapter 16 techniques. A linear combination of several variables is a new variable. It is constructed from other variables to represent a specific feature. Each subject is assigned a specific numerical value for the feature, and different subjects generally have dif- ferent values. For example, the percentages correct of objects learned at 8, 12, and 16 weeks in the memory study of Section 16.1.1 were averaged to form a single long-term memory measurement. Formula AlinearcombinationLofvariablesY1,Y2;:::;Yq is LDC1Y1 CC2Y2 CCCqYq: This formula is to be used for each subject. The values of the Y-variables for a specific subject go into the formula; each variable value is multiplied by its corre- sponding coefficient (C), and the products are added. The result is one number, which is the value of the linear combination for that subject. The process is repeated, using the Y’s unique to each subject but using the same coefficients throughout. The coefficients—C1;C2;:::;Cq—determine what important feature the linear combination measures. Here are some examples: 1. C1 DC2 DDCq D1givesthesumofallresponses. 2. C1 D C2 D  D Cq D 1=q gives the average of all responses. 3. C1 D1,C2 D􏰀1,C3 DC4 DDCq D0givesthedifferencebetweenthe first two responses. 4. C1 D C2 D 1=2, C3 D C4 D C5 D 􏰀1=3 gives the difference between the average of the first two responses and the average of the next three responses. See Chapter 6 for other examples. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 520 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses Graphical Representation When thinking about a linear combination, try to visualize a scatterplot of the original variables. That may entail visualizing a seven-dimensional point cloud—a difficult feat. To get the idea, consider first a case involving just two responses, Y1 and Y2. Determining the new variable L D C1Y1 C C2Y2 is like taking a train ride on a straightline track in the .Y1;Y2/ plane that goes through the origin .0;0/ and through the point .C1; C2/ whose coordinates are the linear combination coefficients (see Display 17.3). As you travel, you can only see out the side windows, glimpsing objects as they pass your view (which is perpendicular to your line of travel). When a subject (or point) is passed, you record your location along the track; that location is the value of the linear combination for that subject. In this way, the point cloud is reduced to a set of locations along the track that constitute the linear combination variable. This view of a linear combination helps clarify what the resulting variable is like and what role it plays. Often visualizing a desirable direction for the track is Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 17.3 The train ride through the coefficient point to determine the value of a linear combination Y2 4 10 Subjects with different values of the linear combination are seen from different locations on the track. 9 8 7 6 5 4 3 2 1 ( y1, y2) (9, 6) 3 Subjects seen from the same location have equal values of the linear combination. 1 The coefficients in the linear combination determine a point defining the direction of the train track. 2 The value of the linear combination is the location of the train when the subject is seen out the side window. 9y1 + 6y2 00 1 2 3 4 5 6 7 8 9 10 11Y1 17.3 easy. Any point on the line can be used to determine the coefficients of the linear combination. The first coefficient is the first coordinate of the point on the line and the second coefficient is the second coordinate. The set of coefficients is not unique, since all points on the line will define the same direction. PRINCIPAL COMPONENTS ANALYSIS When researchers change experimental conditions, they expect to see changes in the system responses. The engineers who investigated the printer rods of Section 17.1.1 changed the current, configuration, and metal to see how the magnetic forces along the rod would change. Naturally, the forces changed at all 11 positions, so visual- izing what was happening would have involved thinking about an 11-dimensional point cloud. If one direction through the cloud could be chosen to view the changes, a natural choice would be the direction along which variation was most dramatic. This is the direction of the first principal component of variation. 17.3.1 The PCA Train Display 17.4 illustrates the principal components solution in two dimensions. The first principal component follows a track along the main axis of the point cloud, giving values shown by the black dots along the axis. The axis perpendicular to the principal component axis is the direction of least variation, and the variable that follows it is called the last principal component. In three dimensions, the passenger views a full two-dimensional plane from any location along the track. As the train goes along the first PCA track, imagine that the points adhere to the plane when the train passes. After the train has passed the cloud completely, the plane contains a two-dimensional point cloud of the subject’s positions, much like a flat map of a geographic surface. Another train track can be established along the direction of maximum variation on the plane, giving the second principal component variable. The third principal component is the last one, perpendicular to both the first and the second. This view of successive principal components extends to higher dimensions. The computation of the linear combinations giving the first principal component, the second one, and so on is beyond the scope of this book. Nonetheless, the calculations are easily accomplished by a computer, and a user can comfortably make sense of principal components without understanding the numerical formulas. 17.3.2 Principal Components In a full PCA, the set of response variables is re-expressed in terms of a set of an equal number of principal component variables. Whereas the response variables are intercorrelated, the principal component variables are not. Therefore, the variance- and-covariance structure of the principal components is described fully by their variances. The total variance—that is, the sum of their variances—is the same as 17.3 Principal Components Analysis 521 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 522 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses DISPLAY 17.4 Y2 1 Linear combinations of Y1 and Y2 along the axis of maximum variation constitute the first principal component. The PCA train, illustrating the principal component directions through a point cloud in two dimensions Different principal components are uncorrelated variables. Linear combinations of Y1 and Y2 2 Y1 along the axis of minimum variation constitute the last principal component. the total variance of the original variables. For this reason, the variances of the principal components are usually expressed as percentages of the total variation. Each principal component variable is a linear combination of the original vari- ables. Typically, a computer analysis provides directional information by the sets of coefficients and variational information as either individual variations or percent- ages of the total. All principal component variances and coefficients in the linear combinations leading to the first three principal components for the magnetic force example appear in Display 17.5. The first principal component accounts for 96.46% of the variation in all 11 responses. The first three principal components together account for 99.73%, mak- ing it safe to conclude that virtually all the variation in the 11 dimensions is explained by a three-dimensional summary. Interpreting Coefficients An essential part of the analysis consists of making sense out of the coefficients for each of the principal components that are examined. Two general facts about these coefficients identified by PCA are as follows: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 17.5 Summary for principal components analysis of magnetic force responses 17.3 Principal Components Analysis 523 Component number Variance Percentage of variance Cumulative percentage Variable PC #1 PC #2 PC #3 1. The coefficients are normalized so that the sum of their squares equals 1. The coeffi- cients describe a direction, and any coefficients that specify the same directions would work. This normalization, however, guarantees that the total variance of the principal components equals that of the original variables. 2. The coefficients for successive principal components are constrained by the require- ment that the variables be uncorrelated with previous components. More will be said about this in Section 17.3.3. First Principal Component in the Magnetic Force Example Examining the coefficients facilitates understanding what each principal component represents. The first principal component (PC #1) assigns nearly equal weight to the magnetic forces developed at each of the 11 locations. The principal component variable is roughly the average magnetic force over all 11 locations. Any rod that has higher than average magnetic forces at all locations will have a PC #1 score that Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 524 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses 17.3.3 is above average; a rod that has lower than average magnetic forces at all locations will have a PC #1 score that is below average. Rods that are about average at all locations or have a mixture of above-average and below-average locations will have PC #1 scores near average. Second Principal Component in the Magnetic Force Example Coefficients for the second principal component (PC #2) are positive for locations 9–11 and negative for locations 1–3. This suggests that the component represents a contrast between the average magnetic forces developed at opposite ends of the rod. (The coefficients are also negative for positions 4–6. The principal component seems to be contrasting the two ends of the rod, and making a substitute combination contrasting the first three positions with the last three positions is particularly convenient.) A rod will have a higher-than-average PC #2 score if the magnetic force at locations 9–11 exceeds the force at locations 1–3 by a greater-than-average amount. Third Principal Component in the Magnetic Force Example The third principal component (PC #3) assigns a large positive weight to the magnetic force developed at location 6 and small negative weights to most other locations. This component measures a pattern observed in a single rod (#26; see Display 17.8) that had a large peak in the magnetic force at location 6. Variables Suggested by PCA Principal components should seldom be used directly as responses in further analy- sis. This has to do with repeatability: If the study is repeated, the same coefficients would never appear in the analysis. For this reason, it is usually better to use easily comprehended linear combinations that capture the features identified by the prin- cipal components. This requires thinking about what the principal components really measure. For further analysis, replace PC #1 by the average of all responses; replace PC #2 by the difference between the average forces at positions 9–11 and at posi- tions 1–3; replace PC #3 by the difference between the force at position 6 and the average force at the first two positions. These replacements are suggested by the coefficients, but they should be checked to verify that together they measure the same variational features as the first three principal components. To this end, Display 17.6 shows a scatterplot of the first principal component against its pro- posed replacement. The principal component appears to be a nearly exact linear function of the average. Constraint #2 in Section 17.3.2 requires the second principal component to be uncorrelated with the first and the third to be uncorrelated with the first two. The surrogates are not so constrained, and the correlation that exists will cloud the issue if a scatterplot is constructed for PC #2 versus its proposed surrogate. The method around this is to determine the part of the surrogate (the “end- contrast” summary) that is constrained to be uncorrelated with the first surrogate. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 17.6 Scatterplot of PC #1 against the average magnetic force across all positions DISPLAY 17.7 PC #2 200 400 600 800 Rod Average Scatterplots of PC #2 and PC #3 against residuals of their surrogates on lower-order surrogates –200 –100 0 100 200 0 200 400 Peak: Difference Between L6 and Initial Positions (residual from rod average and end comparison) 17.3 Principal Components Analysis 525 R2 = 94.7% PC #3 R2 = 93.4% Ends: Difference Between End Averages (residual from rod average) PC #1 R2 = 99.9% Rod #26 Accomplishing this involves regressing the end-contrast variable against the rod average variable and retaining the residuals. Similarly, taking the third surrogate (the “peak 6” summary) and retaining its residuals from a regression on the first two surrogates produces the result shown in Display 17.7, where close agreement is evident between the surrogates and the principal components they replace. To complete the analysis, the three surrogates are used as response variables, with the design factors as explanatory variables. The analysis of the three- dimensional multivariate response proceeds in accordance with the methods of Chapter 16. Since the three components are nearly uncorrelated, however, there is little need to adjust confidence intervals to account for correlations. Therefore, Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Rod #26 526 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses 17.3.4 the analysis can be accomplished by three separate univariate analyses that exam- ine the effects of the design variables on each of the three linear combinations of rod measurements. Scatterplots in Principal Component Space Although principal components are uncorrelated, their scatterplots sometimes reveal important structures in the data other than linear correlation. Display 17.8 shows a matrix of scatterplots for the three principal components in the magnetic forces example. The first two principal components reveal that there are four dis- tinct groups of rods and that the patterns of within-group variation are somewhat different. The latter revelation suggests that some transformation of the data may be appropriate prior to PCA (a suggestion not pursued here). The plots show Matrix of scatterplots for the first three principal components of the magnetic force measurements DISPLAY 17.8 300 200 100 0 –100 200 100 0 –100 – 200 Rod #26 Component #2 Component #3 –1,500 –500 0 500 Component #1 1,000 –100 0 Rod #26 100 200 300 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Notice that the scale of the first principal component is very different from the scale of the other two. The SDs are: SD of PC #1 = 804.3 SD of PC #2 = 131.3 SD of PC #3 = 68.4 Component #3 17.3 Principal Components Analysis 527 that variation in the third principal component consists primarily of the difference between rod #26 and all the rest. 17.3.5 The Factor Analysis Model and Principal Components Analysis Factor analysis provides a useful conceptual model for interpreting PCA. Rather than thinking of the principal components as being extracted or distilled from the original set of variables, imagine them as real underlying factors that are not directly measurable but nonetheless contribute to all measurements. For example, scores on tests and homework are all related to a person’s general subject mastery; subject mastery, therefore, is the factor. This cannot be measured exactly, so the teacher instead takes the exam scores, which are strongly influenced by the factor. By thinking about what the underlying factors in a problem might be, one often gains insight into what the principal components are measuring. 17.3.6 PCA Usage Scale Sensitivity Principal component analysis is scale-sensitive. If Yj is measured in centimeters, then 10Yj is the same variable measured in millimeters. The variance of 10Yj is 100 times the variance in Yj . Thus, changing Yj from centimeters to millimeters while leaving other variables unchanged causes PCA to give more attention to it. Some researchers use PCA to summarize sets of variables that have very dif- ferent scales—liters, millimeters, kg/sec, megaparsecs—but they standardize all the variables beforehand by dividing them by their sample standard deviations. This does not evade the necessity of determining the meaning of a linear combination of, for example, a length measurement and a momentum measurement. PCA on Explanatory Variables Prior to Regression PCA is sometimes recommended as a way of avoiding problems of multicollinearity in multiple linear regression (Section 12.2). Many interrelated explanatory vari- ables may be grouped by general theme—socioeconomic, weather, geographic, or physiologic, for example. PCA is then used to select a small number of uncor- related variables to represent each group in the overall regression. Unfortunately, by regressing a response on the first or first few principal components, a researcher may overlook a linear combination of explanatory variables that is highly correlated with the response, if that linear combination lacks high variability. Recommended Usage Using PCA to find low-dimensional representations of very diverse variables can run into many problems. PCA works best in situations where all variables are measurements of the same quantity, but at different times or locations, as in the magnetic force study. It may also be used in reducing the dimension of a multivari- ate response, in reducing the dimension of a set of explanatory variables, and in summarizing a single multivariate sample. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 528 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses 17.4 CANONICAL CORRELATIONS ANALYSIS Canonical correlations analysis (CCA) is used when multivariate measurements are partitioned into two sets. CCA finds linear combinations in the two sets—L1 and L2, say—that have the largest possible correlation. In this sense, CCA is a correlation analysis not between two variables but between two sets of variables. In some problems, one set consists of response variables Y1, Y2;:::;Yq, and the other consists of explanatory variables X1;X2;:::;Xp; but as with ordinary correlation, one need not make explicit “response” and “explanatory” designations. The form of the linear combinations will, hopefully, reveal some meaningful relationship between the two sets of variables. 17.4.1 Canonical Variables One question asked about the love and marriage data was whether they revealed a relationship between love toward one’s spouse and perceived love returned by the spouse. For each couple in the data set, there are four variables pertaining to love toward spouse (HP, WP, HC, WC) and four pertaining to perceived love from spouse (PW, PH, CW, CH); therefore, the question can be investigated through the canonical correlations between these two sets. CCA selects one linear combination from each set to form a pair of canonical variables. The coefficients determining the pair are chosen to give maximum correlation between the two variables in the pair. Next, CCA selects a second pair of linear combinations, one from each set. The variables in this pair have the largest correlation possible, given that they are not correlated to the variables already chosen to form the first pair. CCA continues to construct variable pairs in this way until the number of pairs reaches the smaller of the number of variables in the two sets. The sets of variables regarding love toward spouse and perceived love from spouse were labeled as “To” and “From,” respectively. Canonical correlations anal- ysis provides four linear combinations from each set. The CCA computer output appears in Display 17.9. According to the table of coefficients in Display 17.9, the first pair of linear combinations (referred to as the first pair of canonical variables) is To1 D 􏰀0:1555HP 􏰀0:1613WP C1:4392HC 􏰀0:2657WC From1 D 􏰀0:0517PW C0:1025PH C1:4559CW 􏰀0:0772CH (see Display 17.9 for the meanings of the variable abbreviations). The second pair of canonical variables is To2 D 0:4948HP C0:0601WP C0:2052HC C1:7672WC From2 D 0:5287PW 􏰀0:0568PH C0:0312CW C1:7260CH: Four such pairs of linear combinations are provided in the output of Display 17.9. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 17.9 Pair Canonical variables and their correlations for the relationships between responses concerning love given and responses concerning perceived love returned 17.4 Canonical Correlations Analysis 529 Estimates of canonical correlations and their statistical significance Canonical correlation Chi-square d.f. Pair 3 1.1838 0.2359 0.5856 –1.0983 Pair 3 1.1818 0.4264 0.4969 –1.2236 p-value Pair 4 0.4859 –1.4669 –0.3127 –0.2085 Pair 4 –0.6210 1.5998 –0.4939 –0.2667 Love toward spouse (To) HP: Husband’s passionate WP: Wife’s passionate HC: Husband’s compassionate WC: Wife’s compassionate Perceived love in return (From) PW: Passionate love from wife PH: Passionate love from husband CW: Compassionate love from wife CH: Compassionate love from husband Pair 1 –0.1555 –0.1613 1.4392 –0.2657 Pair 1 –0.0517 0.1025 1.4559 –0.0772 Pair 2 0.4948 0.0601 0.2052 –1.7672 Pair 2 0.5287 –0.0568 0.0312 1.7260 Interpreting the Statistical Tests Coefficients for canonical variables The upper table in Display 17.9 shows that the correlation between To1 and From1 is 0.9507—the first canonical correlation. The correlation between To2 and From2 is 0.8666; and so on. The chi-square statistic for pair j is a test statistic for the hypothesis that the correlation between the jth pair is zero and that the correlations between all subsequent pairs are also zero. The top row, therefore, contains a chi-square statistic for the test that all four canonical correlations are zero. It is not a test of correlation for the first pair alone, although strong evidence that some correlation exists points directly to at least the first pair. The second row’s chi-square is for the hypothesis that the last three canonical correlations are zero. The third chi-square tests for the last two canonical correlations, and the final chi-square tests the fourth canonical correlation. The p-value for each hypothesis is found as the proportion of values from a chi-squared distribution with the appropriate degrees of freedom that exceed the test statistic. The degrees of freedom are presented in the Display 17.9 output; their derivations are not discussed here. To determine how many correlations the data support as being nonzero, see where the break occurs between significantly large chi-square statistics to non- significant ones. In this example, overwhelming evidence supports two canonical correlations and suggestive but not conclusive evidence supports a third. If the first test finds no significant evidence of any canonical correlation (as is the case when the variables are grouped as Husband’s and Wife’s or as Passionate Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 530 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses 17.4.2 and Compassionate), CCA permits the strong conclusion that no evidence exists of any correlations between linear combinations of variables in the sets. Variables Suggested by CCA Once again, it is desirable to select meaningful linear combinations that capture the essence of the canonical variables. Since CCA is not scale-sensitive, one has the option of inspecting coefficients of the original variables or of their standardized versions. Thus, a CCA combination may be written in either of the following forms: Canonicalvariable DX.Cj Yj/DXŒ.Cjsj/.Yj=sj/: HereYj isanoriginalscaledvariable,andsj isitssamplestandarddeviation.Then .Yj =sj / is the standardized variable, with standard deviation D 1. The unstandard- ized coefficient is Cj , and the standardized coefficient is Cj sj . The magnitude of the standardized coefficient is the amount of change in the canonical variable that is associated with a one-SD change in the variable (other variables held constant), so coefficients of the standardized variables are best for identifying which variables contribute most to a linear combination. Coefficients are constrained in two ways: 1. Canonical variables have standard deviations equal to one .1:0/. 2. Canonical variables in one pair are uncorrelated with the canonical variables in pairs previously selected. It becomes increasingly difficult to interpret succeeding pairs, because the second constraint places heavy conditions on the coefficients. To judge whether a particular surrogate linear combination adequately approximates a canonical variable, look at the relationship between the canonical variable and the residuals from the regres- sion of that surrogate on the previously determined surrogates (for the lower-order canonical variables) in the same set. Love and Marriage Example Consider the coefficients for the first canonical variable pair for direct versus perceived feelings. The coefficients in Display 17.9 are for the nonstandardized variables, but this does not cause a problem because all variables are measured on the same scales. In both canonical variables, the magnitude of the coefficient of the husband’s compassionate love responses is very large relative to the magnitudes of the other coefficients; the coefficient of HC dominates in To1, and the coefficient of CW dominates in From1. To verify that these canonical variables primarily measure the husbands’ compassionate love responses, Display 17.10 shows scatterplots of the canonical variables along with the original variables HC and CW. Display 17.10(A) shows the pair of computer-selected canonical variables having the highest correlation. Graph (B) is the scatterplot of HC versus CW. A comparison of the two graphs suggests that (A) is essentially equivalent to a jittering of (B), so that the first canonical variable from the “To” set is essentially HC and the first canonical variable from the “From” set is essentially CW. 17.4.3 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 17.5 Introduction to Other Multivariate Tools 531 DISPLAY 17.10 From1 Scatterplots of the first canonical variables (From1 and To1) and their proposed surrogates HC (husband’s compassionate love) and CW (husband’s perceived compassionate love from wife) (circles in second plot indicate numbers of couples) r = 0.9507 A r = 0.9280 2 13 12 3 B 8 7 6 5 4 5 HC 4 3 2345 345 To1 CW Because CCA identified canonical variables as being so closely related to single original variables, it is sensible to report the original variables, HC and CW, along with the correlation, C0:93. Although CCA was used as an exploratory tool, the summary of statistical findings reports the results for the ordinary cor- relation analysis between HC and CW. The data provide convincing evidence that the population correlation is nonzero (p-value < 0:0001; see Section 7.5.4 for tests of correlation). The CCA also produced convincing evidence of a correlation between a second pair of canonical variables. Inspection of coefficients for pair 2 in Display 17.9 suggests that these linear combinations might simply be picking up WC from the To set and CH from the From set; that is, the wife’s compassionate love is correlated with the compassionate love she perceives her husband to return. A scatterplot of the residuals (from the regression of WC on HC) versus the second canonical variable from the To set, together with a scatterplot of the residuals (from the regression of CH on CW) versus the second canonical variable in the From set, indicates that these components capture most of what is explained by the second canonical variables (plots not shown here). Their correlation analysis is reported in the Statistical Conclusion of Section 17.1.2, as is the correlation analysis between HP and PW, which is suggested by the third canonical variables. 17.5 INTRODUCTION TO OTHER MULTIVARIATE TOOLS The following subsections sketch several other popular multivariate tools. The brief discussions merely convey the purposes and interpretations of the techniques. References to more detailed explanations are provided at the end of the chapter. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 532 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses 17.5.1 Discriminant Function Analysis (DFA) The objective of discriminant function analysis (DFA) is to find a rule involving multivariate responses that best discriminates the subjects in different groups. This problem can be approached in many ways, and vast literature surrounds it. This section describes one solution—Fisher’s linear discriminant function—featured by most statistical computer packages. Logistic regression, presented in Chapter 20, provides a more flexible approach to meet the same purpose. The DFA Train The hypothetical scatterplot of Display 17.11 contains two distinct groups of sub- jects. In such a situation, a variable that best enables one to distinguish group membership is called a discriminant function. Taking the train along the track indi- cated in the display, one passes by all the subjects in group #1 before coming to any subject from group #2. Histograms of the locations along that track for the two groups do not overlap. Therefore a new point, whose group membership is not known, could be classified with considerable confidence based on its location along that axis. There would be overlap of the two groups in each of the separate variables in Display 17.11. Applying t-tools to test for group differences on each variable separately could easily fail to detect the distinction between the groups. Fisher’s Linear Discriminant Function The approach taken by R. A. Fisher was to find the linear combination that maxi- mizes the one-way analysis of variance F -statistic. (When two groups are involved, the t-statistic for comparing the values of the linear combination in the two groups is maximized.) Relevant output consists of the coefficients of the discriminant func- tions, the discriminant function scores for each subject, measures of the percentage of cases correctly classified by the analysis, and an overall measure of group dif- ferences. The maximum number of discriminant functions available in a general problem is the smaller of the number of variables and one less than the number of groups. A confusion matrix is an array showing the proportions of subjects in the actual groups that are classified in the predicted groups by the rule. A confusion matrix applies the rule to the same data used in devising the rule, so the proportions tend to be overly optimistic as estimates of the reliability of future predictions. Consequently, with large data sets, it is advisable to employ cross-validation, where subjects are divided into a training set used to devise the rule and a cross-validation set used to estimate the rule’s reliability. Cluster Analysis The objective of cluster analysis is to classify sampled subjects into homogeneous groups, or clusters. The nature of the clusters is not known in advance. The data are used to construct distances (d) separating subjects, much like the city-to-city 17.5.2 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 17.5 Introduction to Other Multivariate Tools 533 DISPLAY 17.11 The discriminant function analysis (DFA) train travels a route that best separates two clusters of subjects Along the first discriminant axis, the train passes all of group #1 before coming to the beginning of group #2. Group #1 Group #2 distance tables that are found on most maps. Clustering consists of grouping sub- jects that are close to each other and separating these from subjects that are more distant. Numerous clustering algorithms are available. Cluster analysis does not yield linear combinations of variables to use in classification, nor does it ordinate the subjects in a coordinate system. Example Diet analysis examines who eats what. Suppose that researchers identify N con- sumers and M food categories. A field study measures the proportion pij of the diet for consumer i that falls in the jth food category. Two consumers have iden- tical diets if their proportions match; thus, a measure of the squared distance between diets might be the sum over the different food categories of the squared differences in proportions, d 2 D 100  †.pij 􏰀 pkj /2. Display 17.12 shows such ik an analysis of the diets of nine shorebirds foraging in the intertidal zone of the U.S. Pacific coast. (Data from F. L. Ramsey and C. P. Marsh, “Diet Dissimilar- ity,” Biometrics 40 (1984): 707–15.) The left half of the display shows the distances between pairs of diets, and the right half shows a dendogram linking the birds into groups. In this diagram, the two species of birds represented—Surfbird (SB) and Black Turnstone (BT)—were separated into distinct clusters at a distance of approximately 120 units. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 534 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses DISPLAY 17.12 Dietary distances of nine consumers and a resulting cluster analysis Consumer SB2 SB3 SB4 SB5 BT1 BT2 BT3 BT4 SB1 SB2 SB3 SB4 SB5 BT1 BT2 BT3 BT4 3 91 78 106 116 134 109 111 90 77 105 115 133 107 110 268497117 87 89 71 89 110 71 77 61 106 57 62 56 58 35 58 48 31 0 50 100 150 Distance 17.5.3 Multidimensional Scaling Multidimensional scaling (MDS) is a tool for arranging all subjects on a low- dimension map. As in cluster analysis, a measure of the pairwise distance between subjects is available or is constructed from the multivariate responses. The objec- tive is to assign each subject a location in, say, two dimensions, so that the ordinary straight line distances between their locations match the distances in the data as closely as possible. MDS provides a map in which clustering often appears and in which axes distinguish subjects at extreme distances apart. Example Cox and Brandwood examined sentence endings in seven works of Plato—Republic, Laws, Critias, Philebus, Politicus, Sophist, and Timaeus—with the objective of deter- mining the chronological order of their writing. A sentence ending consists of the last five syllables, and classifying each syllable as long or short yields a set of 32 pos- sible ending types. The researchers counted the proportions of endings of each type based on a large selection from each work. With pij representing the proportion of type j endings in work i, one distance between works i and k is defined by dik D Pjpij 􏰀pkjj as shown in Display 17.13. (Data from D. R. Cox and L. Brandwood, “On a Discriminatory Problem Connected with the Works of Plato,” Journal of the Royal Statistical Society B21 (1959): 195–200.) A one-dimensional MDS consists of assigning a time ti to each work in such a way that the time differences closely match the distances fdikg. A two-dimensional MDS expands on that to describe another dimension of the differences between works. The MDS solution appears in Display 17.14. Correspondence Analysis Correspondence analysis is a method of ordinating categorical attributes. Each attribute has several levels that are not necessarily ordered. The objective is to 17.5.4 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 17.5 Introduction to Other Multivariate Tools 535 DISPLAY 17.13 Percentage discrepancies between sentence endings in seven works of Plato Republic Laws Laws Critias Philebus Politicus Sophist Timaeus 55.2 44.7 60.0 52.8 37.8 39.1 48.7 25.6 47.7 52.3 Critias Philebus 33.6 41.6 54.3 43.9 44.2 31.2 44.0 56.1 32.8 48.9 27.1 Politicus Sophist DISPLAY 17.14 Two-dimensional MDS map of Plato’s works Philebus Laws Politicus Critias Republic Timaeus Sophist assign a numerical value to each level of each factor in such a way that the corre- lations between the numerical scales are maximized. The method emerged in the 1930s and is a popular tool in botany and plant ecology. Example R. A. Fisher introduced the method in connection with measurements of hair and eye color in a sample of school children from Caithness, Scotland. Display 17.15 shows the array of counts. (Data from R. A. Fisher, “The Precision of Discriminant Functions,” Annals of Eugenics 10 (1940): 422–29.) The correspondence analysis results are the eye-color scores in the right margin and the hair-color scores across the bottom. Assigning children the scores indicated by their eye and hair color results in two variables that have correlation 0.4464, the largest possible correlation achievable by such a scoring procedure. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 536 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses DISPLAY 17.15 Hair color and eye color of school children in Caithness, Scotland Hair color Eye color Fair Red Medium Dark Black Total Score 17.5.5 PCA and Empirical Orthogonal Functions (EOFs) Display 17.16 shows several magnetic force measurement profiles over the 11 posi- tions, along with the profile of rod averages. Measurements at different locations are highly correlated. They all tend to be higher than average or lower than average at all positions on a given rod. A model for the profiles in Display 17.16 might be, approximately, Force on rod i at location j D Mean at location j Cˇi f.j/: Here, f.j/ is a function that describes a pattern of variation common in varying degrees to all rods, and ˇi specifies the strength of the pattern in the ith rod. If, for example, f.j/ D 1 at all positions, the model would say that all rods have profiles that approximately parallel the average profile. The value of ˇi , then, would measure the distance between the profile of rod i and the average profile. As another example, if f .j / D .j 􏰀6/ for each j , departures from the average would be minimal in the center and would increase or decrease linearly away from the center. Magnetic force on a rod with a large positive ˇi would rise much more sharply than on the average rod; conversely, magnetic force on a rod with a negative ˇi would either rise less sharply or decrease. If the choice of a pattern for f.j/ is known, the problem is one of simple linear regression analysis (separately for each rod) to determine the rod constants. If the choice is not obvious, the data can help the examiner choose the pattern. If the problem is posed as one of finding the pattern that most closely matches the variation in rod profiles—in the sense that the variability in the ˇi ’s is largest—the solution is as follows: f.j/ is the jth coefficient in the linear combination forming the first principal component; furthermore, ˇi is just the value of the first principal component for rod i. An extension of the model for the profiles may now be considered. If the differ- ence between the profile for rod i and the prediction from the average and the first principal component has a similar form—namely, ˇ2i f2.j/—involving a constant Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 17.16 Magnetic force profiles for a sample of rods, and the average profile for all rods 17.5 Introduction to Other Multivariate Tools 537 1,200 1,100 1,000 900 800 700 600 500 400 300 26 Rod Number 1 200 100 7 1 2 3 4 5 6 7 8 9 10 11 Location on the Rod multiple of another pattern, the best choice is to have ˇ2i represent the scores and f2.j/ the coefficients from the second principal component; and so on. Plotting the coefficients of the principal components, as in Display 17.17, shows the patterns of variation in the rods. These functions of position are called empirical orthogonal functions (EOFs). An expression that accounts for 99.73% of all the variation is then Forceonrodi atlocationj Dj Cˇ1if1.j/Cˇ2if2.j/Cˇ3if3.j/: EOFs provide intriguing views of spatial–temporal processes. As an example, buoys stationed at latitude–longitude grid points in the North Pacific Ocean have recorded simultaneous sea surface temperature (SST) time series, giving 441 average monthly temperatures at 49 different locations over the period from January 1947 through September 1983. The SST measurements are both serially and spatially Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Average 10 6 2 9 Magnetic Force 538 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses DISPLAY 17.17 Empirical orthogonal functions depicting modes of variation in magnetic forces along printer rods 0.8 0.6 0.4 0.2 0.0 –0.2 –0.4 –0.6 –0.8 PC #1 gives approximately the same positive weight to each position variable. PC #3 contrasts the position six variable with the lower-end position variables. PC #2 contrasts the upper-end positions with the lower-end positions. 1 2 3 4 5 6 7 8 9 10 11 Position on the Rod correlated. EOFs are constructed using PCA, with the values of monthly sea sur- face temperature at the 49 locations being a 49-dimensional multivariate response variable (analogous to the magnetic force at 11 different locations on a rod in Section 17.1.1) and the 441 time points being “subjects” (like the 44 different rods). The first principal component is the linear combination of the 49 temperatures that explains the greatest variation over time. This first PC accounts for only 15.4% of the total variation. The contour map in Display 17.18 summarizes the coefficients. An EOF1 tongue extends from Siberia across to the American coast to indicate the locations at which the greatest variabil- ity of sea surface temperatures occurs. At times when the value of PC1 is positive (which can be seen in Display 17.19), this is a tongue of water that is colder than average; when the value of PC1 is negative, the tongue becomes warmer than aver- age. The nature of the values of PC1 over time is that of an AR(2) time series, which wanders through lengthy excursions away from its mean value. Display 17.19 shows the value of the first PC at each month. First EOF patterns portray what researchers would describe as a normal, observable pattern. To delve further into the behavior of processes such as the SST series, these researchers will explore the second, third, and perhaps more EOF patterns. (See Exercise 17.14.) Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. PCA Coefficients 17.6 Summary 539 Contours of the values of the 49 coefficients of the first principal component of monthly sea DISPLAY 17.18 surface temperatures at 49 grid points in the Pacific Ocean, illustrating the locations at which 130° the greatest variation occurs Sea Surface Temperature EOF # I 140° 150° 160° 170° 180° 190° 200° 210° East Longitude 220° 230° 240° 60° North Latitude 50° 40° 30° 20° –4° –3° –2° –1° 0° +1° +2° 17.6 SUMMARY When researchers do not know the best way to summarize responses before looking at the data, they specify some desirable objective for the summary measure to have. Several special statistical tools create summaries to meet special objectives. Prin- cipal components analysis reduces the dimensionality of a set of responses, without significantly reducing their overall variation. Canonical correlations analysis reduces the dimensionality in two sets of variables while preserving the relationships between them. PCA, CCA, and similar multivariate tools are designed to point in general directions. Although they provide detailed sets of coefficients and scores, the linear combinations they identify are rarely used directly. Thus, the user must determine what sensible variables the tools are attempting to identify, by examining the coef- ficients and correlating proposed meaningful linear combinations with the indicated linear combinations. The tools in this chapter are exploratory: They are used to suggest meaningful linear combinations, which may then be analyzed more formally. Since this is a form of data snooping, the user should report that the tools were used to suggest reductions in multivariate responses prior to the onset of formal data analysis. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 540 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses DISPLAY 17.19 The first principal component of monthly sea surface temperatures at each of the 441 months, indicating the pattern over time of the predominant variation in sea surface temperature, and a partial autocorrelation function plot of the series, indicating AR(2) time dependence '47 '48 '49 '57 '58 '59 '67 '68 '69 '77 '78 '79 '50 '51 '60 '61 '70 '71 '80 '81 '52 '53 '62 '63 '72 '73 '82 '83 '54 '55 '56 '64 '65 '66 '74 '75 '76 Sea Surface Temperature EOF #I 0.5 0.0 –0.5 EOF #1 PACF Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Partial Correlation 17.7 Exercises 541 Magnetic Force Data The engineers are interested in studying the effects of the three treatments on the variability of the 11-dimensional measurement on magnetic force. A principal components analysis is used to reduce the 11-variable response to three variables that capture nearly all the variability. The coefficients of the principal components suggest meaningful linear combinations of the response components: the average magnetic force; the difference between magnetic forces at the ends of the rod; and the magnetic force in the middle. Since these are nearly uncorrelated with each other, each is separately regressed on the treatment factors. Love and Marriage Study The questions of interest call for identifying correlations between sets of multivariate responses. Section 17.4 focuses on the correlation between variables represent- ing feelings of love toward spouse (HP, WP, HC, WC) and variables representing perceived feelings of love returned by the spouse (PW, PH, CW, CH). Canonical correlations analysis provides strong evidence that two linear combinations from the first set are correlated with two linear combinations from the second set. Sug- gestive but inconclusive evidence is found of a statistically significant correlation of a third pair. Investigation of coefficients of the canonical variables suggests mean- ingful linear combinations. In this case the linear combinations corresponding to each of the three pairs of canonical variables are simply individual components. For example, the correlation between the first pair of canonical variables can be explained almost entirely by the correlation between HC and CW. Thus, a formal, ordinary correlation analysis is performed on this pair. Further questions asked of the data require a different partitioning of the eight responses. For the question of whether a husband’s responses correlate with a wife’s responses, the variables are categorized into husband’s (HP, HC, PW, CW) and wife’s (WP, WC, PH, CH). Although not shown in this chapter, the canonical correlation indicates no significant correlations between these two groups, nor between groups corresponding to passionate and compassionate love. 17.7 EXERCISES Conceptual Exercises 1. In a study of the atmospheric concentrations of air pollutants in the Los Angeles area, daily measurements of seven pollution-related variables were recorded over an extended period of time. In addition, five weather-related variables and three variables measuring the city’s activity level were taken. The main question: Was there a relationship between the pollution levels and the weather/activity variables? What analysis tool from this chapter seems the best to start with? 2. Track-and-field events have frequently been examined with the hope of identifying primary skills related to success in various events. Data from eight different Olympic decathlon championships were gathered to analyze the performances of entrants in the 10 decathlon events. The objective was Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 542 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses to determine whether a few common factors account for the variation in all 10 events. What analysis procedure do you recommend? 3. A researcher obtained five variables measuring job characteristics (feedback, task significance, task variety, task identity, autonomy) and seven variables measuring job satisfaction (supervisor satisfaction, career-future satisfaction, financial satisfaction, workload satisfaction, company identi- fication, kind-of-work satisfaction, general satisfaction) from 784 executives in the corporate branch of a large retail merchandizing corporation. (Data from R. B. Dunham, “Reaction to Job Charac- teristics: Moderating Effects of the Organization,” Academy of Management Journal 20(1) (1977): 42–65.) The researcher had two questions: (a) Are measures of job satisfaction associated with mea- sures of job characteristics? (b) If so, what features of job satisfaction are related to what features of job characteristics? What analysis procedure(s) do you recommend? 4. A survey collected annual financial data for 21 businesses 2 years away from bankruptcy and for 25 financially sound businesses. The data included measurements of cash flow, total debt, net income, total assets, net sales, current assets, and current liabilities. Two questions were to be investigated: (a) Are the financial characteristics of the businesses headed for bankruptcy different from the financial characteristics of sound businesses? (b) If so, is there a way to predict from its financial characteristics whether a business is headed for bankruptcy? What analysis procedures do you recommend? 5. Biologists gathered habitat association information from 250 plots in Madagascar. They mea- sured the population densities of 14 key vertebrates, and they measured 23 variables describing the plots’ terrain and vegetational structure. Which of the following analyses is preferable, and why? (a) PCA for the terrain and vegetation variables; PCA for the densities; then regression analysis to relate the two. (b) PCA for the terrain and vegetation variables; then regression to relate the densities to the principal components. (c) CCA. 6. Researchers constructed a questionnaire containing 200 questions about job satisfaction in the nursing profession. To reduce its length, they administered it to a sample of 500 current and retired nurses and used PCA to identify 15 main factors accounting for 98.3% of the variation in all 200 questions. Subsequently, they reduced the questionnaire to a manageable 30 questions specifically designed to measure those 15 factors. Now the researchers want to use DFA to identify factors that distinguish between nurses who will stay in the profession and nurses who will leave the profession for work elsewhere. Should the researchers be concerned that the reduction from 200 to 30 questions might have overlooked key factors that could distinguish these two groups? 7. One hundred students each took five exams, each of which was scored on a percentage scale (0–100). The exams were: Physics (C), Biology (C), Geometry (O), Algebra (O), and Statistics (O). The letter in parentheses indicates whether the exam format was closed book or open book. PCA gave the coefficients and principal component variances listed in Display 17.20. (a) Which, if any, of the principal components measures a difference in performance on open-book versus closed-book exams? (b) Which, if any, of the principal components measures overall performance on all exams? (c) What percentage of the variability of all five exam scores is explained by the first two principal components? 8. Pig Fat. Magnetic resonance imaging (MRI) can be used to obtain cross-sectional images through living tissue. One application of MRI is in estimating pig fatness. MRI images were col- lected at 13 equal spacings (approximately 8 cm apart) along the full-body lengths of 12 pigs. The pigs were subsequently killed and dissected to determine their actual fat percentages. The data are shown in Display 17.21. (Data from C. A. Glasbey and P. A. Fowler, “Regression Models Fitted Using Conditional Independence to Estimate Pig Fatness from Magnetic Resonance Images,” Statis- tician 41 (1992): 179–84.) It is desired to use MRI for predicting pig fat prior to killing a pig. Some redundancies exist in the MRI measurements, and not all 13 measurements are needed. Two general Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 17.20 Data for Exercise 7 DISPLAY 17.21 Actual pig fat (in percent) and measurements of pig fat (also in percent) from magnetic resonance images at 13 locations for 12 pigs; first 5 of 12 rows 17.7 Exercises 543 Coefficients for principal component number Test (open/closed) 1 2 3 4 5 Fat M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 M13 approaches are possible for developing a prediction equation: Use a variable selection procedure, such as forward selection, to identify a subset of measurements and a regression model for predict- ing pig fat; or use principal components analysis on the MRI measurements to identify a few linear combinations that explain most of the variability, and then regress actual pig fat percentage on the meaningful combinations suggested by these. (a) What are the relative advantages and disadvantages of these two approaches? (b) As a practical matter, it is time-consuming to interpret all 13 images. If the goal is to develop a prediction model that requires the fewest MRI measurements, which of the two strategies is preferable? Computational Exercises 9. Pig Fat. For the data in Display 17.21 (and described in Exercise 8), use principal components analysis to find two or three linear combinations of the MRI measurements of pig fat that explain most of the variability in the measurements (M1 through M13). Try to find meaningful linear combinations (for example, the average of all 13) that these suggest. 10. Magnetic Force. Carry out the principal components analysis, as in this chapter, but use the square roots of magnetic force as the response. Replace the first two principal components with vari- ables that have similar, but more comprehensible coefficients. Construct a scatterplot of the subjects in the coordinates of these two variables. Use the first variable (average magnetic force, on the square- root scale) as a response variable, with the design variables (current, configuration, and material) as explanatory variables. Try combinations such as interactions—or even indicator variables—for the different levels of current. What do you conclude from this? Repeat the analysis with the second constructed variable as the response. What do you conclude? Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 544 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses 11. Love and Marriage. Rework the CCA analysis for the data on love between spouses. (a) Group variables on the basis of passionate love versus compassionate love. Is there any relationship between the two sets? If so, characterize the related variables. (b) Group variables on the basis of questions asked of husband versus questions asked of wife. Is there any relationship between the two sets? If so, characterize the related variables. 12. Nature–Nurture. Reconsider the IQ scores for adopted children from Exercise 16.4. The goal here is to consider the associations between the response variables (each child’s IQ at ages 2, 4, 8, and 13) and the two explanatory variables relating to foster mother and natural mother. In Chapter 16, several linear combinations of the responses were considered for addressing different questions of interest. Do the data themselves suggest useful linear combinations? (a) Perform a principal components analysis on the four responses to see whether one or two useful linear combinations that explain most of the variation in the four measurements present themselves. Try to express the linear combinations in simpler meaningful variables. (b) Perform a canonical correlations analysis with the response variables in one set and the explanatory variables in another. Does this suggest any useful univariate regression analyses to try? Who Looks After the Kids? Exercise 10.31 examined a research study that attempted to see which modern group of animals (Crocodiles, Biparental Care Birds, Paternal Care Birds, or Maternal Care Birds) were closest to dinosaurs in their relationship between clutch volume and adult body mass. Regression models were fit to the mean of log clutch volume as a straight line function of log body mass, with completely separate lines for the six groups. Extra-sums-of-squares F -tests were performed to test equality of slopes and intercepts for each pair of groups. Each extra sum of squares measures a squared distance between a full model (with completely separate intercepts and slopes) and a reduced model (with common intercept and slope for the pair in question but separate intercepts and slopes for the other groups). If the two groups are similar in their relationship, then the extra sum of squares should be small. Taking the square roots yields the following table of distances between the groups: Using these distances, perform a multidimensional scaling to place the groups on a two-dimensional map. How closely do the map distances match the extra-sum-of-squares distances? 14. Sea Surface Temperature and EOFs. Continue the EOF example of Section 17.5. Construct a plot of the first 10 principal component variances versus the PC number (often referred to as a “scree plot”). If possible, construct a contour map of the second EOF of the sea surface temperatures. Analyze the corresponding time series of the values of the second principal component. Data Problems 15. Church Distinctiveness. Why do some religious denominations require their members to adopt distinctive, stigmatizing behavior—having shaved heads, wearing pink robes, shunning tele- phones and modern medical practice? Why is membership in these extreme religious denominations growing while membership in traditional religious denominations declines? L. R. Iannaccone argues Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 13. Mani Othr Croc BiP Pat Maniraptoran Dinosaurs Mani Other Dinosaurs Othr 1.9707 Crocodiles Croc 1.6226 1.1786 Biparental Care Birds Bip 2.2572 0.8234 1.3152 Paternal Care Birds Pat 0.7124 3.5239 3.1472 5.1675 Maternal Care Birds Mat 1.3008 1.6868 0.6320 1.5703 3.6302 17.7 Exercises 545 DISPLAY 17.22 Measures that differ among denominations of American Protestant and Catholic churches Church attendance Church denomination Distinctiveness (% weekly) Number of nonchurch memberships Strong member (%) Annual income ($US) that differences between mainstream churches and extreme sects represent neither historical coin- cidences nor expressions of irrational fanaticism. He proposes that individuals’ rational choice to participate in a collective activity results in a need for successful groups to eliminate “free riders”— uncommitted people who join to enjoy group benefits without contributing to its maintenance. Free riding causes committed members to choose low levels of involvement, thereby weakening the group. Requiring nonconformist behavior imposes a cost on membership that discourages uncommitteds from joining. Iannaccone argues that this explanation for differences between denominations has predictive power and is “unidimensional.” In support of the theory, he supplied data on 17 Protestant denominations plus Catholics. (Data from L. R. Iannaccone, “Why Strict Churches Are Strong,” American Journal of Sociology 99(5) (1994): 1180–211.) To get a measure of “distinctiveness” (strictness of discipline), he averaged scores from 16 experts on a seven-point scale for the criteria: “Does the denomination emphasize maintaining a separate and distinctive life style or morality in personal and family life, in such areas as dress, diet, drinking, entertainment, uses of time, marriage, sex, child rearing, and the like? Or does it affirm the current American mainline life style in these respects?” These scores and four survey-based measures appear in Display 17.22. Attendance is the average percentage of weeks that individuals attended a church meeting. Nonchurch is the average number of secular organizations to which members belong. Strong is the average percentage of members that describe themselves as being strong church members. Income is the average annual income of members. The last four variables come from an extensive survey of church members. Treat the final four variables as responses characterizing different aspects of the churches’ mem- berships. To what extent does a single dimension describe differences on all four scales? (Use PCA.) Draw a scatterplot of the first versus the second principal components, and label the points with the church denomination. Interpret the first principal component by comparing the denominations at the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 546 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses ends of this scale. How does that single dimension relate to the author’s distinctiveness scale? To what extent do these data support his theory? 16. Insurance. In the 1970s, the U.S. Commission on Civil Rights investigated charges that insur- ance companies were attempting to redefine Chicago “neighborhoods” in order to cancel existing homeowner insurance policies or refuse to issue new ones. Data on homeowner and residential fire insurance policy issuances from 47 zip codes in the Chicago area appear in Display 17.23. Six vari- ables describe general zip code features: fire D fires per 1,000 housing units; theft D thefts per 1,000 population; age D percentage of housing units built prior to 1940; income D median family income; race D percentage minority; and zip D the last two digits of the zip code (the first three being 606). Chicago’s FAIR plan provided a way for households that were rejected by the voluntary insurance market to obtain insurance coverage. These policies were issued involuntarily by the insur- ance industry. Voluntary (vol) is the number of new policies (plus renewals, minus cancellations and nonrenewals) per 100 housing units, while involuntary (invol) is the number of FAIR plan policies and renewals per 100 housing units. (Data from D. F. Andrews and A. M. Herzberg, Data, New York: Springer-Verlag, 1985.) (a) Perform a canonical correlations analysis with Set1 D ffire, theft, age, income, raceg and with Set2 D fvol, involg. (b) Draw a matrix of scatterplots for Set1 variables, including the derived canon- ical variables. Characterize the first canonical variable from Set1 by contrasting the fire, theft, age, income, and race characteristics of zip codes on the high end of its scale with the characteristics of zip codes on the low end of its scale. (c) Draw a matrix of scatterplots for Set2 variables, also includ- ing its canonical variables. Once again, describe the canonical variables in terms of vol and invol characteristics associated with extreme ends of the scale. (d) These exercises provide small insight into the second canonical variable from Set1. To see that this variable has some spatial consistency, categorize zip codes into quartiles based on this variable and color the zip codes in a reproduction of the map in Display 17.23. Repeat the color coding for the quartiles of the first canonical variable from Set1 to show its spatial pattern. (d) Write a short summary of the analysis, providing a descrip- tive interpretation of the canonical variables and assessing the strength of the relationship between canonical variable pairs. 17. Dimensions of Aptitude Test Scores. The data file ex1223 contains the 10 test scores in the Armed Services Vocational Aptitude Battery of tests—General Science (Science), Arithmetic Rea- soning (Arith), Word Knowledge (Word), Paragraph Comprehension (Parag), Numerical Operations (Numer), Coding Speed (Coding), Automotive and Shop Information (Auto), Mathematics Knowl- edge (Math), Mechanical Comprehension (Mechanic), and Electronics Knowledge (Elec)—for 2,584 Americans selected for the National Longitudinal Study of Youth in 1979 (NLSY79; see Exercise 12.23). See if the variability in the 10-dimensional aptitude test scores can be reasonably explained by a smaller number of linear combinations and, if possible, describe those linear combinations. (Note: These 10 tests had different numbers of maximum points. It would be appropriate to stan- dardize the scores before using exploratory dimension reduction techniques—subtract the column average and divide by the column sample standard deviation.) 18. Aptitude and Success. The 10 ASVAB test scores mentioned in Exercise 17 were from tests taken in 1981 when the NLSY79 subjects were between 16 and 24 years old. Also available in data file ex1223 are the following measures of the subjects’ life success measured in 2006 when they were between 41 and 49: 2005 annual income, and 10 measures of self-esteem, which are responses 1 through 4 (1 D “strongly agree”, 2 D “agree,” 3 D “disagree,” and 4 D “strongly disagree”) of the subjects’ agreement with the following statements: Esteem1: Esteem2: Esteem3: Esteem4: “I feel that I’m a person of worth, at least on equal basis with others.” “I feel that I have a number of good qualities.” “All in all, I am inclined to feel that I am a failure.” “I am able to do things as well as most other people.” Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 17.7 Exercises 547 DISPLAY 17.23 Voluntary and involuntary homeowner policy issuances 45 26 56 30 25 40 51 221011 44 24 12 31 46 34 41 18 35 39 47 14 23 32 07 08 16 53 15 38 29 36 21 37 49 52 43 55 27 19 17 28 09 20 13 57 33 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 548 Chapter 17 Exploratory Tools for Summarizing Multivariate Responses “I feel I do not have much to be proud of.” “I take a positive attitude toward myself.” “On the whole, I am satisfied with myself.” “I wish I could have more respect for myself.” “I certainly feel useless at times.” “At times I think I am no good at all.” Are the scores on the 10 aptitude tests correlated with the 11 “success” measures in 2006? In what ways? (Notes: Since the test scores have different maxima, it would be appropriate to standardize them before using any data reduction techniques—subtract the column mean and divide the result by the column standard deviation. Similarly, income in 2005 is on a different scale than the esteem variables so it would be appropriate to standardize all these as well. As with the passionate and compassionate love example, any inferences based on normality assumptions would be rough and approximate, but may be useful for an exploratory analysis.) Answers to Conceptual Exercises 1. Canonical correlations analysis. 2. Principal components analysis. 3. CCA. Question (b) can also be answered by using multivariate regression. 4. Discriminant function analysis. 5. CCA. It preserves and describes whatever relationships exist between the densities and the habitat variables. A habitat feature crucial to determining vertebrate densities may be discarded by PCA if its variability is not large in relation to other features less important to the animals. 6. It should not be a major concern. If nurses fall into two distinct groups of nurses, depending on their job satisfaction, the between-group variability will have been picked up as a major source of variability by PCA. (This is what happened in the magnetic force study.) The advantages of using a standard instrument for the survey far outweigh the disadvantages of its possible oversights. 7. (a) PC #2. (b) PC #1. (c) 80.12%. 8. (a) The PCA approach reduces the set of explanatory variables to a manageable set prior to the use of regression, which frees the regression analysis from having too many explanatory variables for the number of observations. PCA, on the other hand, does not necessarily find the combinations of explanatory variables that are best for predicting actual fat; it only ensures finding the combinations that explain most of the variability in the MRI measurements. (b) The variable selection procedure would be better, since it would identify one or two of the measurements, as opposed to one or two linear combinations of quite a few measurements. Esteem5: Esteem6: Esteem7: Esteem8: Esteem9: Esteem10: Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. CHAPTER 18 Comparisons of Proportions or Odds This chapter returns to the elementary setting of comparing two groups, but for the special case where the response measurement on each subject is binary (0 or 1). A binary variable is a way of coding a two-group categorical response—like dead or alive, or diseased or not diseased—into a number. Statistical analysis of binary responses leads to conclusions about two population proportions or probabilities. Alternatively, conclusions may be stated about odds—like the odds of death or the odds of disease. The discussion here involves large-sample tests and confidence intervals for comparing two proportions or two odds. The next three chapters provide extensions that are analogous to the analysis of variance and regression extensions of the two- sample t-tools. In particular, logistic regression in Chapters 20 and 21 permits regression modeling with binary response variables. 549 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 550 Chapter 18 Comparisons of Proportions or Odds 18.1 CASE STUDIES 18.1.1 Obesity and Heart Disease—An Observational Study There are two schools of thought about the relationship of obesity and heart disease. Proponents of a physiological connection cite several studies in North America and Europe that estimate higher risks of heart problems for obese persons. Opponents argue that the strain of social stigma brought on by obesity is to blame. One study sheds some light on this controversy, because it was conducted in Samoa, where obesity is not only common but socially desirable. As part of that study, the researcher categorized subjects as obese or not, according to whether their 1976 weight divided by the square of their height exceeded 30 kg/m2. Shown in Display 18.1 are the numbers of women in each of these categories who died and did not die of cardiovascular disease (CVD) between 1976 and 1981. (Data from D. E. Crews, “Cardiovascular Mortality in American Samoa,” Human Biology 60 (1988): 417–33.) Is CVD death in the population of Samoan women related to obesity? DISPLAY 18.1 Cardiovascular deaths and obesity among women in American Samoa CVD death Yes No Totals Statistical Conclusion The proportion of CVD deaths among the obese women (0.00776 or 7.76 deaths per 1,000 women) was slightly higher than the corresponding proportion among nonobese women (0.00666). However, the estimated difference in population pro- portions, 0.00110, is small relative to its standard error (0.00325). The data are consistent with the hypothesis of equal proportions of CVD deaths in the populations of obese and nonobese Samoan women (one-sided p-value D 0.37). Scope of Inference The sample was large, comprising approximately 60% of the adult population of Tutuila, the main island. The sample’s age distribution was similar to the popula- tion’s, so the 3,112 women may be assumed to constitute a representative sample from the population of all American Samoan women in 1976. Although the results cannot be extrapolated to populations of women outside of American Samoa, the small difference in CVD rates between obese and nonobese women in a popula- tion in which obesity is socially acceptable lends some credibility to the argument Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 18.1 Case Studies 551 that the social stigma rather than the obesity itself may be responsible for the association of obesity and CVD in North America and Europe. 18.1.2 Vitamin C and the Common Cold— A Randomized Experiment Linus Pauling, recipient of Nobel Prizes in Chemistry and in Peace, advocated the use of vitamin C for preventing the common cold. A Canadian experiment examined this claim, using 818 volunteers. At the beginning of the winter, subjects were randomly divided into two groups. The vitamin C group received a supply of vitamin C pills adequate to last through the entire cold season at 1,000 mg per day. The placebo group received an equivalent amount of inert pills. At the end of the cold season, each subject was interviewed by a physician who did not know the group to which the subject had been assigned. On the basis of the interview, the physician determined whether the subject had or had not suffered a cold during the period. The results are shown in Display 18.2. (Data from T. W. Anderson, D. B. W. Reid, and G. H. Beaton, “Vitamin C and the Common Cold,” Canadian Medical Association Journal 107 (1972): 503–08.) Can the risk of a cold be reduced by using vitamin C? Statistical Conclusion Of the 411 subjects who took the placebo pill, 82% caught colds at some time during the winter. Among the 407 who took vitamin C pills, however, only 74% caught colds. The results provide strong evidence that the probability of catching cold was smaller for those who took vitamin C (one-sided p-value D 0.0059), lending strong support to Dr. Pauling’s convictions. The odds of catching a cold while on the placebo regimen are estimated to be 1.10 times to 2.14 times as large as the odds for catching one while on the vitamin C regimen (approximate 95% confidence interval). Scope of Inference Because the treatments were randomly assigned to the available volunteers, the difference in cold rates in these groups can safely be attributed to differences in treatments, but it is important to understand exactly what the treatments entail. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 18.2 Vitamin C and the common cold Outcome Cold No Cold Totals 552 Chapter 18 Comparisons of Proportions or Odds 18.1.3 One essential point is that the randomized experiment was double-blind, meaning that neither the subject nor the doctor evaluating the subject knew the treatment that the subject received. Without this precautionary step, knowledge of the treat- ment received would become another difference between the two groups and might be responsible for statistical differences. In other vitamin C experiments that were constructed to be double-blind, subjects correctly guessed—by taste—which treat- ment they were receiving. Surprisingly, the proportions with colds in that study depended significantly on which treatment the subjects thought they were receiv- ing. Care was taken in the Canadian study to put citric acid and orange flavoring in the placebo pills, so the subjects were less likely to “break the blind.” Smoking and Lung Cancer— A Retrospective Observational Study In an investigation of the association of smoking and lung cancer, 86 lung cancer patients (thought of as a random sample of all lung cancer patients at the hospitals studied) and 86 controls (thought of as a random sample of subjects without lung cancer from the same communities as the lung cancer patients) were interviewed about their smoking habits. Display 18.3 shows the numbers in each of these groups who did and did not smoke. (Data from H. F. Dorn, “The Relationship of Cancer of the Lung and the Use of Tobacco,” American Statistician 8 (1954): 7–13.) Is there any evidence that the odds of lung cancer are greater for smokers than for nonsmokers? What is an estimate of the increased odds associated with smoking? DISPLAY 18.3 Smoking and lung cancer Outcome Cancer Control Totals Statistical Conclusion The data provide convincing evidence that the odds of lung cancer are greater for smokers than for nonsmokers (approximate one-sided p-value D 0.005). The odds of lung cancer for smokers are estimated to be 5.4 times the odds of lung cancer for nonsmokers (approximate 95% confidence interval: 1.5 times to 19.5 times). Scope of Inference This is an observational study, so whether smoking causes lung cancer cannot be addressed by the statistical analysis. Furthermore, the inference to a wider pop- ulation is only appropriate to the extent that the samples of cancer patients and controls constitute random samples from populations with and without cancer. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 18.2 These data are retrospective, meaning that samples were taken from each response group rather than from each explanatory group. The inferences allowed from this kind of sampling are discussed in Section 18.4.1. INFERENCES FOR THE DIFFERENCE OF TWO PROPORTIONS 18.2.1 The Sampling Distribution of a Sample Proportion Binary Response Variables Suppose that a population of units is classified as either yes or no. For example, each member of the population of Samoan women described in Section 18.1.1 may be classified as yes if she died of cardiovascular disease in the six years of the study or no if she did not. Although this type of categorical response does not provide a numerical outcome, it is useful to manufacture one. For each member of the population a response variable, Y , is defined to be 1 for a yes and 0 for a no. Of course, yes and no may be replaced by any other label that distinguishes two levels of a categorical response. Indicator variables with values of 0 or 1 have been used in previous chapters as explanatory variables in regression. They may also be used as response variables, in which case they are referred to as binary response variables. The average value of a binary response variable in a population is the proportion of members of the population that are classified as yes. The proportion of yes responses in the popu- lation is represented by the symbol  and is called the population proportion. If the population is hypothetical or if proportions are being compared in a randomized experiment, it is more common to refer to  as the probability of a yes response. The Variance of a Binary Response Variable Because a binary response variable can have only two numerical values, its variance is an exact function of its mean. Imagine what a listing of the responses for a population of N D 1;000;000 subjects might look like. If  D 0:72, then 720,000 responses would be 1’s and the remaining 280,000 would be 0’s. All the Y ’s would sum to 720,000, so the mean of the Y ’s would be 0:72 D . The population variance of a variable is the average of the squared difference of the Y ’s from their mean. In this population, the value of .Y 􏰀 /2 is either .1 􏰀 /2 or .0 􏰀 /2, depending on whether Y is 1 or 0; so the set of all .Y 􏰀/2 values adds to 720;000.1􏰀/2 C 280;000.0􏰀/2. Dividing by 1,000,000 produces the variance. Since 720,000 divided by 1,000,000 is  and 280,000 divided by 1,000,000 is .1 􏰀 /, the operation yields Variance.Y / D Meanf.Y 􏰀 /2g D .1 􏰀 /2 C .1 􏰀 /2 D .1 􏰀 /Œ.1 􏰀 / C  D .1 􏰀 /: 18.2 Inferences for the Difference of Two Proportions 553 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 554 Chapter 18 Comparisons of Proportions or Odds If Y is a binary response variable with population mean , then Variance fY g D .1 􏰀 /: Two features make this unlike the models for response variables considered in earlier chapters: There is no additional parameter, like 2; and the variance is a function of the mean. The Sample Total and the Binomial Distribution Suppose that fY1;Y2;:::;Yng is a random sample from a population of binary response variables. The sum of these binary responses, S D Y1 C Y2 C    C Yn, is a count of the number of subjects for which Y D 1. The variable S has one of the oldest known and most intensively studied statistical distributions—the binomial distribution. S will have one of the values: 0;1;:::;n. The exact probability for S to be equal to the integer k is given by the formula PrfS DkgD nŠ k.1􏰀/n􏰀k: kŠ.n 􏰀 k/Š The mean of S is n; the variance of S is n.1 􏰀 /; and the distribution of S is skewed except when  D 1=2. When the products n and n.1 􏰀 / are both of moderate size (> 5), the normal distribution approximates binomial probabilities very closely—a fact that motivates many of the succeeding developments in this chapter.
The Sample Proportion
Let O represent the average of the binary responses in a random sample. Although it is an average, the symbol O is used rather than Y to emphasize that it is also the sample proportion. In the sample of 2,061 obese Samoan women, 16 died of CVD during the 6-year study period. The sample proportion O is therefore 0.00776.
The Sampling Distribution of the Sample Proportion
Since O is an average, standard statistical theory about the sampling distribution of an average applies:
If O is a sample proportion based on a sample of size n from a population with population proportion , then
1. MeanfOgD.
2. VarfOgD.1􏰀/=n.
3. If n is large enough, the sampling distribution of O is approximately
normal.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.2 Inferences for the Difference of Two Proportions 555
Confidence interval for the proportion of cardiovascular disease deaths in the population of obese Samoan women
DISPLAY 18.4
2
Estimate the variance of the sample proportion
1
Sample proportion
= 16 2,061
= 0.00776
and find the SE.
3
4
SE(
(1 –
n
) =
) = 0.00776 (1 – 0.0076) = 3.737 3 10–6 2,061
3.737 3 10–6 = 0.00193
+_ 1.96 SE( ) = 0.00397 to 0.01155
2061(0.00397) = 8.2>5 2061(0.01155) = 24 >5 2061(0.99603) > 5 OK 2061(0.98845) > 5 OK
95% confidence interval, using normal multiplier
Check endpoints for sample size requirements.
Procedures exist for drawing inferences based on the exact distribution of the sample proportion, but methods that rely on the normal approximation are adequate for many applications. How large must the sample size be? This is not an easy question to answer, because the answer depends on . If  is near one-half, the sampling distribution is nearly normal for sample sizes as low as 5 to 10. If  is extremely close to one or zero, a sample size of 100 may not be adequate. For testing a hypothesis that  is some number 0, it is generally safe to rely on the normal approximation if n0 > 5 and n.1 􏰀 0/ > 5. A normal approximation confidence interval for  is generally safe if n0 > 5 and n.1􏰀0/ > 5 are satisfied by both the lower and upper endpoints of the confidence interval. A confidence interval, with these informal checks included, is demonstrated in Display 18.4. It is important to realize that the t-distribution is not involved here. The t-tools discussed earlier are based on normally distributed responses. In particular, the degrees of freedom attached to the t-tools are those associated with an estimate of . For binomial responses the variance is a known function of the mean, so there are no analogous degrees of freedom.
18.2.2 Sampling Distribution for the Difference Between Two Sample Proportions
The question of interest in the Samoan women study is whether the proportion of CVD deaths in the population of obese Samoan women differs from the proportion of CVD deaths in the population of nonobese Samoan women. What can be inferred about the difference in population proportions from the sample statistics? If O1 and
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

556 Chapter 18 Comparisons of Proportions or Odds
O2 are computed from independent random samples, the sampling distribution of their difference has these properties:
These properties lead to a test of the hypothesis that 2 􏰀 1 D 0 and to construction of a confidence interval for 2 􏰀1, based on a normal approximation. For the test, check whether ns O c and ns .1 􏰀 O c / are both greater than 5, where ns is the smaller of the two sample sizes and c is the sample proportion when the two samples are combined into one. A simple rule for judging the adequacy of the normal approximation for confidence interval construction is not available. Usually, the procedure of checking whether nO and n.1 􏰀 O / are larger than 5 in both samples is adequate.
Two Standard Errors for O 2 􏰀 O 1
The standard error of O2 􏰀 O1 is the square root of the variance of the sampling distribution, where the unknown parameters are replaced by their best estimates. Values of the best estimates, however, depend on what model is being fit. If the purpose is to get a confidence interval for 2 􏰀 1, then the model being fit is the one with separate population proportions; 1 is then estimated by O1, and 2 is estimated by O2.
If, on the other hand, the purpose is to test the equality of the two population proportions, the null hypothesis model is that the two proportions are equal. The best estimate of both 1 and 2 in this model is Oc, the sample proportion from the combined sample.
1. MeanfO2􏰀O1gD2􏰀1
2. VariancefO2 􏰀 O1g D 1.1 􏰀 1/ C 2.1 􏰀 2/ n1 n2
3. If n1 and n2 are large, the sampling distribution of O 2 􏰀 O 1 is approximately normal.
For confidence interval:
SE .O2 􏰀 O1/ D sO1.1 􏰀 O1/ C O2.1 􏰀 O2/ n1 n2
For testing equality:
SE0 .O2 􏰀 O1/ D sOc.1 􏰀 Oc/ C Oc.1 􏰀 Oc/ n1 n2
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.2 Inferences for the Difference of Two Proportions 557
The use of this different standard error for testing underscores the need to describe the sampling distribution of a test statistic supposing the null hypothesis is true.
18.2.3 Inferences About the Difference Between Two Population Proportions
Approximate Test for Equal Proportions
To the extent that the normal distribution adequately describes the sampling distribution of O2 􏰀 O1, the ratio
z-ratio D .O2 􏰀 O1/ 􏰀 .2 􏰀 1/ S E . O 2 􏰀 O 1 /
has a standard normal distribution (a normal distribution with mean D 0 and standard deviation D 1). To test the null hypothesis H W 2 􏰀 1 D 0, substitute the hypothesized value into the z-ratio, along with the sample information and the test version of the standard error. The hypothesis is rejected if the numerical result—the z-statistic—looks as though it did not come from a standard normal distribution:
z-statisticD .O2 􏰀O1/􏰀0: SE0.O2 􏰀 O1/
The p-value is the proportion of a standard normal distribution that is more extreme than the observed z-statistic. The computations for the heart disease and obesity study are shown in Display 18.5.
Approximate Confidence Interval for
the Difference Between Two Proportions
When the behavior of the z-ratio is adequately described by a standard normal dis- tribution, the following procedure constructs a confidence interval with approximate coverage of 100.1 􏰀 ̨/%.
Here, z.1 􏰀 ̨=2/ is the 100.1 􏰀 ̨=2/th percentile in the standard normal distri- bution. For a 95% confidence interval, for example, ̨ is 0.05 and z(0.975) is 1.96. A confidence interval for the vitamin C study is demonstrated in Display 18.6.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
An approximate 100.1 􏰀 ̨/% confidence interval for 2 􏰀 1 is .O2 􏰀 O1/ ̇ Œz.1 􏰀 ̨=2/  SE.O2 􏰀 O1/:

558
Chapter 18 Comparisons of Proportions or Odds
DISPLAY 18.5
Test for equality of two population proportions: obesity and CVD deaths
DISPLAY 18.6
1
95% confidence interval for the difference in two population proportions: vitamin C and the common cold
5
Multiplier
(1.96)(0.029) = 0.057
1
Sample proportions of CVD deaths
2
group 2 (obese): group 1 (not obese):
2 = 1 =
16 = 0.00776 2,061
7 = 0.00666 1,051
3
5
4 Check adequacy of normal approximation.
c = 2,061 + 1,051 = 0.00739 1051(0.00739) = 7.8 > 5
Difference
Proportion from combined sample
Standard error (test version)
2– 1=0.00110 16 + 7
1051(0.99261) > 5 OK (0.00739)(0.99261) + (0.00739)(0.99261) = 0.00325
2,061 1,051
z = 0.00110 = 0.340 7 p-value Pr(Z > 0.340) = 0.37 0.00325
6 z-statistic
Conclusion: There is no evidence that the two proportions differ.
3
4
Check adequacy of normal approximation.
Standard error (C.I. version)
z(0.975) = 1.96 6 Interval half-width
7 95% confidence interval for 1 – 2 0.073 + 0.057 = 0.016 to 0.130
Sample proportions who got colds
2
Difference
group 2 (placebo): group 1 (vitamin C):
2 = 335 = 0.815 411
1 = 302 = 0.742 407
2 – 1=0.073
411(0.815) > 5; 411(0.185) > 5 407(0.742) > 5; 407(0.258) > 5 OK
(0.815)(0.185) + (0.742)(0.258) =0.029 411 407
Conclusion: The probability of catching a cold after placebo exceeds the probability of catching a cold after vitamin C by an estimate of 0.073 (95% CI: 0.016 to 0.13).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.3
INFERENCE ABOUT THE RATIO OF TWO ODDS
18.3.1 A Problem with the Difference Between Proportions
There are difficulties with interpreting the difference between two population pro- portions or two probabilities. If 1 is the probability of a disease in the absence of treatment, and if 2 is the probability of a disease under treatment with a preven- tive drug, then a difference of 0.05 may be rather small if the true probabilities are 0.50 and 0.45, yet the same difference can have considerable practical significance if the true probabilities are 0.10 and 0.05. In both cases the disease rate can be reduced by 5% if the drug is used; but in the first case the treatment will prevent the disease in 1 out of 10 people who would have gotten the disease otherwise, whereas in the second case the treatment will prevent the disease in 1 out of 2 people who would have gotten it.
The point is that the difference between two population proportions may not be the best way to compare them. Differences tend to differ in meaning when the proportions are near 0.5 from when the proportions are near 0 or 1. An alternative to comparing proportions is to compare their corresponding odds. This makes sense over a wider range of possibilities and forms the basis for interpreting regression models for binary data.
18.3.2 Odds
If  is a population proportion (or probability) of yes outcomes, the corresponding odds of a yes outcome in the population are =.1 􏰀 /, represented by the symbol ! (the Greek letter omega).
The sample odds are !O D O =.1 􏰀 O /: Instead of saying, for example, that the proportion of cold cases among the vitamin C group was 0.742, one can convey the same information by saying that the odds of getting a cold were 2.876 to 1. The number 2.876 is the ratio of the proportion of cold cases to the proportion of noncold cases, 2.876 D 0.742/0.258. These odds make the 0.742 easier to visualize: There are 2.876 cold cases for every 1 noncold case (or about 23 cold cases for every 8 noncold cases). Odds are particularly useful in visualizing proportions that are close to 0 or 1.
It is customary to cite the larger number first when stating odds, so an event with chances of 0.95 has odds of 19 to 1 in favor of its occurrence while an event with chances of 0.05 has the same odds, 19 to 1, against it.
Here are some numerical facts about odds:
1. Whereas a proportion must be between 0 and 1, odds must be greater than or equal to 0 but have no upper limit.
2. A proportion of 1/2 corresponds to odds of 1. Some common nonscientific descriptions of this situation are “equal odds,” “even odds,” and “the odds are fifty-fifty.”
3. If the odds of a yes outcome are !, the odds of a no outcome are 1/!.
4. If the odds of a yes outcome are !, the probability of yes (or the population
proportion) is  D !=.1 C !/.
18.3 Inference About the Ratio of Two Odds 559
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

560
Chapter 18 Comparisons of Proportions or Odds
18.3.3
The Ratio of Two Odds
When two populations have proportions 1 and 2, with corresponding odds !1 and !2, a useful alternative to the difference in proportions is the odds ratio,  D !2=!1. ( is the Greek letter phi.) If 2 is larger than 1, then !2 is larger than !1 and the odds ratio is greater than 1. If the odds ratio is some number—say,  D 3—then !2=!1 D 3 is equivalent to !2 D 3!1: In words, the odds of a yes outcome in the second group are three times the odds of a yes outcome in the first group. If, for example, !1 D 2:5, then group 1 has 5 yes for every 2 no outcomes. With  D 3, group 2 would have 15 yes for every 2 no outcomes.
The sample odds ratio, or estimated odds ratio is O D !O2=!O1. In the vita- min C and cold study, the odds of a cold in the placebo group are estimated as !O2 D 335=76 D 4:408: (There were 4.408 people with colds for every 1 without a cold.) The odds of a cold in the vitamin C group are estimated as !O1 D 302=105 D 2:876: The estimated odds ratio is therefore 4:408=2:876 D 1:53: The odds of getting a cold on the placebo regimen are estimated to be 1.53 times as large as the odds of getting a cold on the vitamin C regimen. Equivalently, the odds of a cold on placebo are 53% greater than the odds of a cold on vitamin C.
When the counts are arranged in a 2  2 table, the odds ratio may quickly be estimated by dividing the product of the upper left and lower right counts by the product of the upper right and lower left counts, as shown in Display 18.7. One caution: The calculation in Display 18.7 provides the odds ratio estimate for getting a cold on the placebo regimen relative to the vitamin C regimen. To estimate the odds ratio for not getting a cold on the placebo regimen relative to the vitamin C regimen, one must invert the ratio in Display 18.7.
DISPLAY 18.7 Shortcut method for estimating the odds ratio in a 2  2 table
Cold Placebo
Vitamin C
Shortcut method:
No Cold
Odds on a Cold
group 2: Placebo 335 / 76 = 4.408
group 1: Vitamin C 302 / 105 = 2.876 Odds ratio = 4.408 / 2.876 = 1.53
The numerator is the product of the diagonals.
(335)(105) = 1.53 (76)(302)
The denominator is the product of the off-diagonals.
335 76 302 105
Odds ratio =
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.3 Inference About the Ratio of Two Odds 561
The odds ratio is a more desirable measure than the difference in population proportions, for three reasons:
1. In practice, the odds ratio tends to remain more nearly constant over levels of confounding variables.
2. The odds ratio is the only parameter that can be used to compare two groups of binary responses from a retrospective study (see Section 18.4).
3. The comparison of odds extends nicely to regression analysis (see Chapters 20 and 21).
18.3.4 Sampling Distribution of the Log of the Estimated Odds Ratio
If !O1 and !O2 are computed from independent samples, the sampling distribution of
the natural log of their ratio has these properties:
Of course, inference is desired for the odds ratio, not for its logarithm (which has no useful interpretation). The sampling distribution of the log of the estimated odds ratio, however, is more closely approximated by the normal distribution than is the sampling distribution of the estimated odds ratio. Consequently, statistical inferences will be carried out for the log odds ratio and subsequently reexpressed in terms of odds ratios.
Statisticians do not have a good general guideline for checking whether the sample sizes are large enough in this problem. Most authorities agree that one can get away with smaller sample sizes here than for the difference of two proportions. Therefore, if the sample sizes pass the rough checks discussed in Section 18.2.2, they should be large enough to support inferences based on the approximate normality of the log of the estimated odds ratio, too.
Two Standard Errors for the Log of the Odds Ratio
The estimated variance is obtained by substituting sample quantities for unknowns in the variance formula in the preceding box. As before, the sample quantities used to replace the unknowns depend on the usage. For a confidence interval, 1 and 2 are replaced by their sample estimates.
1. Meanflog.!O2=!O1/g D log.!2=!1/ (approximately).
2. Varflog.!O2=!O1/g D Œn11.1 􏰀 1/􏰀1 C Œn22.1 􏰀 2/􏰀1 (approximately).
3. If n1 and n2 are large, the sampling distribution of log.!O2=!O1/ is approxi-
mately normal.
Confidence interval:
SEŒlog.!O1=!O2/ D s 1 C 1 n1O1.1 􏰀 O1/ n2O2.1 􏰀 O2/
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

562
Chapter 18 Comparisons of Proportions or Odds
To test equality of odds in two populations, one must estimate the common proportion from the combined sample and compute the standard error based on it.
Testing equality:
SE0Œlog.!O1=!O2/ D s 1 C 1 n1Oc.1 􏰀 Oc/ n2Oc.1 􏰀 Oc/
If the odds are equal, then the odds ratio is 1 and the log of the odds ratio is 0. Therefore, a test of equal odds is carried out by testing whether the log of the odds ratio is 0. The test calculations for the heart disease and obesity data are shown in Display 18.8. The resulting p-value is nearly identical to that obtained with the z-test for equal proportions, as is the case when the sample sizes are large.
Test for equality of two population odds: heart disease and obesity data
DISPLAY 18.8
1
2
Odds ratio and its log
group 1 (obese): group 2 (not obese):
ω1 = 16 = 0.00782 2,045
ω2 = 7 = 0.00670 1,044
Estimate the odds on CVD death.
0.00782
0.00670 = 1.1669
log( φ ) = 0.154 16 + 7
1 + 1 =0.443 2,061(0.00739)(1 – 0.00739) 1,051(0.00739)(1– 0.00739)
0.154 6 one-side
z-statistic z = 0.443 = 0.349 p-value Pr(Z > 0.349) = 0.36
Conclusion: There is no evidence that the odds ratio differs from 1.
To get a confidence interval for the odds ratio, construct a confidence interval for the log of the odds ratio and take the antilogarithm of the endpoints. A shortcut formula for the standard error is the square root of the sum of the reciprocals of the four cell counts in the 2  2 table, as illustrated in step 2 of Display 18.9.
φ
=
3 4
5
Proportion from the combined sample
SE for the log odds ratio estimate (test version)
π c = 2,061 + 1,051 = 0.00739
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.4
INFERENCE FROM RETROSPECTIVE STUDIES 18.4.1 Retrospective Studies
Each of the case studies of Section 18.1 involves an explanatory factor with two levels and a response factor with two levels. In the obesity study, random samples were taken from both explanatory variable categories, obese and nonobese. In the vitamin C study, subjects were randomly assigned to an explanatory category, either vitamin C or placebo. Either plan is called prospective sampling because it sets the explanatory situation and then awaits the response.
In the smoking and lung cancer data of Section 18.1.3, the question of interest requires that the smoking behavior is explanatory and lung cancer is the response. However, the sampling was carried out for each level of the response factor—a sample of 86 lung cancer patients and a sample of 86 control subjects were obtained, and all subjects were asked whether they smoked. This is an example of retrospective sampling. Samples were taken for each level of the response variable and the levels of the explanatory factor were determined for subjects in these samples. A comparison of prospective and retrospective sampling is provided in Display 18.10.
Labeling of one of the factors a “response” and the other “explanatory” is a matter of choice. One could simply call lung cancer the explanatory variable and smoking the response, but comparing proportions of smokers in the populations of lung cancer patients and non–lung cancer patients is less pertinent than comparing
18.4 Inference from Retrospective Studies 563
DISPLAY 18.9
2
3
4
Confidence interval for an odds ratio: vitamin C and cold data
Cold No Cold
1
(335)(105)
φ = (76)(302) = 1.533
1 + 1 +
Placebo Vitamin C
Odds ratio and its log
log( φ ) = 0.427
Shortcut method for the SE of the log odds ratio
1 + 1 = 0.170 302 105
335
95% interval for the log odds ratio 0.427 + (1.96)(0.170) = 0.094 to 0.760
exp(0.094) to exp(0.760); or 1.10 to 2.14
Conclusion: The odds of a cold for the placebo group are estimated to be 1.53 times the odds of a cold for the vitamin C group (approximate 95% CI: 1.10 to 2.14).
76
95% interval for the odds ratio
335 76 302 105
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

564
Chapter 18 Comparisons of Proportions or Odds
DISPLAY 18.10 Prospective and retrospective sampling
Explanatory Response Factors Variables
In a prospective study, subjects are selected from
or assigned to groups with specified explanatory factor levels. Their responses are then determined.
In a retrospective study, subjects are selected from groups with specified response levels. Their explanatory factors are then determined.
18.4.2
proportions of lung cancer victims in the populations of smokers and nonsmokers. The latter is of direct interest with regard to the health effects of smoking.
Reasons for Retrospective Sampling
In many areas of study, both prospective and retrospective studies play important roles. A prospective study that follows random samples of smokers and nonsmokers would be very useful, but a retrospective study can be accomplished without having to follow the subjects through their entire lifetimes. Furthermore, if the response proportions are small, then huge samples are needed in a prospective study to get enough yes outcomes to permit inferences to be drawn. This problem is bypassed in a retrospective study.
Why the Odds Ratio Is the Only
Appropriate Parameter If the Sampling Is Retrospective
The odds ratio is the only parameter that describes binary response outcomes for the explanatory categories that can be estimated from retrospective data. The smoking and lung cancer data, for example, cannot be used to estimate the indi- vidual proportions of smokers and nonsmokers who get lung cancer or the difference between the proportions.
The odds ratio is the same regardless of which factor is considered the response. As a practical demonstration of this (without a formal proof), a hypothetical population of smokers and nonsmokers is shown in Display 18.11. Notice that the proportions of smokers among lung cancer patients and among controls tell nothing about the proportions of lung cancer patients among smokers and among
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 18.11
Illustration that the odds ratio is the same regardless of which factor is thought of as the response, with a hypothetical population
Lung cancer No cancer
Smokers Nonsmokers
18.5 Summary 565
nonsmokers. Yet the odds ratio is the same regardless of which factor is thought of as the response: The odds of smoking among lung cancer patients is two times the odds of smoking among controls; and the odds of lung cancer among smokers is two times the odds of lung cancer among nonsmokers. Consequently, the odds ratio can be estimated either by observing cancer incidence in independent samples of smok- ers and nonsmokers or by observing proportions of smokers in independent samples of cancer victims and controls. The odds ratio is the only quantity pertaining to the prospective populations that can be estimated from retrospective studies.
Example—Smoking and Lung Cancer
From the data described in Example 18.1.3 the estimated odds ratio is 5.38, the natural log of the estimated odds ratio is 1.68, and the standard error of the esti- mated log odds ratio is 0.656 (confidence interval version). An approximate 95% confidence interval for the log odds ratio is 0.396 to 2.969. Therefore, the odds of lung cancer for smokers are estimated to be 5.38 times the odds of lung cancer for nonsmokers. An approximate 95% confidence interval for the odds ratio is 1.5 to 19.4. As usual, no causal interpretation can be drawn from the statistical analysis of observational data, although the data are consistent with the theory that smoking causes lung cancer.
18.5 SUMMARY
Populations of binary responses can be compared by estimating the difference in population proportions or the ratio of population odds. Tests and confidence inter- vals are based on the approximate normality of the difference in sample proportions or on the approximate normality of the logarithm of the estimated odds ratio. These techniques also apply to randomized experiments. The choice of whether to com- pare proportions or odds is subjective. The odds are often more appropriate if the proportions are close to 0 or 1. The proportions are more familiar to some audiences. If the data are sampled retrospectively, only the odds ratio can be estimated.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

566 Chapter 18 Comparisons of Proportions or Odds
Obesity and Death from Cardiovascular Disease
Crews’s study of obesity and heart disease deaths in American Samoa includes both women and men (see Exercise 9). For both women and men, the odds of CVD death are 15 to 20% higher among obese persons, but neither result is statistically significant. Confidence intervals are more explicit about whether any practically significant difference is likely. The similarity of results for men and women sug- gests asking whether a common odds ratio exists and is greater than 1.0. Tools for handling these questions are introduced in the next chapter.
Vitamin C and the Common Cold
The odds of getting a cold while using the placebo are estimated to be 4.4 to 1 in this Canadian study; use of vitamin C reduces those odds by approximately 35%. Increasingly, scientific journals and the popular press describe studies of risk factors in terms of multiplicative effects on odds ratios. This natural terminology comes from an increasing reliance on statistical analysis at the log-odds scale.
Smoking and Lung Cancer
A randomized experiment to determine a causal effect of smoking on lung cancer will never be performed. Nor does the time scale involved lend itself to prospective sampling. Retrospective sampling, however, is a powerful tool for studying associ- ations in such situations. Here, the odds ratio of 5.4 to 1 offers strong evidence of some association between smoking and lung cancer.
18.6 EXERCISES
Conceptual Exercises
1. Obesity. For the heart disease and obesity data (Section 18.1.1), does the large p-value for the test of equal population proportions prove that 6-year cardiovascular disease death and obesity were unrelated over the 6-year study period in the population of American Samoan women? Why or why not? How does a confidence interval clarify the picture?
2. Vitamin C. The vitamin C and cold experiment (Section 18.1.2) was double-blind, meaning that neither the volunteers nor the doctors who interviewed them were told whether they were taking vitamin C or placebo. If many of the volunteers correctly guessed which group they were in, and if incidence of colds is highly associated with perceived treatment, do these considerations invalidate the assertion that cause-and-effect statements can be made from randomized experiments?
3. During investigation of the U.S. space shuttle Challenger disaster, it was learned that project managers had judged the probability of mission failure to be 0.00001, whereas engineers working on the project had estimated failure probability at 0.005. The difference between these two probabil- ities, 0.00499, was discounted as being too small to worry about. Is a different picture provided by considering odds? How is that interpreted?
4. Perry Preschool Project. In a 1962 social experiment, 123 3- and 4-year-old children from poverty-level families in Ypsilanti, Michigan, were randomly assigned either to a treatment group
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.6 Exercises 567
receiving 2 years of preschool instruction or to a control group receiving no preschool. The par- ticipants were followed into their adult years. The following table shows how many in each group were arrested for some crime by the time they were 19 years old. (Data reported in Time, July 29, 1991).
Arrested for some crime?
Yes No
Preschool Control
(a) Is it possible to use these data to see whether preschool instruction can cause a lower rate of criminal arrest for some populations? (b) Is this a retrospective or a prospective study?
5. Violence Begets Violence. It is often argued that victims of violence exhibit more violent behavior toward others. To study this hypothesis a researcher searched court records to find 908 individuals who had been victims of abuse as children (11 years or younger). She then found 667 individuals, with similar demographic characteristics, who had not been abused as children. Based on a search through subsequent years of court records, she was able to determine how many in each of these groups became involved in violent crimes, as shown in the following table. (Data from C. S. Widom, “The Cycle of Violence,” Science 244 (1989): 160.) (a) Is this a randomized experiment or an observational study? (b) Is this a prospective or a retrospective study? (c) Consider the populations of abused victims and controls from which these samples were selected. Let Y be a binary response variable taking the value 1 if an individual became involved in violent crime and 0 if not, in each of these populations. If 1 and 2 are the means of Y in the two populations, what is the variance of Y in each population? (d) What is the variance of the sampling distribution of O1 􏰀 O2? (e) Let Z be a binary response variable that takes on the value 1 if an individual did not become involved in violent crime and 0 if the individual did (so Z is 1 􏰀 Y ). What are the means of Z in the two populations, in terms of 1 and 2 (the means of Y )? (f) What are the variances of Z in the two populations, in terms of 1 and 2? (g) How does the analysis of the data differ if Z is used as a response variable instead of Y (in terms of estimating a difference in population proportions and estimating a ratio of odds)?
6.
Involved in a violent crime?
Yes No
Abuse victim Control
In Exercise 5, there are many ways of wording an odds ratio statement. For example:
(i) The odds of Yes among victims relative to controls. (ii) The odds of Yes among controls relative to victims.
(iii) The odds of No among victims relative to controls. (iv) The odds of No among controls relative to victims.
(v) The odds of victims among Yes relative to No. (vi) The odds of victims among No relative to Yes. (vii) The odds of controls among Yes relative to No.
(viii) The odds of controls among No relative to Yes.
(ix) The odds of victims among Yes relative to controls.
(a) Which, if any, of these are the same? (b) Do all of them make sense?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

568 Chapter 18 Comparisons of Proportions or Odds
7. Alcohol and Breast Cancer. The following are partial results from a case–control study involving a sample of cases (women with breast cancer) and a sample of controls (demographi- cally similar women without breast cancer). (Data from L. Rosenberg, J. R. Palmer, D. R. Miller, E. A. Clarke, and S. Shapiro, “A Case–Control Study of Alcoholic Beverage Consumption and Breast Cancer,” American Journal of Epidemiology 131 (1990): 6–14.) The women were asked about their drinking habits, from which the following table was constructed. (a) For assessing the risk of drink- ing on breast cancer, which factor is the response? (b) Is this a retrospective or a prospective study? (c) Is this a randomized experiment or an observational study?
Breast cancer
Cases Controls
Fewer than 4 drinks per week 4 or more drinks per week
8. Salk Polio Vaccine. The Salk polio vaccine trials of 1954 included a double-blind experiment in which elementary school children of consenting parents were assigned at random to injection with the Salk vaccine or with a placebo. Both treatment and control groups were set at 200,000 because the target disease, infantile paralysis, was uncommon (but greatly feared). (Data from J. M. Tanur et al., Statistics: A Guide to the Unknown, San Francisco: Holden-Day, 1972.) (a) Is this a random- ized experiment or an observational study? (b) Is this a retrospective or a prospective study? (c) Describe the population to which inferences can be made. (d) Would it make more sense to look at the difference in disease probabilities or the ratio of disease odds here?
Infantile paralysis victim?
Placebo
Salk polio vaccine
Computational Exercises
Yes No
9. Heart Disease and Obesity in American Samoan Men. The study described in Section 18.1.1 also included men. The data for men are shown in the accompanying table. (a) Compute (i) the sample proportions of CVD deaths for the obese and nonobese groups; (ii) the standard error for the difference in sample proportions; (iii) a 95% confidence interval for the difference in popula- tion proportions. (b) Find a one-sided p-value for the test of equal population proportions (using the standard error already computed). (c) Compute (i) the sample odds of CVD death for the obese and nonobese groups; (ii) the estimated odds ratio; (iii) the standard error of the estimated log odds ratio; (iv) a 95% confidence interval for the odds ratio. (d) Write a concluding sentence that incorporates the confidence interval from part (c).
CVD death
Yes No
Obese Not obese
10. Salk Polio Vaccine. (a) For the data in Exercise 8 find a one-sided p-value for testing the hypothesis that the odds of infantile paralysis are the same for the placebo and for the Salk vaccine treatments. (b) An alternative method for testing equal proportions is to look only at the 198 children who contracted polio. Each of them had a 50% chance of being assigned to the Salk group or to
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.6 Exercises 569
the placebo group, unless group membership altered their chances. Under the null hypothesis of no difference in disease probabilities, the proportion of the 198 who are in either treatment group has a mean of 1/2. Is the observed proportion in the control group, 142/198, significantly larger than would be expected under the null hypothesis? Use the results about the sampling distribution of a single population proportion (in Section 18.2.1) to test this hypothesis. (This is a conditional test— conditional on the number getting the disease. It is useful here because the disease probabilities are so small.)
11. In the hypothetical example of Display 18.11, calculate each of the following quantities (i) in the population, (ii) in the expected results from prospective sampling, and (iii) in the expected results from retrospective sampling (with equal numbers of lung cancer patients and controls). (a) The proportion of lung cancer patients among smokers. (b) The proportion of lung cancer patients among nonsmokers. (c) The difference between parts (a) and (b). (d) Verify that retrospective sampling results cannot be used to estimate these population properties.
12. Suppose that the probability of a disease is 0.00369 in a population of unvaccinated subjects and that the probability of the disease is 0.001 in a population of vaccinated subjects.
(a) What are the odds of disease without vaccine relative to the odds of disease with vaccine?
(b) How many people out of 100,000 would get the disease if they were not treated?
(c) How many people out of 100,000 would get the disease if they were vaccinated?
(d) What proportion of people out of 100,000 who would have gotten the disease would be
spared from it if all 100,000 were vaccinated? (This is called the protection rate.)
(e) Follow the steps in parts (a)–(d) to derive the odds ratio and the protection rate if the unvac- cinated probability of disease is 0.48052 and the vaccinated probability is 0.2. (The point is that the odds ratio is the same in the two situations, but the total benefit of vaccination also
depends on the probabilities.)
An alternative to the odds ratio and the difference in probabilities is the relative risk, which is a common statistic for comparing disease rates between risk groups. If u and v are the probabilities of disease for unvaccinated and vaccinated subjects, the relative risk (due to not vaccinating) is  D u=v. (So if the relative risk is 2, the probability of disease is twice as large for unvaccinated as for vaccinated individuals.)
(a) Show that the odds ratio is very close to the relative risk when very small proportions are involved. (You may do this by showing that the two quantities are quite similar for a few illustrative choices of small values of v and u.)
(b) Calculate the relative risk of not vaccinating for the situation introduced at the beginning of Exercise 12.
(c) Calculate the relative risk of not vaccinating for the situation described in Exercise 12(e).
(d) Here is one situation with a relative risk of 50: The unvaccinated probability of disease is 0.0050 and the vaccinated probability of disease is 0.0001 (the probability of disease is 50 times greater for unvaccinated subjects than for vaccinated ones). Suppose in another situation the vaccinated probability of disease is 0.05. What unvaccinated probability of disease would imply a relative risk of 50? (Answer: None. This shows that the range of relative risk possibilities depends on the baseline disease rate. This is an undesirable feature
of relative risk.)
13.
The Pique Technique was developed because a target for solicitation is more likely to comply if mindless refusal is disrupted by a strange or unusual request. Researchers had young people ask 144 targets for money. The targets were asked either for a standard amount—a quarter—or an unusual amount—17 cents. Forty-three point one percent of those asked for 17 cents responded, compared to 30.6% of those asked for a quarter. Each group contained 72 targets. What do you make of that?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
14.

570 Chapter 18 Comparisons of Proportions or Odds
(Data from M. D. Santos, C. Leve, and A. R. Pratkanis, “Hey Buddy, Can You Spare Seventeen Cents?,” Journal of Applied Social Psychology 24(9) (1994): 755–64.)
Data Problems
15. Perry Preschool Project. Analyze the data shown in Exercise 4 to determine whether a preschool program like the one used can lead to lower levels of criminal activity, and, if so, by how much.
16. Violence Begets Violence. Reconsider the data described in Exercise 5. The researcher con- cluded: “Early childhood victimization has demonstrable long-term consequences for ::: violent criminal behavior.” Conduct your own analysis of the data and comment on this conclusion. In par- ticular, is there a statistically significant difference in population proportions, and is the strength of the causal implication of this statement justified by the data from this study?
17. Alcohol and Breast Cancer. In Exercise 7 the researcher is interested in the question of whether drinking can cause breast cancer. Analyze the data to see whether the data support the theory that it does, and quantify the association with an appropriate measure.
18. Hale-Bopp and Handedness. It is known that left-handed people tend to recall orientations of human heads or figures differently than right-handed people. To investigate whether there is a similar systematic difference in recollection of inanimate object orientation, researchers quizzed University of Oxford undergraduates on the orientation of the tail of the Hale-Bopp comet. The students were shown eight photographic pictures with the comet in different orientations (head of the comet facing left down, left level, left up, center up, right up, right level, right down, or center down) six months after the comet was visible in 1997. The students were asked to select the correct orientation. (The comet faced to the left and downward.) Shown below are the responses categorized as correct or not, shown separately for left- and right-handed students. Is there evidence that left- or right-handedness is associated with correct recollection of the orientation? If so, quantify the association. Write a brief statistical report of the findings. (Data from M. Martin, and G. V. Jones, “Hale-Bopp and Handed- ness: Individual Difference in Memory for Orientation,” American Psychological Science 10 (1999): 267–70.)
Recollection of comet orientation
Incorrect Correct
19. Perry Preschool Project Results at Age 40. As discussed in Exercise 4, researchers in the mid-1960s identified 123 low-income, African-American children who were thought to be at high risk of school failure and randomly assigned 58 of them to participate in a high-quality preschool program at ages 3 and 4; the remaining 65 received no preschool education. One hundred nineteen of the study subjects were available for re-interview at age 40. The following two tables show results on two of the variables considered:
Arrested 5 or more times by age 40
No Yes No Preschool 28 35 Preschool 36 20
Made annual income of $20K or more by age 40
No Yes 38 25 22 34
Assess the evidence for an effect of preschool on these two variables and report the estimated odds ratios for 5 or more arrests and for annual income of $20K or more. (Note: Although the authors
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

18.6 Exercises 571
reported that random assignment was used, there was, in fact, some switching of groups after the initial assignment. For example, children placed in the preschool group were switched to the con- trol group if their mothers could not transport them to preschool. Although the authors defend the results as just as good as if random assignment was made, the failure to follow through with exact randomization—even though it may have been unavoidable—causes a necessary extra debate about the causal conclusions from this study.)
Answers to Conceptual Exercises
1. No. There could be a difference, but the sample was too small to detect it. A confidence interval would reveal a set of possible values for the difference in population proportions that remain plausible in light of these data.
2. No, but in this case a confounding factor (whether the subject correctly guessed the treatment) arose after the randomization. The effect of treatment may be confounded with this factor, so causal conclusions must be made cautiously.
3. The odds of failure estimated by the project managers were 99,999 to 1 against. Engineers estimated them to be 199 to 1 against. The ratio is about 500. Thus, for every failure envisioned by the project managers, the engineers saw the possibility of 500 failures.
4. (a) Yes. (b) Prospective.
5. (a) Observational study. (b) Prospective. (c) 1.1 􏰀 1/ and 2.1 􏰀 2/. (d) 1.1 􏰀 1/=908 C
2.1 􏰀 2/=667: (e) .1 􏰀 1/ and .1 􏰀 2/: (f) 1.1 􏰀 1/ and 2.1 􏰀 2/ (the same as for Y ). (g) The analysis will be the same, except that the sign of the difference in population proportions will be reversed and the odds ratio will be the reciprocal of the odds ratio based on Y .
6. (a)iDivDvDviii;iiDiiiDviDvii(Dthereciprocalofthevalueinthefirstgroup).(b)ix makes no sense.
7. (a) Breast cancer. (b) Retrospective. (c) Observational.
8. (a) Randomized experiment. (b) Prospective. (c) Elementary school children of consenting parents (in 1954). (d) There is nothing technically wrong with either measure in this prospective study, but the odds ratio offers a more suitable interpretation, since the probabilities are so small.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 19 More Tools for Tables
of Counts
572
The data sets in the previous chapter can be displayed as 2  2 tables of counts, which list the numbers of subjects falling in each cross-classification of a row factor (such as obese or not obese) and a column factor (such as heart disease or no heart disease). This chapter elaborates on sampling schemes leading to tables of counts, the appropriate wording of hypotheses based on the sampling scheme and the question of interest, an exact test for 2  2 tables, and two extensions to larger tables.
Fisher’s Exact Test is the gold standard of testing tools for 2  2 tables, appro- priate under any of the sampling schemes that lead to 2  2 tables. It is exact in the sense that the p-value is based on a permutation distribution and requires no approximations. An approximate test, the chi-squared test, is also presented for 2  2 tables. It extends in a straightforward way to larger tables of counts. Sometimes several 2  2 tables of counts are used, with each separate table corresponding to a different level of a blocking or potentially confounding variable. If the odds ratio is the same in each 2  2 table—even though the individual odds may vary—the Mantel–Haenszel Test tests whether the common odds ratio is 1.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.1
CASE STUDIES
19.1.1 Sex Role Stereotypes and Personnel
Decisions—A Randomized Experiment
Psychologists performed an experiment on male bank supervisors attending a man- agement institute, to investigate biases against women in personnel decisions. Among other tasks in their training course, the supervisors were asked to make a decision on whether to promote a hypothetical applicant based on a personnel file. For half of them, the application file described a female candidate; for the others it described a male. The files were identical in all other respects. Results on the pro- motion decisions for the two groups are shown in Display 19.1. (Data from B. Rosen and T. Jerdee, “Influence of Sex Role Stereotypes on Personnel Decisions,” Journal of Applied Psychology 59 (1974): 9–14.) Was there a bias against female applicants, or can the observed difference in promotion rates be explained just as reasonably by the chance involved in random allocation of subjects to treatment groups?
19.1 Case Studies 573
DISPLAY 19.1
Decisions of 48 male supervisors to promote a fictitious candidate, listed separately for those receiving ‘‘male’’ and ‘‘female’’ personnel folders
Male Female
Promoted
Yes No
21 3 14 10
Statistical Conclusion
These data provide strong evidence that the promotion rate is higher for male applicants than for female applicants. The one-sided p-value from Fisher’s Exact Test is 0:0245.
Scope of Inference
Since randomization was used, the inference is that the sex listed on the applicant file was responsible for the difference observed with these 48 supervisors. The infer- ence derives from a probability model based on the randomization in the following way. If there had been no sex effect, each supervisor would have reached the same decision regardless of the sex listed on the application. Fisher’s Exact Test examines all possible assignments of applications to supervisors and finds that only 2.45% of them result in a difference as great as that observed. Since the 48 supervisors were not a random sample from any population, extension of the inference to any broader group is speculative.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

574
Chapter 19 More Tools for Tables of Counts
19.1.2
Death Penalty and Race
of Murder Victim—An Observational Study
In a 1988 law case, McCleskey v. Zant, lawyers for the defendant showed that, among black convicted murderers in Georgia, 35% of those who killed whites and 6% of those who killed blacks received the death penalty. Their claim, that racial dis- crimination was a factor in sentencing, was contested by lawyers for the state of Georgia. Murders with black victims, they argued, were more likely to be unag- gravated “barroom brawls, liquor-induced arguments, or lovers’ quarrels”—crimes that rarely result in the death sentence anywhere. Among white-victim murders, on the other hand, there was a higher proportion of killings committed in the course of an armed robbery or involving torture—which more often result in death sentences.
To examine the validity of this argument, researchers collected data on death penalty sentencing in Georgia, including the race of victim, categorized separately for six progressively serious types of murder. Category 1 comprises barroom brawls, liquor-induced arguments, lovers’ quarrels, and similar crimes. Category 6 includes the most vicious, cruel, cold-blooded, unprovoked crimes. (Data from G. C. Wood- worth, “Statistics and the Death Penalty,” Stats 2 (1989): 9–12.) Display 19.2 shows, for each category, a 2  2 table categorizing convicted black murderers according to the race of their victim and whether they received the death penalty. Is there evidence that black murderers of white victims are more likely to receive the death penalty than black murderers of black victims, even after accounting for the level of aggravation?
Death sentences for black convicted murderers of white and black victims in Georgia, by aggravation category
DISPLAY 19.2
Death penalty level victim Yes No
Aggravation Race of
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.2
Statistical Conclusion
The data provide convincing evidence that convicted black murderers were more likely to receive the death sentence if their victim was white than if their victim was black, even after accounting for the aggravation level of the crime (one-sided p-value D 0:0004 from a Mantel–Haenszel Test). The odds of a white-victim mur- derer receiving the death penalty are estimated to be 5.5 times the odds for a black-victim murderer in the same aggravation category.
Scope of Inference
Since the data are observational, one cannot discount the possibility that other confounding variables may be associated with both the victim of the crime and the sentence. However, it is safe to exclude the level of aggravation and chance variation as determinants of the disparity in sentencing.
POPULATION MODELS FOR 2 × 2 TABLES OF COUNTS 19.2.1 Hypotheses of Homogeneity and of Independence
The last chapter presented tests for the following identical hypotheses: H0W2 􏰀1 D0 and H0W!2=!1 D1;
where 2 and 1 are population proportions or probabilities and !2 and !1 are the corresponding odds. These are often called hypotheses of homogeneity because interest is focused on whether the distribution of the binary response is homogeneous—the same—across populations.
The hypothesis of independence, appropriate for some sampling schemes, is used to investigate an association between row and column factors without specifying one of them as a response. Although the hypothesis can be expressed in terms of parameters, the actual parameters used differ for different sampling schemes, and it is more convenient to use words:
H0W The row categorization is independent of the column categorization.
For example, individuals in a population may be categorized according to whether they favor legalized abortion or not and according to whether they favor the death penalty or not. It is natural to ask whether an association exists between the two factors—whether people who answer yes on one of the questions are more (or less) likely to answer yes on the other. If there is no association, the factors are independent. With the test of independence, the two factors are treated equally, and neither needs to be specified as the response.
One difference between hypotheses of homogeneity and of independence lies in whether one thinks of two populations, each with two categories of response, or of a single population with four categories of response (formed by two binary factors in a 2  2 table). The homogeneity hypothesis is appropriate for the first,
19.2 Population Models for 2  2 Tables of Counts 575
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

576
Chapter 19 More Tools for Tables of Counts
19.2.2
and independence is appropriate for the second. Whether the two-population or single-population model (or both) is appropriate depends on the research question and on how the data were collected. In the next section, several sampling schemes are described, and the appropriateness of the two hypotheses is discussed for each.
Sampling Schemes Leading to 2 × 2 Tables Poisson Sampling
In this scheme (named after the French mathematician Sim ́eon Denis Poisson, 1781– 1840), a fixed amount of time (or space, volume, money, etc.) is devoted to collecting a random sample from a single population, and each member of the population falls into one of the four cells of the 2  2 table. An example is the heart disease and obesity data of Section 18.1.1. In that case, the researchers spent a certain amount of time sampling health records in American Samoa and ended up with 3,112 women. The women were categorized as having been obese or not, and as having died of cardiovascular disease (in six years) or not. One easy way to recognize this sampling scheme is to observe that none of the marginal totals (see Display 19.3) is known in advance of data collection.
DISPLAY 19.3
Recognizing the sampling schemes and appropriate test hypotheses by noticing which marginal totals are fixed
Column Factor (Response)
n11 n12 n21 n22
Row Factor (Explanatory)
Level 1 Level 2 Totals
Row totals
Grand total
Marginal totals
Usual hypotheses
Independence Homogeneity
Level 1
C1
Level 2
Totals R1
R2 C2 T
Sampling scheme
Column totals
Marginal totals fixed in advance
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.2 Population Models for 2  2 Tables of Counts 577
Multinomial Sampling
This scheme is very similar to Poisson sampling except that the total sample size is determined in advance. If a list of all women in American Samoa existed, the researcher could have selected a random sample of 5,000 from this list. The term multinomial means that each subject selected in the sample is categorized into one of several cells—in this case, one of four cells in the 2  2 table. The only marginal total known in advance of data collection is the grand total.
Prospective Product Binomial Sampling
This sampling scheme formed the basis for deriving the tools in the previous chapter. The two populations defined by the levels of the explanatory factor are identified, and random samples are selected from each. If separate lists of the populations of obese American Samoan women and nonobese American Samoan women were available, a random sample of 2,500 could be selected from each. The term binomial means that each woman (in each population) falls into one of two categories (see Section 18.2.1). Product binomial is a term whose statistical meaning reflects there being more than one binomial population from which independent samples have been taken. The sizes of the samples from each of the populations are chosen by the researcher.
Retrospective Product Binomial Sampling
Retrospective studies were discussed in Section 18.4.1. Random samples are selected from the subpopulations defined by each level of the response factor. The sampling scheme is technically the same as in the prospective product binomial, except that the roles of response and explanatory factors (according to the questions of interest) are reversed. The researcher specifies the sample totals to be obtained at each level of the response factor.
Randomized Binomial Experiment
In a randomized experiment, the subjects—regardless of how they were obtained— are randomly allocated to the two levels of the explanatory factor. Aside from the fact that randomization rather than random sampling is used, the setup here is essentially the same as in prospective product binomial sampling. The explanatory factor totals are fixed by the researcher.
The Hypergeometric Probability Distribution
Sometimes an experiment can be conducted in such a way that the row and column totals are both fixed by the researcher. In a classic example, a woman is asked to taste 14 cups of tea with milk and categorize them according to whether the tea or the milk was poured first. She is told that there were seven of each, so she tries to separate them into two groups of size seven. If a 2  2 table is formed, with the row factor being actual status for each of the 14 cups (milk first or tea first) and the column factor being guessed status (milk first or tea first), then each row and each column total will be seven. If the subject cannot correctly guess the
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

578
Chapter 19 More Tools for Tables of Counts
19.2.3
order of milk and tea, then the seven cups she guesses to have had milk first are like a random sample from the 14 eligible cups. The hypergeometric probability distribution describes the probability of getting as many correct assignments as she did, given that she was just guessing.
Although this type of hypergeometric experiment is rare, the hypergeometric probability distribution is applied more generally. If interest is strictly focused on the odds ratio, statistical analysis may be conducted conditionally on the row and column totals that were observed. Therefore, no matter which sampling scheme produced the 2  2 table, one may use the hypergeometric distribution to calculate a p-value. This is known as Fisher’s Exact Test, which is described in more detail in Section 19.4.
Testable Hypotheses and Estimable Parameters
In prospective product binomial sampling and randomized experiments, it is very natural to draw inferences about the parameters 1 and 2 (or !1 and !2) describ- ing the two binomial distributions. A test of homogeneity is used to determine whether the populations are identical. A confidence interval for 1 􏰀 2 or for the odds ratio, !1=!2, is used to describe the difference. As discussed in Chapter 18, !1=!2 is the only comparison parameter that may be estimated if the sampling is retrospective.
With Poisson and multinomial sampling, information is available about the single population with four categories, and independence may be tested without specifying either row or column factor as a response. Some further options are also available. Either the row or the column may be designated as a response, thus divid- ing the population into two subpopulations for each level of the explanatory factor. Although the sample sizes may differ, the samples are indeed random samples from each subpopulation. Consequently, all inferential tools for prospective product bino- mial sampling may be used with Poisson and multinomial sampling as well. The choice of testing for independence or homogeneity should depend on whether treat- ing one of the categories as a response is appropriate. A summary of the hypotheses that may be tested for each sampling scheme is shown in Display 19.3.
The heart disease and obesity study employed Poisson sampling. Since CVD death is the response factor, one would phrase inferences in terms of proportions of CVD deaths in the two subpopulations, thus testing homogeneity and providing a confidence interval for the difference in proportions or the ratio of odds.
Estimable Parameters
Although testing independence or estimating an odds ratio is often a primary goal, additional interest may be focused on other population features. The question of interest may involve the overall proportion of yes responses in the entire population or the proportions of units having different levels of the explanatory factor. For example, one might have interest in estimating the overall proportion of American Samoan women who were obese or the overall proportion of CVD deaths. These are marginal proportions, in the sense that estimates are constructed from ratios of
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.3 The Chi-Squared Test 579
DISPLAY 19.4
Estimable parameters for sampling schemes leading to 2  2 tables of counts (the check mark indicates the feature is estimable)
Probability of a
yes response in explanatory group i (1,2)
Sampling Scheme
Poisson Multinomial Product binomial
Prospective
Retrospective Randomized experiment
Odds of a yes response in
explanatory group i (1,2)
Proportion of the combined population with explanatory level 1
Proportion of the combined population with a yes response
* *
*Estimable only if v1 v2 .
19.3
marginal totals in the table of counts. Display 19.4 indicates whether the proportion of the population in row 1 (call this population quantity ) and in column 1 (call this ) can be estimated from the different sampling procedures.
THE CHI-SQUARED TEST
19.3.1 The Pearson Chi-Squared Test for Goodness of Fit
Karl Pearson (1857–1936) devised a general method for comparing fact with theory. His approach assumes that sampled units fall randomly into cells and that the chance of a unit falling into a particular cell can be estimated from the theory under test. The number of units that fall in a cell is the cell’s observed count, and the number predicted by the theory to do so is the cell’s expected count. Pearson combined these into the single statistic
The sum is over all cells of the table. The name Pearson chi-square statistic attached to X2 reflects its approximate sampling distribution, which is chi-squared if the theory (null hypothesis) is correct. The degrees of freedom are equal to (Number of cells) minus (Number of parameters estimated) minus 1.
2 X .Observed 􏰀 Expected/2 XD:
Expected
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

580
Chapter 19 More Tools for Tables of Counts
19.3.2
Chi-Squared Test of Independence in a 2 × 2 Table
A 2  2 table contains four cells. The proportion of counts that fall in column 1 is C1=T (using the terminology in Display 19.3). If the column proportion is inde- pendent of row, this same proportion should appear in both row 1 and row 2. Since there are R1 subjects in row 1, R1 .C1=T/ of them are expected to fall into column 1. By extension, the expected count in cell .i;j/, if row and column are independent, is estimated by Ri Cj =T , as follows.
The pattern for determining an estimate for an expected cell count is to multiply the marginal totals in the same row and the same column together, then divide by the grand total.
Testing the hypothesis of independence involves the following steps:
1. Estimate the expected cell counts from the preceding formulas.
2. Compute the Pearson X2 statistic from the formula in the previous box.
3. Find the p-value as the proportion of values from a chi-squared distribution on
one degree of freedom that are greater than X2, using a calculator or computer program with chi-squared distribution probabilities.
A small p-value provides evidence that the row and column categorizations are not independent. The example in Display 19.5 tests independence of the death penalty sentence and the race of the victim, using all six aggravation levels combined.
Equivalence of Several Tests for 2 × 2 Tables The Chi-Squared Test for Homogeneity
Since the expected cell counts one obtains under the independence hypothesis are also the expected cell counts under the homogeneity hypothesis, the chi-squared test of independence in Section 19.3.2 is also a test of homogeneity. The chi-squared statistic is identical to the square of the Z-statistic for testing equal population proportions (see Section 18.2.3). Furthermore, the X2 distribution on one degree of freedom is identical to the distribution of the square of a standard normal variable. Consequently, the p-values from the chi-squared test of independence and the chi- squared test of homogeneity are identical to the two-sided p-value from the Z-test of equal population proportions.
Observed and Estimated Expected Cell Counts for Testing Independence
Cell .i;j/ Observed: Expected (est.):
.1;1/ n11
R1C1=T
.1;2/ n12
R1C2=T
.2;1/ n21
R2C1=T
.2;2/ n22
R2C2=T
19.3.3
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.3 The Chi-Squared Test 581
DISPLAY 19.5
Race of Victim
Chi-squared test of independence between death penalty and race of victim (ignoring aggravation level of the crime)
White Black
Totals
303 362
Observed Counts
Death Penalty
Expected (Independence)
Death Penalty
Yes No
Yes
59
No
Totals
130 232
45 85 14 218
21.19 108.81 37.81 194.19
2
3
Compute the X 2 statistic.
1 Compute expected cell counts from the marginal totals. For example,
21.19 = (130)(59)/(362).
2 = (45 –21.19)2 (85 –108.81)2 (14 –37.81)2 (218 – 194.19)2 +++
21.19 108.81 = 49.89
Compute the p-value from a chi- squared on 1 d.f. ( 21) probability.
37.81 194.19
2
Pr ( 1 > 49.89) < 0.0001 Conclusion: There is convincing evidence that death penalty sentence and race of victim are not independent. Calculation and Continuity Correction The most convenient formula for the chi-squared statistic from a 2  2 table is the following: 2 T.n11n22 􏰀n12n21/2 XD RRCC : The statistic has approximately a chi-squared distribution with one degree of free- dom, under the independence or homogeneity hypothesis. The approximation is premised on there being large cell counts; all expected counts larger than 5 is the customary check for validity. An adjustment—the continuity correction—improves the approximation when sample sizes are not large: 2 T.jn11n22 􏰀n12n21j􏰀T=2/2 XD RRCC : Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 1212 1212 582 Chapter 19 More Tools for Tables of Counts 19.4 Limitations The chi-squared tests for independence and homogeneity extend to r  c tables of counts (see Section 19.6.1). Although the chi-squared test is one of the most widely used of statistical tools, it is also one of the least informative. First, the only product is a p-value; there is no associated parameter to describe the degree of dependence. Second, the alternative hypothesis—that row and column are not independent—is very general. When more than two rows and columns are involved, there may be a more specific form of dependence to explore (see Chapters 21 and 22). FISHER’S EXACT TEST: THE RANDOMIZATION (PERMUTATION) TEST FOR 2 × 2 TABLES Although there are several statistical motivations for using Fisher’s Exact Test, it is explained here as a randomization test for the difference in sample propor- tions. It is identical to the randomization test presented in Chapter 4, except that the responses are binary and the statistic of interest is the difference in sample proportions. Fisher’s Exact Test is appropriate for any sample size, for tests of homogeneity or of independence. 19.4.1 The Randomization Distribution of the Difference in Sample Proportions This section illustrates the randomization distribution of the difference of sample proportions on a small, hypothetical example. While it is more convenient to use the formulas in the next section or a computer program to obtain the same p-value, the approach here is helpful for visualizing the randomization distribution on which the calculations are based. The p-value has a concise meaning related to the probabilities involved in the random allocation of subjects to treatment groups. Consider a small, hypothetical version of the sex role stereotype study of Section 19.1.1. Suppose each of seven men is randomly assigned to one of two groups such that four are in group 1 and three are in group 2. Each man decides whether to promote the applicant, based on the personnel file. Suppose that the men in group 1 are A, B, C, and D, while E, F, and G are in group 2. Suppose further that A, B, C, and E decide to promote while the others decide not to promote. Then the proportions of promotions in groups 1 and 2 are, respectively, 3/4 and 1/3. This evidence suggests that group 1 has a larger promotion rate than group 2; but the observed difference may be the result of the chance allocation of subjects to groups. The p-value measures how likely that explanation is. The randomization distribution of the difference in sample proportions is a listing of the differences in proportions, given the observed outcomes, for every possible allocation of the men into groups of size four and three. This randomization distribution is shown in Display 19.6. The groupings in Display 19.6 are ordered according to the difference between promotion proportions. Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 2 3 List all possible ways that the subjects can be arranged into two groups. 19.4 Fisher’s Exact Test: The Randomization (Permutation) Test for 2  2 Tables 583 DISPLAY 19.6 The randomization distribution of the difference in two sample proportions 1 List the subjects with their observed responses. Subject Actual code group Hypothetical grouping Number of 1’s Difference in sample proportions For each arrangement, calculate the difference between the sample proportions; e.g., (2/4 – 2/3) = – 0.167. 4 The p-value is the proportion of groupings with differences in proportions $ 0.417. One-sided p-value = 13/35 = 0.37 Response Group 1 Group 2 in 1 in 2 The promotion decision for each man remains the same, but his group status is allowed to vary. Therefore, the differences in observed proportions in the final column are due entirely to the different group assignments. The one-sided p-value from the randomization test is the proportion of groupings that lead to values of O1 􏰀O2 greater than or equal to the one actually observed .O1 􏰀O2 D 0:417/. Since 13 groupings out of the 35 lead to differences as great as or greater than the one Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 584 Chapter 19 More Tools for Tables of Counts 19.4.2 observed, the p-value is 0:37. Interestingly, if the alternative hypothesis had been two-sided in this example, the p-value might have been defined as the proportion of groupings that have O1 􏰀 O2 greater than or equal to 0:417 in magnitude. The p-value in this case is 0:49, which is quite different from twice the one-sided p-value. This motivation suggests an appealing interpretation of p-values from ran- domized, binomial experiments—as the probability that randomization alone is responsible for the observed disparity between proportions. If an applicant’s sex had no effect in the sex role stereotype study, the promotion decisions would be unaffected by whether a male or female folder was received. However, the prob- ability that chance allocations led to a disparity in proportions as great as or greater than the observed difference—assuming decisions are unaffected by sex of the applicant—is only 0.0245. The Hypergeometric Formula for One-Sided p-Values Although the randomization distribution can always be listed as in Display 19.6, the number of possible outcomes can be quite large even for small sample sizes. There is, however, a short-cut formula for the p-value, based on the hypergeometric probability function: 1. Focus on the upper left-hand cell of the table in Display 19.1. (It makes no difference which cell is selected, but the customary choice is the upper left-hand cell, and the instructions that follow are based on that choice.) 2. Determine the expected number of counts in the upper left-hand cell of the table, as in the computation of the chi-squared statistic: Expected D R1C1=T . 3. Identify values .k/ for the upper left-hand cell of the table that are as extreme as or more extreme than the observed value n11 in evidence against the null hypothesis. If n11 exceeds Expected, the values are k D n11 , n11 C 1, . . . , min.R1;C1/ (i.e., the smaller of the totals in the first row and first column). If n11 is less than Expected, the values are k D 0, 1;:::;n11. 4. For each value of k, determine the proportion of possible randomizations leading to that value, according to the hypergeometric probability formula: Prfkg D R1ŠR2ŠC1ŠC2Š : T ŠkŠ.R1 􏰀 k/Š.C1 􏰀 k/Š.R2 􏰀 C1 C k/Š (Recall that 5Š D 5  4  3  2  1 and that 0Š is taken to be 1.) 5. Calculate the p-value by adding up these probabilities. Display 19.7 illustrates the calculations for the sex role stereotype data. Fisher’s Exact Test for Observational Studies Fisher’s Exact Test has been presented here as a randomization test based on the statistic O1 􏰀 O2. If the data are observational, however, it is thought of as a per- mutation test, which is a useful interpretation when the entire population has been sampled or when the sample is not random. The permutation test here is also 19.4.3 Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 19.7 1 Fisher’s Exact Test: calculations for testing equal promotion probabilities for bank supervisors given ‘‘male’’ and ‘‘female’’ application folders Promoted? 19.4 Fisher’s Exact Test: The Randomization (Permutation) Test for 2  2 Tables 585 Select a cell from observed table. Female Totals Yes No Male 21 3 24 Totals 2 Determine expected cell count. 3 Identify the set of possible cell counts (k) that are as extreme or more extreme than those observed (given the marginal totals). 4 14 10 24 35 13 48 Expected = (24)(35) = 17.5 48 Observed (21) > Expected (17.5) min(35,24) = 24
k = 21, 22, 23, 24
Pr{ 21}= Pr{ 22}= Pr{ 23 } = Pr{ 24}=
24! 24! 35! 13!
48! 21! 3! 14! 10! 24! 24! 35! 13!
48! 22! 2! 13! 11! 24! 24! 35! 13!
48! 23! 1! 12! 12! 24! 24! 35! 13!
= 0.02058 = 0.00357 = 0.00034 = 0.00001
Calculate hypergeometric probabilities.
5 Add the probabilities.
Conclusion: There is substantial evidence that the observed division of
favorable promotion decisions was not the result of random allocation.
equivalent to a sampling distribution, thus allowing inference about population parameters with random samples from the Poisson, multinomial, or product bino- mial sampling schemes. As demonstrated, the calculations can be used to obtain exact p-values for tests of equal population proportions, of equal population odds, or for independence.
Fisher’s Exact Test Versus Other Tests
If Fisher’s test gives exact p-values for all hypotheses, why should one ever consider using the Z-test for equal population proportions, the Z-test for equal population odds, or the chi-squared test for independence? If a test is all that is desired and if a computer program is available, there is indeed no reason to use a test other
48! 24! 0! 11! 13! One-sided p-value = 0.02450
19.4.4
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

586
Chapter 19 More Tools for Tables of Counts
19.5
than Fisher’s. But confidence intervals are commonly desired. Furthermore, if the sample sizes are large, not only are the permutation calculations infeasible but also the various tests differ very little, so choosing one over the others tends not to be a matter of major concern.
Report p-Values
It is important to provide a p-value rather than simply to state whether the p-value exceeds or fails to exceed some prespecified significance level (such as 0:05). It is especially important in categorical data analysis. For example, consider the test of whether a flipped coin has probability 1/2 of turning up heads. Based on 10 tosses, the probability of getting eight or more heads is 0.055 and the probability of getting nine or more heads is 0.011 (from binomial probability calculations—see Section 18.2.1). Thus, the null hypothesis would be rejected at the 5% level of significance if nine or more heads were obtained, but only 1.1% of all possible outcomes lead to such a rejection.
COMBINING RESULTS FROM SEVERAL TABLES WITH EQUAL ODDS RATIOS
Cause-and-effect conclusions cannot be drawn from observational studies, because the effect of confounding variables associated with both the indicator variable (defining the populations) and the binary response cannot be ruled out. As with regression, however, tools are available for taking the next step: conducting com- parisons that account for the effect of a confounding variable. The Mantel–Haenszel procedure may be used for this purpose when several 2  2 tables are involved, one for each level of a confounding variable, if the odds ratio is the same for all levels of the confounding variable. It is also appropriate for randomized block experiments in which a separate 2  2 table exists for each block.
19.5.1 The Mantel–Haenszel Excess
The excess is a name given to the observed count minus the expected count (accord- ing to the hypothesis) in one of the cells of the 2  2 table. It is only necessary to consider the excess in one of the cells, and the convention used here will be to focus on the upper left cell. If
Observed D n11 Expected D R1C1
T
and
The relevant properties of the excess are displayed in the following box.
then
Excess D Observed 􏰀 Expected.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.5 Combining Results from Several Tables with Equal Odds Ratios 587
When the null hypothesis is correct,
MeanfExcessg D 0 and VariancefExcessg D R1R2C1C2 :
TT.T 􏰀1/
And when, in addition, the sample sizes are large, the sampling distribution of the
DISPLAY 19.8
excess is approximately normal.
An approximate p-value is obtained in the usual way, based on a Z-test. This is illustrated in Display 19.8 in connection with the sex role stereotype data. The one- sided p-value is 0:012, which is somewhat smaller than the exact one-sided p-value of 0:024.
Excess test as an approximation to Fisher’s Exact Test: calculations for testing equal promotion probabilities for bank supervisors given ‘‘male’’ and ‘‘female’’ application folders
1
Promoted?
Yes No Totals
Male 21 3 24 Female 14 10 24
Totals 35 13 48 = 21
Observed
2 Expected = (24)(35) = 17.5
3Excess
4 Variance =
= 3.5
48
Difference
(24)(24)(35)(13) = 2.42 (48)(48)(47)
The essential features of this statistic are as follows:
1. For 2  2 tables of counts, the excess is an approximation to Fisher’s Exact Test.
2. The p-value is close but not identical to the one from the Z-test for equal population proportions and the chi-squared test for independence.
3.5 =2.25 2.42
=
6 One-sidedp-value =0.012
5 Z-statistic
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

588
Chapter 19 More Tools for Tables of Counts
19.5.2
3. The excess statistics from several 2  2 tables can be added up to get combined evidence in 2  2 tables for each of several levels of a confounding or blocking factor.
The Mantel–Haenszel excess test provides nothing new for analyzing 2  2 tables, but it is the only test that can be combined over several tables.
The Mantel–Haenszel Test for Equal Odds in Several 2 × 2 Tables
The Mantel–Haenszel testing procedure applies when several 2  2 tables are involved—one for each level of a confounding or blocking factor. Such is the case in the death penalty and race study of Section 19.1.2, where the confounding variable is the aggravation level of the crime. The proportion of death penalty sentences is expected to be larger for higher aggravation categories, but the relative odds—the odds of death penalty for white-victim murderers relative to the odds of death penalty for black-victim murderers—may nonetheless remain the same for all aggravation levels. If so, the Mantel–Haenszel test is appropriate for evaluating the hypothesis that the common odds ratio is 1.
The test statistic, a single Excess statistic, is the sum of the excesses from the individual tables. The procedure for running the test is as follows:
1. Select one cell in the 2  2 table, where the excess will be computed.
2. Compute Excess and VarfExcessg for that cell in each table separately.
3. The combined Excess is the sum of the individual Excesses.
4. The variance of the combined Excess is the sum of the individual variances. The
standard deviation is the square root of this.
5. A Z-statistic is the combined Excess divided by its standard deviation.
This procedure is demonstrated in Display 19.9. Even after the aggravation
level of the crime is accounted for, convincing evidence remains that the odds of a black murderer’s getting the death penalty if the victim was white are greater than the odds of death penalty if the victim was black (one-sided p-value D 0:0004).
Notes About the Mantel–Haenszel Test
1. One assumption is that the odds ratio is the same in each 2  2 table. For one thing, the hypothesis that the odds ratio is 1 does not make sense if the odds ratio differs in the different 2  2 tables. Fortunately, even though the odds and the proportions may differ considerably in the different tables, the relative odds often remain roughly constant. A way to check the assumption is given in Chapter 21.
2. The p-value is approximate, based on large sample size. Fortunately, the total sample size of all tables is the important measure. A safe guideline is that the sum of the expected cell counts (added over all tables) should be at least 5, for each of the four cell positions.
3. The Mantel–Haenszel test treats the different levels of the confounding variable as nominal, ignoring any quantitative structure. It is possible to use logistic
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.5.3
DISPLAY 19.9
regression (see Chapters 20 and 21) to include aggravation level, for example,
as a numerical explanatory variable.
4. The Mantel–Haenszel test is appropriate for prospective and retrospective
observational data, as well as for randomized experiments.
5. Often a chi-squared version of the Mantel–Haenszel test is used. It is equal to
the square of the Z-statistic.
Estimate of the Common Odds Ratio
The Mantel–Haenszel theory also provides an estimate of the common odds ratio from all tables combined. The estimated odds ratio in a single 2  2 table is .n11n22/=.n12n21/. In aggravation level 1 of Display 19.9, for example, this value is Œ.2/.181/=Œ.60/.1/ D 6:03. To get an estimated odds ratio from all tables together,
Mantel–Haenszel calculations for death penalty and race data from Section 19.1.2
3
Add the excesses and their variances. 4 Calculate the Z -statistic.
0.762 1.238 1.308 0.692
4.333 1.667 7.333 1.667 7.313 1.688
17.000 0.000 6.952
Z-statistic = 6.951 4.292
0.564 0.699
1.382 1.007 0.640 0.000
4.292
3.355 = 0.0004
19.5 Combining Results from Several Tables with Equal Odds Ratios 589
1 Select a cell.
White-victim murderers given the death penalty
Aggravation level
Race of victim
Death penalty
Yes No
2 Find the excess and
its variance for each table.
Expected Excess Variance
5 One-sided p-value from the normal distribution Pr{ Z > 3.356}
Conclusion: Nearly 7 more white-victim murderers received the death penalty than would have been expected if the odds of receiving the death penalty were the same for white-victim and black-victim murders. This cannot reasonably be attributed to chance.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
=

590
Chapter 19 More Tools for Tables of Counts
19.6
one sums the numerators in these expressions, weighted by the reciprocal of their table totals. Then one sums the denominators, similarly weighted. The estimate of the common odds ratio from several tables is
!O D Sum of fn11n22=T g over all tables: Sum of fn12n21=Tg over all tables
Use of this estimate assumes that the odds ratio is the same in all tables.
Example—Death Penalty and Race
The Mantel–Haenszel estimated odds ratio from the death penalty data is
.2/.181/ C .2/.21/ C .6/.9/ C .9/.4/ C .9/.3/ C .17/.0/
!OD 244 39 24 18 16 21 D5:49:
.60/.1/ C .15/.1/ C .7/.2/ C .3/.2/ C .0/.4/ C .0/.4/ 244 39 24 18 16 21
After the aggravation level of the crime has been accounted for, the odds of a black killer’s receiving the death penalty are estimated to be 5.49 times greater if the victim was white than if the victim was black. Software that computes this estimate also provides a standard error or a confidence interval. The method is complex and will not be described here.
RELATED ISSUES
19.6.1 r ×c Tables of Counts
DISPLAY 19.10
More general tables arise from counts of subjects falling into cross-classifications of several factors, each with many levels. Display 19.10 shows a table listing the num- ber of homicides of children by their parents, over 10 years in Canada, categorized according to the parent–offspring sex combination and according to age category. (Data from M. Daly and M. Wilson, “Evolutionary Social Psychology and Family Homocide,” Science 242 (1988): 519–24.)
Parent–offspring homicides in Canada, 1974 to 1983, by sexes of the parent killer and the child killed, and by age class of the child
Age classification of child
Sex of Infantile Oedipal Latency Circumpubertal Adult parent/child (0–1) (2–5) (6–10) (11–16) ($17)
The sampling scheme for this example is Poisson, so one should either test for independence of the row and column factors or declare one of these as a response
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.7 Summary 591
factor and test for homogeniety of the (multinomial) responses across levels of the explanatory factor. For this problem it is unnecessary to specify either factor as response.
The chi-squared test of independence is conducted just as for 2  2 tables; that is, the observed cell count in row i and column j is nij , and the expected cell count (supposing that the null hypothesis of independence or homogeneity is true) is the row total times the column total, divided by the grand total: Ri Cj = T . The chi-squared statistic is the sum, for all cells in the table, of
.Observed 􏰀 Expected/2=Expected:
The p-value is found by comparing this test statistic to a chi-squared distribution on .r 􏰀 1/  .c 􏰀 1/ degrees of freedom, where r is the number of rows and c is the number of columns in the table.
19.6.2 Higher-Dimensional Tables of Counts
Some additional structure is present in the table because the four levels of the row factor correspond to the cross-classifications of parent (male or female) and child (male or female). The table should therefore more properly be considered a 225 table of counts. The chi-squared analysis has been historically used for this type of table. An initial screening test assesses independence between all three factors. If the independence hypothesis is rejected, the chi-square statistic is decomposed into a set of component chi-squared statistics with smaller degrees of freedom, each testing different aspects of the dependency structure. This is accomplished by means of a series of slices and lumpings of categories. Carried out fully, the original chi-squared statistic is decomposed into chi-squared statistics (with one degree of freedom), each of which tests a hypothesis of interest.
Because the analysis sequence resembles an analysis of variance so closely, it suggests that there may be a comparable regression approach. There is. Chapter 22 introduces Poisson log-linear regression, which offers a more flexible approach to analyzing tables of counts, using regression techniques. For example, age of the offspring may be modeled either as a factor or as a numerical explanatory variable.
19.7 SUMMARY
Fisher’s Exact Test can be used for testing in 2  2 tables, no matter how the data arose, no matter which of the two hypotheses is being tested, and no matter what the sample sizes are. The interpretation of the p-value, however, should be customized to the particular hypothesis, which is chosen according to the question of interest and the sampling scheme. For large sample sizes, the easier-to-compute approximations are adequate.
Pearson’s chi-squared statistic is a convenient approximation to the exact test. A principal advantage of the Pearson method is that it permits testing independence in larger tables. The principal disadvantage is that it is a test procedure only.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

592 Chapter 19 More Tools for Tables of Counts
The Mantel–Haenszel Test compares the odds in two groups after accounting for the effect of a blocking or confounding variable. If the blocking variable is numerical, however, there is some merit in attempting a more specific model, using logistic regression as in Chapter 21. Logistic regression can also be used to test for the condition that the odds ratio is the same in all the 2  2 tables: if it isn’t, the Mantel–Haenszel test is inappropriate.
Sex Role Stereotypes in Promotions
Fisher’s Exact Test is appropriate for testing whether the probability of promotion is the same regardless of the sex of the applicant. The p-value in this case, 0:0245, is exact and provides an inferential measure tied directly to the probabilities of assignment in the randomized experiment.
Death Penalty Sentencing Study
The Mantel–Haenszel procedure applied to these data computes an overall excess of death penalty sentences given to murderers of white victims. Excess means the additional number of murderers receiving the death penalty over what would be expected if death penalty and race of victim are independent. The excess is a direct measure of the practical significance of the disparity in sentencing and provides the basis for the measure of statistical significance.
19.8 EXERCISES
Conceptual Exercises
1. Sex Role Stereotypes. (a) From this study, what can be inferred about the attitudes of bank managers toward promotion of females? (b) How would you respond to someone who asserted that the higher proportion of the “male” folders promoted occurred simply by chance, because the tougher managers happened to be placed in the “female” group?
2. Death Penalty and Race. (a) Lawyers for the defense showed that only 6% of black-victim murderers received the death penalty, while 35% of white-victim murderers received the death penalty. They claimed that the pattern of sentencing was racially biased. How should the (statis- tically knowledgeable) lawyers for the state respond? (b) What can the lawyers for the defense say to rebut the state lawyers’ response? (c) How should the lawyers for the state respond to this further analysis?
3. (a) Why is the hypothesis H0W 1 􏰀2 D 0 identical to the hypothesis H0W !1=!2 D 1. (b) Does this mean that retrospective data can be used to estimate 1 􏰀 2?
4. Coffee Drinking and Sexual Habits. From a sample of 13,912 households in Washtenaw County, Michigan, 2,993 persons were identified as being 60 years old or older. Of these, 1,956 agreed to participate in a study. The following table is based on data from the married women in this sample who answered the questions about whether they were sexually active and whether they drank coffee. (Data from A. C. Diokno et al., “Sexual Function in the Elderly,” Archives of Internal Medicine 150 (1990): 197–200.) (a) What type of sampling scheme was this? To what population can inferences be made? (b) Are these data more useful for investigating whether coffee drinking causes decreased sexual activity or whether sexual activity causes decreased coffee drinking? (c) If it
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.8 Exercises 593
is desired to treat sexual activity as a categorical response, does the inequality of the row totals create a problem?
Coffee drinker Not coffee drinker
5. Crab Parasites. Crabs were collected from Yaquina Bay, Oregon, during June 1982 and cate- gorized by their species (Red or Dungeness) and by whether a particular type of parasite was found. (a) What type of sampling would you call this? (b) What tool would you use to determine whether the parasite is more likely to be present on a Red Crab than on a Dungeness Crab?
Red Crab Dungeness Crab
6. Hunting Strategies. A popular way to synthesize results in a research area is to assemble a bibliography of all similar studies and to use a random sample of them for statistical analysis. The following table categorizes a random sample of 50 (out of 1,000) published references relating to the hunting success of predators. Each article was categorized according to whether the animal under discussion hunted alone or in groups and whether it hunted single or multiple prey. (Data from R. E. Morris, Oregon State University Department of Fisheries and Wildlife.) (a) What type of sampling would you call this? (b) What is the population to which inferences can be made?
Hunt alone Hunt in groups
7. (a) In what way is the relationship between the normal and chi-squared distributions similar to the relationship between the t – and F -distributions? (b) How could one obtain a p-value for the chi- squared test of independence in a 2  2 table, using the standard normal (and not the chi-squared) distribution?
8. (a) In investigating the odds ratio from a randomized experiment, why must one account for the effects of an additional variable (with the Mantel–Haenszel procedure, for example), if it is important? (b) What further reason is there if the data are observational?
9. The mathematics and physics departments of Crane and Eagle colleges (fictitious institutions) had a friendly competition on a standard science exam. Of the two math departments, the Crane students had a higher percentage of passes; of the two physics departments, the Crane students again had a higher percentage of passes. But for the two departments combined, the students at Eagle had a higher percentage of passes. (No joke: this is an example of Simpson’s paradox.) The results are
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Sexually active
Yes No
15 25 115 70
Parasite present
Yes No
5 312 0 503
Prey sought
Single Multiple
17 12 14 7

594 Chapter 19 More Tools for Tables of Counts
shown in the following table. Which college “won”? Why? Can you explain the apparent paradox in nonstatistical language?
Mathematics
Pass Fail
Physics
Pass Fail
Crane College Eagle College
Computational Exercises
12 6 20 16
10. Coffee Drinking and Sexual Habits. Find the p-value for the chi-squared test of indepen- dence in the coffee drinking and sexual habits data (Exercise 4).
11. Crab Parasites. Find the one-sided p-value for testing whether the odds of a parasite’s being present are the same for Dungeness Crab as for Red Crab (Exercise 5), using Fisher’s Exact Test. (Notice that only one hypergeometric probability needs to be computed.)
12. Hunting Strategy. For the hunting strategy data of Exercise 6, find the p-value for testing independence by (a) the chi-squared test of independence, and (b) Fisher’s Exact Test.
13. Smoking and Lung Cancer. For the data in Section 18.1.3, test whether the odds of lung cancer for smokers are equal to the odds of lung cancer for nonsmokers, using (a) the excess statistic and (b) Fisher’s Exact Test.
14. Mantel–Haenszel Test for Censored Survival Times: Lymphoma and Radiation Data.
Central nervous system (CNS) lymphoma is a rare but deadly brain cancer; its victims usually die within one year. Patients at Oregon Health Sciences University all received chemotherapy admin- istered after a new treatment designed to allow the drugs to penetrate the brain’s barrier to large molecules carried in the blood. Of 30 patients as of December 1990, 17 had received only this chemotherapy; the other 13 had received radiation therapy prior to their arrival at OHSU. The table in Display 19.11 shows survival times, in months, for all patients. Asterisks refer to censored times; in these cases, the survival time is known to be at least as long as reported, but how much longer is not known, because the patient was still living when the study was reported. (Data from E. A. Neuwelt et al., “Primary CNS Lymphoma Treated with Osmotic Blood-brain Barrier Disruption: Pro- longed Survival and Preservation of Cognitive Function,” Journal of Clinical Oncology 9(9) (1991): 1580–90.)
The Mantel–Haenszel procedure can be used to construct a test for equality of survival patterns in the two groups. It involves constructing separate 2  2 tables for each month in which a death occurred, as shown in Display 19.12. The idea is to compare the numbers surviving and the numbers dying in the two groups, accounting for the length of time until death. The data are arranged in several 2  2 tables, as in Display 19.12. The censored observations are included in all tables for which the patients are known to be alive and are excluded from the others. Compute the Mantel–Haenszel test statistic (equivalently called the log-rank statistic), and find the one-sided p-value. What can be inferred from the result?
15. Bats. Bat Conservation International (BCI) is an organization that supports research on bats and encourages people to provide bat roost boxes (much like ordinary birdhouses) in backyards and gardens. BCI phoned people across Canada and the United States who were known to have put out boxes, to determine the sizes, shapes, and locations of the boxes and to identify whether the boxes were being used by bats. Among BCI’s findings was the conclusion, “Bats were significantly more
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
8 14 13

DISPLAY 19.11
Survival times (months) for two groups of lymphoma patients
Status (dead or alive) and survival times as of December 1990 for CNS lymphoma patients with and without prior radiation
19.8 Exercises 595
Months
Radiation No radiation
Status Months Status
likely to move into houses during the first season if they were made of old wood. Of comparable houses first made available in spring and eventually occupied, eight houses made of old wood were all used in the first season, compared with only 32 of 65 houses made of new wood.” (Data from “The Bat House Study,” Bats 11(1) (Spring 1993): 4–11.) The researchers required that, to be significant, a chi-square test meet the 5% level of significance. (a) Is the chi-squared test appropriate for these data? (b) Evaluate the data’s significance, using Fisher’s Exact Test.
16. Vitamin C and Colds. Pursuing an experiment similar to the one in Section 18.1.2, skeptics interviewed the same 800 subjects to determine who knew and who did not know to which group they had been assigned. Vitamin C, they argued, has a unique bitter taste, and those familiar with it could easily recognize whether their pills contained it. If so, the blind was broken, and the possibility arose that subjects’ responses may have been influenced by the knowledge of their group status. The following table presents a fictitious view of how the resulting study might have turned out. Use the Mantel–Haenszel procedure (a) to test whether the odds of a cold are the same for the placebo and vitamin C users, after accounting for group awareness, and (b) to estimate the common odds ratio.
Vitamin C and colds data
Knew their group
Cold No cold
Placebo 266 46 Vitamin C 139 29
Did not know
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Cold
62 157
No cold
26 75

596 Chapter 19 More Tools for Tables of Counts
DISPLAY 19.12 Several 2  2 tables, formed from the censored and uncensored survival times
Known to Month after survive beyond
diagnosis this month
Known to die after this many months
Known to survive beyond this month
Known to die after this many months
Data Problems
Radiation group
No radiation group
17. Alcohol Consumption and Breast Cancer—A Retrospective Study. A 1982–1986 study of women in Toronto, Ontario, assessed the added risk of breast cancer due to alcohol consumption. (Data from Rosenberg et al., “A Case–Control Study of Alcoholic Beverage Consumption and Breast Cancer,” American Journal of Epidemiology 131 (1990): 6–14.) A sample of confirmed breast cancer patients at Princess Margaret Hospital who consented to participate in the study was obtained, as was a sample of cancer-free women from the same neighborhoods who were close in age to the cases. The following tables show data only for women in two categories at the ends of the alcohol consumption scale: those who drank less than one alcoholic beverage per month (3 years before the interview), and those that drank at least one alcoholic beverage per day. The women are further categorized by their body mass, a possible confounding factor. What evidence do these data offer that the risk of breast cancer is greater for heavy drinkers ( 1 drink/day) than for light drinkers (< 1 drink/month)? Alcohol consumption and breast cancer study <21 kg/m2 Cases Controls At least one drink per day 38 52 Less than one drink per month 26 61 21–25 kg/m2 >25 kg/m2
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Cases
65 94
Controls
147 153
Cases
Controls
30 42 56 102

DISPLAY 19.13
18. The Donner Party. In 1846 the Donner party became stranded while crossing the Sierra Nevada mountains near Lake Tahoe. (Data from D. J. Grayson, “Donner Party Deaths: A Demo- graphic Assessment,” Journal of Anthropological Research 46 (1990): 223–42. See also Section 20.1.1.) Shown in the following tables are counts for male and female survivors for six age groups. Is there evidence that the odds of survival are greater for females than for males, after the possible effects of age have been accounted for?
Age category
15–19 20–29 30–39 40–49 50–59 60–69 Lived Died Lived Died Lived Died Lived Died Lived Died Lived Died
Male 1 1 5 10 2 4 2 1 0 1 0 3 Female 1 0 6 1 2 0 1 3 0 1 0 0
19. Tire-Related Fatal Accidents and Ford Sports Utility Vehicles. The table in Display 19.13 shows the numbers of compact sports utility vehicles involved in fatal accidents in the United States between 1995 and 1999, categorized according to travel speed, make of car (Ford or other), and cause of accident (tire-related or other). From this table, test whether the odds of a tire-related fatal accident depend on whether the sports utility vehicle is a Ford, after accounting for travel speed. For this subset of fatal accidents, estimate the excess number of Ford tire-related accidents. (This is a subset of data described more fully in Exercise 20.18.).
Numbers of sports utility vehicles (1995 and newer) involved in fatal traffic accidents between 1995 and 1999, excluding those struck by other vehicles, those for which travel speed was unavailable, and those involved in alcohol-related accidents
Cause of accident Speed (m.p.h.) Make Other Tire
19.8 Exercises 597
20. Diet Wars I. In the study of three different diets for losing weight (Exercise 6.23), 50 subjects who began the study dropped out before the two-year period ended. Only one of the 45 women dropped out, while 49 of the original 277 men dropped out. What evidence does this provide that the women were more likely to complete the study?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

598 Chapter 19 More Tools for Tables of Counts
21. Diet Wars II. In the study of different diets for losing weight (Exercises 6.23 and 20 above), there appear to have been many more experimental subjects that dropped out from the low- carbohydrate diet group than from the other two diet groups. The numbers are shown in the following table:
Low-Fat Diet Mediterranean Diet Low-Carbohydrate Diet Total
262 312
50
What evidence is there of different drop-out rates in the three diets?
Dropped Out
Completed
Total
104 99 109
22. Diet Wars III. In Exercise 20 above, it appears that women were more likely to complete the study than men. In Exercise 21 above, it appears that there was a higher tendency to drop out from the low-carbohydrate diet than from the other two diets. Use the table below to assess the evidence that women were more likely to complete the study, after accounting for possible differences in dropout rates in the different diets. (Use the Mantel–Haenszel procedure to perform the test, but comment on the degree to which the p-value can be trusted.)
10 94 16 83 24 85
0 15 10 79
0 15 16 78
1 14 23 71
Low-Fat Mediterranean Low-Carbohydrate
Women Men Women Men Women Men
Total
15
89
15
94
15
94
Dropped Out
50
Completed
272 322
23. Who Looks After the Kids? Exercises 10.31 and 17.13 considered data on clutch volume and body mass to investigate the similarities of dinosaurs with several groups of currently living animals. One issue concerning the validity of the study is the selection of the bird species in the set of currently living animals. Were species (i) selected at random? (ii) stratified by group and selected within group at random? (iii) selected based on what information was available? or (iv) selected to support the study conclusions? Ignore the possibility of (iv). If the answer is (i) or (ii) then that would not cause any problem with the analyses performed, but (iii) could potentially result in biased sampling and therefore incorrect conclusions. Furthermore, (iii) seems like the most probable form of sampling of the modern groups and almost certainly the form of sampling among the dinosaur groups. One way to assess the likelihood (iii) for birds is to compare the numbers of species from each of the 29 orders in the study with the known total number of species in each of the orders, as shown in Display 19.14. If the selection of birds had been at random, the expected proportion of species in the study from one particular order, n, is the proportion of all species in that order (N=9,866) times the total number of species in the sample (414). That is, the expected number in each sample, if random sampling were used, is .N=9,866/  414. Calculate the expected numbers and compare the observed numbers with them using Pearson’s chi-square statistic. It will have 29 􏰀 1 D 28 d.f. What do you conclude?
Answers to Conceptual Exercises
1. (a) Any inference to a population other than the 48 males in the training course is specula- tive because these subjects were not randomly selected from any population. (b) They are possibly correct. But the chance of such an extreme randomization is about 2 out of 100 (the p-value).
2. (a) They argue that no inference that the victims’ races cause different death penalty rates can be drawn from this observational data. Potentially confounding variables, such as aggravation category, might be associated with both the race of the victim and the likelihood of a death sentence. (b) The
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

19.8 Exercises 599
DISPLAY 19.14
Total number of bird species in each of 29 orders and number in the sample from each order
Order of Species
Anseriformes
Apodiformes
Caprimulgiformes
Casuariiformes
Charadriiformes
Ciconiiformes
Coliiformes
Columbiformes
Coraciiformes
Cuculiformes
Falconiformes
Galbuliformes
Galliformes
Gruiformes
Musophagiformes 23 Opisthodomiformes 1 Passeriformes 5,920 Pelecaniformes 65 Phoenicopteriformes 5 Piciformes 344 Podicipediformes 22 Procellariiformes 108 Psittaciformes 353 Pterocliformes 16 Sphenisciformes 17 Strigiformes 209 Struthioniformes 10 Tinamiformes 47 Trogoniformes 39 Total 9,866
Total Number in this Order, N
150 424 118
Sample Number in this Order, n
5 3 8 2
62 14 1 2 8 3 31 2 24 21 1 0 179 6 1 2 1 5 1 3 1 2 5 19 2 414
4
343
114
6
309
213
159
308
54
281
204
defense lawyers compare the odds of white-victim and black-victim death penalty sentences, after accounting for a conspicuous confounding variable—aggravation level (using the Mantel–Haenszel procedure). (c) The state lawyers respond that further confounding variables may exist, whether they can be identified or not, that might explain the difference.
3. (a) If 1 D 2, then 1=.1 􏰀 1/ D 2=.1 􏰀 2/ (so their ratio is 1). This algebra shows that if two probabilities are equal then their corresponding odds are also equal. Similar algebra working in the reverse direction shows that if two odds are equal then their corresponding probabilities are also equal. (b) No. Unless !1=!2 D 1, the value of !1=!2 does not identify the value of 1 􏰀 2.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

600 Chapter 19 More Tools for Tables of Counts
4. (a) It is not clear whether the sampling scheme was Poisson or multinomial. The 225 women are a sample from a population of married women of age 60 or older in the particular county, who agreed to participate in the study and who answered the questions about sexual activity and coffee drinking. Extrapolating to any other population introduces the potential for bias. (b) Although the observational data can be examined for consistency with the causal theories, the statistical analysis alone cannot be used to imply causation, one way or another. (c) No.
5. (a) Poisson. (b) Fisher’s Exact Test, since there is a problem with small cell counts.
6. (a) Multinomial. (b) The population of 1,000 published articles about hunting success.
7. (a) The F -distribution on 1 and k degrees of freedom describes the distribution of the square of
a variable with the t-distribution on k degrees of freedom. Similarly, the chi-square distribution on 1 degree of freedom describes the square of a variable with the standard normal distribution. (b) Take the square root of X2, and double the area under a standard normal curve to the right of this.
8. (a) Accounting for the confounding variable in the analysis will make the inference about the association under study more precise. (b) The study’s lack of control over the confounding variable at the design stage provides an added incentive.
9. Among math students, 67% passed at Crane, compared to 56% at Eagle. Among physics stu- dents, 36% passed at Crane, compared to 25% at Eagle. Among all students (ignoring department), 50% passed at Crane compared to 53% at Eagle. Crane won. The paradox arises because the math students had an easier time with their exam than the physics students had with theirs, coupled with the fact that Eagle had a very high proportion of participants from its math department (90%, compared to 45% at Crane). Crane won because it won both match-ups involving students with supposedly comparable training.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 20
Logistic Regression for Binary Response Variables
Of considerable importance in many fields of application are statistical regression models in which the response variable is binary—meaning it takes on one of two values, 0 or 1. The zero-or-one response is usually an artificial device for modeling a categorical variable with two categories. If, for example, Y is a response taking on the value 1 for study subjects who developed lung cancer and zero for those who did not, then the mean of Y is a probability of developing lung cancer. Regression models for binary responses, therefore, are used to describe probabilities as functions of explanatory variables.
Linear regression models are usually inadequate for binary responses because they can permit probabilities less than 0 and greater than 1. While there are several alternatives, the most important one is logistic regression. This has a form in which a usual regression-like function of explanatory variables and regression coefficients describes a function of the mean (a function of the probability in this case) rather than the mean itself. The particular function is the logarithm of the odds.
Interpretations of logistic regression coefficients are made in terms of statements about odds and odds ratios. Although the model, estimation, and inference proce- dure differ from those of ordinary regression, the practical use of logistic regression analysis with a statistical computing program parallels the usual regression analysis closely.
601
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

602
Chapter 20 Logistic Regression for Binary Response Variables
20.1
CASE STUDIES
20.1.1 Survival in the Donner Party—An Observational Study
In 1846 the Donner and Reed families left Springfield, Illinois, for California by cov- ered wagon. In July, the Donner Party, as it became known, reached Fort Bridger, Wyoming. There its leaders decided to attempt a new and untested route to the Sacramento Valley. Having reached its full size of 87 people and 20 wagons, the party was delayed by a difficult crossing of the Wasatch Range and again in the crossing of the desert west of the Great Salt Lake. The group became stranded in the eastern Sierra Nevada mountains when the region was hit by heavy snows in late October. By the time the last survivor was rescued on April 21, 1847, 40 of the 87 members had died from famine and exposure to extreme cold.
Display 20.1 shows the ages and sexes of the adult (over 15 years) survivors and nonsurvivors of the party. These data were used by an anthropologist to study the theory that females are better able to withstand harsh conditions than are males. (Data from D. K. Grayson, “Donner Party Deaths: A Demographic Assessment,” Journal of Anthropological Research 46 (1990): 223–42.) For any given age, were the odds of survival greater for women than for men?
Statistical Conclusion
While it generally appears that older adults were less likely than younger adults to survive, the data provide highly suggestive evidence that the age effect is more pronounced for females than for males (the two-sided p-value for interaction of gender and age is 0.05). Ignoring the interaction leads to an informal conclusion about the overall difference between men and women: The data provide highly suggestive evidence that the survival probability was higher for women (in the Donner Party) than for the men (two-sided p-value D 0:02 from a drop-in-deviance test). The odds of survival for women are estimated to be 5 times the odds of survival for similarly aged men (95% confidence interval: 1.2 times to 25.2 times, from a drop-in-deviance-based confidence interval).
Scope of Inference
Since the data are observational, the result cannot be used as proof that women were more apt to survive than men; the possibility of confounding variables cannot be excluded. Furthermore, since the 45 individuals were not drawn at random from any population, inference to a broader population is not justified.
20.1.2 Birdkeeping and Lung Cancer—
A Retrospective Observational Study
A 1972–1981 health survey in The Hague, Netherlands, discovered an association between keeping pet birds and increased risk of lung cancer. To investigate bird- keeping as a risk factor, researchers conducted a case–control study of patients in 1985 at four hospitals in The Hague (population 450,000). They identified 49 cases
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

20.1 Case Studies 603
DISPLAY 20.1 Sex, age, and survival status of Donner Party members, 15 years or over Name Sex Age Survival
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

604 Chapter 20 Logistic Regression for Binary Response Variables
of lung cancer among patients who were registered with a general practice, who were age 65 or younger, and who had resided in the city since 1965. They also selected 98 controls from a population of residents having the same general age structure. (Data based on P. A. Holst, D. Kromhout, and R. Brand, “For Debate: Pet Birds as an Independent Risk Factor for Lung Cancer,” British Medical Journal 297 (1988): 13–21.) Display 20.2 shows the data gathered on the following variables:
FMDSex.1D F;0DM/
AG D Age, in years
SS D Socioeconomic status (1 D High, 0 D Low), determined by occupation
of the household’s principal wage earner
YR D Years of smoking prior to diagnosis or examination
CD D Average rate of smoking, in cigarettes per day
BK D Indicator of birdkeeping (caged birds in the home for more than 6 consec-
utive months from 5 to 14 years before diagnosis (cases) or examination (controls)
Age and smoking history are both known to be associated with lung cancer incidence. After age, socioeconomic status, and smoking have been controlled for, is an additional risk associated with birdkeeping?
Statistical Conclusion
The odds of lung cancer among birdkeepers are estimated to be 3.8 times as large as the odds of lung cancer among nonbirdkeepers, after accounting for the effects of smoking, sex, age, and socioeconomic status. An approximate 95% confidence interval for this odds ratio is 1.7 to 8.5. The data provide convincing evidence that increased odds of lung cancer were associated with keeping pet birds, even after accounting for the effect of smoking (one-sided p-value D 0:0008/.
Scope of Inference
Inference extends to the population of lung cancer patients and unaffected individu- als in The Hague in 1985. Statistical analysis of these observational data cannot be used as evidence that birdkeeping causes the excess cancer incidence among bird- keepers, although the data are consistent with that theory. (As further evidence in support of the causal theory, the researchers investigated other potential confound- ing variables [beta-carotene intake, vitamin C intake, and alcohol consumption]. They also cited medical rationale supporting the statistical associations: People who keep birds inhale and expectorate excess allergens and dust particles, increas- ing the likelihood of dysfunction of lung macrophages, which in turn can lead to diminished immune system response.)
20.2 THE LOGISTIC REGRESSION MODEL
The response variables in both case studies—survival in the Donner Party study and lung cancer in the birdkeeping study—are binary, meaning that they take on
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

20.2 The Logistic Regression Model 605
Birdkeeping and lung cancer data: subject number (SN ), lung cancer (LC D 1 for lung cancer DISPLAY 20.2 patients, 0 for controls), sex (FM D 1 for females), socioeconomic status (SS D 1 for high),
birdkeeping (BK D 1 if yes), age (AG ), years smoked (YR ), and cigarettes per day (CD )
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

606
Chapter 20 Logistic Regression for Binary Response Variables
20.2.1
values of either 0 or 1. Both studies involve several explanatory variables, some categorical and some numerical. Logistic regression is an appropriate tool in such situations.
Logistic Regression as a Generalized Linear Model
A generalized linear model (GLM) is a probability model in which the mean of a response variable is related to explanatory variables through a regression equation. Let  D fY jX1; : : : ; Xp g represent the mean response. The regression structure is linear in unknown parameters .ˇ0;ˇ1;:::;ˇp/:
ˇ0 Cˇ1X1 CCˇpXpI
and some specified function of —called the link function—is equal to the regression
structure
g./Dˇ0 Cˇ1X1 CCˇpXp:
The strength of a generalized linear model and analysis comes from the regression equation. Virtually all of the regression tools developed in Chapters 7 through 11 carry over with minor modification, allowing users to relate explanatory information to a much wider class of response variables. The special variables— indicator variables for categorical factors, polynomial terms for curvature, products for interactions—provide flexible and sensible ways to incorporate and evaluate explanatory information.
Link Functions
The appropriate link function depends on the distribution of the response vari- able. The natural choice of link for a normally distributed response, for example, is the identity link, g./ D , leading to ordinary multiple linear regression. Other response variables such as binary responses or counts have different natural links to the regression structure.
The Logit Link for Binary Responses
The natural link for a binary response variable is the logit, or log-odds, function. The symbol  (rather than ) is used for the population mean, to emphasize that it is a proportion or probability. The logit link is g./ D logit./, which is defined as logŒ=.1 􏰀 /, and logistic regression is
logit./Dˇ0 Cˇ1X1 CCˇpXp:
The inverse of the logit function is called the logistic function. If logit./ D , then
 D exp./=Œ1 C exp./:
Display 20.3 illustrates how the logit and logistic functions connect the regression structure (represented by ) with the population proportion.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

20.2 The Logistic Regression Model 607
DISPLAY 20.3
1.0 .8 .6 .4 .2
The standard logistic function
e
=
1+e
increases by 0.244,
increases by 1 unit
increases by 1 unit
but odds increase by a factor of 2.718 ,
increases by 0.029 432101234
Nonconstant Variance
In normal regression, VarfY jX1; : : : ; Xpg D 2, where 2 is a constant that does not depend on the explanatory variable values. As was shown in Section 18.2.1, however, the variance of a population of binary response variables with mean  is .1 􏰀 /. Therefore, the mean and variance specifications of the logistic regression model are as given in the following box.
Logistic Regression Model
fY jX1 ; : : : ; Xp g D  I VarfY jX1 ; : : : ; Xp g D  .1 􏰀  /I logit./Dˇ0 Cˇ1X1 CCˇpXp:
Logistic regression is a kind of nonlinear regression, since the equation for fYjX1;:::;Xpg is not linear in ˇ’s. Its nonlinearity, however, is solely contained in the link function—hence the term generalized linear. The implication of this is that the regression structure (the part with the ˇ’s) can be used in much the same way as ordinary linear regression. The model also differs from ordinary regression in variance structure: VarfYjX1;:::;Xpg is a function of the mean and contains no additional parameter (like 2).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Population proportion or probability

608
Chapter 20 Logistic Regression for Binary Response Variables
20.2.2
Interpretation of Coefficients
Although the preceding formulation is useful from a technical viewpoint because it casts logistic regression into the framework of a generalized linear model, it is important as a matter of practical interpretation to remember that the logit is the log odds function. Exponentiating the logit yields the odds. So the odds of a yes responseatthelevelsX1;:::;Xp are
For example, the odds that the response is 1 at X1 D 0;X2 D 0;:::;Xp D 0 are exp.ˇ0/, provided that the regression model is appropriate for these values of X’s. TheratiooftheoddsatX1 DArelativetotheoddsatX1 DB,forfixed
values of the other X’s, is
In particular, if X1 increases by 1 unit, the odds that Y D 1 will change by a multiplicative factor of exp.ˇ1/, other variables being the same.
Example—Donner Party
The fit of a logistic regression model to the Donner Party data, where  represents survival probability, gives
logit.O / D 1:63 􏰀 0:078 age C 1:60 fem:
For comparing women 50 years old (A) with women 20 years old (B), the odds ratio is estimated to be expŒ􏰀0:078.50 􏰀 20/ D 0:096, or about 1/10. So the odds of a 20-year-old woman surviving were about 10 times the odds of a 50-year-old woman surviving. Comparing a woman .fem D 1 D A/ with a man .fem D 0 D B/ of the same age, the estimated odds ratio is exp.1:60Œ1 􏰀 0/ D 4:95—a woman’s odds were about 5 times the odds of survival of a man of the same age.
Retrospective Studies
In logistic regression problems, probabilities for binary responses are modeled prospectively as functions of explanatory variables, as if responses were to be mea- sured at set levels of the explanatory factors. In some studies—particularly those in which the probabilities of yes responses are very small—independent samples are drawn retrospectively from the populations with different response outcomes. As discussed in connection with the case of a single explanatory factor with two levels (Section 18.4), prospective probabilities cannot be estimated from these retrospective samples. Yet retrospective odds ratios are the same as prospective
! D exp.ˇ0 C ˇ1 X1 C    C ˇp Xp /:
!A=!B DexpŒˇ1.A􏰀B/:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

20.3
odds ratios, so they can be estimated from retrospective samples. In a logistic regression model for a retrospective study, the estimated intercept is not an esti- mate of the prospective intercept. However, estimates of coefficients of explanatory variables from a retrospective sample estimate the corresponding coefficients in the prospective model and may be interpreted in the same way. For example, it is possible with retrospective samples of lung cancer patients and of patients with no lung cancer to make a statement such as: The odds of lung cancer are estimated to increase by a factor of 1.1 for each year that a person has smoked. This result has tremendous bearing on medical case–control studies and the field of epidemiology.
ESTIMATION OF LOGISTIC REGRESSION COEFFICIENTS
In generalized linear models, the method of least squares is replaced by the method of maximum likelihood, which is outlined here for the logistic regression problem.
20.3.1 Maximum Likelihood Parameter Estimation
When values of the parameters are given, the logistic regression model specifies how to calculate the probability that any outcome (such as y1 D 1, y2 D 0, y3 D 1; : : :/ will occur. A convenient way to express the model begins with the convention that raising any number to the power of 0 results in the number 1 .x0 D 1, for any x.) Then the probability model for a single binary response Y can be written as
PrfY DygDy.1􏰀/1􏰀y;
where the substitution of y D 1 results in  and the substitution of y D 0 results in .1􏰀/.Nowsupposethattherearensuchresponses,withi beingtheparameter for Yi .i D 1; : : : ; n/. If the responses are independent, their probabilities multiply to give the probability
n
PrfY1 Dy1;:::;Yn DyngD Yyi.1􏰀i/1􏰀yi i
iD1
for the outcomes y1;:::;yn. Examples—Donner Party
Suppose that this model is plausible for the Donner Party data. It is as though a coin flip of fate had occurred for each party member. If the ith flip came up heads—which it would do with probability i —the i th member survived. Suppose, too, that an additive logistic model is correct, with the following hypothetical parameter values:
logit.i / D 1:50 􏰀 0:080 agei C 1:25 femi :
20.3 Estimation of Logistic Regression Coefficients 609
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

610 Chapter 20 Logistic Regression for Binary Response Variables
Then, referring to Display 20.1, Antonio (23-year-old male: age1 D 23, fem1 D 0) would have
so
logit.1/ D 1:50 􏰀 .0:080  23/ C .1:25  0/ D 􏰀0:340; 1 D exp.􏰀0:340/=Œ1 C exp.􏰀0:340/ D 0:416:
Antonio had a 0.416 chance of surviving. Mary Breen (40-year-old female) would have a survival probability of 0.389; Patrick Breen (40-year-old male) would have a survival probability of 0.154; and so on down the list to Eliza Williams, with her survival probability of 0.679.
Now the probability for any combination of independent outcomes can be calculated by multiplying individual probabilities. For example, the probability that all persons survive (all the yi are D 1) is .0:416/.0:389/.0:154/    .0:679/ D exp.􏰀53:3631/. Conversely, the probability that all persons die .all yi D 0/ is .1 􏰀 0:416/.1 􏰀 0:389/.1 􏰀 0:154/    .1 􏰀 0:679/ D exp.􏰀26:1331/. The probabil- ity that all the women survive but none of the men do is .1 􏰀 0:416/.0:389/.1 􏰀 0:154/    .0:679/ D exp.􏰀21:1631/; while the probability that the individuals survive who actually did survive is .1 􏰀 0:416/.0:389/.0:154/    .0:679/ D exp.􏰀26:1531/. The best way to make these calculations is to add the logarithms of the individual probabilities.
The outcome in which everyone survives may be rosier, but it holds little inter- est because it did not actually occur. What is of particular interest is the single outcome that did occur. When attention is focused on that one outcome, the probability formula assumes a different role.
Likelihood
The same formula can be used to calculate the probability of the observed outcome under various possible choices for the ˇ’s. The probability of the known outcome, calculated earlier as exp.􏰀26:1531/ when ˇ0 D 1:50, ˇ1 D 􏰀0:080, and ˇ2 D 1:25, is called the likelihood of the values .1:50; 􏰀0:080; 1:25/ for the three parameters.
According to this terminology, one set of parameter values is more likely than another set if it gives the observed outcome a higher probability of occurrence.
Maximum Likelihood Estimation
Examples of likelihood values (on the logarithmic scale) for several possible values of ˇ0, ˇ1, and ˇ2 in the logistic regression model for the Donner Party data are shown in Display 20.4. Notice that the largest likelihood listed is for the values ˇ0 D 1:63, ˇ1 D 􏰀0:078, and ˇ2 D 1:60. These values are in fact the most likely of all possible; they are called the maximum likelihood estimates of the parameters. As
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
The likelihood of any specific values for the parameters is the probablity of the actual outcome, calculated with those parameter values.

DISPLAY 20.4
Some possible parameter values and their log-likelihoods, for the Donner Party data (logit of probability of survival D ˇ0 C ˇ1age C ˇ2fem)
20.3 Estimation of Logistic Regression Coefficients 611
012
log(likelihood)
a guide for how to select parameter estimates, the maximum likelihood method says to choose as estimates of parameters the values that assign the highest probability to the observed outcome.
Notes on Calculation
Although a computer routine could be used to search through many possible parameter values to find the combination that produces the largest likelihood (or equivalently, the largest log-likelihood), this is unnecessary. As with the method of least squares, calculus provides a way to find the maximizing parameter values. Unlike least squares for linear regression, however, calculus does not provide closed- form expressions for the answers. Some iterative computational procedures are used. Statistical computer packages include these procedures; they will not be discussed further here.
Properties of Maximum Likelihood Estimators
Statistical theory confirms that the maximum likelihood method leads to estimators that generally have good properties.
Properties of Maximum Likelihood Estimates
If a model is correct and the sample size is large enough, then:
1. The maximum likelihood estimators are essentially unbiased.
2. Formulas exist for estimating the standard deviations of the sampling
distributions of the estimators.
3. The estimators are about as precise as any nearly unbiased estimators
that can be obtained.
4. The shapes of the sampling distributions are approximately normal.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

612
Chapter 20 Logistic Regression for Binary Response Variables
20.3.2
The upshot of properties (1) and (3) is that the maximum likelihood principle leads to pretty good estimates, at least when the sample size is large. Properties (1), (2), and (4) provide a way to carry out tests and construct confidence intervals. Both of these aspects are dampened somewhat by the requirement that the sample size be large enough. For small samples, it is best to label confidence intervals and test results as approximate.
Tests and Confidence Intervals for Single Coefficients
The properties imply that each estimated coefficient ˇj in logistic regression has a normal sampling distribution, approximately, and therefore that
The standard error is the estimated standard deviation of the sampling distribution of the estimator. Its computation is carried out by the statistical computer pack- age. The known likely values of the standard normal distribution may be used to construct confidence intervals or to obtain p-values for tests about the individual coefficients.
A confidence interval is the estimate plus and minus the half-width, which is a z-multiplier times the standard error of the estimate; and the z-multiplier is the appropriate percentile of the standard normal distribution. For a 95% confi- dence interval, it is the 97.5th percentile. Similarly, a test statistic is the ratio of the estimate minus the hypothesized value to the standard error, and the p-value is obtained by comparing this to a standard normal distribution. A test based on this approximate normality of maximum likelihood estimates is referred to as Wald’s test. Since the t-theory only applies to normally distributed response variables, t-distributions are not involved here.
Example of Wald’s Test for a
Single Coefficient (Donner Party Data)
Display 20.5 demonstrates how Wald’s test can be used to determine whether the
log odds of survival are associated with age differently for men than for women. The display shows typical output from a logistic regression fit to a model that includes age, sex, and the interaction between sex and age. Notice that the sum- maries of the estimated coefficients, their standard errors, and the z-statistics (for the tests that each coefficient is zero) parallel the standard summary for multi- ple regression analysis. The quantity at the bottom labeled deviance is new, but it is analogous to the sum of squared residuals in regression (and is discussed in Section 20.4).
Z-ratioD.ˇOj 􏰀ˇj/=ŒSE.ˇOj/
has a standard normal distribution (approximately).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 20.5
Wald’s test for the hypothesis that the coefficient of the interaction term is zero in the
logistic regression of survival (1 or 0) on age, fem (D 1 for females), and age  fem: Donner Party data
Variable Coefficient Standard error z-statistic
20.3 Estimation of Logistic Regression Coefficients 613
Two-sided p-value = 2 3 Pr(Z > 1.73) = 0.085
From the normal distribution
Conclusion: There is suggestive but inconclusive evidence of an interaction.
Example of a Confidence Interval for a Coefficient (Donner Party Data)
Display 20.6 shows the results of fitting the additive logistic regression of survival on age and the indicator variable for sex. Although some suggestive evidence was found in support of an interactive effect of sex and age, the coefficient of fem in this parallel lines model is a convenient approximation to an average difference between the sexes. The antilogarithm of the coefficient of the indicator variable should be used in a summarizing statement. A confidence interval should be obtained for the coefficient of fem, and the antilogarithm of the endpoints should be taken as a confidence interval for the odds ratio.
Example of Confidence Interval for a
Multiple of a Coefficient (Donner Party Data)
From the output in Display 20.6, the estimated coefficient of age is 􏰀0:078. A 95% confidence interval is 􏰀0:078 ̇ .1:96  0:037/, which is 􏰀0:1505 to 􏰀0:0055. By taking antilogarithms of the estimate and the interval endpoints, one obtains the following summary statement results: It is estimated that the odds of survival change by a factor of 0.92 for each one year increase in age (95% confidence interval for multiplicative odds factor is 0.86 to 0.99).
Another question that may be asked is “What are the odds of survival for a 55-year-old relative to the odds of survival for a 30-year-old?” In the model fit in Display 20.6, the log odds change by 􏰀0:078 for each extra year of age. Therefore, for 25 extra years of age, the log odds of survival change by 25  􏰀0:078 or 􏰀1:95. Similarly, a 95% confidence interval for the change in log odds of survival for an additional 25 years of age (based on the results of the preceding paragraph) is 25  􏰀0:1505 to 25  􏰀0:0055, or 􏰀3:76 to 􏰀0:137. By back-transforming this estimate and confidence interval, the summary statement is this: It is estimated that the odds of survival for a 55-year-old are 0.14 times the odds of survival for a 30-year-old (95% confidence interval for odds ratio is 0.02 to 0.87).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

614
Chapter 20 Logistic Regression for Binary Response Variables
DISPLAY 20.6
Confidence intervals for the odds of survival for females divided by the odds of survival for males, accounting for age, from the model without interaction (Donner Party data)
Variable Coefficient Standard error z-statistic
Deviance = 51.256 Degrees of freedom = 42
95% Confidence interval for the coefficient of fem
Take antilogarithms of endpoints to get interval for the odds ratio.
z (0.975)
1.597 + (1.96 3 0.753) = 0.121 to 3.073
exp(0.121) to exp(3.073) = 1.13 to 21.60
Conclusion: The odds of survival for females are estimated to have been 4.9 times the odds of survival for males of similar age (95% CI: 1.1 times to 21.6 times).
20.4
THE DROP-IN-DEVIANCE TEST
Comparing a Full to a Reduced Model
As in ordinary regression, one must often judge the adequacy of a reduced model relative to a full model. The reduced model is the special case of the full model obtained by supposing that the hypothesis of interest is true. Typically, the hy- pothesis is that several of the coefficients in the full model equal zero. For example, if three indicator explanatory variables are used to model the effects of four treat- ments on the probability of survival of heart disease patients, the hypothesis that no difference exists between treatments is equivalent to the hypothesis that the coefficients of the three indicator variables all equal zero. The reduced model is the logistic regression model excluding those three terms.
The Likelihood Ratio Test
The extra-sum-of-squares F -test was used for testing the adequacy of a reduced model relative to a full one in linear regression. A similar test associated with likelihood analysis is the likelihood ratio test (LRT). The likelihood of the parameters in a full model is evaluated at its maximum, giving LMAXfull, say. The maximum of the likelihood within the reduced model, LMAXreduced, is calculated in a similar manner. The general form of the likelihood ratio test statistic is
LRT D 2  log.LMAXfull/ 􏰀 2  log.LMAXreduced/:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

20.4 The Drop-in-Deviance Test 615
When the reduced model (and therefore the null hypothesis) is correct, the LRT has approximately a chi-square distribution with degrees of freedom equal to the difference between the numbers of parameters in the full and reduced models. Inad- equacies of the reduced model tend to inflate the LRT statistic. The approximate p-value, therefore, is the proportion of the chi-square distribution that is greater than LRT.
The LRT depends on the mathematical form of the likelihood function, which we will not present here. As with the extra-sum-of-squares F -test, the easiest cal- culation of the LRT is often achieved by fitting the full and reduced models and calculating LRT manually from the maximized values of the likelihood, which are supplied as part of the computer output.
For reasons that will be more clear in the next chapter, some statistical packages provide a quantity called the deviance rather than the maximized likelihood, where
and the constant, which will also be described in the next chapter, is the same for both the full and reduced models. It follows then that
The likelihood ratio test for generalized linear models is accomplished, therefore, by separately fitting the full and reduced models, extracting the deviances of these from the computer output, calculating LRT from this last equation, and finding the p-value as the proportion of a chi-squared distribution that is greater than LRT. For this reason and since deviancereduced is never smaller than deviancefull, the likelihood ratio test applied to generalized linear models is often referred to as the drop-in- deviance test. Furthermore, as will be evident in the next chapter, the deviance may be thought of as a sum of squared residuals, so the test statistic is the amount by which the sum of squared residuals for the reduced model exceeds that for the full model.
Example—Birdkeeping
The goal of the birdkeeping and lung cancer analysis is to see whether increased probability of lung cancer is associated with birdkeeping, even after other factors, such as smoking, are accounted for. In the logistic model shown in connection with step 1 of Display 20.7, the log of the odds of getting lung cancer are explained by regression terms with sex of the individual (FM), age (AG), socioeconomic sta- tus (SS), years the individual has smoked (YR), and the indicator variable for birdkeeping (BK, which is 1 for birdkeepers). The question of interest here is a hypothesis that the coefficient of BK is zero. The reduced model, therefore, is the same model, but without BK in the list of explanatory variables. The steps in the drop-in-deviance test are detailed in Display 20.7.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
deviance D constant 􏰀 2  log.LMAX/
LRT D deviancereduced 􏰀 deviancefull:

616 Chapter 20 Logistic Regression for Binary Response Variables
DISPLAY 20.7
1
A drop-in-deviance test for the association of the odds of lung cancer with birdkeeping, after accounting for other factors
Fitthefullmodel: logit( )= 0+ 1FM+ 2AG+ 3SS+ 4YR+ 5BK. Two-sided
2
Fit the reduced model: logit( Variable Coefficient
) =
0 + 1FM + Standard error
2AG + 3SS + 4YR. z-statistic
Variable Coefficient
Standard error
z-statistic
p-value
3
4 Determine the p-value.
Conclusion: There is strong evidence of an association between birdkeeping
and lung cancer, after accounting for sex, age, status, and smoking years.
Notes on the Drop-in-Deviance Test
1. As with the extra-sum-of-squares F-test, a few special cases of the drop-in- deviance test deserve mention. A test of whether all coefficients (except the constant term) are zero is obtained by taking the model with no explanatory
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Calculate the drop in deviance and the drop in degrees of freedom. 166.53
–155.24 Drop in Deviance = 11.29
142 –141
Drop in d.f. = 1 Pr( 21>11.29)=0.0008
Two-sided p-value

20.5
variables as the reduced model. Similarly, the significance of a single term may be tested by taking the reduced model to be the full model minus the single term (as demonstrated in Display 20.7). This is not the same as Wald’s test for a single coefficient described in Section 20.3. If the two give different results, the drop-in-deviance test has the more reliable p-value.
2. Confidence intervals can be constructed for a single coefficient from the theory of the drop-in-deviance test. Computation of the drop-in-deviance confidence interval, which is also called the likelihood ratio confidence interval or the profile likelihood confidence interval, requires a special program. Fortunately, since this confidence interval is generally more reliable than the Wald confidence interval (estimate plus-and-minus 1.96 standard errors for a 95% confidence interval) when they differ, many generalized linear model routines in statistical computer packages now include such a program.
STRATEGIES FOR DATA ANALYSIS USING LOGISTIC REGRESSION
The strategy for data analysis with binary responses and explanatory variables is similar to the general strategy for data analysis with regression, as shown in the chart in Display 9.9. Identifying the questions of interest is the important starting point. The data analysis should then revolve around finding models that fit the data and allow the questions to be answered through inference about parameters.
A main difference from ordinary regression is that scatterplots and residual plots are usually of little value, since only two distinct values of the response vari- ables are possible. Fortunately, there is no burden to check for nonconstant variance or outliers, so some functions of usual residual analysis are unnecessary. Model terms and the adequacy of the logistic model, on the other hand, must be checked. Informal testing of extra terms, such as squared terms and interaction terms, plays an important role in this regard.
20.5.1 Exploratory Analysis Graphical Methods
A plot of the binary response variable versus an explanatory variable is not worth- while, since there are only two distinct values for the response variable. Although no graphical approach can be prescribed for all problems, it is occasionally useful to examine a scatterplot of one of the explanatory variables versus another, with codes to indicate whether the response is 0 or 1. An example is shown in Display 20.10.
Grouping
Some data sets, particularly large ones, may contain near replicates—several obser- vations with very similar values of the explanatory variables. As part of an informal analysis to see which explanatory variables are important and to obtain some graphical display, it may be useful to group these together. For example, ages
20.5 Strategies for Data Analysis Using Logistic Regression 617
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

618
Chapter 20 Logistic Regression for Binary Response Variables
BIC D Deviance C log.n/  p AIC D DevianceC2p
20.6
may be grouped into five-year intervals. A sample proportion is obtained as the proportion of observations with binary response of 1 in the group, and the logit transformation can be applied to this sample proportion so that scatterplots may be drawn. The sample logit can be plotted against the midpoint of the grouped version of the explanatory variable, for instance. An example of this approach is shown in Display 20.11.
Informal Testing of Extra Model Terms
One can also construct preliminary logistic regression models that include poly- nomial terms, interaction terms, and the like to judge whether the desired model needs expansion to compensate for very specific problems. This is probably the most useful of the three approaches for exploratory data analysis on binary responses.
Model Selection
As in normal regression, the search for a suitable model may encompass a wide range of possibilities. The Bayesian Information Criterion (BIC) and Akaike Information Criterion (AIC) extend to generalized linear models as follows:
where n is the sample size and p is the number of regression coefficients in the model. As in Chapter 12 for ordinary regression, models that produce smaller values of these fitting criteria should be preferred. AIC and BIC differ in their degrees of penalization for number of regression coefficients, with BIC usually favoring models with fewer terms. Using BIC, the uncertainty involved in model selection can be described by Bayes’ posterior probabilities, exactly as in Section 12.4.2.
ANALYSES OF CASE STUDIES 20.6.1 Analysis of Donner Party Data
Whether women and men had different survival chances can best be answered in the inferential model,
logit./ D ˇ0 C ˇ1 fem C ˇ2age;
which provides control for the effects of age while specifying a simple difference between the logits for women and for men. Is this model defensible? There are two possible problems: first, the logit of survival probability may not be linear in age;
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 20.8
Quadratic logistic regression model to assess fit for Donner Party survival
Variable Coefficient Standard error z-statistic p-value
Deviance = 45.361
and second, even if the logit is linear, the slope may not be the same for males and females.
Since one cannot directly assess the proposed model from sample logits, the best alternative is to embed the preceding model in a larger model that allows for departures from these critical assumptions. Quadratic terms, for example, provide evidence of one kind of departure from a straight line.
Display 20.8 shows the output from the fit of the logistic regression of survival on age, fem, and three extra terms that assess different aspects of model inadequacy. This model allows for distinct quadratic curves for male and female log odds of survival. One way to pare this down is to use a directed backward elimination technique on the extra terms. Directed here refers to examining the least desirable terms first (those that would most complicate the statement of results, for example). It is not necessary to have an exact order for examination, but a suitable starting point is the fem  age2 term. Since its coefficient has a large p-value, it may be dropped; and the resulting model is refit. (Remember that the p-values change when a term is dropped.) The p-value for the coefficient of age2 in the model without fem  age2 is 0.26, so it is dropped.
The resulting model is the one examined in Display 20.5, which provided sugges- tive evidence of an interactive effect. Since the interactive effect is weak and since it would complicate the statement of the results, one might choose to ignore it (realizing that more data would be needed to assess it carefully) and to report the resulting linear additive model—cautiously—as a general indication of the difference between the males and females. The result is
logit.O / D 1:633 􏰀 0:078age 􏰀 1:597fem: (1.105) (0.037) (0.753)
A plot of the fitted model is shown in Display 20.9. A statement of the summary is provided in Section 20.1.1.
Analysis of Birdkeeping and Lung Cancer Data
The goal is to examine the odds of lung cancer for birdkeepers relative to persons with similar demographic and smoking characteristics who do not keep pet birds.
20.6.2
20.6 Analyses of Case Studies 619
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

620 Chapter 20 Logistic Regression for Binary Response Variables
DISPLAY 20.9
Fit of logistic regression model for Donner Party Survival, with age and fem (1 D Female) as explanatory variables
Females
Males
1.0 0.8 0.6 0.4 0.2
Survived
Females Males
0.0 Died
10 20 30 40 50 60
Age (Years)
Effect of Smoking
The first stage of the analysis is to find an adequate model to explain the effect of smoking. Display 20.10 is a coded scatterplot of the number of years that a subject smoked, versus the individual’s age. The plotting symbols show whether the individual is a birdkeeper (triangle) or not (circle) and whether the subject is one of the lung cancer cases (filled symbol) or not (unfilled symbol).
One striking feature of the plot is that, in any vertical column of points in the plot, more dark symbols appear at the top of the column than at the bottom. This indicates that, for similarly aged subjects, the persons with lung cancer are more likely to have been relatively long-time smokers. To investigate the effect of birdkeeping on this plot, one must look at certain regions of the plot—particularly horizontal slices—to compare subjects with similar smoking history and to ask whether a higher proportion of triangles tend to be filled symbols than unfilled symbols. For example, the only lung cancer patient among subjects who did not smoke (for which years of smoking is zero) happened to be a birdkeeper. Similarly, among individuals who smoked for about 10 years, the only lung cancer patient was a birdkeeper. For the upper regions of the scatterplot, it is a bit harder to make a comparison. Slight visual evidence suggests that the proportion of birdkeepers is higher among the lung cancer patients than among the controls.
=.1 􏰀 /, versus years smoking, Display 20.11 is a plot of sample logits, logŒ
where  is the proportion of lung cancer patients among subjects grouped into similar years of smoking (0, 1–20, 21–30, 31–40, and 41–50). The midpoint of the interval was used to represent the years of smoking for the members of the group.
Evidently, the logit increases with increasing years of smoking. The trend is predominantly linear, but some departure from linearity may be present. This matter can be resolved through informal testing of a model with a quadratic term.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Estimated Probability

20.6 Analyses of Case Studies 621
DISPLAY 20.10
50 40 30 20 10
0
50 40 30 20 10
0
Coded scatterplot of years of smoking versus age of subject: triangles represent birdkeepers, circles are nonbirdkeepers, and filled symbols are subjects with lung cancer
Birdkeepers with Lung Cancer
Birdkeepers without Lung Cancer
Nonbirdkeepers with Lung Cancer
Nonbirdkeepers without Lung Cancer
10 20 30 40 50 60
Age (Years)
40 20 30 40 50 60
Age (Years)
DISPLAY 20.11
Scatterplot of sample logits versus years smoking for data grouped by intervals of years of smoking
–0.5 –1.5 –2.5
0 10 20 30 40
Years Smoked (midpoint of interval)
Logistic regression models for the proportion of lung cancer cases as related to the smoking variables, age, and sex may be structured in several ways. Display 20.12 shows the results of one fit, which includes years of smoking, cigarettes per day, and squares and interaction of these. One approach to paring down the model is to
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Sample Logit
Years of Smoking Years of Smoking

622
Chapter 20 Logistic Regression for Binary Response Variables
DISPLAY 20.12
Logistic regression of lung cancer incidence with rich model; from the birdkeeping and lung cancer case–control study
Variable
Constant
Coefficient Standard error z-statistic –0.5922 2.2835 –0.2593
0.7947 0.5175 1.5359 –0.0568 0.0376 –1.5097 –0.0173 0.4440 –0.0390
0.0278 0.0921 0.3023 0.1306 0.0994 1.3143 0.0011 0.0019 0.6083
Two-sided p-value
0.7954 0.1246 0.1311 0.9689 0.7624 0.1887 0.5430 0.4234 0.5615
FM
AG
SS
YR
CD
YR2
CD2
YR CD
Deviance = 164.49 Degrees of freedom = 138
–0.0016 0.0020 –0.8006 –0.0013 0.0023 –0.5806
20.7
use a selective backward elimination of the extra terms involving the squares and interaction of the smoking variables. The interaction term can be dropped (two- sided p-value D 0:5615). Refitting without this term reveals that the squared YR term can be dropped. The squared CD term can be dropped next. Finally, the CD term itself is not needed when YR is included in the model. Thus it appears that the single term YR adequately models the smoking effect, when the matching variables are also considered.
Extra Effect of Birdkeeping
The final step adds the indicator variable for birdkeeping into the model with the final list of other explanatory variables already present. The estimated model is summarized in the first table of Display 20.7. The drop in deviance—11.29 with 1 degree of freedom—provides convincing evidence that birdkeeping has a strong association with lung cancer, even after the effects of smoking, sex, age, and socioeconomic status are accounted for (two-sided p-value D 0:0008/.
The estimate of the coefficient of birdkeeping is 1.3349, so the odds of lung can- cer for birdkeepers are estimated to be exp(1.3349)—or, in other words, 3.80—times as large as the odds of lung cancer for nonbirdkeepers, after the other explanatory variables are accounted for. A 95% confidence interval for the coefficient of the birdkeeping indicator variable is 0.5330 to 2.1368. Consequently, a 95% confidence interval for the odds of lung cancer for birdkeepers relative to the odds of lung cancer for nonbirdkeepers is 1.70 to 8.47.
RELATED ISSUES
20.7.1 Matched Case–Control Studies
Matched case–control studies are a special type of retrospective sampling in which controls are matched with cases on the basis of equality of certain variables. Only
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

20.7 Related Issues 623
one or two variables are generally used to match subjects, because overmatching can bias important comparisons. The number of controls matched to each case is usually one to three; little is gained from including more. Variables used in the matching process and their possible interactions with other variables should be entered as covariates in logistic regression analyses, much as block effects are included in the analysis of a randomized block experiment. The purpose is to exercise control in the analysis, as well as in the design. The coefficients of these variables cannot be interpreted as odds ratios, and the intercept measures no meaningful feature. Anal- ysis of matched case–control studies is accomplished by using conditional likelihood logistic regression, which differs somewhat from the methods of this chapter.
20.7.2 Probit Regression
There are several alternatives to logistic regression for binary responses. Any func- tion F./ that has characteristics similar to the logit function—steadily increasing from 􏰀1 to 1 as  goes from 0 to 1—could easily be chosen as a link. One popular alternative is to choose F./ to be the inverse of the cumulative standard normal probability distribution function; that is, F./ equals the 100th percentile in the standard normal distribution. This choice leads to probit regression. The results from probit regression are similar to those from logistic regression, at least for values of  between 0.2 and 0.8.
20.7.3 Discriminant Analysis Using Logistic Regression
Logistic regression may be used to predict future binary responses. On the basis of a training set, a logistic model can be estimated. When applied to a particular set of explanatory variable values for which the binary response is unknown, the estimated probability  may be used as an estimate of the probability that the response is 1.
Logistic regression prediction problems are similar in structure to problems in discriminant analysis, which were discussed in Section 17.5.1. In fact, logistic regression is preferable to standard DFA solutions when the explanatory variables have nonnormal distributions (when they are categorical, for example). Logistic regression is nearly as efficient as the standard tools when the explanatory variables do have normal distributions. Therefore, when discrimination between two groups is the goal, logistic regression should always be considered as an appropriate tool.
When estimated from a retrospective sample, logistic regression cannot be used to estimate the probability of group status. If the odds of being a case in the population are known (from some other source) to be !p, however, and if the odds based on a subject’s explanatory variable values and on the logistic regression (estimated from the retrospective sample) are estimated to be !r, then the odds that the subject is a case are .n0=n1/!p!r, where n0 and n1 are the number of controls and the number of cases, respectively, in the sample.
20.7.4 Monte Carlo Methods
The term Monte Carlo methods refers to a broad class of computer algorithms
that attempt to learn about the behavior of some random process by repeated
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

624 Chapter 20 Logistic Regression for Binary Response Variables
DISPLAY 20.13
50,000
40,000
30,000
20,000
10,000
100 Monte Carlo simulations of 20-year performance trajectories of an initial $10,000 invest- ment when the annual rate of return is normally distributed with mean 5.4% and standard deviation 8.9 percentage points, with the average, and 10th and 90th percentiles of the simulated 20-year returns indicated
90th pctl: $44,300
Ave: $28,600
10th pctl: $16,600
0 5 10 15 20 25
Years
probabilistic simulation of that process. The name comes from the Monte Carlo Casino in recognition of the common importance of probability in the simulation methods and in gambling.
A simple application is a Monte Carlo simulation of possible outcomes of invest- ments in an uncertain economic future. If a person invests $10,000 in an investment that returns a 5.4% annual yield, then the value of the investment after 20 years, assuming reinvestment of all earnings, is 10; 000  1:05420, which is $28,629. In real life, though, investment yields can be highly variable from year to year. What possible values can the investor expect if the annual return is 5.4% on average but has a standard deviation of 8.9 percentage points? Display 20.13 shows the results of 100 Monte Carlo simulations of 20-year performance trajectories of a $10,000 investment. In each year of each 20-year trajectory, the annual yield for the year was determined by a computer-simulated draw from a normal probability distri- bution with mean 5.4% and standard deviation 8.9 percentage points. With this display, the investor gets an idea of the range of possible outcomes of the investment based on the historical variability of the annual rate of return.
In statistics, Monte Carlo methods are useful for studying the properties of tests and confidence intervals when the ideal assumptions upon which they are mathe- matically derived are not met. Display 3.4, for example, shows the results of a Monte Carlo investigation into the behavior of 95% confidence intervals for the difference in two normal population means when, in fact, the population distributions are not normal. The computer was instructed to repeatedly draw samples from two
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Investment Value ($)

20.8 Summary 625
nonnormal populations (with population shapes indicated in the histograms above the table), compute 95% confidence intervals for the difference in means from each of these pairs of samples, and keep track of the success rate of these intervals. In some of the cases the actual success rate was very close to the desired coverage of 95%, which indicated that the method was doing what it was supposed to be doing. The Monte Carlo investigation helped clarify that the confidence interval and the two-sample t-test are robust against certain departures from the normality assumption. Display 3.5 shows the results of a similar Monte Carlo investigation into the importance of the equal-variance assumption.
Data analysts sometimes use Monte Carlo methods to see whether a particular statistical tool is appropriate for a particular data problem. In a typical investi- gation of this kind, the researcher will instruct a computer to repeatedly simulate data sets that resemble the actual one, use the tool of interest (like a confidence interval for a particular parameter) on each of the simulated data sets, and keep track of some property of the tool (like the actual success rate of the confidence interval). If the Monte Carlo property matches the theoretical property, then the researcher can be reasonably confident that the tool is appropriate for the given conditions.
This can be useful when using a “large sample” test or confidence interval associated with maximum likelihood estimation. The large sample theory does not reveal how large of n is large enough. Are the p-value and confidence interval for the sex effect in the Donner Party problem, for example, justified given that the sample size is only 45? To answer this, the computer was instructed to repeatedly simulate 0’s and 1’s, for death and survival, based on probabilities derived from the regression coefficients estimated from the data. That is, the estimated coefficients played the role of the true coefficients in the Monte Carlo investigation. The values of all the explanatory variables were kept the same. For 946 of the 1,000 samples, the drop-in-deviance-based 95% confidence interval successfully included the value of the sex coefficient upon which the simulations were based. The Monte Carlo success rate of 94.6% provides some reassurance that the methodology is sound for this sample size.
20.8 SUMMARY
The logistic regression model describes a population proportion or probability as a function of explanatory variables. It is a nonlinear regression model, but of the spe- cial type called generalized linear model, where the logit of the population proportion is a linear function of regression coefficients. If ˇ3 is the coefficient of an explanatory variable in a logistic regression model, each unit increase of X3 is associated with an exp(ˇ3)-fold increase in the odds. This interpretation is particularly useful if X3 is an indicator variable used to distinguish between two groups. Then exp(ˇ3) is the odds ratio for the two groups, such as the odds of cancer for birdkeepers relative to the odds of cancer for nonbirdkeepers.
Logistic regression analysis for binary responses proceeds in much the same way as regular regression analysis. Since it is difficult to learn much from plots or from
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

626 Chapter 20 Logistic Regression for Binary Response Variables
residual analysis, model checking is based largely on fitting models that include extra terms (such as squared terms or interaction terms) whose significance would indicate shortcomings of the “target” model. Tests and confidence intervals for single coefficients may be carried out in a familiar way by comparing the coefficient estimate to its standard error. Tests of several coefficients are carried out by the drop-in-deviance chi-squared test. The drop in deviance is the sum of squared deviance residuals from the reduced model minus the sum of squared deviance residuals from the full model.
Donner Party
Given the likely inadequacy of the independence assumption and the inappropri- ateness of generalizing inferences from these data to any broader population, the analysis is necessarily informal. Nevertheless, it is useful to fit a logistic regression model for survival as a function of sex and age. Initial model fitting requires some examination into the linearity of the effect of age on the logit and of the interaction between sex and age. The coefficient of the sex indicator variable in the additive logistic regression model may be used to make a statement about the relative odds of survival of similarly aged males and females.
Birdkeeping and Lung Cancer
Initial tentative model fitting and model building are used to determine an adequate representation of the smoking variables for explaining lung cancer. Once years of smoking were included in the model, no further smoking variable was found sig- nificant when added. Then the variables associated with socioeconomic status and age were included, and interactions were explored. Finally, the effect of birdkeeping was inferred by adding the birdkeeping indicator variable into the model. A drop- in-deviance test established that birdkeeping had a significant effect, even after smoking was accounted for.
20.9 EXERCISES
Conceptual Exercises
1. Donner Party. One assumption underlying the correct use of logistic regression is that obser- vations are independent of one another. (a) Is there some basis for thinking this assumption might be violated in the Donner Party data? (b) Write a logistic regression model for studying whether sur- vival of a party member is associated with whether another adult member of the party had the same surname as that subject, after the effect of age has been accounted for. (c) Prepare a table of grouped responses that may be used for initial exploration of the question in part (b).
2. Donner Party. (a) Why should one be reluctant to draw conclusions about the ratio of male and female odds of survival for Donner Party members over 50? (b) What confounding variables might be present that could explain the significance of the sex indicator variable?
3. Donner Party. From the Donner Party data, the log odds of survival were estimated to be 1:6 􏰀 .0:078  age/ C .1:60  fem/, based on a binary response that takes the value 1 if an individual
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 20.14
survived and with fem being an indicator variable that takes the value 1 for females. (a) What would be the estimated equation for the log-odds of survival if the indicator variable for sex were 1 for males and 0 for females? (b) What would be the estimated equation for the log-odds of perishing if the binary response were 1 for a person who perished and 0 for a person who survived?
4. Birdkeeping. (a) Describe the retrospective sampling of the birdkeeping data. (b) What are the limitations of logistic regression from this type of sampling?
5. Since the term regression refers to the mean of a response variable as a function of one or more explanatory variables, why is it appropriate to use the word “regression” in the term logistic regression to describe a proportion or probability as a function of explanatory variables?
6. Give two reasons why the simple linear regression model is usually inappropriate for describing the regression of a binary response variable on a single explanatory variable.
7. How can logistic regression be used to test the hypothesis of equal odds in a 2  2 table of counts?
8. How can one obtain from the computer an estimate of the log-odds of y D 1 at a chosen configuration of explanatory variables, and its standard error?
Computational Exercises
9. Donner Party. It was estimated that the log odds of survival were 3:2 􏰀 .0:078  age/ for females and 1:6 􏰀 .0:078  age/ for males in the Donner Party. (a) What are the estimated probabil- ities of survival for men and women of ages 25 and 50? (b) What is the age at which the estimated probability of survival is 50% (i) for women and (ii) for men?
10. It was stated in Section 20.2 that if !A and !B are odds at A and B, respectively, and if the logistic regression model holds, then !A=!B D expŒˇ1.A 􏰀 B/. Show that this is true, using algebra.
11. Space Shuttle. The data in Display 20.14 are the launch temperatures (degrees Fahrenheit) and an indicator of O-ring failures for 24 space shuttle launches prior to the space shuttle Challenger disaster of January 28, 1986. (See the description in Section 4.1.1 for more background informa- tion.) (a) Fit the logistic regression of Failure (1 for failure) on Temperature. Report the estimated coefficients and their standard errors. (b) Test whether the coefficient of Temperature is 0, using Wald’s test. Report a one-sided p-value (the alternative hypothesis is that the coefficient is negative; odds of failure decrease with increasing temperature). (c) Test whether the coefficient of Tempera- ture is 0, using the drop-in-deviance test. (d) Give a 95% confidence interval for the coefficient of
Launch temperature (degrees Fahrenheit) and incidence of O-ring failure for 24 space shuttle launches
20.9 Exercises 627
Temperature Failure Temperature Failure Temperature Failure
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

628 Chapter 20 Logistic Regression for Binary Response Variables
Temperature. (e) What is the estimated logit of failure probability at 31ıF (the launch temperature on January 28, 1986)? What is the estimated probability of failure? (f) Why must the answer to part (e) be treated cautiously? (Answer: It is a prediction outside the range of the available explanatory variable values.)
12. Muscular Dystrophy. Duchenne Muscular Dystrophy (DMD) is a genetically transmitted dis- ease, passed from a mother to her children. Boys with the disease usually die at a young age; but affected girls usually do not suffer symptoms, may unknowingly carry the disease, and may pass it to their offspring. It is believed that about 1 in 3,300 women are DMD carriers. A woman might suspect she is a carrier when a related male child develops the disease. Doctors must rely on some kind of test to detect the presence of the disease. The data in Display 20.15 are levels of two enzymes in the blood, creatine kinase (CK) and hemopexin (H), for 38 known DMD carriers and 82 women who are not carriers. (Data from D. F. Andrews and A. M. Herzberg, Data, New York: Springer-Verlag, 1985.) It is desired to use these data to obtain an equation for indicating whether a woman is a likely carrier.
(a) Make a scatterplot of H versus log(CK); use one plotting symbol to represent the controls on the plot and another to represent the carriers. Does it appear from the plot that these enzymes might be useful predictors of whether a woman is a carrier? (b) Fit the logistic regression of carrier on CK and CK-squared. Does the CK-squared term significantly differ from 0? Next fit the logistic regression of carrier on log(CK) and [log(CK)]2. Does the squared term significantly differ from 0? Which scale (untransformed or log-transformed) seems more appropriate for CK? (c) Fit the logistic regression of carrier on log(CK) and H. Report the coefficients and standard errors. (d) Carry out a drop-in-deviance test for the hypothesis that neither log(CK) nor H are useful predictors of whether a woman is a carrier. (e) Typical values of CK and H are 80 and 85. Suppose that a suspected carrier has values of 300 and 100. What are the odds that she is a carrier relative to the odds that a woman with typical values (80 and 85) is a carrier?
13. Donner Party. Consider the Donner Party females (only) and the logistic regression model ˇ0 C ˇ1age for the logit of survival probability. If A represents the age at which the probability of survival is 0.5, then ˇ0 C ˇ1A D 0 (since the logit is 0 when the probability is one-half). This implies that ˇ0 D 􏰀ˇ1A. The hypothesis that A D 30 years may be tested by the drop-in-deviance test with the following reduced and full models for the logit:
Reduced: 􏰀ˇ130 C ˇ1age D 0 C ˇ1.age 􏰀 30/ Full: ˇ0 C ˇ1age
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 20.15
Values of creatine kinase (CK) and hemopexin (H) for 5 of the 82 controls (C D 0) and 5 of the 38 muscular dystrophy carriers (C D 1) in the muscular dystrophy data file
Muscular dystrophy Controls (C = 0) carriers (C = 1)
CK H CK H

20.9 Exercises 629
To fit the reduced model, one must subtract 30 from the ages and drop the intercept term. The drop- in-deviance test statistic is computed in the usual way. Carry out the test that A D 30 for the Donner Party females. Report the two-sided p-value.
14. Donner Party. The estimate in Exercise 13 of A is 􏰀b0=b1. A 95% confidence interval for A can be obtained by finding numbers AL and AU below and above this estimate such that two- sided p-values for the tests A D AL and A D AU are both 0.05. This can be accomplished by trial and error. Choose several possible values for AL, and follow the testing procedure described in the preceding exercise until a value is found for which the two-sided p-value is 0.05. Then repeat the process to find the upper bound AU . Use this procedure to find a 95% confidence interval for the age at which the Donner Party female survival probability is 0.5.
Data Problems
15. Spotted Owl Habitat. A study examined the association between nesting locations of the Northern Spotted Owl and availability of mature forests. Wildlife biologists identified 30 nest sites. (Data from W. J. Ripple et al., “Old-growth and Mature Forests Near Spotted Owl Nests in Western Oregon,” Journal of Wildlife Management 55: 316–18.) The researchers selected 30 other sites at random coordinates in the same forest. On the basis of aerial photographs, the percentage of mature forest (older than 80 years) was measured in various rings around each of the 60 sites, as shown in Display 20.16. (a) Apply two-sample t-tools to these data to see whether the percentage of mature forest is larger at nest sites than at random sites. (b) Construct a binary response variable that indicates whether a site is a nest site. Use logistic regression to investigate how large an area about the site has importance in distinguishing nest sites from random sites on the basis of mature forest. (Notice that this was a case–control study.) You may wish to transform the ring percentages to circle percentages.
16. Bumpus Natural Selection Data. Hermon Bumpus analyzed various characteristics of some house sparrows that were found on the ground after a severe winter storm in 1898. Some of the sparrows survived and some perished. The data on male sparrows in Display 20.17 are survival status (1 D survived, 2 D perished), age (1 D adult, 2 D juvenile), the length from tip of beak to tip of tail (in mm), the alar extent (length from tip to tip of the extended wings, in mm), the weight in grams, the length of the head in mm, the length of the humerus (arm bone, in inches), the length of the femur (thigh bones, in inches), the length of the tibio-tarsus (leg bone, in inches), the breadth of
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 20.16
A subset of the Spotted Owl data: percentages of mature forest (>80 years) in successive rings around sites in western Oregon forests (5 of 30 random sites and 5 of 30 nest sites)
Randomly chosen sites Spotted owl nest sites
Outer radius of ring (km) Outer radius of ring (km)
26.0 33.3 25.6 19.1 31.4 24.8 17.9 81.0 83.4 88.9 92.9 80.6 72.0 44.4 100.0 92.7 90.1 72.8 51.9 50.6 41.5 80.0 87.3 93.3 81.6 85.0 82.8 63.6 32.0 22.2 38.3 39.9 22.1 20.2 38.2 96.0 74.0 76.7 66.2 69.1 84.5 52.5 43.0 79.7 61.4 81.2 47.7 69.6 54.8 82.0 79.6 91.3 70.7 75.6 73.5 66.8 74.0 61.8 48.6 67.4 74.9 66.0 55.8 83.0 80.6 88.9 79.6 55.8 62.9 52.7

630
Chapter 20 Logistic Regression for Binary Response Variables
DISPLAY 20.17
A subset of data on 51 male sparrows that survived (SV D 1) and 36 that perished (SV D 2) during a severe winter storm: Age (AG) is 1 for adults, 2 for juveniles; TL is total length; AE
is alar extent; WT is weight; BH is length of beak and head; HL is length of humerus; FL is length of femur; TT is length of tibio-tarsus; SK is width of skull; and KL is length of keel of sternum
the skull in inches, and the length of the sternum in inches. (A subset of this data was discussed in Exercise 2.21.)
Analyze the data to see whether the probability of survival is associated with physical charac- teristics of the birds. This would be consistent, according to Bumpus, with the theory of natural selection: those that survived did so because of some superior physical traits. Realize that (i) the sampling is from a population of grounded sparrows, and (ii) physical measurements and survival are both random. (Thus, either could be treated as the response variable.)
17. Catholic Stance. The Catholic church has explicitly opposed authoritarian rule in some (but not all) Latin American countries. Although such action could be explained as a desire to counter repression or to increase the quality of life of its parishioners, A. J. Gill supplies evidence that the underlying reason may be competition from evangelical Protestant denominations. He compiled mea- sures of: (1) Repression D Average civil rights score for the period of authoritarian rule until 1979; (2) PQLI (Physical Quality of Life Index in the mid-1970s) D Average of life expectancy at age 1, infant mortality, and literacy at age 15C; and (3) Competition D Percentage increase of competi- tive religious groups during the period 1900–1970. His goal was to determine which of these factors could be responsible for the church being pro-authoritarian in six countries and anti-authoritarian in six others. (Data from A. J. Gill, “Rendering unto Caesar? Religious Competition and Catholic Polit- ical Strategy in Latin America, 1962–1979,” American Journal of Political Science 38(2) (1994): 403–25.)
To what extent do these measurements (see Display 20.18) distinguish between countries where the church took pro- and anti-authoritarian positions? Is it possible to determine the most influential variable(s) for distinguishing the groups?
18. Fatal Car Accidents Involving Tire Failure on Ford Explores. The Ford Explorer is a pop- ular sports utility vehicle made in the United States and sold throughout the world. Early in its production, concern arose over a potential accident risk associated with tires of the prescribed size when the vehicle was carrying heavy loads, but the risk was thought to be acceptable if a low tire pressure was recommended. The problem was apparently exacerbated by a particular type of Fire- stone tire that was overly prone to tread separation, especially in warm temperatures. This type of tire was a common one used on Explorers in model years 1995 and later. By the end of 1999 more than
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 20.18
Religious competition, quality of life, and repression in 12 predominantly Catholic Latin American countries
DISPLAY 20.19
All 1995 and later model compact sports utility vehicles involved in fatal accidents in the United States between 1995 and 1999, excluding vehicles that were struck by other vehicles and those involved in alcohol-related accidents; first 5 of 2,321 rows
20.9 Exercises 631
Competition Catholic church stance Country PQLI Repression (% increase)
Type of sports utility vehicle (1 if Ford, 0 if not)
Vehicle age (years)
Number of passengers
Cause of fatal accident (1 if tires, 0 if not)
30 lawsuits had been filed over accidents that were thought to be associated with this problem. U.S. federal data on fatal car accidents were analyzed at that time, showing that the odds of a fatal accident being associated with tire failure were three times as great for Explorers as for other sports utility vehicles. Additional data from 1999 and additional variables may be used to further explore the odds ratio. Display 20.19 lists data on 1995 and later model compact sports utility vehicles involved in fatal accidents in the United States between 1995 and 1999, excluding those that were struck by another car and excluding accidents that, according to police reports, involved alcohol. It is of interest to see whether the odds that a fatal accident is tire-related depend on whether the vehicle is a Ford, after accounting for age of the car and number of passengers. Since the Ford tire problem may be due to the load carried, there is some interest in seeing whether the odds associated with a Ford depend on the number of passengers. (Suggestions: (i) Presumably, older tires are more likely to fail than newer ones. Although tire age is not available, vehicle age is an approximate substitute for it. Since many car owners replace their tires after the car is 3 to 5 years old, however, we may expect the odds of tire failure to increase with age up to some number of years, and then to perhaps decrease after that.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

632 Chapter 20 Logistic Regression for Binary Response Variables
(ii) If there is an interactive effect of Ford and the number of passengers, it may be worthwhile to present an odds ratio separately for 0, 1, 2, 3, and 4 passengers.) The data are from the National Highway Traffic Safely Administration, Fatality Analysis Reporting System (http://www-fars.nhtsa .dot.gov/).
19. Missile Defenses. Following a successful test of an anti-ballistic missile (ABM) in July 1999, many prominent U.S. politicians called for the early deployment of a full ABM system. The scientific community was less enthusiastic about the efficacy of such a system. G. N. Lewis, T. A. Postol, and J. Pike (“Why National Missile Defense Won’t Work,” Scientific American, 281(2): 36–41, August 1999) traced the history of ABM testing, reporting the results shown in Display 20.20. Do these data suggest any improvement in ABM test success probability over time?
DISPLAY 20.20
Date of ABM test, months after the first test, and result of the test; partial listing
Date Months
Mar-83 0
Jun-83 3
Dec-83 9
Jun-84 15 .. .
Jul-99 196
Result
Failure Failure Failure Success
Success
20. Factors Associated with Self-Esteem. Reconsider the NLSY79 data in Exercise 12.23. The variable Esteem1 is the respondent’s degree of agreement in 2006 with the statement “I feel that I’m a person of worth, at least on equal basis with others,” with values of 1, 2, 3, and 4 signifying strong agreement, agreement, disagreement, or strong disagreement, respectively. Construct a new binary response variable from this, which takes on the value 1 for strong agreement and 0 for agreement, disagreement, or strong disagreement. Explore the dependence of the probability that a person has positive self-esteem (as indicated by a response of strong agreement on Esteem1) on these explana- tory variables: log annual income in 2005 (Income2005), intelligence as measured by the AFQT score in 1981 (AFQT), years of education (Educ), and gender (Gender).
Answers to Conceptual Exercises
1. (a) Yes. Members within the same family may have been likely to share the same fate; and if so, the binary responses for members within the same family would not be independent of one another. (It is difficult to investigate this possibility or to correct it for this small data set. Further discussion of this type of violation is provided in the next chapter.) (b) logit./ D ˇ0 C ˇ1age C ˇ2sur, where sur D 1 if the individual had a surname that was shared by at least one other adult party member, and 0 if not. (c) Here is one possibility:
Age group 15–25 26–45 >45
Number in group with shared surname 13
10
6
Proportion surviving 0.625 0.800 0.160
Number in age group without shared surname 8
7
1
Proportion surviving 0.375 0.000 0.000
(a) There were no females over 50. Any comparisons for older people must be based on an assumption that the model extends to that region. Such an assumption cannot be verified with these
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
2.

20.9 Exercises 633
data. (b) If males and females had different tasks and if survival was associated with task, the tasks would be a confounding variable.
3. (a) 3:2 􏰀 0:078 age 􏰀 1:6 male. (b) Same equation but with all coefficients having opposite signs.
4. A sample of 49 individuals from all those with lung cancer was taken from a population. These
were the “cases.” Another sample of 98 individuals was taken from a similar population of indi- viduals who did not have lung cancer. (b) Logistic regression may be used, with the 0–1 response representing lung cancer; but the intercept cannot be interpreted.
5. The mean of a binary response is a proportion (or a probability, if the populations are hypothetical).
6. (i) Proportions must fall between 0 and 1, and lines cross these boundaries. (ii) The variance is necessarily nonconstant.
7. Use a binary response to distinguish levels of the response category and an indicator variable to distinguish the levels of the explanatory category. The coefficient of the indicator variable is the log odds of one group minus the log odds of the other group. Carry out inference about that coefficient.
8. Subtract the specified value of each variable from all the variable values to create a new set of variables centered (zeroed) at the desired configuration. Run a logistic regression analysis on the new set, and record the “constant” coefficient and its standard error (see Section 10.2).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 21 Logistic Regression
for Binomial Counts
634
This chapter extends logistic regression models to the case where the responses are proportions from counts. These may be grouped binary responses (such as the proportion of subjects of a given age who develop lung cancer) or a proportion based on a count for each subject (such as the proportion of 100 cells from each subject that have chromosome aberrations). Although the response vari- able is more general, the logistic regression model is the same as in Chapter 20. The population proportion or probability is modeled, through the logit link, by a linear function of regression coefficients.
One new aspect of the analysis for this type of response is that some care must be taken in checking distributional assumptions. (This was not a problem for ungrouped binary responses.) Some additional tools for data analysis aid in this checking: scatterplots of the sample logits, residual analysis, and a goodness-of-fit test.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.1
CASE STUDIES
21.1.1 Island Size and
DISPLAY 21.1
Bird Extinctions—An Observational Study
Scientists agree that preserving certain habitats in their natural states is necessary to slow the accelerating rate of species extinctions. But they are divided on how to construct such reserves. Given a finite amount of available land, is it better to have many small reserves or a few large ones? Central to the debate on this question are observational studies of what has happened in island archipelagos, where nearly the same fauna tries to survive on islands of different sizes.
In a study of the Krunnit Islands archipelago, researchers presented results of extensive bird surveys taken over four decades. They visited each island several times, cataloging species. If a species was found on a specific island in 1949, it was considered to be at risk of extinction for the next survey of the island in 1959. If it was not found in 1959, it was counted as an “extinction,” even though it might reappear later. The data on island size, number of species at risk to become extinct, and number of extinctions are shown in Display 21.1. (Data from R. A. V ̈ais ̈anen and O. J ̈arvinen, “Dynamics of Protected Bird Communities in a Finnish Archipelago,” Journal of Animal Ecology 46 (1977): 891–908.)
The data are plotted in Display 21.2. Each island is indicated by a single dot. The horizontal measurement shows the island’s area on a logarithmic scale. The
Island area, number of bird species present in 1949, and number of these not present in 1959: the Krunnit Islands study
Island Area (km2) Species at risk Extinctions
21.1 Case Studies 635
Törö
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

636 Chapter 21 Logistic Regression for Binomial Counts
DISPLAY 21.2
Extinctions of bird species versus island size in the Krunnit Island archipelago
1
0.6
0.5 0 0.4
0.3
–1 0.2
–2 0.1
0.05 –3
–4 0.01
–4 –2 0 2 4
log(Area)
0.1 1.0 10 100
Area (km2)
vertical measurement is the logit of the proportion of the island’s at-risk occa- sions that resulted in an extinction. The scatterplot shows dramatically that larger islands had smaller extinction rates. Another striking feature of the scatterplot is how well a straight line would approximate the apparent relationship.
Statistical Conclusion
The strong linear component in the relationship is undeniable. Each 50% reduction in island area is associated with a 23% increase in the odds of extinction (95% confidence interval: 13.6% to 31.5%).
Two difficulties with the statistical analysis are evident: It assumes that each species found on an island has the same chance of becoming extinct, and it assumes that extinctions occur independently. Although these assumptions are highly ques- tionable, the linearity in the scatterplot and the conclusiveness of the p-values make any inaccuracy in p-values and standard errors fairly unimportant.
Scope of Inference
Since the data are observational, confounding variables associated with both island size and the event of a species extinction may be responsible for the observed association in this data. In addition, these islands are not a sample of any larger population of islands. Therefore, although the data are consistent with the theory that the odds of extinction decrease with increasing island size, the statistical
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Proportion Extinct Logit

21.1.2
analysis alone cannot be used to infer that the same relationship would exist in other islands or habitat areas or that island size is a cause of extinction in these islands.
Moth Coloration and Natural Selection—A Randomized Experiment
Population geneticists consider clines particularly favorable situations for investi- gating evolutionary phenomena. A cline is a region where two color morphs of one species arrange themselves at opposite ends of an environmental gradient, with increasing mixtures occurring between. Such a cline exists near Liverpool, England, where a dark morph of a local moth has flourished in response to the blackening of tree trunks by smoke pollution from the mills. The moths are nocturnal, resting during the day on tree trunks, where their coloration acts as camouflage against predatory birds. In Liverpool, where tree trunks are blackened by smoke, a high percentage of the moths are of the dark morph. One encounters a higher percentage of the typical (pepper-and-salt) morph as one travels from the city into the Welsh countryside, where tree trunks are lighter. J. A. Bishop used this cline to study the intensity of natural selection. Bishop selected seven locations progressively farther from Liverpool. At each location, Bishop chose eight trees at random. Equal num- bers of dead (frozen) light (Typicals) and dark (Carbonaria) moths were glued to the trunks in lifelike positions. After 24 hours, a count was taken of the numbers of each morph that had been removed—presumably by predators. The data are shown in Display 21.3. (Data from J. A. Bishop, “An Experimental Study of the Cline of
Numbers of light (Typicals) morph and dark (Carbonaria) morph moths placed by researchers and numbers of these removed by predators, at each of seven locations of varying distances from Liverpool
Distance from Number of Number Location Liverpool (km) Morph moths placed removed
DISPLAY 21.3
21.1 Case Studies 637
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

638 Chapter 21 Logistic Regression for Binomial Counts
Industrial Melanism in Biston betularia [Lepidoptera] Between Urban Liverpool and Rural North Wales,” Journal of Animal Ecology 41 (1972): 209–43.)
The question of interest is whether the proportion removed differs between the dark morph moths and the light morph moths and, more importantly, whether this difference depends on the distance from Liverpool. If the relative proportion of dark morph removals increases with increasing distance from Liverpool, that would be evidence in support of survival of the fittest, via appropriate camouflage.
Statistical Conclusion
The logit of the proportion of moths removed, of each morph at each location, is plotted in Display 21.4 against the distance of the location from Liverpool. From this it appears that the odds that a moth will be removed by a predator increase with increasing distance from Liverpool for the dark morph and decrease with increasing distance from Liverpool for the light morph. A logistic regression analysis confirms that the odds of removal for the dark morph, relative to the odds of removal for the light morph, increase with increasing distance from Liverpool (one-sided p-value D 0.0006 for interaction of morph and distance). The odds of removal increase by an estimated 2% for each kilometer in distance from Liverpool for the
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 21.4
Proportions of moths of two color morphs taken by predators at seven locations near Liverpool, England
Sefton Park
Eastham Ferry
Clergy Mawr Pwyllglas
Llanbedr Loggerheads
Hawarden
Carbonaria
(dark morph)
Typicals (light morph)
0 10 20 30 40 50
Distance (km) from Liverpool
Logit Transformation
0.0 –0.5 –1.0 –1.5 –2.0
Proportion of Moths Taken
(logit scale)
0.1 0.2 0.3 0.4 0.5 0.6

21.2
dark morph; and they decrease by an estimated 1% per kilometer for the light morph.
Scope of Inference
This is not a fully randomized experiment, since the moths were not randomly assigned to trees and to positions on trees. It can be argued, however, that the haphazard assignment of moths to trees is just as good as randomization. The possibility of a confounding variable seems slight.
LOGISTIC REGRESSION FOR BINOMIAL RESPONSES 21.2.1 Binomial Responses
As noted in Section 18.2.1, a binomial count is the sum of independent binary responses with identical probabilities. If m binary responses constitute a random sample from a population of binary responses with population proportion , their sum (which must be an integer between 0 and m) has the binomial(m;) distribu- tion. The observed proportion of 1’s among the m binary responses is Y=m and is called a binomial proportion. For this reason, m is called the binomial denominator. (Although it may seem natural to think of m as a sample size, the term sample size is reserved for the number of binomial proportions in the study.)
In regression settings, the i th response variable Yi is binomial(mi ; i /. The binomial denominators mi need not be the same, but they must be known. In the first example, Yi is the number of extinctions on island i, out of mi bird species at risk for extinction. In the second example, Yi is the number of moths taken, out of the mi moths of a particular morph, that were placed at one of the locations.
The response variables here are the binomial counts (or the corresponding pro- portions), not the individual binary indicators that contribute to those counts. As in the previous chapter, however, a logistic regression model is used to describe i as a function of explanatory variables and unknown regression coefficients.
A Note About Counted and Continuous Proportions
A binomial response variable is a count that can acquire the integer values between 0 and m. The data may be listed either as the counts or (equivalently) as proportions Y=m, but in both cases m must be known. The term counted proportion refers to the proportion of 1’s in m binary responses. This must be distinguished from a continuous proportion of amounts, such as the proportion of fat (by weight) that is saturated fat, or the proportion of body mass composed of water. In continuous proportions, the numerator and denominator are not integers (except possibly due to rounding), and no m is involved. When they function as response variables, continuous proportions must be handled with ordinary regression methods, possibly after a transformation. The methods of this chapter should never be used with continuous proportions as responses, or with arbitrary and fictitious values of m such as 100.
21.2 Logistic Regression for Binomial Responses 639
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

640
Chapter 21 Logistic Regression for Binomial Counts
Binomial Logistic Regression Model
Y is binomial.m; /. logit./ D ˇ0 C ˇ1X1 C ˇ2X2.
21.3
21.2.2 The Logistic Regression Model for Binomial Responses
As described in Chapter 20, logistic regression is a special case of generalized linear models. The elements of such a model are a distribution for the response variable and a function that links the mean of the distribution to the explanatory variables. A binomial logistic regression with two explanatory variables is specified as follows:
The interpretation of the logistic model here is exactly the same as in Chapter 20. The model shows how the population proportion or probability  depends on the explanatory variables through a nonlinear link function. But the nonlinear part is completely captured by the logit of . Logistic regression on binary responses is a special case of the binomial model in which all mi ’s are 1.
Krunnit Islands Example
Let Yi represent the number of extinctions on island i, out of mi species at risk, for islands i D 1;2;:::;18: For example, for i D 1, the island Ulkokrunni had Y1 D 5 extinctions out of m1 D 75 species at risk. If the logit of the probability of extinctions is assumed to be linear in X D log of island area (Ulkokrunni has log area X1 D log(185.50 km2/ D 5:2231/, the logistic regression model would specify that logit(1/ D ˇ0 Cˇ15:2231 for Ulkokrunni, and that a similar expression would describe the proportions of extinctions for other islands. If ˇ1 in the model is zero, the odds of extinction (and hence the probability of extinction) are not associated with island area.
MODEL ASSESSMENT
21.3.1 Scatterplot of Empirical
Logits Versus an Explanatory Variable
Associated with observation i is a response proportion, i D Yi=mi: The observed
i =.1 􏰀 i /; which may also be written as logits, or empirical logits, are logŒ
logŒYi =.mi 􏰀 Yi /: Plots of the observed logits versus one or more of the explanatory variables are useful for visual examination, paralleling the role of ordinary scatter- plots in linear regression. The scatterplot in Display 21.2, for example, suggests that the logit of extinction probability is linear in log of island area.
If the mi’s are small for some observations, there may be only a few possible values for the observed proportion, making the display less informative. If some of the observed proportions are 0 or 1, a modification is necessary because the logit function is undefined at these values. For purposes of gaining a useful visual
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.3 Model Assessment 641
display, add a small amount to the numerator and denominator, such as 0.5, so that all the logits, logŒ.Yi C 0:5/=.mi 􏰀 Yi C 0:5/; are defined. (No such addition is required for fitting the model, however.)
21.3.2 Examination of Residuals
Two types of residuals are widely used for logistic regression for binomial counts: deviance residuals and Pearson residuals. The deviance residual is defined so that the sum of all n squared deviance residuals is the deviance statistic, which was introduced in Section 20.4 and which will be clarified in the next section. This type of residual measures a kind of discrepancy in the likelihood function due to the fit of the model at each observation. The formula is shown in the following box for a binomial response based on a binomial denominator of size mi . The part of the definition multiplying the square root, sign.Yi 􏰀 mi O i /, is either C1 (if Yi is above its estimated mean) or 􏰀1 (if below).
The Pearson residual is more transparent. It is defined as an observed binomial response variable minus its estimated mean, divided by its estimated standard deviation. Thus, it is constructed to have, at least roughly, mean 0 and variance 1.
Although the two often exhibit little difference, the Pearson residuals are easier to understand and therefore are more useful for casual examination. The deviance residuals, on the other hand, have the advantage of being directly connected to drop-in-deviance tests. Either set of residuals can be examined for patterns in plots against suspected explanatory variables.
For large values of the binomial denominator, both types of residuals tend to behave as if they came from a standard normal distribution—if the model is cor- rect. Paying close attention to those that exceed 2 in magnitude identifies possible outliers. If the mi’s are small—less than 5, say—the relative sizes of the residu- als can be compared, but decisions based on comparison to the standard normal distribution should be avoided.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Deviance Residual
Dresi Dsign.Yi 􏰀miOi/s2Yi log Yi C.mi 􏰀Yi/log mi 􏰀Yi  miOi mi 􏰀miOi
Pearson Residual
Y i 􏰀 m i O i Presi D pmiOi.1􏰀Oi/

642
Chapter 21 Logistic Regression for Binomial Counts
Example—Krunnit Islands Extinctions
The Pearson and deviance residuals from the fit to the Krunnit Islands extinction data are shown in Display 21.5. The logistic regression model for estimating the pro- portions of extinctions is: logit.O / D 􏰀1:196 􏰀 0:297  log(Area). For this example, the two types of residuals differ little, and no evidence of outlying observations is present.
The Deviance Goodness-of-Fit Test
When a linear regression problem such as the insulating fluid example of Section 8.1.2 has replicate observations at each configuration of the explanatory variable(s), one can compare estimates of group means derived from some model to group sample averages in a test of goodness-of-fit for the model. The problems of this chapter are analogous because one compares estimates of proportions derived from a model to the sample proportions. The comparison is like an extra-sum-of- squares test for comparing the model of interest to a general model with a separate population proportion for each observation. Informally, the null hypothesis is that the model of interest is adequate, and the alternative is that more structure is needed to fit the data adequately. More precisely,
Model of interest: logit.i / D ˇ0 C ˇ1xi1 C    (p parameters)I
Saturated model: logit.i / D ̨i .i D 1; 2; : : : ; n; with n different parameters/:
Residuals from the logistic regression of extinction probability on log of island area: Krunnit Islands data (Raw Residual is Y =m 􏰀 O )
Observed Model Raw Pearson Deviance Island proportion estimate residual residual residual
Törö
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
21.3.3
DISPLAY 21.5

DISPLAY 21.6
The drop in deviance—due to the n􏰀p additional parameters in the full model that are not included in the reduced model—is the sum of squared deviance residuals from the model of interest (the deviance statistic).
If the trial model fits and the denominators are all large, the deviance statistic has approximately a chi-squared distribution on n 􏰀 p degrees of freedom.
Approximate goodness of fit test p-value D Pr.2n􏰀p > Deviance Statistic/
Attempts to assess the model with this approach when a substantial proportion of the mi ’s are less than 5 can lead to misleading conclusions.
The deviance statistic and its p-value are included in standard output from logistic regression programs. Large p-values indicate that either the model is appro- priate or the test is not powerful enough to pick up the inadequacies. Small p-values can mean one of three things: The model for the mean is incorrect (for example, the set of explanatory variables is insufficient); the binomial is an inadequate model for the response distribution; or there are a few severely outlying observations.
In view of the various possibilities just described, it is often difficult to make strong conclusions solely on the basis of the deviance goodness-of-fit test. Further discussion of the case where the binomial model is inadequate for the response distribution is given in Section 21.5 on extra-binomial variation. An example of the deviance goodness-of-fit test is provided in Display 21.6. Notice that the deviance statistic in Display 21.6 is the sum of squared deviance residuals from Display 21.5.
Deviance goodness-of-fit test for Krunnit Islands data
Generalized linear model
3
Variable Coefficient Standard error z-statistic
0.74
21.3 Model Assessment 643
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

644
Chapter 21 Logistic Regression for Binomial Counts
21.4
INFERENCES ABOUT LOGISTIC REGRESSION COEFFICIENTS 21.4.1 Wald’s Tests and
Confidence Intervals for Single Coefficients
Maximum likelihood estimates of the logistic regression coefficients and their stan- dard errors are also included in standard output for logistic regression. Their use, interpretation, and properties are the same as in Chapter 20. The estimated coef- ficients are approximately normally distributed, so confidence intervals and Wald’s tests for single coefficients are accomplished in the same way. The normal approx- imation is adequate if either the overall sample size n is large or the binomial denominators are all large. It is difficult to state any precise rules about how large a sample size or denominator is large enough, so it is best to label the standard errors and the inferential statements as approximate.
Example—Krunnit Islands Extinctions
The output in Display 21.7 is from the logistic regression of the proportion of extinctions on the log of island area. This is the fit to the model logit(/ D ˇ0 C ˇ1  log.Area/, where  is the extinction probability.
Is extinction probability associated with island size? If ˇ1 is zero, the proba- bility of extinction does not depend on area. The question, therefore, is addressed through a test of the hypothesis that ˇ1 D 0: The approximate two-sided p-value, as shown in Display 21.7, is extremely small, confirming the visual evidence in the scatterplot that extinction probabilities are associated with island area.
Wald’s test and confidence interval for a single coefficient, from the logistic regression of extinction probability on log of island area: Krunnit Islands data
Variable Coefficient Standard error z-statistic
Test whether the Approximate two-sided p-value = 2 3 Pr(Z > 5.42) = 6 3 10–8 coefficient 1 is zero.
DISPLAY 21.7
1
z(0.975)
2 Approximate 95% confidence interval for 1. 20.297 6 1.96 3 0.054 = 20.403 to 20.191
Interpretation of the Coefficient of a Logged Explanatory Variable
Since the logit is the log of the odds, a unit increase in an explanatory variable is associated with a multiplicative change in the odds by a factor of exp(ˇ), where
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.4 Inferences About Logistic Regression Coefficients 645
ˇ is its coefficient in the logistic regression. If the explanatory variable is log(X), then (as in ordinary regression) the interpretation is most conveniently worded in terms of a two-fold, ten-fold, or some other k-fold change in X. For each doubling of X, for example, log(X) increases by log(2) units, so that the log odds change by ˇ  log.2/ units. The odds, therefore, change by a factor of exp[ˇ  log.2/]D 2ˇ. The result is stated generally as follows:
A confidence interval for kˇ extends from k raised to the lower endpoint to k raised to the upper endpoint of a confidence interval for ˇ. As shown in the accom- panying Krunnit Islands example, some customizing of this result may improve the wording of the conclusion.
Example—Krunnit Islands Extinctions
The estimated coefficient of log island area is 􏰀0:297. Based on the preceding results with k D 2, each doubling of island area is associated with a change in the odds of extinction by an estimated factor of 2􏰀0:297, or 0.813. It is estimated that the odds of extinction for an at-risk species on an island of area 2A is only 81.3% of the odds of extinction for such a species on an island of area A.
Since the effect of reduced habitat area on the odds of extinction is of interest, a researcher might prefer to express the results of the study as the change in odds associated with a reduction in island area. With k D 0:5, for example, each halving of island area is associated with a multiplicative change in the odds of extinction of 0:5􏰀0:297, or 1.23. The odds of extinction of an island with area A=2 are 123% of the odds of extinction of an island of area A. Since an approximate 95% confidence interval for ˇ1 is 􏰀0:403 to 􏰀0:191, an approximate 95% confidence interval for the factor associated with a halving of island area is 0:5􏰀0:403 to 0:5􏰀0:191, which is 1.14 to 1.32.
Finally, a 123% change can also be expressed as a 23% increase. Therefore, each halving of area is associated with an increase in the odds of extinction by an estimated 23%. An approximate 95% confidence interval for the percentage increase in odds is 14% to 32%.
21.4.2 The Drop-in-Deviance Test
Drop-in-deviance tests are extra-sum-of-squares tests based on the deviance resid- uals, as discussed in Section 20.4.2. The issues involved here are the same as those described in Chapter 20 for binary response models. For binomial responses the tests are appropriate if either the overall sample size n is large or the binomial denominators are all large. Studies suggest that the drop-in-deviance test performs well even when the sample size or the denominators are fairly small; again, however, it is appropriate to label the inferences approximate.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
If logit() D ˇ0 C ˇ  log.X/, then each k-fold increase in X is associated with a change
in the odd by a multiplicative factor of kˇ.

646 Chapter 21 Logistic Regression for Binomial Counts
Example—Krunnit Islands
In the previous section, Wald’s test was used to test whether ˇ1 is zero, resulting in a two-sided p-value of 6  10􏰀8. Alternatively, the drop-in-deviance test can be used to assess the same hypothesis. The reduced model has ˇ1 set to 0. Its deviance is obtained by fitting a logistic regression model without any explanatory variables (but including a constant term). From computer output (not shown), this deviance is found to be 45.34, with 17 degrees of freedom. In Display 21.7, the deviance statistic from a fit of the model with log(Area) included is 12.06, with 16 degrees of freedom. The deviance dropped by 33.28, with a drop of one degree of freedom. The associated p-value from a chi-square distribution is 8:0  10􏰀9. This is a two-sided p-value, and it provides essentially the same result as that given by Wald’s test.
Wald’s Test or Drop-in-Deviance Test?
If the hypothesis involves several coefficients, the drop-in-deviance test is the only practical alternative. For a hypothesis that a single coefficient is zero, either test can be used. The approximate p-value from the drop-in-deviance test is generally more accurate than the approximate p-value from the Wald’s test. The latter, however, is easier to obtain and is usually satisfactory for conducting tests of secondary importance (such as for informally testing extra terms in an exploratory model- building stage) and when the p-value is clearly large or clearly very small.
21.5 EXTRA-BINOMIAL VARIATION
A binomial count is the sum of independent binary responses with identical ’s. If it is the sum of mi such binary responses, its distribution is known to have mean mii and variance mii.1􏰀i/: If the binary trials are not independent, or the ’s for the binary responses are not the same, or important explanatory variables are not included in the model for , then the response counts will not have binomial distributions. Typically, the variance of the Yi ’s will be greater than expected from a binomial distribution. The terms extra-binomial variation and overdispersion describe the inadequacy of the binomial model in these situations.
When the response variance is larger than the binomial variance, the regression parameter estimates based on the binomial model will not be seriously biased, but their standard errors will tend to be smaller than they should be; in addition, p-values will tend to be too small, and confidence intervals will tend to be too narrow. Thus, if extra-binomial variation exists, alternatives to the usual inference tools must be found.
When in doubt, it is safer to suppose that extra-binomial variation is present than to ignore it. The consequences of assuming the presence of extra-binomial variation when there is actually none are minor. Inferences may be less precise, but they will not be misleading. More severe consequences result from assuming that the responses are binomial when they are not.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.5 Extra-Binomial Variation 647
21.5.1 Extra-Binomial Variation and the Logistic Regression Model
Several procedures allow for extra-binomial variation; but one, the quasi-likelihood approach, is particularly easy to use and works in most situations. Unlike the max- imum likelihood approach, this method does not require complete specification of the distribution of the response variables. It is based only on the mean and the variance, and these are taken to match the binomial model, except for the presence of a dispersion parameter. As shown in the following box, the dispersion parameter, represented by , accounts for extra-binomial variation. If is greater than 1, the variance is greater than the binomial variance. However, does not represent a variance in this model; it represents a multiplicative departure from binomial variation.
Logistic Regression with Extra-Binomial Variation
for quasi-likelihood approach (with two explanatory variables)
fYijX1i;X2igDmiiI logit.i/Dˇ0 Cˇ1X1i Cˇ2X2iI VarfYijX1i;X2igD mii.1􏰀i/
21.5.2 Checking for Extra-Binomial Variation
There are three tasks in checking for extra-binomial variation: considering whether extra-binomial variation is likely in the particular responses; examining the deviance goodness-of-fit test after fitting a rich model; and examining residuals to see whether a large deviance statistic may be due to one or two outliers rather than to extra-binomial variation.
Considering Whether Extra-Binomial Variation Is Present
In thinking about whether extra-binomial variation is likely, ask the following ques- tions. Are the binary responses included in each count unlikely to be independent? Are observations with identical values of the explanatory variables likely to have different ’s? Is the model for  somewhat naive? A yes answer to any of these questions should make a researcher cautious about using the binomial model. Even so, extra-binomial variation is rarely a serious problem when the binomial denom- inators are small (less than five, say). It is more likely to be a problem for larger denominators.
Extra-binomial variation may be present in the moth coloration responses for a number of reasons:
1. There may be a lack of independence of binary responses (moth removals) at each site. For example, if predators succeed in finding one moth, their success in finding moths of the same coloration may increase.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

648
Chapter 21 Logistic Regression for Binomial Counts
21.5.3
2. Binary responses at each site may have different probabilities. If a site has variation in tree color, moths placed on different trees at the site may have different odds of being taken.
3. The model may be incorrect. Two sites equally distant from Liverpool do not necessarily have the same level of tree coloration, so the model in which the logit of  is a linear function of distance from Liverpool may be naive.
Examining the Goodness-of-Fit Test
A large deviance goodness-of-fit test statistic (Section 21.3.3) indicates that the binomial model with specified explanatory variables is not supported by the data. If it can be established that the set of explanatory variables is suitable, however, the large deviance statistic probably indicates extra-binomial variation. This should be examined at an early stage in the analysis by fitting a rich model that includes all the terms that might be important (possibly including polynomial and interaction terms).
Examining Residuals
Since the deviance statistic is the sum of squared deviance residuals, it is useful to examine the deviance residuals themselves to see whether a few of these are responsible for a large deviance statistic. If so, the analysis should focus on the outlier problem rather than on the extra-binomial variation problem.
Quasi-Likelihood Inference when
Extra-Binomial Variation Is Present
The quasi-likelihood approach was developed in such a way that the maximum quasi-likelihood estimates of parameters are identical to the maximum likelihood estimates, but standard errors are larger and inferences are adjusted to account for the extra-binomial variation.
One possible estimate of the dispersion parameter is the deviance statistic divided by its degrees of freedom:
The degrees of freedom are n􏰀p, the sample size minus the number of parame- ters in the model for the mean. Apart from the degrees of freedom adjustment, this amounts to a sample variance of the deviance residuals. It should be approximately equal to 1 if the data are binomial, and larger than 1 if the data contain more variation than would be expected from the binomial distribution.
The standard errors of the maximum quasi-likelihood estimates are p O times the standard errors for the maximum likelihood estimates. The greater the variation in the responses, the greater the uncertainty in the estimates of the parameters.
O D Deviance : Degrees of freedom
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.5 Extra-Binomial Variation 649
Inference Based on Asymptotic Normality
Tests and confidence intervals for single coefficients may be accomplished in the usual way with the estimated coefficients and their adjusted standard errors. The inferences are based on the approximate normality of the estimators in situations involving either large sample sizes or large denominators. A test statistic for a hypothesis that ˇ is 7, say, is t D .ˇO 􏰀 7/=SE.ˇO/. The theory suggests that this be compared to a standard normal distribution. Some statisticians, however, prefer to compare it to a t-distribution on n 􏰀 p degrees of freedom. Similarly, a confi- dence interval for ˇ may be taken as ˇO ̇ Œtdf.1 􏰀 ̨=2/  SE.ˇO/; where tdf.1 􏰀 a=2/ is the appropriate multiplier from the t-distribution on n 􏰀 p degrees of freedom. Although no theory justifies using t-distributions, in this setting the practice paral- lels that of ordinary regression models, since the standard error involves an estimate of the unknown on n 􏰀 p degrees of freedom. And although the normal and t-distributions usually yield very similar results, when there is a difference, the approach using the t is more conservative.
Drop-in-Deviance F-Tests
It is also reasonable to consider the drop in the deviance as a way to test whether a single coefficient is zero or whether several coefficients are all zero—as well as to test other hypotheses that can be formulated in terms of a reduced and a full model. Since there is an additional parameter in the response variance, however, the drop in deviance must be standardized by the estimate of . The resulting statistic is compared to an F -distribution, rather than to a chi-square. This F -test is equivalent to the extra-sum-of-squares F -test for ordinary regression, except that deviance residuals are used rather than ordinary residuals:
where d represents the number of parameters in the full model minus the number of parameters in the reduced model, and O is the estimate of the dispersion parameter from the full model. The p-value is Pr.Fd;n􏰀p > F-stat), where p is the number of parameters in the full model. No solid theory justifies using this test, but it is a sensible approach, motivated by the analogies to ordinary linear regression.
Notes
1. Many statisticians recommend using the sum of squared Pearson residuals divided by .n 􏰀 p/ rather than the sum of squared deviance residuals divided by .n􏰀p/ to estimate . Although this issue has not been completely resolved, it is always wiser to use one of these approaches than to assume that D 1 when extra-binomial variation is present.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Drop-in-Deviance F-Test when Extra-Binomial Variation Is Present
F-stat D Drop in deviance=d ; O

650
Chapter 21 Logistic Regression for Binomial Counts
21.6
2. Deviance and Pearson residuals from the quasi-likelihood fit are identical to those from the maximum likelihood fit. They may be examined for peculiarities, but they should no longer be compared to a standard normal distribution for outlier detection.
3. Some statistical computer programs allow the user to request quasi-likelihood analysis for binomial-like data. It is evident from the preceding discussion, however, that the quasi-likelihood inferences can be computed with standard output from a binomial logistic regression routine.
ANALYSIS OF MOTH PREDATION DATA
In the moth study, two color morphs were placed on trees at various distances from Liverpool. The question is whether the relative rate of removal depends on tree color. Distance is used as a surrogate for tree color. A logistic regression model can isolate a difference that changes steadily with distance by including the product variable dark  dist, where dark is an indicator of dark morph and dist is the actual distance. The model
logit./ D ˇ0 C ˇ1dark C ˇ2dist C ˇ3.dark  dist/
enables the analyst to answer the question directly. The constant term ˇ0 is the log odds for removal of the light morph at Sefton Park (for which dist D 0); ˇ0 C ˇ1 is the log odds for removal of the dark morph at Sefton Park. So ˇ1 D .ˇ0 Cˇ1/􏰀ˇ0 is the log of the odds ratio for removal of the dark morph relative to the light morph, at Sefton Park. The log odds for removal of the light morph at a site that is D kilometers distant from Sefton Park is ˇ0 C ˇ2D; and for the dark morph, it is .ˇ0 Cˇ1/C.ˇ2 Cˇ3/D. Their difference, ˇ1 Cˇ3D, is the log of the odds ratio for removal of the dark morph relative to the light morph at distance D from Sefton Park. The rate of change in the log odds ratio with distance is
Œ.ˇ1 C ˇ3D/ 􏰀 ˇ1=D D ˇ3:
Drop-in-Deviance Test for
Effect of Distance on Relative Removal Rates
If ˇ3 D 0, the relative odds that the light morph will be taken are the same at all locations as the odds that the dark morph will be taken. But if ˇ3 ¤ 0, the relative odds change with distance. So the question can be addressed by testing the hypothesis that ˇ3 D 0, in the context of the preceding model. This may be accomplished by using either Wald’s test in the fit of the model or the drop in deviance associated with including the product term in a model that includes only dark and dist. The latter approach is illustrated in Display 21.8, where the answer to the question seems convincing.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 21.8
The drop-in-deviance chi-squared test for the interaction term in the logistic regression of removed (number of moths removed out of the number placed) on dark, dist (distance from Liverpool), and dark  dist: moth coloration data
21.6 Analysis of Moth Predation Data 651
1
logit( ) = 0 1dark 2dist 3dark dist Fit full model.
2
3
25.161 – 13.230 = 11.931 d.f.= 11 – 10 = 1
Variable
Fit reduced model.
Coefficient
Standard error
0 + 1dark + 2dist Standard error
z-statistic
Variable
z-statistic
Calculate the drop in deviance.
logit( Coefficient
) =
4 Determine the p-value.
Conclusion: Substantial evidence indicates that the relative odds of removal
p-value = Pr ( 12 > 11.931) = 0.0006 of the two color morphs change steadily with distance from Liverpool.
Checking for Extra-Binomial Variation
Extra-binomial variation may be suspected in this example, based on the study design. Therefore, a close look at the goodness-of-fit deviance statistic from the full model is in order. Overall, the magnitude of the deviance statistic, 13.230, is not large for its degrees of freedom, 10. The p-value for goodness-of-fit, 0.23, shows no substantial problem.
On the other hand, there is no reason to anticipate a linear relationship between logit of removal probability and distance from Liverpool; and the scatterplot of sam- ple logits versus distance (in Display 21.4) suggests departures from a straight line. The issue is clarified by examining the individual deviance residuals in Display 21.9.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

652 Chapter 21 Logistic Regression for Binomial Counts
DISPLAY 21.9 Deviance residuals from fit of the full model in the moth study
Distance from Binomial Model Deviance
Location Liverpool (km) Morph proportion estimate residual
One residual—for the light morph at Loggerheads—is somewhat extreme. It might be ignored except that the residual for the dark morph at Loggerheads is also extreme in the same direction. Meanwhile, both residuals at Hawarden are mildly extreme in the opposite direction. These features suggest that each location has unique characteristics—that the differences in removal probabilities at different locations may be due to factors besides the distance from Liverpool.
Adjustment for Extra-Binomial Variation
The quasi-likelihood procedure for adjusting the inference based on the Wald’s test appears in Display 21.10. The test statistic for the coefficient of the interaction term (which was 3.44 for the binomial model) is 2.99 from the quasi-likelihood fit.
The drop-in-deviance test is calculated from the same deviances that were obtained from the maximum likelihood fit, but the F-version of the statistic is used to allow for extra-binomial variation:
F-statistic = (11.931)/(1) = 9.02. (13.230)/10
The p-value is Pr.F1;10 > 9:02/ D 0:013:
Drop in deviance/drop in d.f.
Deviance/d.f.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 21.10
1
Quasi-likelihood (QL) inference about distance-by-morph interaction, based on maximum likeli- hood (ML) output: moth coloration data
21.6 Analysis of Moth Predation Data 653
Obtain standard ML analysis.
Variable Coefficient
Standard error
13.230 = 10
Quasi-likehood
standard error t-statistic
= 1.323; = 1.323= 1.150
ML and Q estimates of regression parameters are the same.
2
3
4
5
p-value for H: 3 = 0 Two-sided p-value = 2×Pr (t10 > 2.99) = 0.014
Conclusion: The data provide strong evidence that the interaction is nonzero.
Location Treated as a Factor with Seven Levels
An alternative, less restrictive model lets the logits for the light morphs be arbitrary at each location, but the difference between the dark morph logit and the light morph logit changes linearly with distance:
logit./ D LOCATION C dark C .dark  dist/:
LOCATION contains six indicator variables to represent the seven locations, but the interaction among them is still modeled with the numerical explanatory variable dist multiplied by the indicator variable for the dark species.
This model may be a bit more realistic, since it allows the overall log odds of removal to differ for different locations (that is, it does not restrict them to falling on a straight line function of distance). The interaction of interest, however, continues to be represented by a single term: the difference in log odds of removal between the light and dark morphs is modeled to fall on a straight line function of distance from Liverpool. The output is reported in Display 21.11. Here, cause for concern about extra-binomial variation has greatly diminished, since the p-value from the goodness-of-fit test is 0.72. Furthermore, this approach sharpens the inference about
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Estimate the dispersion parameter.
Multiply ML standard errors by
to get QL standard errors.
Divide coefficients by QL standard errors to get adjusted Wald’s statistics.

654 Chapter 21 Logistic Regression for Binomial Counts
DISPLAY 21.11
Logistic regression of proportion of moths removed on location (treated as a factor with seven levels), morph, and a distance  morph interaction
Variable Coefficient Standard error z-statistic
21.7
the key issue: The z-statistic for the interaction term is 3.43, producing a smaller p-value—more convincing evidence—than did the previous approach.
RELATED ISSUES
21.7.1 Why the Deviance Changes
when Binary Observations Are Grouped
If a number of distinct binary responses exist for each combination of explana- tory variables, the data analyst may adopt either of two approaches: Fit logistic regression models with the individual binary variables as responses (for example, the 1 or 0 response for each of the 968 moths in the coloration study); or group the observations according to distinct explanatory variable combinations and use as responses the binomial counts—the sums of the binary responses at each dis- tinct explanatory variable combination (for example, the number of moths out of mi placed, for each of the 14 combinations of type and location). The inferential results are identical; but because the latter approach reduces the data set to a smaller size, it is often more convenient.
As a check, one could use both approaches to fit the same logistic regression model; this would confirm that tests and confidence intervals for coefficients are identical. One feature of the output differs, however: the deviance statistic. The deviance statistic is the likelihood ratio test for comparing the fitted model to a saturated model—a model that has a distinct parameter for each observation. The test statistic is different in the two approaches because there are different saturated models. With binary responses, the saturated model has a separate probability parameter for each subject (968 parameters in the moth example). With grouped responses, an observation is defined as the binomial count at a distinct explanatory variable combination, so the saturated model has only 14 parameters.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.7 Related Issues 655
It should not be surprising or alarming, therefore, that the deviance statistic differs in these two approaches, even though all other aspects of estimation, testing, and confidence intervals remain the same. This circumstance is mentioned because the different deviances sometimes cause confusion. The deviance goodness-of-fit test remains inappropriate for binary responses.
21.7.2 Logistic Models for Multilevel Categorical Responses Multinomial Logits
Suppose that each subject falls into one of three categories of a categorical response variable—for instance, HIV negative, HIV positive but without AIDS symptoms, and HIV positive with AIDS symptoms. Let 1;2, and 3 be the probabilities of falling into the three categories. It might be desired to see how these probabilities depend on an explanatory variable, such as number of sexual contacts with an infected partner. Since the probabilities sum to 1, any two of them determine the third. Consequently, the analyst need only indicate how any two of them depend on the explanatory variables. Multinomial logits may be defined as follows:
2 D log.2=1/ 3 D log.3=1/:
In the example, 2 is the log of the odds of being HIV positive relative to being HIV negative, and 3 is the log odds of being HIV positive with AIDS symptoms, relative to being HIV negative. Each  gives the log odds relative to the first category.
If there is no ordering in the response categories, the multinomial logistic regression model has a separate logistic regression for each of the two logits—for example,
and
log.2i =1i / D ˇ0 C ˇ1contactsi log.3i =1i / D ̨0 C ̨1 contactsi :
The different Greek letters for regression coefficients are needed to distinguish the regression coefficients for the two logits.
Some statistical computer packages produce the estimated coefficients and stan- dard errors needed for this model. The packages may differ in their definition of multinomial logits—for example, the choice of the reference level may differ—so some care must be exercised to ascertain what model is being fit by the package. Drop-in-deviance tests are available as before.
Ordered Categorical Responses
The levels of a categorical response commonly have some internal order. Thus the categories just discussed might be considered as ranging essentially from no disease to some disease to severe disease. Because the multinomial logistic regression model has no features that can capture this ordering, it wastes the information from this valuable structure.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

656
Chapter 21 Logistic Regression for Binomial Counts
21.7.3
This implies that the odds of being HIV positive relative to being HIV negative and the odds of having AIDS symptoms relative to being HIV negative increase at the same rate with increasing numbers of sexual contacts. This model is appropriate if the odds of having AIDS relative to the odds of being HIV positive do not depend on the number of sexual contacts.
The linear trends over response categories model is log.ji=1i/Dˇ0 Cˇ1.j 􏰀1/contactsi;
for j equal to 2 up to the total number of categories (3, in the example). In this model, the odds of having AIDS symptoms relative to being HIV negative increase with the number of sexual contacts at twice the rate of the odds of being HIV positive relative to being HIV negative. This model has the same number of parameters as the common slopes model; but it emphasizes, for example, the greater chance of being in the next highest category with increasing levels of an explanatory variable.
The proportional odds model defines logistic regression models for cumulative probabilities. If j represents the probability that a subject will respond in category jorless,then 1D1;2D1C2,and 3D1.Modelscanthenbespecified
for each cumulative probability except the last:
logŒ 1=.1 􏰀 1/ D ˇ0 C ˇ1contactsi
logŒ 2=.1 􏰀 2/ D ̨0 C ˇ1contactsi :
The first model is for the odds of being HIV negative. The second is for the odds of being AIDS-free. (Here, unlike in the preceding models, the coefficient of contacts would be negative.)
The Maximum Likelihood Principle
The maximum likelihood (ML) principle, attributed to the British statistician Sir Ronald Fisher, is the approach statisticians predominantly use to select estimation procedures. When they say that a weighted average is preferable to an unweighted
Some models do account for such ordering. Their implementation depends on whether they are featured in available statistical computer packages. See, for example, Exercise 21.21. The models listed here represent the case involving three response categories; but they extend in a straightforward manner to cases involv- ing more than three categories, and in fact they are most helpful for handling cases involving substantially more categories.
The common slopes model stipulates that the coefficients of the explanatory variable (but not the intercepts) in the multinomial model are the same for each multinomial logit:
and
log.2i =1i / D ˇ0 C ˇ1contactsi log.3i =1i / D ̨0 C ˇ1 contactsi :
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.7 Related Issues 657
one in a specific situation, their justification is often premised on the ML princi- ple. An estimation procedure that has figured prominently in this book—the least squares principle—arises directly from the maximum likelihood principle when the response distribution is assumed to be normal.
The ML principle states that the parameters chosen for a model should be those that yield the highest probability of observing precisely what was observed. Application of the ML principle to many statistical problems entails differential calculus and often some formidable algebra. Fortunately, computers handle such problems routinely, which eliminates the need to fathom the mathematics. Such is the case with logistic regression analysis.
This section describes the ML solution to one specific problem (not a logistic regression problem), which was chosen for its simplicity so that the principle itself could be explained.
The Bucket Problem
A bucket contains 12 marbles. Each marble is either red or white, but the numbers of red and white marbles are not known. To gain some information on the bucket’s composition, you are allowed to select and view five of them. What inference about the bucket’s composition can be drawn from the sample information?
Notation The following symbols represent the features of this game:
N D Number of marbles in the bucket (D 12)
 D Number of red marbles in the bucket (unknown)
n D Sample size D Number of marbles selected for viewing (D 5) x D Number of red marbles in the sample.
A rule is desired for estimating  once x is known.
Probability Model Imagine that the 12 marbles are numbered consecutively, 1–12, and that the first  of them are red. A sample of five marbles thus consists of five distinct marble numbers—for example, f2, 5, 6, 9, 12g. If the bucket contained  D 7 reds, this sample would have x D 3 red marbles (numbers 2, 5, and 6).
Assume that the sample selection process ensures that all 792 possible samples of size 5 from the 12 have an equal chance of selection (1/792). Then for any given number of red marbles in the bucket, one can determine what the chances are of drawing the numbers of red marbles actually obtained in the sample. These chances form the rows of Display 21.12.
For example, if no red marbles were in the bucket to begin with (row 1), the chances are certain (100%) that the sample will have no red marbles. If instead the bucket contained two red marbles (row 3), there is slightly better than a 50–50 chance that the sample will include exactly one red marble; the chances of obtaining no red marbles in this case are double the chances of selecting both red marbles.
The numbers in Display 21.12 come from the hypergeometric probability dis- tribution (previously encountered in the discussion of Fisher’s Exact Test). The hypergeometric formula for the probabilities that x will take on each of its possi- ble values when the bucket has  red marbles is not given here. Each row shows
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

658 Chapter 21 Logistic Regression for Binomial Counts
DISPLAY 21.12
Probability distributions and likelihood functions for the bucket with 12 marbles and five draws
Number (x) of Red Marbles Found in the Sample 012345
0 1 2 3 4 5 6 7 8 9
10 11 12
100000
0.5833 0.4167 0.3182 0.5303 0.1591 0.4773 0.0707 0.3535 0.0265 0.2210 0.0076 0.1136 0.0012 0.0442
0000 0.1515 000 0.3182 0.0454 00 0.4243 0.1414 0.0101 0 0.4419 0.2652 0.0442 0.0012 0.3788 0.3788 0.1136 0.0076 0.2652 0.4419 0.2210 0.0265 0.1414 0.4243 0.3535 0.0707
0.3182 0.4773 0.1591 0.5303 0.3182 0.5833
0 0.0101
00 0.0454
000 0.1515 0000 0.4167 000001
When you know how many red marbles are in
the bucket, look across that row
to see how many might be observed in the sample. (Rows are prob- ability functions.)
When you know how many red marbles were in the sample, look down that column to infer how many might have been in the bucket. (Columns are likelihood functions.)
the chances of different outcomes to the sampling experiment when the bucket composition is known.
For the inferential problem—making a statement about the likely values of  based on the observed sample x—the columns of Display 21.12 are important. After the sampling is done and three reds (for example) are observed, one can look at the entries in the column headed by x D 3 to see how to use the sample information. Clearly,  D 0; 1; and 2 are impossible. There must have been at least three reds in the bucket, because three showed up in the sample. Similarly, since two whites appeared in the sample, there must be at least that many whites in the bucket. Thus, the column also rules out  D 11 and 12.
Can more be said? It is possible that the bucket began with three reds and all were selected; and it is also possible that the bucket began with seven reds and three were selected. But although both are possible, the likelihoods of these two cases are not equal. If only three reds were in the bucket, finding three in the sample would be a relatively rare event—an outcome expected to occur in fewer than one in 20 trials. But if seven reds were in the bucket, finding three in the sample would be a
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Number( )ofRedMarblesOriginallyintheBucket

21.7 Related Issues 659
common occurrence, to be expected in nearly half of all such trials. Since common events are expected and rare events are not, it is natural to look at the possibilities and—having observed three reds in the sample—conclude that it is more likely that the bucket began with seven reds.
The probabilities in Display 21.12 are called likelihoods when viewed down a column. The column as a whole is a likelihood function, meaning that it is a function of the unknown parameter . Each observed number of reds in the sample gives rise to a different likelihood function. Adding probabilities across a row always yields a sum of 1.0; however, the same is not true for adding down a column. Therefore, likelihoods must not be confused with probabilities. It is not appropriate to say that, if x D 3, the probability that  D 7 is 0.4419. On the other hand, likelihoods can be expressed in a relative sense. For x D 3, the statement “ D 7 is 10 times more likely than  D 3” is a legitimate interpretation.
The Maximum Likelihood Estimator for the Bucket Problem
To make a best guess at , according to the maximum likelihood principle—as the name implies—one should select the  for which the likelihood is largest. This amounts to guessing that  has the value that gives the highest probability of observing what was, in fact, observed.
Suppose that a particular sample yielded x D 3. In the likelihood column for “x D 3,” the largest likelihood, 0.4419, corresponds to  D 7. Then the best (ML) guess is that the number of reds originally in the bucket was seven.
Examining all columns in Display 21.12 leads to a rule describing which  to guess for each outcome x. Display 21.13 shows this maximum likelihood estimator for the bucket problem.
Notes About Maximum Likelihood Estimation
1. The probability distribution of the response variables must be specified entirely, except for the values of the unknown parameters. This contrasts to the method of least squares and the method of quasi-likelihood, which only require knowledge of the mean and variance of the response distribution.
2. Display 21.13 also provides the sampling distribution of the ML estimator. The rows of the table show the probabilities for the sample outcomes, and hence for the values of the estimator. In more complex situations, considerable effort is required to determine the sampling distribution of an ML estimator.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 21.13
The maximum likelihood estimator for the unknown number of red marbles in a bucket of 12, based on a sample of five
Observed number of reds in sample (x): 0 1 2 3 4 5 ODMLestimateofnumberofredsinbucket: 0 2 5 7 10 12

660
Chapter 21 Logistic Regression for Binomial Counts
21.7.4
3. The ML principle itself does not guarantee that the ML estimator has suitable properties, but theoretical statisticians have shown that the resulting procedure does indeed lead to desirable estimators.
Bayesian Inference
This textbook generally follows the “frequentist” school, in which statements about parameters and uncertainties arise directly from sampling distributions: “confidence level,” “estimates,” “standard errors,” and “p-values.” Members of the Bayesian school—introduced in Chapter 12—present statements about parameters as prob- ability distributions and their descriptors: means, standard deviations, etc. For example, a frequentist inference about the slope of a regression line might read:
The slope is estimated to be 0.37 g/sec, with a 95% confidence interval from 0.15 to 0.59 g/sec. There is highly suggestive evidence against the hypothesis that the slope is zero or negative (one-sided p-value D 0:03/.
A Bayesian inference about the same parameter might read as follows:
Themeanslopeestimateis0.35g/sec(standarddeviation D0:09g/sec).Thereisa95%chance that the slope is between 0.17 and 0.53 g/sec, and the chance that the slope is zero or negative is 0.028.
A picture of the probability distribution may also be included.
Bayesian inferences are constructed as “inverse probabilities,” according to a
theorem derived by Rev. Thomas Bayes (1702–1761). The theorem demonstrates how probabilities for parameter values judged prior to examining the data (D) are converted logically to probabilities for parameter values judged after seeing the data. In its simplest form, suppose there is a single unknown parameter, . What is known a priori about  is summarized by a prior probability function, f./. For each , one determines the probability of obtaining D; this is represented by PrfDjg, the likelihood function discussed in the previous section. Bayes’ Theorem provides the posterior probability function of  from the data as
The Bucket Problem
Reconsider the bucket with its 12 red and white marbles, Section 21.7.3. Suppose you know that the filler of the bucket rolled a pair of dice and put in as many red marbles as appeared on the two faces showing. If so, there is no chance that the bucket would contain 0 or 1 red marble. The chance it contained 2 is the chance that both dice showed 1, which is 1=36 D 0:0278. It contained 3 red marbles if the dice show (1,2) or (2,1); the chance is 2=36 D 0:0556: Continuing, you find that the chance the bucket contained  red marbles is f . / D .6 􏰀 j 􏰀 7j/=36 for  D 2;3;:::;12.
BAYES’ THEOREM
The posterior probablity , given the data, is proportional to the product of the prior probablity of  and the likelihood of  given the data.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 21.14
Display 21.12 showed the probabilities, PrfDjqg, for any outcome of the draw and for all possible numbers of red marbles. So, suppose the bucket is mixed, five marbles are drawn, and only one of the five is red. Then Display 21.14 shows the steps required to apply Bayes’ Theorem. The resulting posterior probability function appears in Display 21.15. Notice there is no chance that the bucket began with fewer than 2 or more than 8 red marbles. The most probable value is 4 reds, but 3 and 5 are quite probable as well. The mean of the distribution is 4.2 red marbles, and its standard deviation is 2.1 red marbles.
Bayes’ Theorem applied to the Bucket Problem when one red marble appears in five draws. The bucket is composed by the toss of a pair of dice.
21.7 Related Issues 661
1. Write down the possible values for the unknown parameter.
2. Specify probabilities for each value prior to viewing the data. 3. Gather the data, D: One red marble in five draws.
Prior
f( )
4. Determine the probability of the data for each parameter value.
5. Calculate the products of the prior and likelihood values.
Likelihood Posterior
Pr{1 red| } Product Pr{ |1 red}
6. Add the products.
7. Divide each product by the sum, so the posterior probabilities add to 1.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

662 Chapter 21 Logistic Regression for Binomial Counts
DISPLAY 21.15
Bayes’ posterior distribution of the number of red marbles, from a die-throwing prior and one red marble in five draws
0 1 2 3 4 5 6 7 8 9 10 11 12
Number of Red Marbles in the Bucket
Interpretation of Bayesian Posterior Probabilities
The bucket example was unusual because the method of filling the bucket—rolling a pair of dice—was known. Without such knowledge, it may seem impossible to assign prior probabilities. This has prevented Bayesian inference from achieving more widespread usage. One way around the difficulty is to allow f . / to represent one’s belief about , expressed as a probability distribution. There are good aspects to this solution: Researchers can incorporate legitimate prior information they possess. But the posterior probabilities have no interpretation as frequencies of occurrence and must also be interpreted as measures of personal belief.
Sex Role Stereotypes and Personnel Decisions
As a second example, reconsider the experiment where male bank supervisors decided promotions based on files with male and female names, Section 19.1.1. Of 24 files with male names, 21 were promoted, whereas only 14 of 24 with female names were promoted. In Chapter 19, this example was used to illustrate Fisher’s exact test. No confidence interval for the odds ratio (the odds of promotion of a man relative to those of a woman) was offered because the normal distribution method fails to give a reasonable approximation to the sampling distribution.
A Bayesian solution to inference about the odds ratio requires a prior distribu- tion and the likelihood. The mechanics that follow are offered without derivation; the reader may wish to skip to Display 21.16, which shows the posterior distribution for the odds ratio.
With no real prior information, the common choice is to use an “ignorance” prior for log.!/ which assigns the same amount of probability to all intervals of equal length. That is, f.!/ D 1=!, for ! > 0. This is not a proper prior, in that it adds to infinity rather than 1. Nevertheless, one may think of this as a proper prior that is nearly flat throughout the range where there is any likelihood of the parameter.
The likelihood function is an example of the “noncentral hypergeometric” distribution:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.7 Related Issues 663
Prf21 promotions to males, given there were 35 promotions in all j!g 24
D C24;21C24;11!21= X C24;kC24;35􏰀k!k kD11
and Display 21.16 shows the product of prior and likelihood.
The posterior distribution conveys all the information about the odds ratio. The posterior probability that the odds ratio is 1.0 or smaller is the shaded area, as a fraction of the total area, approximately 0.015. The most probable odds ratio is around 3.0, but values as high as 5–10 are not at all improbable.
21.7.5 Generalized Estimating Equations
Generalized estimating equations (GEEs) offer a useful approach for regression analysis of repeated measures or any response variables that may be dependent within identifiable clusters. The approach can be used for inference about ordinary linear models and for generalized linear models, and it captures the within-subject or within-group dependencies by imposing a correlation structure.
For binomial repeated measures, a researcher using a GEE module in a sta- tistical computer program specifies the logistic regression model in the usual way, specifies the name of the variable that indicates subject (or group identification variable, so that observations with the same value of the group indicator variable
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 21.16
Bayes’ posterior distribution for the odds of promotion of a male applicant relative to the odds of promotion of a female applicant
The most probable value is an odds ratio around 3.0.
There is very little probability that the odds ratio is 1.0 or smaller.
0 5 10 15 20 25 30
Odds Ratio

664 Chapter 21 Logistic Regression for Binomial Counts
are thought to be correlated with each other), and selects a model for the within- subject (or within-group) correlation structure. Two useful choices for correlation structure are “exchangeable” and “AR(1)” models. In the exchangeable model, the observations for a given subject are taken to be correlated with each other and the correlation of any two of them (after accounting for the effects of the explanatory variables) is the same. In the AR(1) (autoregressive of lag 1) model, the correlation of observations within a subject is thought to be induced by an AR(1) time series (see Section 15.3). In this model, observations taken closer together in time are thought to be more highly correlated with each other than observations taken far- ther apart in time. In both of these models there is a single additional parameter—a correlation coefficient or a first serial correlation coefficient—which is assumed to be the same for all subjects or clusters.
A good starting point for modeling correlation is to use the AR(1) model if the correlated observations are repeated measures over time and to use the exchange- able model otherwise. In many data problems, it doesn’t matter too much which model is used because even an approximate model for correlation structure solves the problem well enough to make useful conclusions about the logistic regression model.
21.8 SUMMARY
Binomial logistic regression is a special type of generalized linear model in which the response variable is binomial and the logit of the associated probability is a linear function of regression coefficients. The case in which all the binomial denominators are 1 was referred to as binary logistic regression and was discussed in Chapter 20.
In analyzing proportions, one should begin, if possible, with scatterplots of the sample logits versus explanatory variables. The model-building stage consists of checking for extra-binomial variation and then finding an appropriate set of explanatory variables. The main inferential statements are based on Wald’s z-test or the associated confidence interval for a single coefficient, or on the drop-in- deviance chi-squared test for a hypothesis about one or several coefficients. If extra- binomial variation is suspected, these tests are replaced by t-tests and F-tests, respectively.
Krunnit Islands Data
The analysis comes into focus with a plot of empirical logits versus the log of island area. It is evident from Display 21.2 that the log odds of extinction are linear in the log of island area. This can be confirmed by fitting the model and observing that the deviance statistic is not large (the p-value from the deviance goodness-of-fit test is 0.74), and also by testing for the significance of a squared term in log island area. The remainder of the analysis only requires that the inferential statement about the association between island area and log odds of extinction be worded on the original scale.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.9 Exercises 665
Moth Coloration Data
A plot of the empirical logits versus distance from Liverpool, with different codes for the light and dark moths, revealed initial evidence of an interactive effect— particularly that the odds of light morph removal decrease with increasing distance from Liverpool while the odds of dark morph removal increase with increasing dis- tance from Liverpool. Based on the scatterplot (Display 21.4), the linearity of the logistic regression on distance is questionable, particularly since the logits drop rather dramatically at Loggerheads. There seems to be good reason to believe that distance from Liverpool is not entirely adequate as a surrogate for darkness of trees. Two avenues for dealing with this problem were suggested. One involved using quasi-likelihood analysis, which incorporated the model inadequacy into a dis- persion parameter. The other, more appealing model, however, included location as a factor with seven levels (rather than relying on their distance from Liverpool as a single numerical explanatory variable) but retained the product of the morph indicator variable and distance so that a single parameter represented the inter- active effect of interest. This model fit well and maximum likelihood analysis was used to draw inferences about the effect.
21.9 EXERCISES
Conceptual Exercises
1. Krunnit Islands Extinctions. Logistic regression analysis assumes that, after the effects of explanatory variables have been accounted for, the responses are independent of each other. Why might this assumption be violated in these data?
2. Moth Coloration. (a) Why might one suspect extra-binomial variation in this problem? (b) Why does the question of interest pertain to an interaction effect? (c) How (if at all) can the response variable be redefined so that the question of interest is about a “main effect” rather than an interaction?
3. Which of the following are not counted proportions? (a) The proportion of cells with chro- mosome aberrations, out of 100 examined. (b) The proportion of body fat lost after a special diet. (c) The proportion of 10 grams of offered food eaten by a quail. (d) The proportion of a mouse’s four limbs that have malformations.
4. Suppose that Y has a binomial(m;) distribution. (a) Is the variance of the binomial count Y an increasing or decreasing function of m? (b) Is the variance of the binomial proportion Y=m an increasing or decreasing function of m?
5. To confirm the appropriateness of the logistic regression model logit./ D ˇ0 C ˇ1x, it is sometimes useful to fit logit./ D ˇ0 C ˇ1x C ˇ2×2 and test whether ˇ2 is zero. (a) Does the reliability of this test depend on whether the denominators are large? (b) Is the test more relevant when the denominators are small?
6. What is the quasi-likelihood approach for extending the logistic regression model to account for a case in which more variation appears than was predicted by the binomial distribution?
7. Malformed Forelimbs. In a randomized experiment, mouse fetuses were injected with 500, 750, or 1,000 mg/kg of acetazolamide on day 9 of gestation. (Data from L. B. Holmes, H. Kawanishi, and A. Munoz, “Acetazolamide: Maternal Toxicity, Pattern of Malformations, and Litter Effect,” Teratology 37 (1988): 335–42.) On day 18 of gestation, the fetus was removed and examined for malformations in the front legs. Display 21.17 shows the results. (a) Suppose that the response
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

666 Chapter 21 Logistic Regression for Binomial Counts
variable for each mouse fetus is the number of forelimbs with malformations. Explain how logistic regression can be used to study the relationship between malformation probability and dose. (b) What is the sample size? (c) Is it necessary to worry about extra-binomial variation? (d) Is it appropriate to use the deviance goodness-of-fit test for model checking? (e) Is it appropriate to obtain a confidence interval for the effect of dose? (f) How would the resulting confidence interval be used in a sentence summarizing the statistical analysis?
8. If your computer software always produces binary response deviances, how can you determine the lack-of-fit chi-square for the moth data? (See Section 21.7.1.)
Computational Exercises
9. Moth Coloration. For the moth coloration data in Section 21.1.1, consider the response count to be the number of light moths removed and the binomial denominator to be the total number of moths removed (light and dark) at each location. (a) Plot the logit of the proportion of light moths removed versus distance from Liverpool. (b) Fit the logistic regression model with distance as the explanatory variable; then report the estimates and standard errors. (c) Compute the deviance goodness-of-fit test statistic, and obtain a p-value for testing the adequacy of the model.
10. Death Penalty and Race of Victim. Reconsider the data of Display 19.2 involving death penalty and race of victim. Reanalyze these data using logistic regression. The response variable is the number of convicted murderers in each category who receive the death sentence, out of the m convicted murderers in that category. (a) Plot the logits of the observed proportions versus the level of aggravation. The logit, however, is undefined for the rows where the proportion is 0 or 1, so compute the empirical logit D logŒ.y C 0:5/=.m 􏰀 y C 0:5/ and plot this versus aggravation level, using different plotting symbols to distinguish proportions based on white and black victims. (b) Fit the logistic regression of death sentence proportions on aggravation level and an indicator variable for race of victim. (c) Report the p-value from the deviance goodness-of-fit test for this fit. (d) Test whether the coefficient of the indicator variable for race is equal to 0, using the Wald’s test. (e) Construct a confidence interval for the same coefficient, and interpret it in a sentence about the odds of death sentence for white-victim murderers relative to black-victim murderers, accounting for aggravation level of the crime.
11. Death Penalty and Race of Victim. Fit a logistic regression model as in Exercise 10, but treat aggravation level as a factor. Include the products of the race variable with the aggravation level indicators to model interaction, and determine the drop in deviance for including them. This constitutes a test of the equal odds ratio assumption, which could be used to check the assumption for the Mantel–Haenszel test. What can you conclude about the assumption?
12. Vitamin C and Colds. Reconsider the data in Display 18.2 from the randomized experiment on 818 volunteers. Let Yi represent the number of individuals with colds in group i , out of mi . Let Xi be an indicator variable that takes on the value 1 for the placebo group and 0 for the vitamin C group. Then the observed values for the two groups are:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 21.17 Dose of acetazolamide and number of malformed forelimbs in mouse fetuses Dose (mg / kg) Number of malformed forelimbs Sample size
012

21.9 Exercises 667
Group (i) Individuals with Colds (Y) Group size (m) Placebo indicator (X) 1 335 411 1
2 302 407 0
Consider the logistic regression model in which Yi is binomial.i ; mi / and logit.i / D ˇ0 C ˇ1 Xi . (a) Using a computer package, obtain an estimate of and a confidence interval for ˇ1. (b) Interpret the results in terms of the odds of cold for the placebo group relative to the odds of a cold for the vitamin C group. (c) How does the answer to part (b) compare to the answer in Display 18.9?
13. Vitamin C. Between December 1972 and February 1973, a large number of volunteers partic- ipated in a randomized experiment to assess the effect of large doses of vitamin C on the incidence of colds. (Data from T. W. Anderson, G. Suranyi, and G. H. Beaton, “The Effect on Winter Illness of Large Doses of Vitamin C,” Canadian Medical Association Journal 111 (1974): 31–36.) The subjects were given tablets to take daily, but neither the subjects nor the doctors who evaluated them were aware of the dose of vitamin C contained in the tablets. Shown in Display 21.18 are the proportion of subjects in each of the four dose categories who did not report any illnesses during the study period.
DISPLAY 21.18 Vitamin C and colds
Daily dose of Number of Number with Proportion with vitamin C (g) subjects no illnesses no illnesses
(a) For each of the four dose groups, calculate the logit of the estimated proportion. Plot the logit versus the dose of vitamin C. (b) Fit the logistic regression model, logit./ D ˇ0 C ˇ1 dose. Report the estimated coefficients and their standard errors. Report the p-value from the deviance goodness- of-fit test. Report the p-value for a Wald’s test that ˇ1 is 0. Report the p-value for a drop-in-deviance test for the hypothesis that ˇ1 is 0. (c) What can be concluded about the adequacy of the binomial logistic regression model? What evidence is there that the odds of a cold are associated with the dose of vitamin C?
14. Spock Conspiracy Trial. Reconsider the proportions of women on venires in the Boston U.S. district courts (case study 5.2). Analyze the data by treating the number of women out of 30 people on a venire as a binomial response. (a) Do the odds of a female on a venire differ for the different judges? Answer this with a drop-in-deviance chi-square test, comparing the full model with judge as a factor to the reduced model with only an intercept. (b) Do judges A–F differ in their probabilities of selecting females on the venire? Answer this with a drop-in-deviance chi-square test by comparing the full model with judge as a factor to the reduced model that has an intercept and an indicator variable for Spock’s judge. (c) How different are the odds of a woman on Spock’s judge’s venires from the odds on the other judges? Answer this by interpreting the coefficients in the binomial logistic regression model with an intercept and an indicator variable for Spock’s judge.
Data Problems
15. Belief Accessibility. Increasingly, politicians look to public opinion surveys to shape their public stances. Does this represent the ultimate in democracy? Or are seemingly scientific polls being
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

668 Chapter 21 Logistic Regression for Binomial Counts
DISPLAY 21.19
rigged by the manner of questioning? Psychologists believe that opinions—expressed as answers to questions—are usually generated at the time the question is asked. Answers are based on a quick sampling of relevant beliefs held by the subject, rather than a systematic canvas of all such beliefs. Furthermore, this sampling of beliefs tends to overrepresent whatever beliefs happen to be most accessible at the time the question is asked. This aspect of delivering opinions can be abused by the pollster. Here, for example, is one sequence of questions: (1) “Do you believe the Bill of Rights protects personal freedom?” (2) “Are you in favor of a ban on handguns?” Here is another: (1) “Do you think something should be done to reduce violent crime?” (2) “Are you in favor of a ban on handguns?” The proportion of yes answers to question 2 may be quite different depending on which question 1 is asked first.
To study the effect of context questions prior to a target question, researchers conducted a poll involving 1,054 subjects selected randomly from the Chicago phone directory. To include pos- sibly unlisted phones, selected numbers were randomly altered in the last position. (Data from R. Tourangeau, K. A. Rasinski, N. Bradburn, and R. D’Andrade, “Belief Accessibility and Context Effects in Attitude Measurement,” Journal of Experimental Social Psychology 25 (1989): 401–21.) The data in Display 21.19 show the responses to one of the questions asked concerning continuing U.S. aid to the Nicaraguan Contra rebels. Eight different versions of the interview were given, rep- resenting all possible combinations of three factors at each of two levels. The experimental factors were CONTEXT, MODE, and LEVEL. CONTEXT refers to the type of context questions preced- ing the question about Nicaraguan aid. Some subjects received a context question about Vietnam, designed to elicit reticence about having the United States become involved in another foreign war in a third-world country. The other context question was about Cuba, designed to elicit anti-communist sentiments. MODE refers to whether the target question immediately followed the context question or whether there were other questions scattered in between. LEVEL refers to two versions of the context question. In the HIGH LEVEL the question was worded to elicit a higher level of agreement than in the LOW LEVEL wording.
Analyze these data to answer the following questions of interest: (a) Does the proportion of favorable responses to the target question depend on the wording (LEVEL) of the question? If so, by how much? (b) Does the proportion depend on the context question? If so, by how much? (c) Does the proportion depend on the context question to different extents according to whether the target and context questions are scattered? (Hint: Use indicator explanatory variables for the factors.)
16. Aflatoxicol and Liver Tumors in Trout. An experiment at the Marine/Freshwater Biomed- ical Sciences Center at Oregon State University investigated the carcinogenic effects of aflatoxicol, a metabolite of Aflatoxin B1, which is a toxic by-product produced by a mold that infects cottonseed meal, peanuts, and grains. Twenty tanks of rainbow trout embryos were exposed to one of five doses
Opinion polls and belief accessibility: CONTEXT refers to the context of the question preceding the target question about U.S. aid to the Nicaraguan Contra rebels; MODE is ‘‘scattered’’ if the target question was not asked directly after the context question; and LEVEL refers to the wording of the question (‘‘high’’ designed to elicit a higher favorable response)
Vietnam scattered high
Cuba Vietnam scattered scattered high low
Cuba Vietnam scattered not
low high
Cuba Vietnam Cuba not not not high low low
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 21.20
of Aflatoxicol for one hour. The data in Display 21.20 (from George Bailey and Jerry Hendricks) represent the numbers of fish in each tank and the numbers of these that had liver tumors after one year. Describe the relationship between dose of Aflatoxicol and odds of liver tumor. It is also of interest to determine the dose at which 50% of the fish will get liver tumors. (Note: Tank effects are to be expected, meaning that tanks given the same dose may have slightly different ’s. Thus, one should suspect extra-binomial variation.)
Aflatoxicol and liver tumors in trout (four tanks at each dose)
Dose (ppm) Number of trout with liver tumors (Y)/Number in tank (m)
17. Effect of Stress During Conception on Odds of a Male Birth. The probability of a male birth in humans is about 0.51. It has previously been noticed that lower proportions of male births are observed when offspring are conceived at times of exposure to smog, floods, or earthquakes. Danish researchers hypothesized that sources of stress associated with severe life events may also have some bearing on the sex ratio. To investigate this theory they obtained the sexes of all 3,072 children who were born in Denmark between January 1, 1980 and December 31, 1992 to women who experienced the following kinds of severe life events in the year of the birth or the year prior to the birth: death or admission to hospital for cancer or heart attack of their partner or of their other children. They also obtained sexes on a sample of 20,337 births for mothers who did not experience these life stress episodes. Shown in Display 21.21 are the percentages of boys among the births, grouped according to when the severe life event took place. Notice that for one group the exposure is listed as taking place during the first trimester of pregnancy. The rationale for this is that the stress associated with the cancer or heart attack of a family member may well have started before the recorded time of death or hospital admission. Analyze the data to investigate the researchers’ hypothesis. Write a summary of statistical findings. (Data from D. Hansen et al., “Severe Periconceptional Life Events and the Sex Ratio in Offspring: Follow Up Study Based on Five National Registers,” British Medical Journal, 319 (1999): 548–49.)
18. HIV and Circumcision. Researchers in Kenya identified a cohort of more than 1,000 pros- titutes who were known to be a major reservoir of sexually transmitted diseases in 1985. It was determined that more than 85% of them were infected with human immunodeficiency virus (HIV)
Percentages of boys born to mothers in a control group and to mothers exposed to severe life events, at various times in relation to the birth
Group Time of stress event Number of births % boys
DISPLAY 21.21
21.9 Exercises 669
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

670 Chapter 21 Logistic Regression for Binomial Counts
DISPLAY 21.22
in February 1986. The researchers then identified men who acquired a sexually transmitted disease from this group of women after the men sought treatment at a free clinic. Display 21.22 shows the subset of those men who did not test positive for the HIV on their first visit and who agreed to par- ticipate in the study. The men are categorized according to whether they later tested positive for HIV during the study period, whether they had one or multiple sexual contacts with the prostitutes, and whether they were circumcised. Describe how the odds of testing positive are associated with number of contacts and with whether the male was circumcised. (Data from D. W. Cameron et al., “Female to Male Transmission of Human Immunodeficiency Virus Type 1: Risk Factors for Seroconversion in Men,” The Lancet (1989): 403–07.)
Number of Kenyan men who tested positive for HIV, categorized according to two possible risk factors
Single contact with prostitutes Multiple contact with prostitutes
Circumcised Uncircumcised Circumcised Uncircumcised
19. Meta-Analysis of Breast Cancer and Lactation Studies. Meta-analysis refers to the analysis of analyses. When the main results of studies can be cast into 2  2 tables of counts, it is natural to combine individual odds ratios with a logistic regression model that includes a factor to account for different odds from the different studies. In addition, the odds ratio itself might differ slightly among studies because of different effects on different populations or different research techniques. One approach for dealing with this is to suppose an underlying common odds ratio and to model between-study variability as extra-binomial variation. Display 21.23 shows the results of 10 separate case–control studies on the association of breast cancer and whether a woman had breast fed children. How much greater are the odds of breast cancer for those who did not breast feed than for those who did breast feed? (Data gathered from various sources by Karolyn Kolassa as part of a Master’s project, Oregon State University.)
20. Clever Hans Effect. Exercise 14.19 described a randomized block experiment conducted on psychology students to examine the effects of expectations—induced in the experiment by falsely telling some of the students that their rats were bred to be good maze learners—on the students’ success in training the rats. The number of successful maze runs, out of 50, was recorded for each student on each of five consecutive days. Data file ex2120 repeats the data but in a revised format, with the responses on the five days listed on separate rows in the variable Success. There are 60 rows corresponding to five responses for each of the 12 students in the study. Also listed are the students reported expectation of success (PriorExp) prior to the randomization and commencement
Counts from 10 case–control studies investigating the association between cancer and whether women had breast fed children (lactated); first 4 of 20 rows
Study Breast cancer No breast cancer
DISPLAY 21.23
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

21.9 Exercises 671
of the study, a student ID (Student), Treatment (bright if students were told their rats were bright and dull if not), and Day of the experiment. Analyze the data to judge the effect of the treatment on the students’ success. (It isn’t possible to simultaneously estimate a Treatment Effect and a Student Effect. Try including PriorExp instead of Student as a way of modeling the possible student effect. To more specifically deal with dependence of observations on the same student, use GEE, as discussed in Section 21.7.5. Be alert for possible overdispersion.)
21. Predicting Quality of Spring Desert Wildflower Display (Ordered Categorical Response).
Review the description of the desert wildflower data problem in Exercise 12.21. The response for each desert–year combination is the subjectively rated quality of the spring wildflower display, with ordered response categories poor, fair, good, great, and spectacular. Use a computer routine for regression on ordered categorical responses (such as proportional odds logistic regression with polr in R or proc logistic in SAS) to fit a regression model with wildflower display quality as the ordered categorical response and total rainfall in the months September to March as an explanatory variable.
22. Environmental Voting. The data file ex0126 includes the number of pro-environment and anti-environment votes cast by each member of the U.S. House of Representatives in 2005, 2006, and 2007 (according to the League of Conservation Voters). Describe the disparity between Republican and Democratic representatives on the probability of casting a pro-environment vote after accounting for Year. Ignore representatives from parties other than D and R.
Answers to Conceptual Exercises
1. Neighboring islands are likely to be more similar in the types of species present and in the likeli- hood of extinction for each species, than islands farther apart. Another possibility is that extinctions of (migratory) shorebirds can occur in another part of the world and simultaneously affect all or several of the Krunnit Islands populations.
2. (a) Sites the same distance from Liverpool may have different probabilities of removal for dark and light morphs because the blackening of the trees may depend on more than simple distance from Liverpool. (b) The question is not whether the probability of removal depends on the covariate distance from Liverpool or on the factor morph, but whether the probability of removal depends on distance from Liverpool to a different extent for light morphs than for dark morphs. (c) Let m be the number of moths removed at a location. Let Y be the number of these that are dark morphs. How does the proportion of removed moths that are dark morphs depend on distance from Liverpool?
3. Choices (b) and (c).
4. (a) Increasing. (b) Decreasing.
5. (a) Partly. The Wald’s test and the drop-in-deviance test both can be used if either the sample
size is large or the binomial denominators are large. (b) The test is useful as an informal device for assessing the model in each case. It may be more relevant when the denominators are small, however, since few alternatives are available for model checking in this case.
6. The assumed variance is mi i .1 􏰀 i /: The dispersion parameter is introduced to allow for variance greater than (or possibly less than) that expected from a binomial response.
7. (a) Suppose that Yi is binomial.2;i/ with logit.i/ D ˇ0 C ˇ1dosei for i D 1;:::;588: Explore the adequacy of this model. If it fits, make inferences about ˇ1: (b) 588. (c) Probably not, since the denominators are all so small. (d) No, the denominators are too small. (e) Yes. (f) “The odds of a malformation are estimated to increase by (lower limit) to (upper limit) for each 100 mg/kg of acetazolamide (95% confidence interval).” (Note: If L and U are the lower and upper endpoints of a confidence interval for ˇ1 , then the interval in this sentence is exp(100L) and exp(100U ).)
8. Compare the deviance from the model of interest to the deviance from the full model, with a separate mean for each morph at each location.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 22 Log-Linear Regression
for Poisson Counts
672
The number of traffic accidents at an intersection over a year, the number of shrimp caught in a 1-kilometer tow of a net, the number of outbreaks of an infectious disease in a county during a year, and the number of flaws on a computer chip are examples of responses that consist of integer counts. Such counts differ from binomial counts of successes in a fixed number of trials, where each trial contributes either C1 or 0 to the total. They are counts of the occurrences of some event over time or space, without a definite upper bound. The Poisson probability distribution is often useful for describing the population distribution of these types of counts. A related regression model—Poisson log-linear regression—specifies that the logarithms of the means of Poisson responses are linear in regression coefficients.
Poisson log-linear regression, like binomial logistic regression, is a generalized linear model. The tools for analysis are similar to those described in Chapters 20 and 21. Furthermore, the tools extend to account for responses that are Poisson-like but possess excess variation, through addition of a dispersion parameter and use of quasi-likelihood analysis.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

22.1
CASE STUDIES
22.1.1
Age and Mating Success of
Male Elephants—An Observational Study
Although male elephants are capable of reproducing by 14 to 17 years of age, young adult males are usually unsuccessful in competing with their larger elders for the attention of receptive females. Since male elephants continue to grow throughout their lifetimes, and since larger males tend to be more successful at mating, the males most likely to pass their genes to future generations are those whose charac- teristics enable them to live long lives. Joyce Poole studied a population of African elephants in Amboseli National Park, Kenya, for 8 years. Display 22.1 shows the number of successful matings and ages (at the study’s beginning) of 41 male ele- phants. (Data from J. H. Poole, “Mate Guarding, Reproductive Success and Female Choice in African Elephants,” Animal Behavior 37 (1989): 842–49.) What is the rela- tionship between mating success and age? Do males have diminished success after reaching some optimal age?
Age at beginning of study and number of successful matings for 41 African elephants
Age Matings Age Matings Age Matings
DISPLAY 22.1
22.1 Case Studies 673
Statistical Conclusion
The average number of successful matings increased with age, for male elephants between 25 and 50 years old (Display 22.2). The data provide no evidence that the mean reached some maximum value at any age less than 50 (the one-sided p-value for significance of a quadratic term in the log-linear regression is 0.33). The estimated mean number of successful matings (in 8 years) for 27-year-old males was 1.31, and the mean increased by a factor of 2.00 for each 10-year increase in age up to about 50 years (95% confidence interval for the multiplicative factor: 1.52 to 2.60).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

674
Chapter 22 Log-Linear Regression for Poisson Counts
DISPLAY 22.2
10
5
0
Counts of successful matings versus age for 41 male African elephants (jittered to avoid overlapping points): the curve is the estimated log-linear regression model for the mean count
30 35 40 45 50
Age (years)—Slightly Jittered
22.1.2
Scope of Inference
There may be some bias in these results, due to measurement error in estimating the age of each elephant and lack of independence of the counts for different males. Bias would also result if successful matings were not correctly attributed. These problems have only minor effects on the relatively informal conclusions obtained. Attempting to apply inferences from these data to a wider elephant population would require careful attention to the method of sampling used.
Characteristics Associated with Salamander Habitat
The Del Norte Salamander (plethodon elongates) is a small (5–7cm) salamander found among rock rubble, rock outcrops, and moss-covered talus in a narrow range of northwest California. To study the habitat characteristics of the species and particularly the tendency of these salamanders to reside in dwindling old-growth forests, researchers selected 47 sites from plausible salamander habitat in national forest and parkland. Randomly chosen grid points were searched for the presence of a site with suitable rocky habitat. At each suitable site, a 7 meter by 7 meter search area was examined for the number of salamanders it contained. Shown in Display 22.3 are the counts of salamanders at the sites, along with the percentage of forest canopy cover and the age of the forest in years. How is the size of the salamander count related to canopy cover and forest age? (Data from H. H. Welsh and A. J. Lind, Journal of Herpetology 29(2) 1995: 198–210.)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Number of Matings

DISPLAY 22.3
Salamanders found in a 49 m2 area, percentage of canopy cover, and forest age in 47 northern California sites
22.1 Case Studies 675
Site Salamanders % cover Forest age Site Salamanders % cover Forest age
Statistical Conclusion
After accounting for canopy cover, there is no evidence that the mean number of salamanders depends on forest age (p-value D 0:78, from F D 0:53, with 6 and 35 d.f., from a quasi-likelihood fit to a log-linear model). Two distinct canopy cover conditions were evident: closed canopy with percentage >70% and open canopy with percentage <70%. The mean number of salamanders followed different curved relationships under the two conditions (p-value D 0.0185 from a t-test). A graph of the resulting fit appears in Display 22.4. Scope of Inference Inference to the totality of suitable sites should be possible, because of the manner of site selection. Causal inference is not possible from this observational study. Fur- thermore, with this kind of study involving animal counts, one must be concerned about issues of detectability. The detectability of an animal is the chance it will be found and counted given that it is present at the site. If detectability is related to variables used to model the mean animal counts and if its influence is not taken Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 676 Chapter 22 Log-Linear Regression for Poisson Counts DISPLAY 22.4 Salamander numbers vs. percentage canopy cover, with Poisson regression fit 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 10 20 30 40 50 60 70 80 90 100 Percentage of Canopy Cover 22.2 into account, the results can be quite misleading. Here, for example, more open canopy conditions could force the salamanders to seek relief from sunlight by going deeper in the rock piles where they are more difficult to find. LOG-LINEAR REGRESSION FOR POISSON RESPONSES 22.2.1 Poisson Responses The response variables in the two case studies are counts—the count of successful elephant matings in 8 years of observation, and the count of salamanders in a 7 m square plot. Counts of events or objects occurring in specified time intervals or in specified geographical areas differ from binomial counts. The Poisson Probability Distribution Sim ́eon Denis Poisson’s treatise on probability theory, “Recherches sur la proba- bilit ́e des jugements en mati`ere criminelle et en mati`ere civile” (Research on the probability of judgements in criminal and in civil matters) (1837), examines the form that the binomial distribution takes for large numbers of trials with small probabilities of success on any given trial. The limiting form of the distribution has Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Salamander Count 22.2 Log-Linear Regression for Poisson Responses 677 no upper limit to the count of successes; the probability of obtaining Y successes is given by the formula ProbabilityfYgDexp.􏰀/Y=YŠ; foranyY D0;1;2;:::; where  is the mean. The distributions described by this mathematical rule have continued to carry Poisson’s name. Since Poisson’s time, the distribution has been used to model a wide variety of situations. It is most appropriate for counts of rare events that occur at completely random points in space or time. Its general features make it a reasonable approx- imation to a wider class of problems involving count data where spread increases with the mean. The Poisson distribution has several characteristic features: 1. The variance is equal to the mean. 2. The distribution tends to be skewed to the right, and this skewness is most pronounced when the mean is small. 3. Poisson distributions with larger means tend to be well-approximated by a normal distribution. 22.2.2 The Poisson Log-Linear Model With a count response and explanatory variables, the Poisson log-linear regression model specifies that the distribution of the response is Poisson and that the log of the mean is linear in regression coefficients: This is a generalized linear model with a Poisson response distribution. The link function, which relates the response mean to the explanatory variables, is the logarithm. A hypothetical example is illustrated in Display 22.5. The distribution of the response, as a function of a single explanatory variable X, is Poisson; and with  representing fY jX g, the log-linear model is log./ D 􏰀1:7 C 0:20X . Poisson probability histograms are displayed at X D 5; 14, and 20. Notice that the regression is nonlinear in X , as expected, since fY jX g D exp .􏰀 1:7 C 0:20X /. In addition, the variance is greater for distributions with larger means. The skewness of the Poisson distribution is substantial when the mean is small, but it diminishes with increasing mean. Poisson Regression or Transformation of the Response? Taking the logarithm of the response helps to straighten out the relationship. For the situation in Display 22.5, flog.Y /jX g is approximately a straight line function Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. A Poisson Log-Linear Regression Model Y is Poisson, with fY jX1; X2g D  log./ D ˇ0 C ˇ1X1 C ˇ2X2. 678 Chapter 22 Log-Linear Regression for Poisson Counts DISPLAY 22.5 A representation of a log-linear model in which the distribution of Y (as a function of X) is Poisson with mean  and log() D 􏰀1.7 C 0.20X; the histograms are the Poisson distributions of Y at three values of X 20 Y 15 10 5 0 0 5 10 15 20 X of X. On the other hand, the variance is still nonconstant after this transformation. The transformation that stabilizes the variance is the square root: VarfY1=2jXg is approximately constant. Both transformations, therefore, are somewhat unsatis- factory. Poisson log-linear regression offers a more suitable approach and does not involve a transformation of the response. Example—Elephant Matings The response variable is the number of successful matings, and the explanatory variable is the elephant’s age. If the Poisson log-linear model is used, the numbers of successful matings are taken to be Poisson distributed, and the mean number of counts as a function of age is specified by the log-linear model: log./ D ˇ0 C ˇ1age or equivalently,  D exp.ˇ0 C ˇ1age/: Thus an increase of one year in age is associated with a K-fold change in the mean number of matings, where K D exp.ˇ1/. The estimated log-linear model is drawn on the scatterplot in Display 22.2. The estimate of ˇ1 is 0.069, so an increase in 1 year of age is estimated to be associated with a 1.07-fold change in the mean number of successful matings (a 7% increase in the mean for each additional year of age). Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. DISPLAY 22.6 Maximum likelihood fitting by a Poisson log-linear regression computer package yields a familiar display of coefficients and standard errors. A fit of a quadratic log-linear model to the elephant mating data appears in Display 22.6. The tools involved in the maximum likelihood analysis, including residuals, the deviance goodness-of-fit test, Wald’s tests and confidence intervals, and the drop-in-deviance test are used in the same way as for binomial logistic regression. These are discussed in the next few sections and demonstrated in connection with the case studies. Poisson log-linear regression of number of successful matings on age and age-squared, from observations on 41 male elephants: log() D ˇ0 C ˇ1age C ˇ2age2 22.3 MODEL ASSESSMENT 22.3.1 Scatterplot of Logged Counts Versus an Explanatory Variable Initial exploration often involves plotting the logarithms of responses versus one or more explanatory variables, using graphical techniques such as coding and jittering. Display 22.2 shows the number of matings (not the log of the number of matings) versus elephant age. This is useful in the summary, but it does not indicate the appropriateness of the model. A plot of the log of the number of counts versus age would better illustrate the linearity on the log scale. As with empirical logits, however, some small amount like 1/2 needs to be added to the counts if some of them are zero, so that the logarithm can be computed. 22.3.2 Residuals The issues involved in using residuals are similar to those for binomial logistic regres- sion. The formal definition of a deviance residual—as the maximum possible value of the logarithm of the likelihood at observation i minus the value of the logarithm of the likelihood estimated from the current model—remains unchanged. However, the definition leads to the following somewhat different formula for Poisson regression: 22.3 Model Assessment 679 22.2.3 Estimation by Maximum Likelihood Variable Coefficient Standard error z-statistic Two-sided p-value Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 680 Chapter 22 Log-Linear Regression for Poisson Counts Deviance Residual for Poisson Regression Dresi Dsign.Yi 􏰀Oi/s2Yi logYi 􏰀Yi COi: O i Pearson Residual for Poisson Regression Y i 􏰀 O i Presi D pO : i 22.3.3 As before, practitioners with access to computer software can disregard the unpleasant appearance of this formula. Subsequent uses of these residuals are straightforward and resemble uses of standard residuals in ordinary regression. A Pearson residual is an observed response minus its estimated mean, divided by its estimated standard deviation. Since the mean and the variance are both  for Poisson response variables, the formula for a Pearson residual is Typically, the analyst examines one set of residuals, not both, depending on what is available in the computer package being used. The deviance residuals are somewhat more reliable for detecting outliers, but the Pearson residuals are easier to interpret. Usually, the two sets of residuals are similar. More important differences occur when they are used for extra-sum-of-squares tests to compare models. If the Poisson means are large, the distributions of both deviance and Pearson residuals are approximately standard normal. Thus, problems are indicated if more than 5% of residuals exceed 2 in magnitude or if one or two residuals greatly exceed 2. If the Poisson means are small (<5)—as they are in both case studies— neither set of residuals follows a normal distribution very well, so comparison to a standard normal distribution provides a poor look at lack of fit. Display 22.7 shows a plot of the deviance residuals for the salamander study. The overall pattern of large-magnitude residuals is evident. The Deviance Goodness-of-Fit Test A deviance goodness-of-fit test provides an informal assessment of the adequacy of a fitted model. The term informal is used here to emphasize that the p-value is sometimes unreliable. The test is not particularly good at detecting model inade- quacies, and it needs to be used in conjunction with plots and tests of model terms for assessing the adequacy of a particular fit. A large p-value indicates either that the model is adequate or that insufficient data are available to detect inadequacies. A small p-value may indicate any of three things: the model for the mean is incor- rect (for example, because the set of explanatory variables is insufficient); that the Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 22.3 Model Assessment 681 DISPLAY 22.7 Deviance residuals versus fitted mean salamander counts from the fit of a log-linear regression on forest age, age squared, canopy cover, cover squared, age times cover, an indicator of canopy closure >70%, and the products of the indicator with all previous variables
+3 +2 +1
0 –1 –2 –3
01234567
Fitted Means
Poisson is an inadequate model for the response distribution; or that a few severely outlying observations are contaminating the data.
The deviance goodness-of-fit test is similar to the lack-of-fit F -test in normal regression. It compares the fit of a model to that of a saturated model in which each observation’s mean is estimated by the observation itself. The p-value is obtained by comparing the deviance statistic to a chi-squared distribution on n 􏰀 p degrees of freedom, where p is the number of parameters in the model:
The chi-square approximation to the null distribution of the deviance statistic is valid when the Poisson means are large. If a substantial proportion of the cases have estimated means of less than 5, it is potentially misleading to rely on the deviance test as a tool for model assessment. Other tools, particularly testing of extra terms that represent model inadequacy, should be used instead.
Elephant Matings Example
The deviance statistic, 50.83, is provided in the output of Display 22.6 for the log- linear regression of number of matings on age and age-squared. As Display 22.2 makes clear, however, most of the estimated means are less than 5 and many are
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Deviance Statistic D Sum of Squared Deviance Residuals Approximate p-value D Pr(2n􏰀p > Deviance Statistic).
Deviance Residual

682
Chapter 22 Log-Linear Regression for Poisson Counts
22.4
less than 2. Thus, it is not prudent to compare 50.83 to a chi-square distribution as a goodness-of-fit test for this model with these data.
Salamander Example
The objective of the salamander study is to describe the relationship of salamander numbers to forest age and canopy cover. A matrix of scatterplots, Display 22.9, suggests either a very simple situation or perhaps a very complex one. There is a substantial break in canopy cover percentage, separating closed canopy (percent- age >70) from open canopy (percentage <60) conditions. The simple explanation would be that the mean salamander count depends only on this dichotomy, with no additional structure. Complex models could involve curvatures and interactions. Initially, a rich, complex model is fit. The model for the log-mean is a saturated second-order model in forest age and canopy cover (including squares and their product), with possibly differing coefficients in open and closed canopy regimes. The residuals from this model—shown in Display 22.7—combine to give a deviance of 89.18 with 35 degrees of freedom. As a rough test of goodness of fit, one may compare this deviance to a chi-square distribution with 35 degrees of freedom. Since Pr(235 > 89:13) is less than 0.0001, this would constitute substantial evidence that the Poisson log-linear model does not fit well. (This is “rough” because the adequacy of the approximation based on large Poisson means is questionable in this problem.) Furthermore, as is evident in Display 22.7, the large deviance statistic is not due to one or two outlying observations; many (10 of 47) residuals fall outside the normal 􏰀2 to C2 limits. This leads to the conclusion that variability exceeds what is predicted by the Poisson distribution.
The quasi-likelihood approach (Section 22.5) allows for such extra-Poisson vari- ation. It is an approximate procedure, and here the approximation results from the difficulty imposed by small counts. Quasi-likelihood is, however, the most appro- priate tool available, so it is used to draw inferences about individual terms in the model. An “approximate” warning is included in all inferential statements.
22.3.4 The Pearson Chi-Squared Goodness-of-Fit Test
Another goodness-of-fit test statistic with the same purpose as the deviance goodness-of-fit test statistic is the sum of squared Pearson residuals. Its p-value, too, is obtained by comparing the observed statistic to a chi-squared distribution on n 􏰀 p degrees of freedom. Although the deviance goodness-of-fit test is generally preferred, the Pearson test is important for historical reasons and for its current widespread use to analyze tables of counts.
INFERENCES ABOUT LOG-LINEAR REGRESSION COEFFICIENTS
With the Poisson log-linear regression model, tests and confidence intervals for parameters are based on maximum likelihood analysis. The Wald procedure applies to tests and confidence intervals for single coefficients. The drop-in-deviance test
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

22.4.1
compares a full to a reduced model, particularly for hypotheses that several regression coefficients are simultaneously zero.
Wald’s Test and Confidence Interval for Single Coefficients
The estimated regression coefficients and their standard errors are calculated by the maximum likelihood method. The sampling distributions of the estimated coef- ficients are approximately normal if either the sample size is large or the Poisson means are large. Tests and confidence intervals are constructed with the estimates, their standard errors, and tabled values of the standard normal distribution.
Example—Elephant Matings
A main question asked is whether the mean number of successful matings tends to peak at some age and then decrease, or whether the mean continues to increase with age. The inclusion of an age-squared term in the model addresses this question. If a peak occurs at some age, the coefficient of the age-squared term is not zero. Therefore, the test for a peak is accomplished through a test that the coefficient of age-squared is zero. Display 22.6 indicates that the two-sided p-value is 0.67. There is no evidence of any need for a quadratic term in the log-linear model.
Display 22.8 shows the fit of the data without the quadratic term. A confidence interval for the coefficient of age is constructed in the usual way. The estimate of the coefficient, 0.0687, is interpreted as follows: a 1-year increase in age is associated with a multiplicative change in the mean number of successful matings by a factor of exp.0:0687/ D 1:071. In words: Each additional year of age is associated with a 7.1% increase in the mean number of successful matings. A 95% confidence interval for the coefficient of age is 0.0417 to 0.0956. Antilogarithms produce a 95% confidence interval for the multiplicative factor by which the mean changes with one year of age—1.043 to 1.100.
The Drop-in-Deviance Test
The drop-in-deviance test compares a full model to a reduced version. For the test of a single coefficient, the analyst may use either the drop-in-deviance test or
Poisson log-linear regression of number of matings on age
Coefficients Estimate Standard error z-statistic p-value
± to
22.4.2
DISPLAY 22.8
22.4 Inferences About Log-Linear Regression Coefficients 683
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

684
Chapter 22 Log-Linear Regression for Poisson Counts
22.5
Wald’s test. Wald’s test is more convenient, but the drop-in-deviance test is more reliable. Its approximate p-value is more accurate, especially if the sample size and the Poisson means are not large. A common practice is to adopt Wald’s test for a casual determination of significance or when the test’s p-value is very small or very large, and to use the drop-in-deviance test if the test is an especially important aspect of the analysis or when the Wald’s test p-value does not provide a conclusive result.
Like other tests based on extra sums of squared residuals, this test is appro- priate when a full model is deemed to fit well and when the hypothesis of interest places restrictions on some of the coefficients. The drop-in-deviance test statistic is the deviance statistic from a fit to the reduced model minus the deviance statistic from the full model. This extra sum of squared residuals is the variability explained by the terms that are included in the full model but absent from the reduced model. If the reduced model is adequate, the sampling distribution of the drop in deviance has an approximate chi-squared distribution with degrees of freedom equal to the number of unknown coefficients in the full model minus the number of unknown coefficients in the reduced model.
Example—Elephant Matings
The Wald’s test for the significance of the age-squared term was included in the output of the fit to the model with age and age-squared (Display 22.6). To obtain the more accurate p-value from the drop-in-deviance test, fit both models and compute the drop in deviance. The deviance from the fit without age-squared is 51.01. The deviance from the fit with age-squared is 50.83. The drop in deviance due to including age-squared in the model that already has age, therefore, is 0.18. The p-value (two-sided) is the probability that a chi-squared distribution on 1 degree of freedom is greater than 0.18. The answer, 0.67, is essentially the same as that provided by the two-sided p-value from the Wald’s test.
EXTRA-POISSON VARIATION AND THE LOG-LINEAR MODEL 22.5.1 Extra-Poisson Variation
The Poisson distribution is one of many distributions that assign probabilities to outcomes for counted responses. It is a good choice, especially for processes that generate events uniformly over time or space. Sometimes, however, unmeasured effects, clustering of events, or other contaminating influences combine to produce more variation in the responses than is predicted by the Poisson model. Using Poisson log-linear regression when such extra-Poisson variation is present has three consequences: parameter estimates are still roughly unbiased; but standard errors are smaller than they should be; and tests give smaller p-values than are truly warranted by the data. The last two consequences are problems that must be addressed.
The quasi-likelihood approach, as shown in Chapter 21, is a method for extend- ing the model to allow for this possibility. It is based on a slight modification of the
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

22.5 Extra-Poisson Variation and the Log-Linear Model 685
model for the mean and variance of the response. In particular, the model specifies only the mean and the variance of the responses (not the entire distribution), and it allows an additional parameter to account for more variability than is predicted by the Poisson distribution. For the case of two explanatory variables, the model for extra-Poisson variation is
The extra parameter , which again is referred to as the dispersion parameter, captures the extra variation. If the variance of the responses is like the Poisson variance, then D 1. If the variance is larger or smaller than the mean, then will be larger or smaller than 1.
22.5.2 Checking for Extra-Poisson Variation
There are four ways to check for extra-Poisson variation:
1. Think about whether extra-Poisson variation is likely.
2. Compare the sample variances to the sample averages computed for groups of
responses with identical explanatory variable values.
3. Examine the deviance goodness-of-fit test after fitting a rich model.
4. Examine residuals to see if a large deviance statistic may be due to outliers.
A combination of these usually decides the issue. When the situation is dubious, it is safest to assume that extra-Poisson variation is present.
Consider the Situation
Extra-Poisson variation should be expected when important explanatory variables are not available, when individuals with the same level of explanatory variables may for some reason behave differently, and when the events making up the count are clustered or spaced systematically through time or space, rather than being randomly spaced. However, if the means are all fairly small—less than 5, say—there is seldom reason to worry about extra-Poisson variation.
Plot Variances Against Averages
If responses are grouped by identical values of the explanatory variables, a sample variance and a sample average can be computed for each group. If the responses are Poisson, the sample variances should be approximately equal to the averages. Plot- ting variances against averages can reveal gross exceptions, and it can also suggest whether the quasi-likelihood model of proportionality is preferable. Plots based on
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
A Log-Linear Model That Permits Extra-Poisson Variation
fYijX1i;X2ig D i VarfYi jX1i ; X2i g D i log.i/Dˇ0 Cˇ1X1i Cˇ2X2i:

686
Chapter 22 Log-Linear Regression for Poisson Counts
22.5.3
grouping subjects with similar, but not identical, explanatory variable values can be misleading, because the grouping itself induces extra-Poisson variability.
Fit a Rich Model
If the Poisson means are large, the deviance goodness-of-fit test can be examined after a fit to a rich model (one with terms that reflect possible departures from the proposed model). The idea is that including unnecessary terms will not have much effect on the residuals, and a large deviance statistic will indicate inadequacies with the Poisson assumption rather than inadequacies with insufficient explanatory variable terms.
Look for Outliers
The deviance statistic might be large because of one or two outliers. Therefore, it is appropriate to examine the individual deviance residuals in addition to the sum of their squares. An individual deviance residual should not, however, be judged an outlier simply because its size exceeds 2.0. Outliers should not look like they belong to the tail end of an otherwise natural distribution.
In the salamander study, for example, Display 22.7 contains several individ- ual deviances that do exceed the normal limit. But these appear natural in the context of the distribution of the other deviance residuals. In such cases, the quasi- likelihood method provides a more conservative assessment than the maximum likelihood method. It leads to less powerful inferences than the maximum likelihood method when the Poisson model is correct, but Display 22.7 strongly suggest that the Poisson model does not adequately describe these data. The Poisson model follows from an assumption that individual salamanders are distributed indepen- dently across the region of interest. If the study plots contained family units, the assumption would be violated and lack-of-fit to the Poisson model would be expected.
Inferences when Extra-Poisson Variation Is Present
Tests and confidence intervals are carried out in the same way as they were for extra-binomial variation in Section 21.5.3:
1. An estimate of is the sum of squared deviance residuals divided by the residual degrees of freedom—the sample size minus the number of parameters in the mean.
2. The quasi-likelihood standard errors are the maximum likelihood standard errors multiplied by the square root of the estimate of . Ideally, the quasi- likelihood approach can be requested from the statistical computing program, so standard errors will be properly adjusted. If not, the user must manually com- pute the estimate of and multiply the given standard errors by the square root of this estimate.
3. All t-tests and confidence intervals are based on the coefficient estimates and the adjusted standard errors. It is prudent to use the t-distribution rather than the standard normal distribution as a reference, even though there is no established theory for this practice. The degrees of freedom are (n 􏰀 p).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

22.5 Extra-Poisson Variation and the Log-Linear Model 687
4. The drop in deviance per drop in degrees of freedom is divided by the estimate of to form an F-statistic. This is analogous to the extra-sum-of-squares F-test in ordinary regression, except that deviance residuals (rather than ordinary residuals) are used.
Example—Salamander Habitat Study
Having established that there is extra-Poisson variation, the next step in the anal- ysis is to use quasi-likelihood methods for building a model. A quadratic model for investigation of the influence of forest age and canopy cover is
log./ D ˇ0 C ˇ1age C ˇ2cover C ˇ3age2 C ˇ4cover2 C ˇ5age  cover: However, there are two distinct canopy cover conditions (Display 22.9) that may
give rise to different quadratic models. If closed is an indicator variable for closed
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 22.9
Scatterplots of Del Norte salamander counts with percentage of canopy cover and forest age
600
400
200
10
5
0
10 30 50 70 90
200 400 600
Percent Canopy Cover
Forest Age (years)
Salamanders Forest Age (years)

688
Chapter 22 Log-Linear Regression for Poisson Counts
22.6
canopy .cover > 70%/, the separate quadratic model comes from the addition of terms
ˇ6closed C ˇ7age  closed C ˇ8cover  closed C ˇ9age2  closed C ˇ10cover2  closed C ˇ11age  cover  closed
to the expression above. Now the coefficients in the first expression describe the association of salamander numbers with forest age and canopy cover in open canopy conditions. The coefficients in the additional expression describe how the individual coefficients differ between closed and open canopy conditions.
The quasi-likelihood t-statistics (Display 22.10) for testing the significance of all terms involving forest age are all nonsignificant, which suggests that forest age may not be important once canopy cover is accounted for. To test that hypothesis, all terms involving forest age are dropped and the model refit. Display 22.10 illustrates the process, and the models are compared with a quasi-likelihood drop in deviance F -test. The approximate p-value of 0.7843 confirms that forest age may safely be discarded.
The significance of the coefficient of cover2  closed indicates that there is different curvature in the two conditions. Fitting separate quadratics requires the inclusion of the remaining terms. The full fit of this model is plotted in Display 22.4. Approximate 95% confidence limits are obtained by fitting the same model after centering canopy cover at chosen values, then reading off the intercept coefficient and its standard error, constructing an interval, and exponentiating its endpoints.
RELATED ISSUES
22.6.1 Log-Linear Models for Testing Independence in Tables of Counts
The Poisson distribution also arises in the discussion of tables of counts (Chapter 19). There, Poisson sampling means that a fixed amount of effort is used to sample subjects, who are then categorized into one of the cells in the table. In contrast to the other sampling schemes, neither the marginal totals nor the grand total is known before the data are collected.
It is possible to analyze Poisson counts in tables of counts by treating the cell counts as Poisson response variables and employing a log-linear model with factors representing the different dimensions in the table. The Samoan obesity and heart disease data, for example, involved four cells in a table consisting of two rows and two columns. The means of the counts may be described by a log-linear model, as shown in Display 22.11.
The log-linear model involves obesity as its row factor and CVD death as its column factor. If obese and death act independently to determine the counts, there is no need for an interaction term. Therefore, a test for the obese  death interaction in the log-linear model provides a test of independence in the table of counts.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 22.10
1
Fit a rich model, including interactions and quadratic terms.
Variable
Coefficient Standard error t-statistic
p-value
2
Variable
Fit the inferential model, with extra terms deleted. salamanders
22.6 Related Issues 689
Informal testing of extra terms, with a drop-in-deviance F -test, to find a good fitting model; Del Norte salamander data
cover, cover 2, closed, cover closed, cover 2 Coefficient Standard error t-statistic
closed
3
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Test adequacy of the inferential model.
(97.2252 – 89.1778)/6 (89.1778)/35
Conclusion: There is no evidence of a need for the extra terms included in model 1.
p-value

690
Chapter 22 Log-Linear Regression for Poisson Counts
DISPLAY 22.11
Log-linear analysis of a 2  2 table of counts—Samoan obesity and heart disease (see Section 18.1.1)
CVD Death
Yes No
Data for Regression
Obese Not obese
count obese
Indicator for row
death
Indicator for column
22.6.2
For a table with r rows and c columns, a total of .r 􏰀 1/.c 􏰀 1/ terms are needed to describe all row  column interactions. These terms may be tested with an extra-sum-of-squared-residuals test. Although some controversy surrounds the question of which residuals are best, common practice is to use Pearson residuals for the analysis of tables of counts. Since the full model—with the interaction terms—is the saturated model (where all residuals are zero), the test statistic for independence equals the sum of the squared Pearson residuals from the log-linear fit to the model without interaction. The test statistic is compared to a chi-square distribution on .r 􏰀 1/.c 􏰀 1/ degrees of freedom.
Notes About Log-Linear Analysis of Tables of Counts
1. The Poisson log-linear model describes the mean count in terms of the row and column factors, and these two factors are treated equally. This is unlike ordinary regression, where the distinction between response and explanatory variables is important.
2. For 2  2 tables of counts, the Poisson analysis with the Pearson statistic is identical to the chi-squared test presented in Section 19.3.2. Both forms may also be applied to more complex tables of counts.
3. The log-linear model approach parallels ordinary regression and analysis of variance, with independence between two factors being tested through the significance of their interaction terms.
Poisson Counts from Varying Effort
In the previous examples, the response counts were obtained by observing some process for a fixed amount of effort. All salamander counts came from searching 7 m square plots; all male elephants were observed for 8 years; and the CVD death
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

22.6 Related Issues 691
counts for the Samoan women were based on a 7-year observation period. That is, each count arises from the same amount of sampling effort. In many situations that arise, however, counts are based on different amounts of effort. It is natural that higher sampling effort yields higher mean counts, and the analysis should concentrate on some measure of average counts per unit of effort, or count rates.
The easiest way to include effort in a Poisson regression equation is to include log(effort) as an additional explanatory variable in the log-linear model:
When the Mean Count Is an Occurence Rate Times Effort
.Yi / D i D efforti  ratei A log-linear model for rate is:
log.ratei/Dˇ0Cˇ1X1i Cˇ2X2i C: So, a model for the mean count is:
log.i/Dlog.efforti/Cˇ0 Cˇ1X1i Cˇ2X2i C:
Effort is typically the time of observation during which each count is made, but it may also be an area. If the effort is the same for all observations in the data set, the term involving effort is a constant and can be absorbed into ˇ0.
The coefficient of log(effort) is known to be 1. In generalized linear models, a term with a known coefficient can be inserted into the regression equation. This term is called an offset. The mechanism for inserting it depends on the statistical package used. If a Poisson log-linear regression program is available that does not have the capability of including an offset, include log(effort) as an explanatory variable with the others having an unknown coefficient. This generally has little effect on the other estimates.
If scatterplots are drawn, it is necessary to plot rate (count/effort) or the log of rate—instead of raw counts—versus explanatory variables. In the analysis, a check for extra-Poisson variation remains necessary. Its presence can be handled in the usual way, using the quasi-likelihood method.
22.6.3 Negative Binomial Regression
The Poisson is often too simple of a probability distribution for nonnegative integer responses, especially when the counts are large. The quasi-likelihood version, with extra dispersion parameter, helps in extending its usefulness. Another extension is the negative binomial distribution. Whereas a Poisson distribution has a single unknown parameter, , the negative binomial has an additional parameter , which allows greater flexibility in modeling count variation. If a response variable has mean , the following are the variances implied by the Poisson model, the quasi-Poisson model with extra dispersion parameter Ψ, and the negative binomial distribution:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

692 Chapter 22 Log-Linear Regression for Poisson Counts
Model
Poisson
Poisson (quasi) Negative binomial
Variance

Ψ .1 C /
Because the negative binomial distribution is thought to be a natural model for extra-Poisson variation and because maximum likelihood can be used for regression inference based on it, negative binomial log-linear regression has always been an attractive alternative to Poisson log-linear regression. Until recently, however, easy- to-use computer programs for its use have not been available. Fortunately, statistical computer programs have now incorporated modules for negative binomial regression and these can be used in the same way as the GLM routines for Poisson log-linear regression. The strategies for data analysis remain the same, except there is no need to investigate extra-Poisson variation because it is automatically included in the model. Tests and confidence intervals are based on Wald and drop-in-deviance (also known as likelihood ratio) theory, with the same issues as for Poisson. There is no guarantee that the negative binomial model is appropriate for all nonnegative integer response variables, but it offers greater flexibility than Poisson and has proven itself useful in a wide variety of applications.
22.7 SUMMARY
Poisson regression should be considered whenever the response variable is a count of events that occur over some observation period or spatial area. The main feature of the Poisson distribution is that the variance is equal to the mean. Consequently, if ordinary regression is used, the residual plot will exhibit a funnel shape. In the Poisson log-linear regression model, the distribution of the response variables for each combination of the explanatory variables is thought to be Poisson, and the logarithms of the means of these distributions are modeled by formulas that are linear functions of regression coefficients. The method of maximum likelihood is used to estimate the unknown regression coefficients.
Elephant Mating Data
A scatterplot of the number of successful matings versus age for the 41 male ele- phants indicates the inadequacy of a straight-line regression and of a constant variance assumption for these data. Linear regression after a log transformation of number of matings is possible, but the zeros in the data set are a nuisance in this approach. Poisson log-linear regression provides an attractive alternative. The counts are too small to justify the deviance goodness-of-fit test, but plots and infor- mal testing of extra terms imply that the model with the log of the mean count as a straight-line function of age is adequate. One question of interest is whether the mean count of successful matings peaks at some age. This can be investigated by testing the significance of an age-squared term. The drop-in-deviance test does not provide any evidence of a quadratic effect.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

22.8 Exercises 693
Salamander Data
Residuals from the fit of a rich model were larger than expected, strongly sug- gesting extra-Poisson variability. Therefore, quasi-likelihood methods were used in model selection and in reporting results. There were two distinct canopy cover regimes. A quasi-likelihood F -test indicated that forest age was not associated with mean counts, after taking into account canopy cover. The fit of the reduced model included a highly significant difference between quadratic effects of canopy, so the descriptive model was selected as having separate quadratics in low cover and high cover situations.
22.8 EXERCISES
Conceptual Exercises
1. Elephant Mating. Both the binomial and the Poisson distributions provide probability models for random counts. Is the binomial distribution appropriate for the number of successful matings of the male African elephants?
2. What is the difference between a log-linear model and a linear model after the log transforma- tion of the response?
3. If a confidence interval is obtained for the coefficient of an indicator variable in a log-linear regression model, do the antilogarithms of the endpoints describe a confidence interval for a ratio of means or for a ratio of medians?
4. Elephant Mating. In Display 22.2 the spread of the responses is larger for larger values of the mean response. Is this something to be concerned about if Poisson log-linear regression is used?
5. Elephant Mating. From the estimated log-linear regression of elephants’ successful matings on age (Display 22.8), what are the mean and the variance of the distribution of counts of successful matings (in 8 years) for elephants who are aged 25 years at the beginning of the observation period? What are the mean and the variance for elephants who are aged 45 years?
6. (a) Why are ordinary residuals—(Yi 􏰀 O i )—not particularly useful for Poisson regression? (b) How are the Pearson residuals designed to deal with this problem?
7. Consider the deviance goodness-of-fit test. (a) Under what conditions is it valid for Poisson regression? (b) When it is valid, what possibilities are suggested by a small p-value? (c) When it is valid, what possibilities are suggested by a large p-value?
8. (a) Why is it more difficult to check the adequacy of a Poisson log-linear regression model when the counts are small than when they are large? (b) What tools are available in this situation?
9. (a) How does the drop-in-deviance test for Poisson log-linear regression resemble the extra- sum-of-squares test in ordinary regression? (b) How does it differ?
10. (a) How does the drop-in-deviance test for the quasi-likelihood version of the log-linear regression model resemble the extra-sum-of-squares test in ordinary regression? (b) How does it differ?
11. How does the quasi-likelihood version of the log-linear regression model allow for more variation than would be expected if the responses were Poisson?
12. If responses follow the Poisson log-linear regression model, the Pearson residuals should have variance approximately equal to 1. If, instead, the quasi-likelihood model with dispersion parameter
is appropriate, what is the approximate variance of the Pearson residuals?
13. Is it acceptable to use the quasi-likelihood model when the data actually follow the Poisson model?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

694 Chapter 22 Log-Linear Regression for Poisson Counts
14. Consider a table that categorizes 1,000 subjects into 5 rows and 10 columns. (a) If Poisson log-linear regression is used to analyze the data, what is the sample size? (That is, how many Poisson counts are there?) (b) How would one test for independence of row and column factors?
Computational Exercises
15. Elephant Mating and Age. Give an estimated model for describing the number of successful matings as a function of age, using (a) simple linear regression after transforming the number of successful matings to the square root; (b) simple linear regression after a logarithmic transformation (after adding 1); (c) log-linear regression. (d) Do the models used in parts (a) or (b) exhibit obvious inadequacies?
16. Murder–Suicides by Deliberate Plane Crash. Some sociologists suspect that highly publi- cized suicides may trigger additional suicides. In one investigation of this hypothesis, D. P. Phillips collected information about 17 airplane crashes that were known (because of notes left behind) to be murder–suicides. For each of these crashes, Phillips reported an index of the news coverage (cir- culation in nine newspapers devoting space to the crash multiplied by length of coverage) and the number of multiple-fatality plane crashes during the week following the publicized crash. The data are exhibited in Display 22.12. (Data from D. P. Phillips, “Airplane Accident Fatalities Increase Just After Newspaper Stories About Murder and Suicide,” Science 201 (1978): 748–50.) Is there evidence that the mean number of crashes increases with increasing levels of publicity of a murder–suicide?
17. Obesity and Heart Disease. Analyze the table of counts in Display 22.11 as suggested there. What is the p-value for testing independence of obesity and CVD death outcome?
18. Galapagos Islands. Reanalyze the data in Exercise 12.20 with number of native species as the response, but using log-linear regression. (a) Fit the model with log area, log elevation, log of distance from nearest island, and log area of nearest island as explanatory variables; and then check for extra- Poisson variation. (b) Use backward elimination to eliminate insignificant explanatory variables. (c) Describe the effects of the remaining explanatory variables.
19. Galapagos Islands. Repeat the previous exercise, but use the number of nonnative species as the response variable (total number of species minus the number of native species).
20. Cancer Deaths of Atomic Bomb Survivors. The data in Display 22.13 are the number of cancer deaths among survivors of the atomic bombs dropped on Japan during World War II, catego- rized by time (years) after the bomb that death occurred and the amount of radiation exposure that the survivors received from the blast. (Data from D. A. Pierce, personal communication.) Also listed in each cell is the person-years at risk, in 100’s. This is the sum total of all years spent by all persons in the category. Suppose that the mean number of cancer deaths in each cell is Poisson with mean
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 22.12
Multiple-fatality plane crashes in the week following a murder–suicide by plane crash, and the amount of newspaper coverage given the murder–suicide
Index of coverage Number of crashes Index of coverage Number of crashes

DISPLAY 22.13
 D risk  rate, where risk is the person-years at risk and rate is the rate of cancer deaths per person per year. It is desired to describe this rate in terms of the amount of radiation, adjusting for the effects of time after exposure. (a) Using log(risk) as an offset, fit the Poisson log-linear regression model with time after blast treated as a factor (with seven levels) and with rads and rads-squared treated as covariates. Look at the deviance statistic and the deviance residuals. Does extra-Poisson variation seem to be present? Is the rads-squared term necessary? (b) Try the same model as in part (a); but instead of treating time after bomb as a factor with seven levels, compute the midpoint of each inter- val and include log(time) as a numerical explanatory variable. Is the deviance statistic substantially larger in this model, or does it appear that time can adequately be represented through this single term? (c) Try fitting a model that includes the interaction of log(time) and exposure. Is the interac- tion significant? (d) Based on a good-fitting model, make a statement about the effect of radiation exposure on the number of cancer deaths per person per year (and include a confidence interval if you supply an estimate of a parameter).
Cancer deaths among Japanese atomic bomb survivors, categorized by estimated exposure to radiation (in rads) and years after exposure; below the number of cancer deaths are the person-years (in 100’s) at risk
Years after exposure
(rads) 0–7 8–11 12–15 16–19 20–23 24–27 28–31
22.8 Exercises 695
21. El Nin ̃ o and Hurricanes. Reconsider the El Nin ̃ o and Hurricane data set from Exercise 10.28. Use poisson log-linear regression to describe the distribution of (a) number of storms and (b) number of hurricanes as a function of El Nin ̃o temperature and West African wetness.
Data Problems
22. Emulating Jane Austen’s Writing Style. When she died in 1817, the English novelist Jane Austen had not yet finished the novel Sanditon, but she did leave notes on how she intended to conclude the book. The novel was completed by a ghost writer, who attempted to emulate Austen’s style. In 1978, a researcher reported counts of some words found in chapters of books written by Austen and in chapters written by the emulator. These are reproduced in Display 22.14. (Data from A. Q. Morton, Literary Detection: How to Prove Authorship and Fraud in Literature and Documents, New York: Charles Scribner’s Sons, 1978.) Was Jane Austen consistent in the three books in her relative uses of these words? Did the emulator do a good job in terms of matching the relative rates of occurrence of these six words? In particular, did the emulator match the relative rates that Austen used the words in the first part of Sanditon?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

696
Chapter 22 Log-Linear Regression for Poisson Counts
DISPLAY 22.14
Occurrences of six words in various chapters of books written by Jane Austen (Sense and Sensibility, Emma, and the first part of Sanditon) and in some chapters written by the writer who completed Sanditon (Sanditon II)
Word Book
Sense and Sensibility Emma Sanditon I Sanditon II
DISPLAY 22.15
On January 27, 1986, the night before the space shuttle Chal- lenger exploded, an engineer recommended to the National Aeronautics and Space Administration (NASA) that the shuttle not be launched in the cold weather. The forecasted temperature for the Challenger launch was 31ıF—the coldest launch ever. After an intense 3-hour telephone conference, officials decided to proceed with the launch. Shown in Display 22.15 are the launch temperatures and the number of O-ring problems in 24 shuttle launches prior to the Challenger (Chapter 4). Do these
data offer evidence that the number of incidents increases with decreasing temperature?
23. Space Shuttle O-Ring Failures.
Launch temperatures (ıF) and numbers of O-ring incidents in 24 space shuttle flights Launch temperature Launch temperature
(°F) Number of incidents (°F) Number of incidents
24. Valve Failure in Nuclear Reactors. Display 22.16 shows characteristics and numbers of fail- ures observed in valve types from one pressurized water reactor. There are five explanatory factors: system (1 D containment, 2 D nuclear, 3 D power conversion, 4 D safety, 5 D process auxiliary); operator type (1 D air, 2 D solenoid, 3 D motor-driven, 4 D manual); valve type (1 D ball, 2 D butterfly, 3 D diaphragm, 4 D gate, 5 D globe, 6 D directional control); head size (1 D less than 2 inches, 2 D 2–10 inches, 3 D 10–30 inches); and operation mode (1 D normally closed, 2 D nor- mally open). The lengths of observation periods are quite different, as indicated in the last column, time. Using an offset for log of observation time, identify the factors associated with large numbers of valve failures. (Data from L. M. Moore and R. J. Beckman, “Appropriate One-Sided Tolerance Bounds on the Number of Failures Using Poisson Regression,” Technometrics 30 (1988): 283–90.)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

22.8 Exercises 697
DISPLAY 22.16 Valve characteristics and numbers of failures in a nuclear reactor; first 6 of 91 rows System Operator Valve Size Mode Failures Time
25. Body Size and Reproductive Success in a Population of Male Bullfrogs. As an example of field observation in evidence of theories of sexual selection, S. J. Arnold and M. J. Wade (“On the Measurement of Natural and Sexual Selection: Applications,” Evolution 38 (1984): 720–34) presented the following data set on size and number of mates observed in 38 male bullfrogs (Display 22.17). Is there evidence that the distribution of number of mates in this population is related to body size? If so, supply a quantitative description of that relationship, along with an appropriate measure of uncertainty. Write a brief summary of statistical findings.
26. Number of Moons. Display 22.18 shows some characteristics of terrestrial planets, gas giants, and dwarf planets in our solar system, including the known number of moons. Apparently, larger planets have more moons, but is it the volume (as indicated by diameter) or mass that are more relevant, or is it both? Answer this question and arrive at a model for describing the mean number of moons as a function of planet size. Use negative binomial regression if you have access to a computer package that does the computations. Otherwise, use quasi-likelihood analysis. (Data from Wikipedia: http://en.wikipedia.org/ wiki/Planet#Solar System, August 10, 2011.)
Answers to Conceptual Exercises
1. No. A binomial distribution is for a count that has a precisely-defined upper limit, such as the number of heads in 10 flips of a coin (with upper limit 10) or the number of elephant legs with defects (with upper limit 4). Although there is surely some practical limit to the number of successful elephant matings, there is no precisely-defined maximum to be used as the binomial index. The Poisson distribution is more sensible.
2. In a log-linear model, the mean of Y is  and the model is log./ D ˇ0 C ˇ1X1. Y is not transformed. If simple linear regression is used after a log transformation, the model is expressed in terms of the mean of the logarithm of Y.
3. Ratio of means. The model states that the log of the mean—not the median—has the regression form. It is not necessary to introduce the median of the Poisson distribution here.
4. No. The nonconstant variance is anticipated by the Poisson model. The maximum likelihood procedure correctly uses the information in the data to estimate the regression coefficients.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 22.17 Body size (mm) and number of mates for 38 male bullfrogs (Rana catesbeiana); first 5 of 38 rows Body size Mates

698 Chapter 22 Log-Linear Regression for Poisson Counts
DISPLAY 22.18
Average distance from the sun, diameter, and mass (all scaled so that the values for earth are 1); and number of moons of 13 planets and dwarf planets in our solar system
Name
Mercury Venus Earth Mars Ceres Jupiter Saturn Uranus Neptune Pluto Haumea Makemake Eris
Distance Diameter
0.39 0.382 0.72 0.949 1 1 1.52 0.532 2.75 0.08 5.2 11.209 9.54 9.449
Mass
Moons
19.22 4.007
30.06 3.883
39.5 0.18 0.0022 4 43.35 0.15 0.0007 2 45.8 0.12 0.0007 0 67.7 0.19 0.0025 1
0.06 0 0.82 0 1 1 0.11 2 0.0002 0
317.8 64 95.2 62 14.6 27 17.2 13
5. For 25-year-old elephants: Mean D 1:15; Variance D 1:15. For 45-year-old elephants: Mean D 4:53; Variance D 4:53.
6. (a) The residuals with larger means will have larger variances. Thus, if an observation has a large residual it is difficult to know whether it is an outlier or an observation from a distribution with larger variance than the others. (b) The residuals are scaled to have the same variance.
7. (a) Large Poisson means. (b) The Poisson distribution is an inadequate model, the regression model terms are inadequate, or there are a few contaminating observations. (c) Either the model is correct, or there is insufficient data to detect any inadequacies.
8. (a) Scatterplots are uninformative, the deviance goodness-of-fit test cannot be used, and the approximate normality of residuals is not guaranteed. (b) One may try to add extra terms, such as a squared term in some explanatory variable, to model a simple departure from linearity and to test its significance with a drop-in-deviance or Wald’s test.
9. (a) It is based on a comparison of the magnitudes of residuals from a full to a reduced model. (b) The residuals used are deviance residuals, and a chi-squared statistic is used rather than an F -statistic.
10. (a) Same as 10(a). In this case, an F -statistic is formed just as with the usual extra-sum-of- squares test. (b) It is based on deviance residuals.
11. The variance of the responses is , where is unknown. A value of greater than 1 allows for more variation than anticipated by a Poisson distribution.
12. .
13. Yes; the Poisson mean–variance relationship is a special case of the quasi-likelihood model (when is 1). (More powerful comparisons result, however, if the Poisson model is used when it definitely applies.)
14. (a) 50. (b) Test for the significance of the 36 interaction terms in the log-linear regression with row, column, and row-by-column effects. This may be accomplished by fitting the model with- out interaction and comparing the Pearson statistic to a chi-squared distribution on 36 degrees of freedom.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 23 Research Design
Throughout this book, case studies have highlighted fruitful designs. It is now time to take a closer look at study design, with the objective of setting down the basic principles and illustrating the steps leading to a well-designed study. The discussion of research design takes up this and the following chapter. This chapter lays out the general principles. It provides practical suggestions on the steps to follow, including the important task of determining sample size. The second design chapter (Chapter 24) presents some standard statistical design structures that allow straightforward analysis and interpretation of results.
Elements of
699
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

700
Chapter 23 Elements of Research Design
23.1
CASE STUDY
23.1.1 Biological Control of a Noxious Weed—
A Randomized Experiment
With increasing evidence of harmful environmental and health effects of herbicides and pesticides has come an increased interest in the use of biological controls for pests. Researchers investigated a system where two insects—the cinnabar moth and the ragwort flea beetle—were introduced to control tansy ragwort, a noxious weed that is toxic to livestock and aggressively displaces desirable plants. (Data from P. B. McEvoy, N. T. Rudd, C. S. Cox, and M. Huso, “Disturbance, Competi- tion, and Herbivory Effects on Ragwort Senecio Jacobaea Populations,” Ecological Monographs 63(1) (1993): 55–75.)
The researchers designed an experiment to manipulate conditions on square plots, 0.5 meters on a side. The treatments were (1) presence or absence of cinnabar moths, (2) presence or absence of flea beetles, and (3) the degree of competition from perennial grasses. They then observed the reduction of ragwort on each plot.
Researchers were interested in three primary questions: (1) Do the biological control agents (moths and flea beetles) work by reducing weed densities uniformly to low levels or by totally eliminating weeds locally so that weeds survive only in shifting patches? (2) Is the combination of moths and flea beetles more effective in controlling ragwort than the sum of their individual effects? This interaction is quite possible, since moths are active in early summer while flea beetles are active in late summer and autumn. (3) Is the extent of control by moths and flea beetles greater in the presence of competing grasses? This would be the case if the effect of the insect controls were to inhibit ragwort growth to the point where the grasses crowded it out.
The general findings were that flea beetles are more effective control agents than cinnabar moths and that there is weak evidence of an interactive effect of the flea beetles with the degree of competition from perennial grasses. The reader is referred to the original paper for a full discussion. The main concern here is with the experimental design. In particular, question (2) was not resolved by the experiment because of substantial uncertainty in the estimate of the interactive effect of flea beetles and moths. How would a new experiment be designed to sufficiently resolve the question?
CONSIDERATIONS IN FORMING RESEARCH OBJECTIVES
The goal of any research design is to arrive at clear answers to questions of interest while expending a minimum of resources. Some tools to use in meeting this end are discussed in the next section. This section concerns issues relating to the starting point for any study: forming the objectives.
Keep It Simple. Unforeseen complications plague even the most simple studies. Units do not respond, equipment fails to operate as planned, weather does not
23.2
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.3
cooperate, animals die mysteriously, treatments have bizarre interactions with uncontrollable factors, and on and on. To paraphrase R. A. Fisher, what began as an experiment ends up as an experience. Imagine the havoc these problems cre- ate in studies that begin with highly complex questions involving large numbers of experimental factors.
Think of the Context. Scientific inquiry is a community activity. Each study will repeat aspects of and expand upon others’ studies. Others, in turn, will repeat, further develop, and challenge what the current study has found. All this frees one from the obligation of discovering all nature’s secrets in a single study.
Be Objective. Researchers must be prepared for evidence against their theories and should strive to conduct studies that provide opportunities for such evidence to arise. They should not become emotionally committed to obtaining desired out- comes. Study design should protect against potential biases due to personal hopes and prejudices. And the results of statistical analyses should not be overstated.
Learn. Of course there is more to conducting a study than doggedly pursuing the answer to the primary research question. Unexpected relationships appear. New hypotheses emerge. At reporting time, research questions that were posed before the experiment merit strong inferential language, while unforeseen discoveries must be presented as “preliminary findings in need of further study.” This wording is necessary to account for the data snooping involved in testing hypotheses that are suggested by the data.
RESEARCH DESIGN TOOL KIT
The tools described below are primarily for controlled, randomized experiments, but the ideas are relevant to the design of observational studies—particularly those that involve sampling. In either case, attacking a research question involves making many choices. What will constitute a sampling or experimental unit? What populations of study units are of interest? Which units should be selected for study? How many? How should treatments be allocated to units? In what order should treatments be applied? What confounding factors should be held fixed? What covariates should be measured? Answers to these questions play critical roles in determining the success or failure of a study.
This section lists the basic tools used to create a study design. Each tool is accompanied by a short explanation of its main uses.
23.3.1 Controls and Placebos
A control group provides a baseline for comparison with test groups. Controls that use standard treatments also give critics a means of deciding whether the study’s results are consistent with past experience. Using treatments that other researchers have used provides a link to previous work. If the controls behave as others have, critics will feel more confident that differences reported for the experi- mental subjects really are related to the test treatment. If the controls behave
23.3 Research Design Tool Kit 701
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

702 Chapter 23 Elements of Research Design
differently, however, reviewers will take that as a signal that confounding factors may be at work.
A placebo treatment mimics the new treatment in every aspect except the test ingredient. Study units may respond positively to an ineffective treatment simply because they are pleased to receive treatment. If controls are not given a similar experience, a difference may reflect a response to being treated rather than an effect of the treatment. For many studies a placebo cannot be incorporated, but the design can still achieve the more general aim: that all units be treated as similarly as possible except for the critical element of the treatment specified by the question of interest. See the vitamin C and cold study of Section 18.1.2 for an experiment that uses a placebo.
23.3.2 Blinding
Persons who administer treatments, subjects who receive them, and researchers who measure responses all have certain hopes and expectations associated with the outcome of a study. “Blinding” means conducting the study in such a way that subjects do not know which treatment they receive. “Double blinding” means conducting the study so that the people who administer treatments and measure responses are also unaware of treatment assignments. When successful, blinding eliminates the possibility that the end comparison measures expectations rather than real treatment differences.
A blinded study should always be checked to determine if the blinding was suc- cessful. Units will naturally try to break the blind—to figure out what treatment they received. Researchers can often break the blind also, by noting patterns of response. Blinding may be checked by analyzing a table of counts formed by cross- classifying subjects according to actual treatment assigned and suspected treatment assigned (where the suspicions may be the subject’s or the researcher’s). (See Exer- cise 19.16 for an example.) When blinding has been broken, the analysis of results should use success or failure of the blinding process as a covariate.
23.3.3 Blocking
Blocking means arranging units into homogeneous subgroups so that treatments
can be randomly assigned to units within each block. The objectives are
1. To improve precision for treatment comparisons. Blocking effectively removes large block-to-block variations from the estimated treatment differences and from the residual standard deviation used to compute standard errors.
2. To control for confounding variables by grouping experimental units into blocks with similar values of the variable.
3. To expand the scope of inference about treatment differences. Different blocks can be selected to represent a wide range of conditions.
See the seaweed grazers study of Section 13.1.1 and the pygmalion study of Section 13.1.2 for examples of blocking.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.3 Research Design Tool Kit 703
23.3.4 Stratification
While the practice of blocking involves the partitioning of experimental units into homogeneous subgroups—called blocks—and performing random assignment of units to treatments separately in each block, the practice of stratification involves the partitioning of population units into homogeneous subgroups—called strata— and performing random sampling of population units separately in each strata. The objectives of stratification are similar to those of blocking, but stratification pertains to random sampling and blocking pertains to random assignment.
23.3.5 Covariates
A covariate is an auxiliary measurement taken on each unit. It is not one of the variables that directly addresses a question of interest, but it may be closely related to such responses. The researcher does not directly control a covariate. Either the covariate cannot be controlled (like the weather) or its value is determined in the course of the study. Lacking control over the covariate at the design stage is rectified by asserting control at the analysis stage through its inclusion as an explanatory variable along with the design variables. The objectives of using covariates are
1. To control for potentially confounding factors in the analysis.
2. To improve precision in treatment comparisons. Again, systematic variation associated with the covariates is removed from the residual standard deviation.
3. To assess the model. Introducing covariates into a tentative model can reveal
whether confounding variables must be included.
4. To expand the scope of inference. Allowing a confounding variable to vary
naturally in the course of a study provides a more realistic frame of reference than when its values are fixed at a few experimental settings.
To be useful in getting other effects out of the way, the measurement of the covariate must not be affected by the treatment given. See the blood–brain barrier study of Section 11.1.2 for analyses of experimental data including covariates.
23.3.6 Randomization
Randomization means employing a well-understood random procedure—flipping coins, rolling dice, performing a lottery, or using computer-generated pseudoran- dom numbers—to assign experimental units to different treatment groups. The objectives of randomization are
1. To control for factors not explicitly controlled for in the design (by blocking) or in the analysis (by covariates). This use of randomization is reserved for the unforeseen and nonmeasurable factors. It is not a substitute for control through design or control through analysis for measurable factors whose influ- ences are known or anticipated. (Block for what you can, and randomize for what you can’t.)
2. To permit causal inferences. Randomization may yield one group that has substantially larger responses than the others, and that outcome may be
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

704
Chapter 23 Elements of Research Design
23.3.7
associated with some causal variable. The chance that the randomization— not the treatment—is responsible for the difference is described by the measure of uncertainty attached to the inference (the p-value or confidence level).
3. To provide the probability model—the randomization distribution—for drawing inferences.
Random Sampling
Random sampling means employing a well-understood random procedure to select units from a population. The objectives are
1. To ensure that the sample is representative of the population (in the same way that randomization controls for unforeseen and nonmeasurable factors).
2. To permit an inference that patterns observed in the sample are characteristic of patterns in the population as a whole.
3. To provide the probability model—random sampling from populations—for drawing inferences.
23.3.8 Replication
Replication means conducting copies of a basic study pattern. It refers to assigning
one treatment to multiple units within each block. The objectives are
1. Increased precision for treatment effects, through increased sample sizes.
2. Model assessment. Replication can provide a pure error estimate of variance for the purpose of determining whether treatment group differences are adequately
represented by a particular statistical model.
Note: The term replication is often used to describe a repetition of an entire
study at several times or in several locations. The different times or locations, however, should be thought of as blocks. This kind of replication meets objec- tive (1), but it does not provide a pure error estimate of variance unless there are also multiple experimental units with the same treatment combinations within each block.
23.3.9 Balance
Balance means having the same number of units assigned to each treatment group.
The objectives are
1. To optimize the precision for treatment comparisons.
2. To ensure independence of estimated treatment effects. Whereas balance does
not necessarily guarantee that different treatment effects will be statistically independent, a lack of balance virtually guarantees that they will not be independent.
Occasionally there are reasons for designing unbalanced studies. One reason would be the need to gain more information about one specific treatment group than
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.4
about the others. Another reason would be to sample more heavily a group that is expected to be much more variable than the others.
DESIGN CHOICES THAT AFFECT ACCURACY AND PRECISION 23.4.1 Attaching Desired Precision to Practical Significance
A successful experiment has both statistical and practical significance. But the judgment about what constitutes a practically meaningful result is determined by the researcher’s understanding of the science. The role of the experiment is to draw a clear distinction between practically meaningful alternatives.
Often the result of a study may be summarized by a confidence interval on a key parameter. The parameter in question might have some noninteresting value, indicated by a null hypothesis. Or it might have some interesting value that the researcher has specified as practically significant. The researcher would certainly want the experiment to be able to distinguish that interesting value from the null hypothesis value. Given this framework, Display 23.1 shows four possible outcomes to the confidence interval procedure.
23.4 Design Choices That Affect Accuracy and Precision 705
DISPLAY 23.1
Four possible outcomes to a confidence interval procedure
Null hypothesis parameter value
B:
C:
D:
A:
Practically significant alternative parameter values
Possible parameter values
A. The data are consistent with prac- tically significant alternatives and not with the null hypothesis.
C. The data are consistent neither with the null hypothesis nor with practically significant alternatives.
D. The data are consistent with the
null hypothesis and with practically significant alternatives.
B. The data are consistent with the null hypothesis and not with any practically significant alternatives.
In case A, the confidence interval includes a practically meaningful value while ruling out the null value. The researcher may confidently conclude that the
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

706
Chapter 23 Elements of Research Design
23.4.2
parameter does in fact have some interesting value. In case B, the researcher can- not rule out the noninteresting null hypothesis, and the evidence strongly suggests that no practically meaningful alternative exists. This is as close as one ever gets to proving the null hypothesis. In case C, the researcher can confidently rule out the null hypothesis, but at the same time can confidently rule out any practically meaningful alternative. This happens with very large data sets. In terms of practical significance, this case and case B differ little.
These first three outcomes—A, B, and C—are successes, so far as the study is concerned. In each outcome, it is possible to draw an inferential conclusion that distinguishes between the important alternatives one way or the other. The confi- dence interval in case D, however, includes both the null and alternative values of the parameter. This unfortunate outcome signals that the study was not adequate to distinguish between important alternatives. If the analysis utilized the best sta- tistical procedures available, the only way to resolve the issue is to conduct further studies.
The role of the research design is to avoid outcome D. This is accomplished by making the confidence interval short enough that it cannot simultaneously include both parameter values.
How to Improve a Confidence Interval
To illustrate how the basic tools of experimental design affect the accuracy and precision of a study, consider the problem of estimating the difference between means of a treated group and a control group. Refer to Display 23.2.
Randomization, blocking, blinding, placebos, and the use of covariates are, as Display 23.2 suggests, important tools for eliminating possible biases in sample averages. The next goal of the research design is to shorten the confidence interval.
The half-width of the confidence interval is the product of three factors, any one of which may be made smaller by certain design choices.
Reducing the Half-Width via the t-Distribution Multiplier
There are two ways to make the multiplier smaller. One way is to lower the level of confidence, which is not particularly satisfying. The other is to increase the sample sizes, by further replication. Reference to a table of the t-distributions reveals that the multiplier decreases with increasing degrees of freedom. But the only substantial drop occurs with very low degrees of freedom; after about 10 degrees of freedom, the multiplier declines very slowly. Therefore, one should not look to the multiplier as the best way to shorten an interval.
Reducing the Half-Width via the Response Standard Deviation
The standard deviation may be a pooled estimate from both samples. It may also be pooled across blocks in a randomized block design. It may also be the residual standard deviation of the responses from a regression model using covariates as explanatory variables. Successful blocking or inclusion of covariates reduces the size of the standard deviation in the half-width formula.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.4 Design Choices That Affect Accuracy and Precision 707
DISPLAY 23.2
The 100 (1– ̨)% confidence interval for the difference between the means of two groups of study units
Interval = (Estimate – Half-width, Estimate + Half-width)
100(1 – )% confidence interval
Estimate = (Sample 1 average) – (Sample 2 average) Tools to Reduce Bias:
11
Randomization, Blinding, Blocking, Placebos Covariates,
Half-width = tdf (Pooled SD) + n1
Tools to Reduce Width:
n2
Blocking, Covariates, Improve Measurement
Replication, Confidence Level
Replication, Balance
Blocking units into groups of homogeneous units and comparing treatments within the blocks takes block-to-block variations out of the standard deviation used for calculating the standard error of treatment differences. If some variable is strongly associated with the response, then blocking on different levels of that variable can substantially decrease the standard deviation and, hence, the half- width of a confidence interval.
Using covariates reduces the variance of the responses by 100.1 􏰀 RC2 )%, where RC2 is the proportion of variance (the coefficient of determination) explained by the covariates in a multiple linear regression analysis (that also includes the design variables). Such a reduction can improve the precision of the confidence interval dramatically. See, for example, Display 23.3.
If the covariates are not strongly related to the response or if there is virtually no block-to-block variation, introducing covariates and/or blocking could conceivably decrease accuracy slightly. The existence of such situations is easily overemphasized. In practice, one should always be looking for blocking factors and covariates as the best means for improving confidence intervals.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

708
Chapter 23 Elements of Research Design
DISPLAY 23.3
Illustration of the increased precision in estimating a treatment effect by use of a covariate (hypothetical example)
Without a covariate, the treatment effect is measured against the size of within- group variation.
Response
Treated Control
Treatment Effect Residual SD
With a covariate, the treatment effect is measured against residual variation after accounting for the covariate.
Covariate
23.5
Another way to reduce the standard deviation is to improve the measurement technology. Such improvements were demonstrated in Display 2.13, which doc- umented the reductions in interval widths over time for the parameter used to distinguish Einstein’s relativity theory from Newtonian predictions.
The Conversion Factor for the Standard Error
The final factor in Display 23.2 multiplies the standard deviation to make up the standard error of the estimate. In the two-sample problem, this is the square root of the sum of sample size reciprocals. In other problems, this term will involve samples sizes in similar ways.
Increasing the total sample size by replication reduces the size of this factor overall. For fixed total sample size, n D n1 C n2, choosing equal sample sizes (that is, creating a balanced study) makes this factor as small as possible.
CHOOSING A SAMPLE SIZE
23.5.1 Studies with a Numerical Response
The discussion above demonstrates that selecting a sample size requires an under- standing of which parameter values need to be distinguished. The objective of sample size selection is to avoid case D in Display 23.1.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.5 Choosing a Sample Size 709
The following ingredients are required for the calculation of an appropriate sample size:
1. An estimate of the standard deviation must be available. If blocking and/or covariate analysis is to be done, then the residual standard deviation needs to be known approximately.
2. One specific linear combination of group means should be identified. This linear combination should be the one that addresses the most important question of interest.
3. A confidence level, 100.1 􏰀 ̨/%, must be selected.
4. The difference between the null value and the smallest practically significant
alternative must be specified.
Suppose that there are K different study groups, and that the study will be
balanced with n units within each group. Let C1, C2; : : : ; CK be the coefficients for the linear combination .g/ of interest. If se is the available estimate of the standard deviation, then the standard error for the linear combination’s estimate (Chapter 6) for the balanced case is
qC12 CC2 CCCk2 SE.g/ D se pn :
The sample size desired is the one leading to a confidence interval whose width is no larger than the specified practically significant difference. The value of n that makes the interval width—2  tdf.1 􏰀 ̨=2/  SE.g/—just equal to the practically significant difference is
Because the t-distribution multiplier relies on the sample size, some trial and error may be necessary to get approximate equality. For a 95% confidence interval, calcu- late the right-hand side of the equation using a t-multiplier of 2.0. The answer can be used to determine what the t-multiplier would be, and the sample size can be recalculated. Note: The prescribed sample size does not absolutely guarantee that the resulting confidence interval cannot include both the null and the practically significant values. The residual standard deviation in the study could be larger than the available estimate, se.
23.5.2 Studies Comparing Two Proportions
For studies with a binary response, the situation is similar. Two samples of equal size are drawn from separate populations or created by randomization. Suppose that the proportion of successes in the control group is known approximately. A practically significant difference in the treated group can be specified either by
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Œtdf.1 􏰀 ̨=2/2 se2
n D 4 .Practically significant difference/2 .C12 C C2 C    C CK2 /:

710
Chapter 23 Elements of Research Design
an alternative proportion or by an odds ratio. The procedure for determining the sample sizes is summarized in Display 23.4.
DISPLAY 23.4 Choosing sample sizes for comparing two proportions or odds
1 Specify the expected “control” proportion
“Control” proportion = C .
2 Specify a practically significant difference, either with a proportion A
or an odds ratio R. Calculate the intermediate values below. Meaningfully different alternatives
or
Proportion
A
Odds ratio
R
A=CR (1– C)
and
A=A (1+ A)
R= A(1– C) (1– A) C
3 Determine the sample size for each group so that the 100(1 – )% confidence interval for the odds ratio will not simultaneously include both 1 and R.
n1=n2=4[ ]2{ 1
[ log(R) ]2 C(1– C)
+ 1 } A(1– A)
23.5.3
The two groups may be the result of a prospective study where units are assigned to treatment groups, or a prospective study where two populations are sampled to compare their response rates, or a retrospective study where affected units and nonaffected units are randomly sampled.
Sample Size for Estimating a Regression Coefficient
The sample size formula for obtaining a confidence interval of a prescribed width for a regression coefficient requires the variance sX2 of the explanatory variable of interest. If the researcher can determine the variance by choosing values of the explanatory variable, this requirement is met. If the explanatory variable is not under the researcher’s control, some estimate of the anticipated variance must be found.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.6
Simple Linear Regression
The model for a simple linear regression of the response Y on the explanatory variable X is
fYjXgDˇ0 Cˇ1X:
The objective is to construct a 100.1􏰀 ̨/% confidence interval for the slope param- eter ˇ1 that has width ı. If sr is an estimate of the standard deviation around the regression line, the required number of .X; Y / pairs is approximately
4Œtdf.1 􏰀 ̨=2/2sr2
n D ı 2 s X2 C 1 :
Multiple Linear Regression
In a multiple linear regression problem, relationships between explanatory variables can drive up the sample size requirements. With the objective of constructing a 100.1􏰀 ̨/% confidence interval for the coefficient of one key variable, X, the required number n of subjects is approximately
4Œtdf.1 􏰀 ̨=2/2sr2
nD ı2sX2.1􏰀RX2/ C1;
where, in this case, df is n minus the number of regression coefficients, and where RX2 is the proportion of the variance of X that can be explained by its regression on the other explanatory variables in the model. If X is uncorrelated with the other explanatory variables—as it would be in a balanced factorial experiment—then RX2 D 0. The sr in this version is the standard deviation of the response, given all the explanatory variables. Ideally, this can be guessed from related studies or estimated from a pilot study.
STEPS IN DESIGNING A STUDY
Display 23.5 presents a checklist that includes most of the decisions one should consider before beginning a study. The order in which the steps are taken may be different in different studies.
23.6.1 Stating the Objective
What Is the Question of Interest?
Although a study may have many objectives, it is important to concentrate on one specific question, a question whose resolution would make the study successful. Resolution of other issues will be possible, but not necessarily assured by the design.
Example. In the proposed new ragwort study, the main question is whether there is an interactive effect between cinnabar moths and flea beetles in controlling ragwort.
23.6 Steps in Designing a Study 711
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

712
Chapter 23 Elements of Research Design
DISPLAY 23.5
Checklist of tasks involved in the design of a study
1. State the objective. What is the question of interest?
2. Determine the scope of inference.
Will this be a randomized experiment or an observational study? What experimental or sampling units will be used?
What are the populations of interest?
3. Understand the system under study.
4. Decide how to measure a response.
5. List factors that can affect the response. Design factors
Factors to vary (treatments and controls)
Factors to fix Confounding factors
Factors to control by design (blocking) Factors to control by analysis (covariates) Factors to control by randomization
6. Plan the conduct of the experiment (time line).
7. Outline the statistical analysis.
8. Determine the sample size.
23.6.2
Determining the Scope of Inference
What Experimental Units Will Be Used?
The scope of inference will be limited by the nature of the experimental units, as well as by how they are selected and assigned to groups (Chapter 1). In experiments, a “unit” is whatever receives a treatment. Often this is obvious, as when a new vaccine is being tested on human subjects.
Many studies, however, involve several possible choices of study units. In the ragwort study, for example, plots of ground were the obvious units, but their opti- mum size needed to be determined. When making such decisions, one should ask whether the size of the unit itself affects the responses and whether effects are likely to be clearly measurable on the units selected.
Ragwort Example. Treated units are square plots with sides 0.5 meters. In large part, this size is determined by plant size and the seed dispersal pattern. A limiting factor on how small a plot can be is whether the plot size itself affects the outcome. It would be unfortunate, for example, if the plot size were so small that insects could not survive on the few hosts present. A factor influencing the upper size limit is the sensitivity of the plot to the treatment. If insects attack only a few plants in a year, plots containing a large number of plants may have many that are not affected even when the insects do considerable damage. Other considerations are physical (e.g., how much effort is required to record the important variables?).
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.6 Steps in Designing a Study 713
What Are the Populations of Interest?
In randomized experiments, the goal is often to show an effect somewhere. Experi- mental units are often chosen to be those that are either most likely to be affected, those that show little natural variability, or those that are most convenient. But when the object of a study is to generalize a statement to a wider population, that population must be carefully described so that units can be randomly selected.
Ragwort Example. The ragwort experiment was conducted in pasture land along the coast of Oregon. Blocks were 5  8 meter sections of an available pasture. Plots were 0:5  0:5 meter square plots within the blocks. It is tempting to view the outcomes as typical of all such pasture environments, but the only use of randomization was in the assignment of treatments of the plots. Statistical inferences are therefore limited to causal relationships on those selected plots. This, of course, is not a serious limitation because the goal of the experiment was to study such causal relationships.
23.6.3 Understanding the System
A description of the system amounts to listing the important factors at work and explaining the theory about how they influence each other. Such a description should emphasize the role of the research questions in clarifying the theory.
Ragwort Example. Ragwort seeds fall within a few meters of the parent plant and build up sizable seed reserves in the soil surrounding where plants have previously grown. Succeeding populations of ragwort are activated by local disturbance of the soil, either in the fall or the spring. The activation is rapid, short term, and local. The life cycle of new plants is usually two years. Approximately 90% of the new plants die before flowering, and most of the 10% that flower do so once in the second year and then die. Stresses of crowding or defoliation, however, can cause plants to live longer and have several flowerings. A plant produces anywhere from 65 to 2,500 flower heads, and flower heads produce an average of 70 seeds.
It is hypothesized that the ragwort populations are inhibited by herbivores and by the competition from perennial grasses. Cinnabar moths emerge in May and June to lay eggs on the plants. The resulting larvae consume the leaves and flower heads, but this rarely kills the plant. The ragwort flea beetles lay eggs singly on the plants or in the surrounding soil. Adults emerge in early summer, hibernate through late summer, then resume activity in the fall. Larvae and adults tunnel into and feed on leaves and stems; larvae also attack roots. The ragwort seed head fly also occurs on these sites, occurring with the moths and destroying a small fraction of the flower heads left by them. Perennial grasses of several species compete for growing space, which is believed to be the principal limiting factor on the spread of ragwort.
23.6.4 Deciding How to Measure a Response
In some studies, the choice of a response variable is obvious. In others there is no clear choice for a single response, or many responses must be measured to answer several questions. If the responses that are used to answer the research questions are
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

714
Chapter 23 Elements of Research Design
23.6.5
decided upon after viewing the available data, this severely restricts the inferential value of the study. So making the decisions in advance is recommended whenever possible.
Determining a sample size will require focusing on a single response. When there are several research questions, different ones will be addressed with different response summaries. The researcher should determine sample size requirements for each question and then make a compromise decision on a final number.
Ragwort Example. Each plant was located on a plot map, and its progress of growth to maturity, reproduction, and ultimate death was recorded. All measurements for individual plants were summarized to the plot level. These were colonization, sur- vival, reproduction (fecundity, fertility, and establishment rate), and population dynamics. All these measurements are important. They provide insight into dif- ferent aspects of the control mechanisms. The multivariate nature of “reduction” in ragwort requires a multivariate response and analysis. Nevertheless, the focus question will be addressed by the single response summary, Y D integrated ragwort biomass. At regular times through the lifetimes of the plants, biomass is recorded. Y is the cumulative biomass of all plants on the plot, over their lifetimes.
Listing Factors That Can Affect the Response
Listing factors that affect responses is an exercise in brainstorming. List all factors that might contribute directly. Then list factors that influence the factors already on the list, and so on. The important point is not to overlook a critical factor.
After the list is settled, decide how the factors will be addressed in the design. The design factors are those that the researcher manipulates directly and that are directly related to the questions of interest. Other factors will be held fixed. Although possibly influential, these are not related directly to the questions of interest, and it is satisfactory that inferences be restricted to the conditions of their fixed levels. Potentially confounding factors should be identified as those that are influential but not directly related to the questions of interest. The researcher controls for measurable confounding factors in the design through blocking, in the analysis by including their effects as covariates in the model, or both.
Some confounding factors are not controlled by blocking because their values cannot be determined prior to the experiment, because they are difficult to catego- rize, or because they were overlooked at the blocking stage. These can be included as covariates in the analysis. There is nothing wrong, incidentally, with blocking according to a numerical variable like age (young being <20 years, middle being 20 to 50 years, and old being >50 years) and then entering the actual numerical age as a covariate in the analysis.
Ragwort Example
A “fishbone diagram”—Display 23.6—arranges the main factors thought to influ- ence the amount of ragwort biomass that will be produced on study plots.
After reviewing the diagram, the following methods for handling these factors follows as closely as possible the decisions made in the original study.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.6 Steps in Designing a Study 715
DISPLAY 23.6 A fishbone diagram of factors that may affect ragwort biomass
COMPETITION
Grasses
Light exposure
BIOLOGICAL CONTROL
Flea beetles Presence
Temperature CLIMATE
Planned
Others
Rodents
Seed head flies
Proximity to pasture edge
Density
Cinnabar moths Presence
Density
Unplanned Soil fertility
Moisture ENVIRONMENT DISTURBANCE
Topography
Elevation
RAGWORT BIOMASS
Factors to vary (treatments and controls):
Cinnabar moth exposure (yes/no)
Ragwort flea beetle exposure (yes/no)
Factors to hold fixed:
Climate (coastal Oregon)
Habitat (pasture land)
Rodent damage (eliminate using buried wire mesh cages)
Other plant competitors (roots removed at time of disturbance)
Confounding factors:
Factors to control by design (blocking)
Local topography
Proximity to pasture edge
Factors to control by analysis (covariates)
Cinnabar moth density (actual density observed on the plot) Flea beetle density (actual density observed on the plot) Ragwort seed head fly density (another insect)
Factors to control by randomization
Soil fertility Moisture
Light exposure Temperature
23.6.6 Planning the Conduct of the Experiment
Establish a time line for the conduct of the experiment. This is particularly impor-
tant when repeated measures are to be taken or when treatments must be applied
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

716
Chapter 23 Elements of Research Design
23.6.7
in sequence. Have a strict protocol for the conduct of the experiment, with care- ful thought about how to deal with problems that may arise. Train and evaluate technicians who will administer the protocol and measure the results.
Outlining the Statistical Analysis
Describe how measured variables will be summarized into responses that will be analyzed to answer the questions of interest. List the statistical analysis tools that will be used. Draw up the form of summary tables and graphs that will be incor- porated in the final report. This exercise is useful for visualizing how the analysis will proceed.
Ragwort Example. The response variable will be analyzed with regression mod- els, after transformation. The following will be treated as categorical explanatory variables:
Blocks (with B levels)
Cinnabar moth exposure (2 levels) Ragwort flea beetle exposure (2 levels)
The interaction of the previous two factors will also be included. In addition, the following numerical explanatory covariates will be investigated in a preliminary analysis and retained in the model if they appear statistically significant:
Cinnabar moth density Ragwort flea beetle density Ragwort seed head fly density
Determining the Sample Size
Sample size computations require all four ingredients mentioned at the beginning of Section 23.5.1. This is usually challenging. The best situation is one in which the standard deviation can be determined approximately from a similar study. In other situations, one makes a rough guess—usually a conservative one. The specification of a practically significant alternative requires careful thought and judgment on the part of the researcher.
Ragwort Example
The example will focus on finding the number of blocks needed to estimate the inter- active effect of the presence of moths and of ragwort flea beetles on the integrated biomass of ragwort.
Ingredient 1: An Estimate of . The proposed study is similar to the parent study described in Section 23.1. That study found it best to analyze integrated biomass on the log scale, and its estimated standard deviation of the transformed response, given the explanatory variables, was se D 1:38.
Ingredient 2: The Linear Combination of Interest. Suppose that moth is an indicator variable for the presence of cinnabar moths, with a value of 1 for plots where moths were allowed access and a value of 0 for plots where moths were excluded. Let
23.6.8
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.6 Steps in Designing a Study 717
beetle be a similar indicator for the presence of ragwort flea beetles. Ignoring any covariates, the basic model for the mean of the log integrated biomass is
fY j moth,beetleg D ˇ0 C ˇ1moth C ˇ2beetle C ˇ3moth  beetle: In terms of the means of the treated groups, this model has
fY j0; 0g D ˇ0
fYj1;0gDˇ0 Cˇ1 fYj0;1gDˇ0 Cˇ2 fYj1;1gDˇ0 Cˇ1 Cˇ2 Cˇ3:
The question of interest is whether there is an interactive effect between moth and beetle. The parameter of interest in the regression model is the coefficient ˇ3, which is a linear combination of the group means, as follows:
ˇ3 DfYj1;1g􏰀fYj1;0g􏰀fYj0;1gCfYj0;0g; where the coefficients of the group means are C1, 􏰀1, 􏰀1, and C1.
Ingredient 3: A Confidence Level. This is somewhat arbitrary. The usual choice is 95%, and there is no apparent reason to avoid it here.
Ingredient 4: A Practical Significant Difference. In the absence of an interactive effect, ˇ3 is zero, and the effects of the cinnabar moths and of the ragwort flea beetles can be described separately as being multiplicative on the median integrated biomass. The question now is how large a value for ˇ3 has practical relevance in the study of the control agents. To think about this, it helps to see how the results of the statistical analysis will be worded once the estimates of the parameters are available. The combined effect of cinnabar moths and ragwort flea beetles will be described as producing a median integrated biomass that is exp.ˇ3/ times as large as the median integrated biomass anticipated from the sum of their individual effects. For example, if the effect of cinnabar moths alone was to change median integrated biomass by a factor of 0.8 (a reduction of 20%) and the effect of ragwort flea beetles alone was a factor of 0.6 (a reduction of 40%), and if there were no interaction, then the combined effect of the two agents would be a factor of .0:8/.0:6/ D 0:48, or a reduction of 52%. The interactive effect would multiply this by exp.ˇ3/.
The situation where ˇ3 is negative might be described as being synergistic, in the sense that the reduction from both exceeds the reduction expected from their individual effects. The situation where ˇ3 is positive might be described as being redundant, since the reduction anticipated from both is not as great as the sum of their effects. If, in the above example, cinnabar moths contributed nothing to what is accomplished by the ragwort flea beetles, then the reduction from both agents would be 0.6—the same as from the flea beetles alone—which would make the interactive effect equal to exp.ˇ3/ D 1:25, or ˇ3 D 0:223. The same magnitude synergistic effect, from ˇ3 D 􏰀0:223, changes the median integrated biomass with
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

718 Chapter 23 Elements of Research Design
both control agents by a factor of .0:8/.0:6/.0:8/ D 0:384, or a 61.6% reduction. In the absence of expert opinion about whether such changes are meaningful, the following discussion will suppose that these do represent values the researcher would want to detect.
Calculation of the Sample Size
It is assumed that there will be B blocks with four plots in each block. The number of observations for each treatment group average will then be n D B. (If there are r replicates of each treatment combination in each of B blocks, then each treatment average is based on n D r  B observations.) Using the formula from Section 23.5.1, and using 2.00 as the t-multiplier, the number of observations per treatment combination required to distinguish that magnitude interaction from no interaction is
n D 4fŒ22.1:38/2=.0:223/2gf.1/2 C .􏰀1/2 C .􏰀1/2 C .1/2g D 2;451:
Thus, with 2,451 blocks, one could be assured that a 95% confidence interval for the interactive effect of moths and flea beetles could not include both 1 and 0.8 (or 1.25). This is a sobering figure, most likely beyond the resources of the experimenter.
Solutions to the Design Problem
When sample size calculations produce an impossible figure, several different approaches may suggest themselves. (1) Decrease the level of confidence. This is never appealing. (2) Increase the size of the practical significant difference. In the ragwort example, one may be satisfied to determine if the combination of flea bee- tles and cinnabar moths reduces biomass duration by, say, 90%. (3) Consider a repeated measures crossover design. If all treatments can be applied without carry- over to each unit, the analysis would eliminate unit-to-unit variation. This is not an option in the ragwort example. (4) Reduce the residual variance. If there are measurable factors that contribute to residual variation, incorporate them either at the design stage, through blocking, or at the analysis stage, through covariates.
In the ragwort example, the researchers employed blocking and covariate anal- ysis to control for most such factors. So a final alternative may be necessary: (5) Redesign the study. Moving the study into a laboratory may obtain a desir- able result with feasible resources. In the lab, trays of growing ragwort may be raised to have reasonably uniform biomass duration under control circumstances, and these may be exposed to constant numbers of moths and/or flea beetles. In this way the question of interest may be answered, even though the answer may not reflect circumstances outside the lab.
Exploring Alternatives
It is always good practice to calculate sample sizes required under a variety of settings for the critical parameters. Display 23.7 shows the sample sizes required to answer the beetle-by-moth question in a ragwort study, for various combinations of
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.7 Related Issue—A Factor of 4 719
practical significant difference and residual standard deviation. As illustrated, the task of bringing down the sample size requirement is formidable.
23.7 RELATED ISSUE—A FACTOR OF 4
Readers should be aware that many other texts on experimental design determine sample sizes by asking that the interval half-width be no larger than the practical significant difference. If such an interval is centered on the practical significant dif- ference, that prescription gives an interval excluding zero. Requiring that the full width be no larger than the practical significant difference results in the sample
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 23.7
10,000
1,000
100
10
Sample size calculations with different  and different PSDs, for the biological control follow-up study
1.0 2.0
Practically Significant Difference (PSD)
Number of Blocks

720 Chapter 23 Elements of Research Design
sizes determined here being four times as large as those prescribed elsewhere. The difference is not one of method but of perspective. The method here provides much stronger guarantees of distinguishing alternatives. Note: Other texts determine sam- ple sizes based on specifying the power of hypothesis tests to reject the zero value when there is a difference as large as the practical significant one specified. These result in different sample size requirements, depending on the desired power.
23.8 SUMMARY
In a randomized experiment it is useful to block units according to levels of con- founding variables known to be associated with the response. Similar units are grouped together in blocks, then randomly assigned to treatment levels. If there are only two experimental units per block, then blocking is the same as pairing. Other measured confounding variables that were missed at the blocking stage can be accounted for in the analysis by including them in regression models as covariates. The variation of the response after accounting for blocks and covariates is smaller than it would be had these not been included in the analysis. In that respect, blocks and covariates act similarly in improving precision in treatment comparisons.
There are two ways to increase sample size in a randomized block experiment: increase the number of replicate experimental units within each block (if possible) and increase the number of blocks. Both of these improve the precision in treat- ment comparisons. Only with replication within a block, however, can a pure error estimate of variance be obtained for model checking and examination of block-by- treatment interactions. If there is suspicion of such interactions, it is important to replicate. On the other hand, making blocks larger to include more experimental units may increase the variability of responses within the blocks, thereby decreasing precision.
Some of the elements of experimental design are relevant in random sampling. For example, stratification plays a role similar to blocking. Strata within the pop- ulation are identified, and random sampling is conducted separately within the different strata. Here, as with experiments, it is not possible to account for all confounding variables simultaneously, so it is important to identify covariates and include them in the analysis.
23.9 EXERCISES
Conceptual Exercises
1. How does a researcher determine whether to control for a potentially confounding factor by blocking or by covariate analysis?
2. Why is it so important to state the specific research questions in a study beforehand? Why not see what the data suggest first?
3. What is balance in an experimental design? What is its purpose?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.9 Exercises 721
4. What is blinding? What is its purpose? When is it effective? Does blinding always work?
5. Which elements of a confidence interval offer the most promise for reducing the overall width?
6. Vitamin C Study. In one vitamin C study, subjects were randomly assigned to one of two
treatment groups. The treated group received daily pills with vitamin C; the control group received daily placebo pills with no active ingredient. It was found later that the taste of the pills allowed many subjects to break the blind and guess their treatment group. Let X be an indicator of those that correctly guessed their group. (a) How could this indicator be used as a covariate? Explain the model and what it can answer. (b) Let V be an indicator of whether subjects believed they were in the treated group. Explain why V might be a better covariate than X.
Study Designs for Discussion
7. Scientists debate the effects of increased carbon dioxide in the atmosphere, largely the result of burning fossil fuels. But atmospheric carbon dioxide levels have varied widely in the past in response to swings in the earth’s general metabolism. If scientists knew what past levels were, they might be better able to predict what current levels portend. Scientists in the Netherlands and in Florida have proposed a method of determining carbon dioxide levels in past atmospheres by examining fossilized plants. They have discovered that leaves of certain plants respond to different levels of carbon dioxide by developing different numbers of stomata (pores) on the undersides of their leaves. Since fossilized leaves dating back to 10 million years ago are available, a technique based on stomata counts may provide strong insights. (Data from R. Monastersky, “The Leaf Annals,” Science News 144 (August 28, 1993): 140–41.)
How could one design a study with live plants in a laboratory setting that would calibrate stomata counts in such a way that carbon dioxide levels could be estimated? Discuss confounding variables, blocking, etc. Describe the analysis. Do not attempt a sample size calculation.
8. Police searches of the living quarters of accused rapists generally find more pornography than do searches of the living quarters of persons accused of other crimes. Does pornography cause such violent behavior toward women? Discuss the issues involved in designing a study that could address this question.
9. There is considerable controversy among scientists about the potential carcinogenic effects of magnetic fields. Several epidemiology studies have suggested a possible link between electromag- netic fields (EMFs) and a variety of human ailments. How would studies be designed to determine if EMFs are associated with cancers (a) in human tissues and (b) in live humans? What confounding variables can be controlled (c) in the designs and (d) in the analyses?
10. Although considerable evidence suggests that reward systems have negative effects on pro- ductivity (Section 1.1.1), many American companies have elaborate incentive plans. Studies of the effects of such plans usually ask which of several plans works best. How could a study be designed to ask whether they have any benefit at all?
11. Many studies have been conducted to investigate the ability of cloud seeding to increase rain- fall. The detection of even a large effect is difficult because of the large natural variation in rainfall between storms. One study proceeded as follows:
Every day in the study season was evaluated on its suitability for seeding. (Seeding has little chance of being effective if there are no clouds.) On the first suitable day, a random mechanism like the flip of a coin was used to determine whether the clouds would be seeded or not. The rainfall in the target area was measured after treatment. On the next suitable day, the opposite action was taken—the clouds were seeded if they had not been seeded on the previous day and were not seeded otherwise. Again the rainfall in the target area was measured. On the next suitable day, the random mechanism was used again, and on the next the opposite action taken. In this way, consecutive pairs
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

722 Chapter 23 Elements of Research Design
of suitable days contained both actions. (a) Explain why randomization is critically important in this experiment. (b) Explain how blocking was used and under what conditions this blocking might help. (c) Would it be useful to have available, for each suitable day, a measurement of the rainfall in an area adjacent to the target area? Why? How useful might it be, relative to the blocking?
Computational Exercises
12. Research suggests that hypertension adversely affects the speedy retrieval of newly learned information. One test involves showing subjects two, four, or six digits on a video screen and later asking whether a particular digit was part of the set. It is anticipated that hypertensive individuals will take longer to respond than nonhypertensive individuals. Consider forming two groups of equal size to test this. Suppose that the spread (SD) in response times is about three seconds and that researchers consider a mean difference of five seconds to be practically important. What sample sizes should be used to make a 95% confidence interval small enough to distinguish a five-second difference? (Data from “How Hypertension Affects Memory,” Science News 143 (March 20, 1993): 186.)
13. The standard treatment of ovarian cancer by the chemicals cytoxan and cisplatin substantially shrinks or eliminates tumors in about 60% of patients. Taxol, derived from the bark of yew trees, is expected to improve upon those response rates. If a clinical trial is conducted to randomly assign patients to the standard chemicals or to taxol, with equal numbers in each group, how large a sample size would be needed to distinguish a 75% response rate for taxol, at 95% confidence? (Data from “Yew Drugs Show Their Mettle,” Science News 143 (May 29, 1993): 344.)
14. The 1954 Salk vaccine trials for infantile paralysis show the difficulty faced in prospective tri- als of preventative treatment for rare diseases. (Data from D. Freedman, R. Pisani, R. Purves, and A. Adhikari, Statistics, 2nd ed., New York: W. W. Norton, 1991, Chapter 1.) The general rate of infantile paralysis varied highly from year to year, but was somewhere in the vicinity of 1 in 4,000 children. What sample sizes would be required in two groups—a control group and a vaccinated group—in order to determine whether the vaccine reduces the odds of contracting the disease by a factor of 3?
15. Infantile paralysis was linked to hygiene in a strange way that complicated the issue of parental consent. Children from generally high-income families were more likely to obtain consent to par- ticipate in the trials, but they were also more likely to contract the disease, because they had been raised in a cleaner environment where they were not exposed to antigens that would build up their immunity. Children from generally low-income families were less likely to obtain consent, and also less likely to contract the disease because of early exposure to antigens. This theory could be tested by a case–control study in which equal numbers of infantile paralysis victims and nonvictims were randomly sampled to determine the proportions in each group that come from low-income families. If, in the general population (the nonvictim group), the proportion of low-income family children was 20%, what sample sizes would be needed to determine that the odds of contracting the disease for high-income family children was 3 times higher than for low-income family children? Compare the sample size requirements in this and the previous problem.
16. Ragwort Control. Given that the reported study showed that ragwort flea beetles were more effective than cinnabar moths at controlling ragwort, a managerial question is whether there is any reason to introduce the moths in addition to the flea beetles. Suppose that there is no interactive effect, as in Section 23.6.8. (a) In terms of the regression coefficients, what is the effect on median ragwort integrated biomass of including cinnabar moths to plots that may or may not already have exposure to flea beetles? (b) What is the linear combination of the group means that represents this question? (c) How many blocks would be needed to ensure that a 95% confidence interval for the effect on the median did not simultaneously contain 1.0 and exp(0.8)?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

23.9 Exercises 723
17. Big Bang (Chapter 7). Suppose that with the best technology one can measure nebulae dis- tances with a standard deviation of 0.25 megaparsecs about their regression on recession velocity. Suppose further that one can observe nebulae whose recession velocities have a standard deviation of about 400 km/sec. How many nebulae should be sampled to obtain a 95% confidence interval on the age of the universe, with a width of 1 billion years? (Recall that 1 billion years is about 0.001021 megaparsec-seconds per kilometer.) How many nebulae are required if one can sample nebulae with recession velocities having a standard deviation of 600 km/sec?
Design Problems
18. Nibbling and LDL Cholesterol. Some studies by J. Mann at the University of Otago, New Zealand, suggest that nibbling—eating small amounts of food frequently rather than eating three larger meals each day—may be a way to lower cholesterol levels. These were small studies involving hospital patients. (Data from J. Mann, “Cholesterol Worries? Nibble More on Less,” Science News, 132, March 13 1993, p. 165.) Design a study that would answer the question, “Does consuming nine small snack-sized meals each day (nibbling), rather than consuming three meals, reduce LDL cholesterol levels?” Assume that LDL cholesterol will need no transformation. Assume that the mean of the reduction in LDL cholesterol under the three-meal diet will be small and that its standard deviation will be approximately equal to its mean value. Assume also that the standard deviation of the reduction under the nibbling diet will be approximately the same as under the three-meal diet. And assume that you wish to be able to detect a mean reduction under the nibbling diet that is 20% greater than the mean reduction under the three-meal diet.
19. Seasonal Dyslexia. Researchers at the University of Arkansas theorize that exposure to influenza and other viral diseases in the second trimester of pregnancy may be a factor increasing the odds that the child will be dyslexic. (Dyslexia is a reading disability, defined as a reading score on standard tests falling at least two years behind the expected level, despite a normal IQ.) One piece of evidence that could support this would be a high rate of dyslexia in children born in the summer months, because the second trimester would have fallen in the influenza season. Design an observational study to examine this conclusion. Assume that this will be a case–control study with a random sample of dyslexic boys compared to an equally sized random sample of nondyslexic boys. Compare the frequency of births in June, July, and August with the frequency of births in December, January, and February. Ignore births in the other months. In the control group, you expect about 50% to be born in the summer months. How large should each sample be if you wish to detect a twofold difference in the odds?
20. Using the steps in Section 23.6, design a study related to your own field of research. (If you are not yet specialized, select a topic from a data example in a previous chapter.) Make the study specific to one research question. Write a short report in two parts. In part A, discuss briefly the step-by-step decisions involved in the design. List possible confounding variables, and explain how they will be addressed by the design. Explain how treatments will be arranged and how blocking will be done (if necessary). Determine the number of units required to confidently distinguish between practically significant alternatives. In part B, write a brief summary of the results of the study, as you expect them to look. Include figures that would graphically display anticipated results.
Answers to Conceptual Exercises
1. Blocking is possible when the levels of the confounding factor are known prior to the perfor- mance of the study. If not, the levels must be measured at the time of the study and control must be achieved by covariate analysis.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

724 Chapter 23 Elements of Research Design
2. Whenever the data are consulted to determine the “right” questions, accurate assessment of the strength of statistical evidence must incorporate the consultation process. Standard statistical procedures available in computer software packages do not do this (except in the case of multiple comparisons tests in the separate means analysis of variance). So the standard statistical analysis results do not provide appropriate measures of uncertainty concerning post hoc questions.
3. A balanced design is one with equal numbers of units assigned to each treatment group. Balance generally reduces the variability of effect estimates, for a fixed sample size. In most designs, balance also results in statistical independence of different effect estimates.
4. Blinding refers to not informing study units and response measurers about treatment group memberships. Its purpose is to eliminate the effects of group membership knowledge on the response—which can be considerable. Blinding is useful when units can affect study conditions and outcomes, and when researchers have particular expectations for certain treatments. But blinding does not always work. In many studies, the units and researchers involved can break the blind.
5. Reducing the standard deviation of the response about its mean, if possible, is a very desirable approach. It is possible through blocking, inclusion of covariates, or improved measurement. The half-width can also be reduced by increasing the sample size.
6. Let Y be the binary response indicating having caught a cold. Let  represent the probability of catching a cold given X and T , where T indicates whether the subject actually received the vitamin C pills. Then a logistic regression model can be used to estimate the coefficient of T . This would provide a statement about the reduction in odds of a cold due to vitamin C after accounting for whether the subject correctly guessed their group. (b) Since the placebo effect in this study might lead to reporting fewer colds for individuals who thought they received the active treatment, this covariate is probably more useful than X.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

CHAPTER 24
Factorial Treatment Arrangements and Blocking Designs
Good experimental design techniques combine clever approaches to estimat- ing various effects, insightful methods of reducing residual variation, and sensible ways to do all this with a small number of experimental units. Fortunately, each individual researcher does not have to invent a study design for each new study. Some standard design patterns can be applied broadly to cover the vast majority of research situations.
This chapter reviews these basic underlying patterns. It is not intended to provide a full exposition of experimental designs. To do so would require a full textbook (of which there are many excellent examples). Instead, a range of design patterns are discussed in general terms.
Many of the design patterns presented here have appeared in previous chapters. A good exercise for fixing the ideas consists of recalling which case studies from previous chapters fit each design.
725
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

726
Chapter 24 Factorial Treatment Arrangements and Blocking Designs
24.1
CASE STUDY
24.1.1
Amphibian Crisis Linked to Ultraviolet—A Randomized Experiment
In the early 1990s, scientists became concerned about rapid declines in populations of amphibians worldwide. As is often the case when species decline, the suspects are what Edward O. Wilson describes as “the four horsemen of the environmen- tal apocalypse”—disease, predators, habitat destruction, and hunting. The reasons for amphibian decline, however, are perplexing. Hunting has never been a serious threat to frogs, toads, skinks, and salamanders. Habitat destruction and environ- mental pollution seem unlikely because some of the declining species inhabit remote, pristine environments. Disease and predators also appear unlikely because species suffering catastrophic losses are found in close proximity to unaffected species.
The puzzle led researchers to consider global atmospheric causes, such as thin- ning of the ozone layer and the resulting increased exposure to damaging ultraviolet (UV-B) light. There is evidence of ozone loss over temperate regions of the earth where some of the amphibian losses have occurred. Amphibians have no protective hair or feathers, and many lay their eggs in clusters exposed to full sunlight. They could be sensitive indicators of the effects of ozone depletion.
If UV-B is the cause, differential impact on species could be explained two ways: (1) differing exposure of eggs to sunlight, and (2) differences in specific activity of photolyase, a photoreactivating enzyme in many animals that repairs DNA dam- aged by UV-B, providing protection to eggs. Chromatographic assays and literature review confirmed large photolyase activity differences among 10 amphibians that are found in the northwestern United States (Display 24.1).
The researchers wish to determine if there are UV-B effects on the failure rate of egg hatching and if the failure rate is different for species with different levels
Specific activity of photolyase, mode of egg laying, and relative exposure of eggs to sunlight in 10 amphibian species
DISPLAY 24.1
Species
Specific activity of photolyase (1011 CBPDs/hr/ g)
Group Egg-laying mode
Exposure to sunlight
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

24.2 Treatments 727
of specific activity of photolyase. In theory, higher specific activity of photolyase affords greater protection of eggs from UV-B damage. What animal(s) should they use in their study? Should they study the problem in a laboratory or in the field? What experimental design should be used?
Summary of the Statistical Design
To establish a cause-and-effect relationship between UV-B exposure and egg failure rate, researchers designed a randomized block experiment. Egg clusters from three species that place their eggs in exposed shallow water—the toad (Bufo boreas), the tree frog (Hyla regilla), and the Cascade frog (Rana cascadae)—were exposed to a UV-B filtering treatment having three levels: (1) a UV-B blocking filter; (2) a UV-B transmitting filter; and (3) no filter. Special enclosures were constructed to contain clusters of 150 eggs each. Filtering treatments and egg species were ran- domly assigned to enclosures. The resulting percentage of egg failures was measured within each enclosure.
Enclosures were located at four sites in the Oregon Cascade mountains. At three sites, only a single species occurs naturally: Sparks Lake (tree frog), Small Lake (Cascade frog), and Lost Lake (toad). All three species occur naturally at the fourth site—Three Creeks. Only eggs of naturally occurring species were assigned to enclosures at each site. Twelve enclosures were placed at each of the single-species sites, four enclosures for each treatment level. Thirty-six enclosures were placed at Three Creeks, with four enclosures assigned to each combination of species and treatment.
Amphibian species represents a blocking factor in this experiment, but it suf- ficiently resembles a treatment (at Three Creeks) to be considered as one here. At Three Creeks, then, the experiment can be described as a 32-factorial experi- ment, replicated four times. At the other sites (blocks), this was a single treatment factor experiment. The experiment was carried out in the field, where inferences can be drawn to the prevailing natural conditions. (The data, appearing in Dis- play 24.12, are from A. R. Blaustein et al., “UV Repair and Resistance to Solar UV-B in Amphibian Eggs: A Link to Population Declines?” Proceedings of the National Academy of Science, USA 91 (March 1994): 1791–95.)
24.2 TREATMENTS
24.2.1 Choosing Treatment Levels
Control
The importance of a control group and tools associated with control—placebo and blinding—were discussed in the previous chapter. In the amphibian study there must be a group of eggs exposed to UV-B and a group unexposed. The researchers left some egg clusters unexposed as a control (to receive ambient UV-B exposure) and a treated group with a filtering apparatus to block UV-B radiation. Since the apparatus itself may have an effect on hatching, they created an additional
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

728
Chapter 24 Factorial Treatment Arrangements and Blocking Designs
24.2.2
treatment level by constructing a similar filtering apparatus that had no UV-B blockage (analogous to a placebo).
Number of Treatment Levels when the Levels Are Discrete
Discrete means that the different treatment levels are nominal, such as “no UV-B filtering,” “UV-B blockage with a filter,” and “no UV-B blocking but the use of a transmitting filter”; rather than numerical, such as filtering at 0%, 50%, and 100%. The choice of the number of discrete treatment levels is usually not a statistical issue, but some statistical issues do have some bearing on the choice: (1) more levels require more experimental units and (2) if there are no planned hypotheses, then multiple comparison adjustments are required, making it more difficult to detect differences when they really exist. The main point is that a researcher should be stingy about adding more treatment levels to a study.
Number of Treatment Levels when the Levels Are Numerical
If the effect of a numerical explanatory variable is known to be linear throughout some range, then the design that optimizes the precision in estimating the slope places half of the experimental units at the minimum of the range and half at the maximum. This design, however, prohibits the investigation of any nonlinearity. Therefore, if there is some uncertainty about the linearity, or if the goal is to estimate a response surface (to find some minimizing or maximizing value, for example), then more levels must be used. Three levels allow the researcher to fit a quadratic (parabolic) response curve; four make a cubic response possible; and, generally, (q C 1) levels allow one to fit a polynomial of order q.
The choice is determined by a combination of the degree of uncertainty about a linear relationship and the available number of experimental units. In any case, there is substantial advantage to retaining replicate values at each of the distinct levels.
In the amphibian study the researchers chose three species of amphibians in order to include a variety of values of photolyase activity, which will serve as a numerical covariate in the analysis. The choice permits the modeling of a linear and a quadratic effect of photolyase activity on hatching success. It suggests an inference to other species with intermediate photolyase activity levels, although such an inference requires random assignment of photolyase activity levels.
The Rationale for Several Factors
For cause-and-effect inferences, it seems difficult to improve on a study that delib- erately manipulates one factor while holding all other factors fixed. So if there is interest in two factors, why not run two separate experiments? Or to save subjects, why not create three groups—one “control,” one with factor A changed, and one with factor B changed—with the control being used as a baseline for both factors? A principal benefit of examing UV-B blockage and photolyase activity simultaneously in the amphibian study is that inferences can be made about whether UV-B affects
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

24.3
hatching success more for species with low photolyase activity. Such an inference would strengthen the argument for UV-B as the agent for egg failures.
The reason has to do with interaction and efficiency. Neither separate studies nor the three-group design permits the estimation of interaction between the two factors. If there is an interest in interactions, the effects of each factor must be measured at different levels of the other factor to see if the effects are the same at all levels. In addition, for a fixed number of experimental units, there is greater precision in estimating each of two treatment effects from a single experiment in which both are allowed to vary than from two separate experiments in which each one of the treatments is held fixed while the other varies.
FACTORIAL ARRANGEMENT OF TREATMENT LEVELS
24.3.1 Definition and Terminology for a Factorial Arrangement
In an experiment with more than one treatment factor, a treatment combination specifies the combination of levels for the different factors.
To determine how many treatment combinations are required in a factorial experiment, multiply the numbers of factor levels together. The ragwort study of Chapter 23 had four factors. The moth, beetle, and time factors had two levels each, while the competition factor had three levels. So the full factorial arrangement has 2  2  2  3 D 24 treatment combinations. It is customary to refer to such an arrangement as a “2  2  2  3 factorial” or—more simply—a “23  3 factorial.” In 23, the 2 refers to the number of levels, and the superscript 3 refers to the number of factors having 2 levels. As a more complex example, a “25  34  6 factorial” arrangement involves 10 factors: there are five factors with two lev- els, four factors with three levels, and one factor with six levels. The number of treatment combinations is the indicated product—a whopping 15,552.
24.3.2 The 22 Factorial Structure
The effect of a certain factor with two levels is the change in the mean response associated with changing that factor from a low to a high level while holding all other factors fixed. The rationale underlying factorial designs is apparent in the most simple example—the 22 design involving two factors each at two levels. The factorial design produces two estimates of the effect of varying each factor. One estimate of the effect of factor #1 holds factor #2 fixed at a low level; the second estimate of the effect of factor #1 holds factor #2 fixed at a high level. If the two estimates agree, then the effects may be combined into an overall estimate of a meaningful main
24.3 Factorial Arrangement of Treatment Levels 729
In a factorial arrangement, treatment combinations are constructed for all possible combinations of factor levels.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

730 Chapter 24 Factorial Treatment Arrangements and Blocking Designs
effect for factor #1. But if the two estimates are different, there is an interaction, where the effect of changing factor #1 depends on the level of factor #2.
Assume that the factors represent explanatory variables, X1 and X2, each of which may be set at either a low or a high level. The mean of the response variable, fY j X1;X2g, at the four treatment combinations is depicted in Display 24.2.
Display 24.2 shows how the 22 factorial design measures four different effects:
̨1;H D Effect of X1 with X2 High
D fYjX1 D High, X2 D Highg􏰀fYjX1 D Low, X2 D Highg
̨1;L D Effect of X1 with X2 Low
D fYjX1 D High, X2 D Lowg􏰀fYjX1 D Low, X2 D Lowg
̨2;H D Effect of X2 with X1 High
D fYjX1 D High, X2 D High g􏰀fYjX1 D High, X2 D Lowg
̨2;L D Effect of X2 with X1 Low
D fYjX1 D Low, X2 D High g􏰀fYjX1 D Low, X2 D Lowg:
Interpretation of main effects depends on whether the effects of one factor are the same or different at the two levels of the other factor; that is, on whether ̨1;H D ̨1;L and ̨2;H D ̨2;L: The difference between two effects of one variable,
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 24.2
Treatment effects in a 22 factorial experimental design
{Y | X1,X2}
Effect of X2 with X1 Low
Effect of X2 with X1 High
Effect of X1 with X2 High
Effect of X1 with X2 Low
High
X1
Low
Low
High X2

24.3 Factorial Arrangement of Treatment Levels 731
measured at different levels of the other, is the interaction between the two factors:
ˇ1;2 D Interaction between X1 and X2 D ̨1;H 􏰀 ̨1;L
D ̨2;H 􏰀 ̨2;L
DfY jX1 DHigh;X2 DHighg􏰀fY jX1 DHigh;X2 DLowg
􏰀fY jX1 DLow;X2 DHighgCfY jX1 DLow;X2 DLowg:
The second and third lines show that the interaction is the same whether it is called the difference between factor #1 effects at the two levels of factor #2 or is called the difference between factor #2 effects at the two levels of factor #1. The last line emphasizes that the interaction is a linear combination of means.
Ragwort Example. The “silver bullet” theory holds that there is one and only one natural enemy of the pest that will control it. If this pest for the ragwort plant is the ragwort flea beetle (Section 23.1), there would be a reduction of ragwort on plots exposed to flea beetles, and the amount of reduction would not depend on whether the plots were exposed to cinnabar moths. There would be no interaction effect. If, however, control is achieved by a combination of complementary enemies, plots exposed to only one of the insects may have little or no ragwort reduction, while plots exposed to both would have considerable reduction. Measurement of the interaction term in the statistical model allows the researchers to distinguish between these two mechanisms.
Main Effects
If there is no interaction .ˇ1;2 D 0/, the effect of X1 is the same at both levels of X2. Similarly, the effect of X2 is the same at both levels of X1. Then the factorial arrangement provides two estimates of each effect, which may be combined. The average effects are called main effects of the separate factors:
̨1 D Main effect of X1 D ̨1;H C ̨1;L 2
̨2 D Main effect of X2 D ̨2;H C ̨2;L : 2
Main effects are also linear combinations (contrasts) of treatment means.
Main effects have straightforward interpretation when there is no interaction.
When there is an interaction, however, main effects usually make little sense.
Graphical Presentation of Interactions
The best way to present a two-factor interaction is to plot the mean response (or its estimate) against one factor, separately for the levels of the other factor. Display 24.3 shows the format when there is an interaction. (Note: Good practice includes drawing in confidence limits for the means.) With no interaction, the two effects— ̨1;H and ̨1;L—would be equal, and the lines would be parallel.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

732
Chapter 24 Factorial Treatment Arrangements and Blocking Designs
DISPLAY 24.3 Graphical representation of the two-factor interaction in a 22 design
Mean Response
Factor #2 High
Factor #2 Low
Low High
Factor #1
1,H
1,L
In this picture, the effect of factor #1 is not the same at the low and high levels of factor #2,
so there is an interaction.
24.3.3
Comparison with Two One-at-a-Time Experiments
Compare this 22 arrangement to two “one-at-a-time” experiments, where X1 and X2 are changed individually from a low setting to a high setting, but where the treat- ment of both X1 and X2 high is not used. (A one-at-a-time design was encountered in the diet and longevity study of Chapter 5.) Without the both-high treatment combination, it is not possible to estimate interaction. Only one estimate of the effect of each factor is available. Each estimate excludes one-third of the data. With the both-high treatment combination, however, interaction can be estimated, two estimates of each effect are available, and estimates of main effects and interaction use all the data.
The 23 Factorial Structure
When there are three factors each at two levels, the eight treatment combinations may be viewed as corners on a cube. Display 24.4 illustrates the layout, with average responses shown as the lengths of arrows.
Definition of Effects
This design provides four estimates of the effect of changing each factor while holding the others fixed. For example, the effects for factor #1 are
̨1;H;H D Effect of X1, with X2 High and X3 High
DfY jX1 DH;X2 DH;X3 DHg􏰀fY jX1 DL;X2 DH;X3 DHg
̨1;H;L D Effect of X1, with X2 High and X3 Low ̨1;L;H D Effect of X1, with X2 Low and X3 High ̨1;L;L D Effect of X1, with X2 Low and X3 Low:
Whether it makes sense to consider an average of estimates of these effects as a main effect estimate depends again on whether there are interactions. There are
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

24.3 Factorial Arrangement of Treatment Levels 733
DISPLAY 24.4
The representation of a 23 factorial design
Arrow lengths represent mean response.
High
X3
Low
High
X2
Low
Low X1 High
two estimates for each two-factor interaction. For example, the (factor #1)  (factor #2) interactions are
ˇ1;2H D Interaction of X1 and X2, with X3 High D ̨1;H;H 􏰀 ̨1;L;H ˇ1;2L D Interaction of X1 and X2, with X3 Low D ̨1;H;L 􏰀 ̨1;L;L :
If these two interactions are equal, their separate estimates may be averaged to estimate their common value. But if they are unequal, once again it makes little sense to average their estimates and attempt an explanation. The issue revolves around the three-factor interaction,
or
Two-factor interaction of X1 and X2; with X3 High 􏰀 Two-factor interaction of X1 and X2; with X3 Low D Three-factor interaction of X1; X2; and X3
ˇ1;2H 􏰀ˇ1;2L D 1;2;3:
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

734
Chapter 24 Factorial Treatment Arrangements and Blocking Designs
24.3.4
This three-factor interaction has the same value when defined as above, as the dif- ference between the X1-by-X3 interactions for X2 High and Low, or as the difference between the X2-by-X3 interactions for X1 High and Low.
Interpretation of Results
The three-factor interaction is the first estimate to consider. If there is no evidence of a three-factor interaction, examine the three two-factor interactions. If there is no evidence of any two-factor interactions, consider the main effects.
Evidence of interactions at some level, however, makes it difficult to interpret lower level interactions and main effects. The best approach is to estimate separately those effects for which there is evidence of a difference. If, for example, there is no evidence of a three-factor interaction but there is evidence of an X2-by-X3 interaction, the X2 effect would be estimated separately for X3 High and for X3 Low. Plots of averages—with confidence limits—are the best way to display interactions.
The 32 Factorial Structure
When a curved response is anticipated for each of two explanatory variables whose interaction is suspected, a 32 structure gives the user the wherewithal to estimate all the relevant features and decide which ones are important.
Linear and Quadratic Effects
To understand the nature of the estimable effects, consider a situation involving only one factor at three levels. For illustration, consider the three-level covariate, photolyase activity, from the amphibian study. Display 24.5 shows the proportion
DISPLAY 24.5 Linear and quadratic effects of one factor set at three levels
Average Percent Failures
Quadratic Effect is the difference between the Rana value and its interpolated estimate.
H = Effect of second increase
Linear Effect is the sum of the two effects of increases.
10 Photolyase Activity
50
40
30
20 10
L = Effect of initial increase
Interpolated value for Rana cascadae
5
Bufo Rana
Hyla
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

24.3 Factorial Arrangement of Treatment Levels 735
of eggs that failed to hatch, at each of the three levels (averaged over values of the other factors).
Because the factor has three levels, differences between average responses are described by two degrees of freedom. The two features can be expressed in several ways. First, one can report a pair of effects. There is an effect associated with increasing activity from 1.3 (Bufo) to 2.4 (Rana),
̨L D ffail j 2:4g 􏰀 ffail j 1:3g;
estimated to be 45:3% 􏰀 39:2% D 6:1%. And there is an effect associated with
increasing activity from 2.4 (Rana) to 7.5 (Hyla),
̨H Dffailj7:5g􏰀ffailj2:4g;
estimated to be 1:9% 􏰀 45:3% D 􏰀43:4%.
An equivalent representation is in terms of linear and quadratic effects. The
linear effect () is the overall increase in mean response as photolyase changes from 1.3 (Bufo) to 7.5 (Hyla),
Dffailj7:5g􏰀ffailj1:3gD ̨L C ̨H;
estimated to be 1:9% 􏰀 39:2% D 6:1% C .􏰀43:4%/ D 􏰀37:3%.
The quadratic effect () is the difference between the mean response at the
central activity point (2.4 for Rana) and the value predicted by a linear interpolation between the two endpoints. The interpolated value would be
ffail j 1:3gC .2:4􏰀1:3/Œffail j 7:5g􏰀ffail j 1:3g; .7:5 􏰀 1:3/
which is estimated to be 32.6%. So the quadratic effect is estimated by 12.7%. The two estimable features can either be expressed in terms of ( ̨L; ̨H) or in terms of (;), but the interpretation of the latter pair is more natural for most problems having numerical factor levels.
Geometry of the 32 Factorial Design
Display 24.6 depicts the results of a 32 factorial design, which can be applied to the amphibian study if one considers the factor FILTER (with three levels) and the numerical explanatory variable photolyase (which has three distinct values). The base plane in Display 24.6 contains two explanatory factors—photolyase activity and treatment—at three levels each. The vertical axis shows the average response. If both factors were numerical, one could imagine a smooth surface describing the mean response at every pair of explanatory factor values. This display shows three points on each of three slices through the surface. A slice is made by holding FILTER fixed and varying photolyase from 1.3 to 2.4 to 7.5.
On any given slice, it is possible to estimate linear and quadratic effects asso- ciated with the variations in photolyase activity. Therefore, the kinds of questions that can be answered by such a design involve differences in linear effects and differ- ences in quadratic effects that occur as a result of treatments. The most appealing
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

736 Chapter 24 Factorial Treatment Arrangements and Blocking Designs
DISPLAY 24.6
Representation of a 32 factorial design
Percent Failures
50% 40% 30%
There are three quadratic curves in photolyase activity,
one for each treatment.
X1 = Photolyase Activity 5 10
No filter
UV-B transmitting
UV-B blocking
Filter
graphical presentation for the results will be similar to Display 24.3, with three curves displaying the average responses against photolyase on slices of the treatment factor.
Effects in the 32 Design
Let the linear and quadratic effects associated with X1 be as follows:
1;L;1;L D Linear and quadratic effects of X1, with X2 at level 1 1;M; 1;M D Linear and quadratic effects of X1, with X2 at level 2 1;H; 1;H D Linear and quadratic effects of X1, with X2 at level 3
with similar notation describing effects associated with X2. These can be summa- rized by linear and quadratic main effects,
1 D 1;L C1;M C1;H and 1 D 1;L C1;M C1;H; 33
provided that the effects being averaged are all equal; that is, provided that no interactions occur between the effects of X1 and the levels of X2.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

24.3 Factorial Arrangement of Treatment Levels 737
Interactions in the 32 Factorial Arrangement
If the linear or quadratic effects of X1 differ on different levels of X2, interaction exists, and main effects have questionable meaning. There are several ways to describe the 22 D 4 interaction possibilities. One method consists of constructing measures of the linear and quadratic changes in the linear and quadratic effects of X1 with changes in X2. This produces single estimates for the linear-by-linear interaction, the linear-by-quadratic interaction, the quadratic-by-linear interaction, and the quadratic-by-quadratic interaction. As in all these models, each feature is a linear combination of mean responses, and the methods for drawing inferences appear in Chapter 5.
A more convenient method for the amphibian example, where the treatment factor is not numerical, would be to compare features of the parabolas for the two controls. If they differ, compare the treatment features to the features of the UV-B transmitting control. If they do not, then compare the treatment features to the combined features of the two controls.
For many situations, the set of interactions just described are too complex. Unless there is specific interest in one of the contrasts, a general ANOVA F-test for the combined set may suffice. Evidence of interactions suggests plotting the estimated means (as earlier) with confidence intervals. If the test shows no evi- dence of interactions, the analysis can be summarized by estimating the main effect parameters.
Amphibian Example. In the amphibian experiment the factors FILTER and SPECIES appear in a 32 factorial arrangement. If UV-B causes diminished egg hatching success then a treatment main effect should be present. If, in addition, the extent of the UV-B effect depends on the level of photolyase activity, which would indicate a mechanism explaining the UV-B damage, then an interactive effect should be present. A key question is whether the effect of UV-B on hatching failure is greater for species with low levels of photolyase activity than it is for species with high levels.
24.3.5 Higher-Order Factorial Arrangements
Factorial arrangements can be expanded to include any number of factors at any number of levels. The advantages to expansion remain: increasing the number of lev- els allows for a more detailed view of the response curves; and increasing the number of factors allows for exploration of more interactions. The principal disadvantage to expansion lies in the way the number of treatment combinations explodes. Larger numbers of treatment combinations require more subjects, which generally means that subjects will be more diverse. Hence the study loses accuracy that might be available at a smaller scale.
Constructing Error Estimates
There are ways around the problem of too many treatment combinations. Along with the increased number of two-factor interactions and quadratic effects that come with increased levels and factors comes a host of higher-order interactions
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

738
Chapter 24 Factorial Treatment Arrangements and Blocking Designs
DISPLAY 24.7
and higher-order polynomial terms (with numerical explanatory variables). If the researcher is willing to assume that these effects are truly zero, the information normally available for estimating these complex terms may be used to estimate . This can reduce the need for replication (see Chapter 14).
An example illustrates the point. In a 28 factorial design—eight factors, each at two levels—there are 256 treatment combinations requiring 256 sub- jects just to use each treatment combination once. In the analysis, there are 8 main effects, 28 two-factor interactions, 56 three-factor interactions, 70 four-factor interactions, 56 five-factor interactions, 28 six-factor interactions, 8 seven-factor interactions, and 1 eight-factor interaction. A researcher willing to assume there are no meaningful interactions above two-factor may use the mean square that would have acted as a numerator mean square in an F -test for the combined set of 56 C 70 C 56 C 28 C 8 C 1 D 219 higher-order interactions as a 219 degrees of freedom residual mean square. (“Residual” is correct here, because this would be the residual mean square in a regression model containing only main effect and two-factor interaction terms.) Each main effect is a contrast between two averages, each containing 128 observations; each interaction is a linear combination of four averages, each containing 64 observations; and there are 219 degrees of freedom associated with residuals—all this without any replication.
Fractional Replication
As the example suggests, even one replication of a 28 factorial arrangement may give more than adequate information about all main effects and two-factor interactions. A researcher can also take advantage of an assumption of no high-order interactions at the design stage to reduce the number of treatment combinations. The method is called fractional replication.
Although the mechanics of fractional replication lie outside the scope of this text, the basic structure can be sketched by continuation of the example involving eight factors at two levels each. If only half the 256 treatment combinations are used, it is possible to obtain an analysis as in Display 24.7. That is, the reduced number of treatment combinations appears to affect only the degrees of freedom available for residual.
Each feature remaining in the model—each main effect and each two-factor interaction—will be completely confounded with a higher-order interaction. Thus the estimate of a main effect will be the same linear combination of observations
Proposed structure for the ANOVA in a half-replicate of a 28 factorial
Source of variation Sum of squares d.f. Mean square F-statistic p-value
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

24.4 Blocking 739
that would be used to estimate the high-order interaction. To assign the estimates to the low-order features requires the assumption that the higher-order interaction is indeed zero.
Reservations such as these are minor in comparison with the gains that frac- tional replication achieves in reducing the number of subjects. Specific fractional replication plans are available for a wide range of treatment level combinations.
24.4 BLOCKING
Complex studies and the desire for high precision necessitate a large number of experimental units, but a common consequence of a large number of experimental units is increased heterogeneity. To counter this, experimental units can be grouped into blocks. Units within each block are homogeneous, so that the heterogeneity is captured by systematic block-to-block variation. By making treatment compar- isons within blocks, the block-to-block variation does not affect treatment effect estimates. Including block effects in the models isolates the block-to-block varia- tion so that it also does not affect the residuals. The result is increased precision without loss of bias, the only price being the degrees of freedom necessary to esti- mate the block mean square (one less than the number of blocks used). This section introduces some of the basic blocking patterns.
24.4.1 Randomized Blocks
In a randomized block experiment treatment combinations are assigned randomly to subjects within a block; and separate randomizations are conducted for each block. It is a randomized complete block design (RCBD) if each block contains all treatment combinations. Display 24.8 depicts an example of an RCBD involving eight treatment combinations (e.g., from a 23 factorial design).
Suppose that experimental units are plots in a field. Suppose further that plots at the same latitude are expected to have relatively homogeneous responses if treated the same way, but plots at different latitudes are expected to have very different responses. For example, the rows in the display may correspond to plots at the same distance from a river. Then the homogeneous plots should be grouped into blocks; that is, the treatment levels should be assigned to plots separately for each row.
RCBDs may have each treatment combination replicated r times within each block. Whenever r > 1, the replicates form a group from which within-group variation can be measured. This allows the researcher to explore possible block-by- treatment interactions (see Section 13.2). Assessing these interactions when r D 1 is more difficult, requiring a search for specific interaction patterns that can be modeled using regression tools (Chapter 14).
Even when exploration of block-by-treatment interactions is feasible, the RCBDs are most appropriate when there is an expectation of no interactions— that treatment effects will be the same in all blocks. This is because results about
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

740 Chapter 24 Factorial Treatment Arrangements and Blocking Designs
DISPLAY 24.8
A randomized complete block design
North
West East South
Large N–S variability
Small E–W variability
Within each block, a separate randomization allocates all treatment numbers to the subjects.
1 2 3 4 5 6
5
6
3
2
8
1
7
4
3
7
8
4
1
2
5
6
6
1
7
2
3
5
4
8
6
7
8
2
5
3
1
4
7
2
4
5
1
6
8
3
3
2
5
4
7
8
6
1
treatment effects are stronger when there is some universality to them; that is, they don’t change from block to block.
Randomized Incomplete Block Designs
Attaining blocks of homogeneous units often requires very small block sizes. In many studies, block size is as low as two, as in the case study of schizophrenia using twins (Section 2.1.2). When the number of treatments exceeds the number of units in each block, randomized incomplete block designs (RIBD) offer researchers the ability to measure all important effects. The reader should refer to experimental design texts for a systematic presentation of incomplete block techniques. The basic idea is conveyed by the example that follows.
Example. Two treatments, A and B, are proposed to prevent leaf scale on roses. An interesting question concerns the effect of applying the two treatments together— that is, the interaction. Because of large variation in the amount of scale expected to develop on different parts of a rose bush, the researcher wishes to use one leaf as a block with the leaf halves as experimental units. Hence there are only two experimental units in a block, whereas there are 22 D 4 treatments. Display 24.9 illustrates how the study can be arranged.
The trick is to ensure that each of the basic effects is measured within a block. The effect of treatment A with B absent is estimated by the difference between the response to treatment combination (A, 􏰀) and the response to treatment com- bination (􏰀, 􏰀), from Leaf #2. The estimate of treatment A with B present is estimated by the difference between the response to treatment combination (A, B) and the response to treatment combination (􏰀, B), from Leaf #1. The estimate of
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Block Number

24.4 Blocking 741
DISPLAY 24.9
A randomized incomplete block design for a 22 factorial treatment arrangement in blocks of size two
Leaf #1
Leaf #2
Leaf #3
Leaf #4
(A, B) (A, –) (A, B) (–, –)
(–, B)
(–, –)
(A, –)
(–, B)
Estimates 1,H
Estimates 1,L
Estimates 2,H
Estimates 2,L
(– , –) apply no treatment LEGEND: (A, –) apply only treatment A (– , B) apply only treatment B
(A, B) apply both treatments
treatment B with A absent is estimated by the difference between the response to treatment combination (􏰀, B) and the response to treatment combination (􏰀; 􏰀), from Leaf #4. The estimate of treatment B with A present is estimated by the difference between the response to treatment combination (A, B) and the response to treatment combination (A, 􏰀), from Leaf #3. Each estimate is made within a leaf, so leaf-to-leaf differences do not influence the estimates.
This design affords two estimates of interaction, from the difference between estimates of ̨1;H and ̨1;L and from the difference between estimates of ̨2;H and ̨2;L. The average difference is the overall estimate of interaction. Similarly, the main effect estimates may be estimated, and their interpretation is clear when there is no evidence of interaction.
This design requires four blocks for two replicates, and multiple replicates are advisable. Separate randomizations assign treatment combination pairs to leaves and then assign treatment combinations to leaf halves within each leaf.
Extensions to More Treatments
Randomized incomplete block designs for more than two treatments (and for more levels) require many more blocks if all effects are to be estimated. Savings are once again possible when the researcher is willing to assume high-order interactions are negligible and need not be estimated. The low-order effects that are estimated will again be confounded with the high-order ones, but this is often a small price in comparison with the advantages to obtaining adequate accuracy from a modestly sized study.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

742
Chapter 24 Factorial Treatment Arrangements and Blocking Designs
24.4.2
Latin Square Blocking
More complex blocking patterns account for stronger natural patterns of variation in subjects. One such extension is the Latin square. In Display 24.10, there are eight treatment combinations (as in, for example, a 23 factorial arrangement), but the experimental units (plots) exhibit variation in both cardinal directions.
DISPLAY 24.10
A Latin Square blocking pattern
North
South
Large variability N–S and E–W
Column Number
12345678
1 2 3 4 5 6 7 8
8
6
7
3
4
2
1
5
2
8
1
5
6
4
3
7
1
7
8
4
5
3
2
6
6
4
5
1
2
8
7
3
3
1
2
6
7
5
4
8
7
5
6
2
3
1
8
4
5
3
4
8
1
7
6
2
4
2
3
7
8
6
5
1
West
East
Each treatment appears exactly once in each column and in each row.
24.4.3
Sixty-four plots form a square with sides of eight units. With no treatments applied, it is anticipated that the mean response depends on the row and on the column of the subject, but in an additive way; that is, the mean response can be described by an additive model involving row and column effects.
A Latin Square is one in which all units are numbered from one up to the number of rows (columns) in such a way that each number occurs exactly once in each row and exactly once in each column. There are many different Latin Squares with a given number of rows. The user picks one having the number of sides equal to the number of treatment combinations. The treatment combinations are then randomly assigned to the numbers and applied to the subjects with those numbers assigned.
If there are no position-by-treatment interactions, this method yields an anal- ysis where treatment differences are unaffected by row and column differences. The analysis of variance table for a single replication looks like Display 24.11.
Split-Plot Designs
Sometimes different treatments cannot be conveniently applied to the same exper- imental units. A typical situation: new methods for teaching ecology at the elementary school level involve both the study materials given to the students and
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

DISPLAY 24.11
The analysis of variance table for a single replication of a Latin Square design with eight treatments
24.5 Summary 743
Source of variation Sum of squares d.f. Mean square F-statistic p-value
the training of the teacher. Different study materials can be randomized to students within a class, but the teachers must be randomized to classes. Consistent sources of variation affect different classes and do not influence student-to-student variation within a class—time of day, for example.
Suppose, to continue the example, that teachers have been trained by either method A or method B, and suppose that there are two sets of instructional materials, R and S. The teachers are randomized to classes, which are called whole plots. Within each of the classes, instructional materials R and S are randomized to students. In the end, all students (the split plots) are given a standard achievement test.
In terms of the analysis of instructional materials, this design looks like a randomized block design with classes as blocks, and the replication of treatments within the classes allows the researcher to investigate possible teacher training-by- instructional material interaction. When it comes to determining the main effects of teacher training, however, the classes should be viewed as the subjects, with the different student responses viewed as repeated measures. Ordinarily, the average response of all students in a class will summarize the repeated measures for this analysis.
24.5 SUMMARY
In determining treatment structure, two questions arise: (1) How many factors should be examined? and (2) How many levels should each factor have? The number of levels of any given factor is often naturally determined. For numerical treatment levels, the number depends on the complexity of the response curve. Factors should be included with others in the same study when their interactions are of interest.
A study using all combinations of factor levels is said to have a factorial arrangement. Factorial arrangements allow the researcher to investigate very com- plex interactions. When the researcher is confident that the mean response is not so complex, fractional replication can be used to reduce the number of treatment combinations while preserving information about important effects.
In a randomized complete block design, all treatment combinations are randomly assigned to experimental units within each of a set of blocks. Blocking experimental units into homogeneous groups reduces the variation and increases the accuracy of
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

744 Chapter 24 Factorial Treatment Arrangements and Blocking Designs
treatment comparisons. When the number of treatments exceeds a reasonable block size, it is still possible to estimate effects by using a larger number of blocks in a balanced incomplete block design. More complex natural variations in experimental subjects can be controlled by advanced blocking patterns such as the Latin Square.
Amphibian Study
The experimental plan called for random assignment of the nine treatment combi- nations (the factorial combinations of three levels of amphibian species and three levels of UV-B filtering). Treatment combinations were replicated four times at each site. The analysis of the results focuses on the proportion of eggs that fail to hatch. It is possible that these could be analyzed either with binomial logistic regres- sion (with all mi ’s being 150 and with careful attention to possible extra-binomial variation) or by ordinary regression and analysis of variance techniques (but with consideration of transformation if the proportions vary widely). In either case, a FILTER effect would be incorporated into the model by, for example, the inclusion of two indicator variables and a SITE effect could be incorporated by the inclusion of three indicator variables. Initial investigation might focus on a SPECIES effect, using two indicator variables, with particular attention to the FILTER-by-SPECIES interaction. Further investigation of the interaction of the filtering treatment and photolyase activity is accomplished by replacing the SPECIES factor by the pho- tolyase numerical explanatory variable. It would be possible to include a linear and a quadratic term (if necessary) for this explanatory variable, and to examine interactions between FILTER and photolyase activity.
24.6 EXERCISES
Conceptual Exercises
1. It is believed that forest canopy closure (X, in percent) is an important factor in determining the suitability of a forest for use by flying squirrels. Suppose that the density of flying squirrels is Y , in numbers per hectare. (a) Describe a design situation in which you deliberately alter forest plots to have specified discrete levels of canopy closure and then observe what the resulting flying squirrel density becomes. (b) Describe a study in which you randomly sample forest plots and measure their naturally occurring values .X; Y /.
2. Amphibian Decline. Referring to Display 24.1, notice that several species lay their egg clus- ters in areas protected from the sun. Could the UV-B hypothesis be tested by comparing hatching success of egg clusters laid in areas exposed to the sun with the hatching success of egg clusters laid in, say, in hidden places? Why didn’t the researchers include species that lay their eggs in hidden places or in open water?
3. One researcher advocates an “order C2” rule, in which the number of levels of an experimental factor is set at the anticipated order of the polynomial curve, plus two. For example, if the relationship is expected to be a straight line (order D 1), this researcher would use three levels. What could be the justification for this rule?
4. With a 24  31 factorial arrangement, how many factors are there in all? How many treatment combinations are involved?
5. What are the differences among these three terms: (a) the interaction of X1 with X2; (b) the interaction of X2 with X1; and (c) the interaction between X1 and X2?
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

24.6 Exercises 745
6. Two explanatory factors, temperature and salinity, interact in their association with biodiversity in sea samples. The estimates of main effects are large. Are the main effects meaningful? Why or why not?
7. Draw pictures, similar to Display 24.3, with the mean response versus factor #1 for a 3  2 factorial design depicting: (a) with no interaction, (i) the case with no quadratic effect for factor X1; and (ii) the case with a quadratic effect; (b) with interaction, (i) the case where only the linear effect of X1 differs according to the level of X2; (ii) the case where only the quadratic effect of X1 differs according to the level of X2; and (iii) the case where both the linear and quadratic effects of X1 differ according to the level of X2.
8. Two researchers examine the results from a 26 factorial arrangement with one replication. Researcher A decides in advance to use the residuals from a model with main effects and 2-factor interactions to estimate variability, assuming all 3-factor, 4-factor, 5-factor, and 6-factor interaction terms are zero. Researcher B is willing to assume that the 5-factor and 6-factor interaction terms are zero, but uses a backward stepwise procedure to eliminate 3-factor and 4-factor interactions if they fail to meet the p D :05 criterion for significance. Researcher B finds that all 3-factor and 4-factor interactions can be eliminated and therefore ends up with the same model structure as Researcher A. (a) Can the same inferences be drawn from these two approaches? (b) Should the two report their results the same way? (c) Is one approach preferred?
9. (a) What are the residual degrees of freedom in one replication of a Latin Square design with K treatments? (b) How many subjects go into each treatment combination average? (c) Why is this important?
Computational Exercises
10. Amphibian Study. Let GENUS be a categorical representation of the three amphibians (as two indicator variables). Also, let photo be the photolyase activity, representing the three amphibians by a single, numerical variable. Let TREAT be the categorical representation of the three treatments. Draw a picture like Display 24.5 depicting the structure of the mean responses for each of the following models. (Ignore site differences.)
(a) GENUS C TREAT
(b) photo C TREAT
(c) GENUS C TREAT C GENUS  TREAT (d) GENUS C TREAT C photo  TREAT (e) photo C TREAT C photo  TREAT
(With a computer) Denoting a treatment combination in a 25 factorial as x1x2x3x4x5 with each xi being either H or L, suppose that only the following 16 treatment combinations are used: HLLLL, LHLLL, LLHLL, LLLHL, HLLLH, LHLLH, LLHLH, LLLHH, HHHLL, HHLHL, HLHHL, LHHHL, HHHLH, HHLHH, HLHHH, LHHHH. (a) Generate 16 standard normal obser- vations for the responses. (b) Create an indicator variable for the High level of each factor, calling the variables A, B, C, D, and E. (c) Define products of indicators as follows: AB, AC, BC, AE, BE, CE, and DE. (d) Construct a regression equation with the 12 explanatory variables created in parts (b) and (c), determining that those main effects and 2-factor interactions can be estimated. (e) Try to include the 2-factor interaction CD into the equation in (d). The result indicates that CD is com- pletely confounded with one of the variables already in the equation. It is AB. To see this, drop AB and then add CD.
12. (a) Use a randomization procedure to produce three replicates of the Randomized Incomplete Block Design for the rose scale example in Display 24.9. Each replicate has four leaves of two halves each, so there are 24 subjects in all. (b) With a computer: (i) Generate 24 standard normal observations for the responses. (ii) Define the appropriate indicator variables for the leaves and for
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
11.

746
Chapter 24 Factorial Treatment Arrangements and Blocking Designs
DISPLAY 24.12
Percentage of frog eggs failing to hatch under different UV-B treatments
the treatments and construct a multiple linear regression analysis. Use an analysis that assumes there is no treatment-by-leaf interaction but there is an A-by-B treatment interaction. (iii) Select three leaves; add (6, 2, 15) units to each of the responses from selected leaves (1, 2, 3); and recompute the regression analysis, verifying that the treatment conclusions are unchanged.
13. (With a computer) (a) Generate 64 standard random normal observations, and assume these are the responses to the 64 subjects in a Latin Square with eight treatments. Define appropriate indicator variables and construct a multiple linear regression analysis resulting in the analysis of variance table in Display 24.11. (b) Add 6  I to all observations in row I, for each I D 1;:::;8: Add 3  J to all observations in column J , for each J D 1; : : : ; 8: Rerun the regression model and verify that the analysis of treatments is unchanged.
Data Problems
14. Amphibian Crisis and UV-B. The percentage of unsuccessful hatching from enclosures con- taining 150 eggs each in the UV-B study appear in Display 24.12. Analyze these data, assessing the evidence supporting the hypothesis that UV-B is responsible for low hatch rates. Fit a rich regression model including interactions of site-by-treatment and species-by-treatment. (There is no possibil- ity of measuring site-by-species interactions.) Examine a residual plot to see if a transformation is appropriate. Determine if site-by-treatment interactions can be ignored. Then assess the evidence for an interaction between UV-B treatment and species. Assess whether the dependency on species can be explained by effects that are linear in photolyase activity. Construct estimates of percent fail- ure for each species under the blocking filter and under the transmitting filter, at a reference site of Three Creeks. Include Bonferroni 95% confidence limits. Write a paragraph summarizing the statistical findings and explaining what inferences are warranted by the experimental design. (See Section 24.1.1.)
15. Using the residual standard deviation estimate from the previous problem, determine a sample size that would estimate the difference between the UV-B effects on Rana cascadae and on Bufo boreas to within 10% of the value of the UV-B effect on Bufo boreas.
Species: Photolyase activity: Locale:
No filter
UV-B Transmitting
UV-B blocking
Hyla regilla
7.5
Rana cascadae
2.4
Bufo boreas
1.3
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

24.6 Exercises 747
Answers to Conceptual Exercises
1. This goes back to Chapter 1. (a) Select a number of plots and randomly assign them to different canopy closure levels. Then observe. This is the approach to be taken when it is desired to show a cause-and-effect relationship between the two variables. (b) By randomly sampling, you learn about the overall structure of the population of .X; Y / pairs that exists naturally within the region sampled, but no cause-and-effect relationship can be inferred.
2. To do so would confound the exposure difference with species differences. Aside from that, they would not be able to randomize exposure conditions to similar egg clusters, which would pre- clude cause-and-effect inferences. By selecting only species that lay eggs in open shallow water, they are controlling for possible differences between hatching success related to different environ- ments. Remember that cause-and-effect can be established on a subpopulation, and that is what was attempted in this study.
3. The rule includes one more level than is needed to fit the anticipated polynomial. The purpose for the rule is to always provide for one degree of freedom for lack of fit to the polynomial.
4. There are 5 .D 4 C 1/ factors. Four have two levels each, while the fifth has three levels. The total number of treatment combinations in a full factorial is the indicated product, 48.
5. None. They are equivalent ways of saying the same thing.
6. No. The main effect of salinity, for example, does not describe the effect of changing salinity on
biodiversity. Interaction means that you need to know what the temperature is before determining the effect of salinity. At one temperature the effect of increased salinity may be increased biodiversity, but at another temperature the effect of the same increased salinity could decrease biodiversity.
7. Refer to Display 24.13 for examples. Notice why the interaction has two degrees of freedom.
8. (a) Technically, no. A may use the p-values directly from a regression or ANOVA output; B
uses the data to determine the inferential model, so valid p-values are based on a sequence of trials where the search for a model is incorporated as part of the analysis. There is no easy way to do this, however; so : : : (b) No. The best way for them to help their readers evaluate the strength of their evidence is to describe their methodologies—which were different. (c) B addresses one aspect of model inadequacy that A does not.
9. (a) The general formula is: .K 􏰀 1/.K 􏰀 2/. (b) K subjects. (c) These are important for determining the numbers of replications (sample size) necessary to answer the questions of interest.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
DISPLAY 24.13 Examples of response patterns for a 3  2 factorial study
Factor #1 Factor #1
Factor #1 Factor #1 Factor #1
(a)(i)
(a)(ii)
Factor #2 High: Factor #2 Low:
(b)(i)
(b)(ii)
(b)(iii)

Bibliography
748
Aitkin, M., Anderson, D., Francis, B., and Hinde, J. 1989. Statistical Modelling in GLIM. Oxford: Clarendon Press.
Agresti, A. 1990. Categorical Data Analysis. New York: John Wiley & Sons. Bowerman, B. L., and O’Connell, R. T. 1993. Forecasting and Time Series: An Applied
Approach, 3rd ed. Belmont, Calif.: Duxbury Press.
Box, G. E. P., Hunter, W. G., and Hunter, J. S. 1978. Statistics for Experiments: An
Introduction to Design, Data Analysis, and Model Building. New York: John Wiley
& Sons.
Breslow, N. E., and Day, N. E. 1980. Statistical Methods in Cancer Research, Vol. 1:
The Analysis of Case-Control Studies. Lyon: World Health Organization. Chatfield, C. 1984. Analysis of Time Series: An Introduction, 3rd ed. London:
Chapman & Hall.
Cleveland, W. S. 1993. Visualizing Data. Murray Hill, N.J.: AT&T Bell Laboratories. Daniel, C., and Wood, F. S. 1980. Fitting Equations to Data: Computer Analysis of
Multifactor Data, 2nd ed. New York: John Wiley & Sons.
Devore, J. L., and Peck, R. 1993. Statistics: The Exploration and Analysis of Data, 2nd
ed. Belmont, Calif.: Duxbury Press.
Dobson, A. J. 1983. An Introduction to Statistical Modelling. London: Chapman &
Hall.
Draper, N. R., and Smith, H. 1981. Applied Regression Analysis. New York: John
Wiley & Sons.
Durbin, J., and Watson, G. S. 1951. “Testing for Serial Correlation in Least Squares
Regression II.” Biometrika 38: 159–78.
Fisher, L. D., and van Belle, G. 1993. Biostatistics: A Methodology for the Health
Sciences. New York: John Wiley & Sons.
Fisher, R. A. 1935. The Design of Experiments. New York: Hafner Library. Freedman, D., Pisani, R., Purves, R., and Adhikari, A. 1991. Statistics. New York:
W. W. Norton.
Fuller, W. A. 1987. Measurement Error Models. New York: John Wiley & Sons. Good, P. 1994. Permutation Tests: A Practical Guide to Resampling Methods for Testing
Hypotheses. New York: Springer-Verlag.
Hand, D. J., and Taylor, C. C. 1987. Multivariate Analysis of Variance and Repeated
Measures: A Practical Approach for Behavioural Scientists. London: Chapman &
Hall.
Hill, M. O. 1974. “Correspondence Analysis: A Neglected Multivariate Method.”
Applied Statistics 23: 340–54.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
APPENDIX

Appendix Bibliography 749
Hoaglin, D. C. 1988. “Transformations in Everyday Experience.” Chance 1: 40–45. Hosmer, D. W., Jr., and Lemeshow, S. 1989. Applied Logistic Regression. New York:
John Wiley & Sons.
Johnson, A. R., and Wichern, D. W. 1992. Applied Multivariate Statistical Analysis,
3rd ed. Englewood Cliffs, N.J.: Prentice Hall.
Kempthorne, O. 1952. The Design and Analysis of Experiments. New York: John Wiley
& Sons.
Kotz, N. L., Johnson, S., and Read, C. B. 1988. Encyclopedia of Statistical Sciences,
vols. 8 and 9. New York: John Wiley & Sons.
——— . 1986. Encyclopedia of Statistical Sciences, vol. 7. New York: John Wiley &
Sons.
——— . 1985. Encyclopedia of Statistical Sciences, vols. 5 and 6. New York: John
Wiley & Sons.
——— . 1983. Encyclopedia of Statistical Sciences, vols. 3 and 4. New York: John
Wiley & Sons.
——— . 1982. Encyclopedia of Statistical Sciences, vols. 1 and 2. New York: John
Wiley & Sons.
Kuehl, R. O. 1994. Statistical Principles of Research Design and Analysis. Belmont,
Calif.: Duxbury Press.
Mallows, C. L. 1986. “Augmented Partial Residuals.” Technometrics 28: 313–19. Mardia, K. V., Kent, J. T., and Bibby, J. M. 1979. Multivariate Analysis. New York:
Academic Press.
McCullagh, P., and Nelder, J. A. 1989. Generalized Linear Models, 2nd ed. London:
Chapman & Hall.
Mendenhall, W. 1993. Beginning Statistics A to Z. Belmont, Calif.: Duxbury Press. Miller, R. G., Jr. 1986. Beyond ANOVA: Basics of Applied Statistics. New York: John
Wiley & Sons.
Moore, D. S., and McCabe, G. P. 1993. Introduction to the Practice of Statistics,
2nd ed. New York: Freeman.
Morrison, D. F. 1990. Multivariate Statistical Methods, 3rd ed. New York: McGraw
Hill.
Mosteller, F., and Tukey, J. 1968. “Data Analsyis—Including Statistics.” In
G. Lindzey and E. Aronson, eds., Handbook of Social Psychology, vol. 2, 2nd ed.
Cambridge, Mass.: Addison-Wesley, pp. 80–203.
——— . 1977. Data Analysis and Regression: A Second Course in Statistics. Reading,
Mass.: Addison-Wesley.
Neter, J., Wasserman, W., and Kutner, M. 1990. Applied Linear Statistical Models,
3rd ed. Homewood, Ill.: Irwin.
Pearson, E. S., and Hartley, H. O. 1972. Biometrika Tables for Statisticians, vol. II,
3rd ed. Cambridge, U.K.: University Press.
Picard, R. R., and Berk, K. N. 1990. “Data Splitting.” American Statistician 44(2):
140–47.
Rice, J. A. 1995. Mathematical Statistics and Data Analysis, 2nd ed. Belmont, Calif.:
Duxbury Press.
Sprent, P. 1993. Applied Nonparametric Statistical Methods. London: Chapman &
Hall.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

750 Appendix Bibliography
Swed, F. S., and Eisenhart, C. 1943. “Tables for Testing Randomness of Groupings in a Sequence of Alternatives.” Annals of Mathematical Statistics 14: 66–87.
Tanur, J. 1972. Statistics: A Guide to the Unknown. San Francisco: Holden-Day. Thompson, S. K. 1992. Sampling. New York: John Wiley & Sons.
Van Ryzin, J., ed. 1977. Classification and Clustering. New York: Academic Press. Weisberg. S. 1985. Applied Linear Regression. New York: John Wiley & Sons. Wetherill, G. B. 1981. Intermediate Statistical Methods. London: Chapman & Hall. Yates, F. 1984. “Tests of Significance for 2  2 Tables.” Journal of the Royal Statistical
Society, A, 147: 426–63.
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Page numbers in italics denote displays. A
Accepting the null, fallacy of, 166
ACF. See Autocorrelation function (ACF) Additive model, 389, 389–390, 390
alternate parameterization for, 412–413 analysis of variance F-test for, 392 nonadditivities and, 408–410, 409 regression parameterization for, 390
Additive treatment effect model, 10 Adhikari, A., 722
Adjusted R-squared statistic, 291–292 Adjustment
regression after transformation in, 458–461
for serial correlation, 449–475
Age and mating success of male elephants (case
study), 673, 673–674, 674, 678, 679,
681–682, 683, 683, 684, 692
Agent Orange effects on troops in Vietnam (case
study), 60–62, 61, 68, 70, 77
AIC. See Akaike’s Information Criterion (AIC) Akaike’s Information Criterion (AIC), 364,
364–365, 618
Alcohol metabolism in men and women (case
study), 311, 311–313, 312, 318–319, 319,
320–322, 328–329, 337 Alternative hypotheses, 11 Alternatives to t-tools, 85–112
case studies on, 86–88, 88, 105–106 exercises on, 106–112
Levene’s test for equality of two variances,
103–104
for paired data, 99–102
permutation tests, 95–97
practical and statistical significance, 102–103 presenting statistical findings, 103
rank-sum test, 88–94
survey sampling, 104–105
Welch’s t-test, 97–99, 99
Alvarez, W., 416
Amabile, Teresa, 2
American Sign Language (ASL), 421, 421, 485 Amphibian crisis linked to ultraviolet (case
study), 726, 726–727, 728, 737, 744 Analysis of variance (ANOVA)
assessment of fit using, 218–221 extra-sums-of-squares F-tests, 284–289,
287–288, 290
Kruskal–Wallis test, 136, 136–137
nested classifications in, 439–440 Analysis of variance (ANOVA) F-test, 140
for additivity, 392
one-way, 103, 113, 121–127, 149 Analysis of variance (ANOVA) for two-way
classifications, 384–419
additive model, 389–390, 408–410, 409 alternate parameterization for additive model,
412–413
case studies on, 385–388
elimination of insignificant block effects, 411 exercises on, 414–419
F-test for additivity, 392
fixed effects analysis, 392
multiple comparisons, 411–412
orthogonal contrasts, 411
randomized blocks and paired-t analyses, 411 saturated, nonadditive model, 391–392,
408–410, 409
Anatomical abnormalities associated with
schizophrenia (case study), 31, 31–32, 76,
100, 101
Anderson, T. W., 551, 667
Andrews, D. F., 108, 546, 628
ANOVA. See Analysis of variance (ANOVA) Approximate test for equal proportions, 557,
558
AR(1) model. See also Serial correlation,
adjustment for
judging adequacy of, 463–467
Arcsine square root transformation, 74 Arnold, S. J., 697
Asaro, F., 416
ASL. See American Sign Language (ASL) Association, 166
Assumptions for simple linear regression, 207–236
assessment of fit using analysis of variance, 218–221
interpretation after log transformations, 216–218
robustness of least squares inferences, 211–213
Assumptions underlying use of t-tools, 58–84 case studies on, 59–62
comparing means of bivariate responses
in two groups, 490–491
data transformations, 69–75
exercises on, 77–84
graphical methods vs. formal tests of model
adequacy, 75
practical strategies for two-sample problem, 67–69
resistance of two-sample t-tools, 66–67 robustness and transformation for paired
t-tools, 76
robustness of two-sample t-tools, 62–66
Augmented partial residuals, 332 Autocorrelation function (ACF), 468 Autocovariance estimates, 457 Autoregressive time series, 466, 466 Average. See Sample average
Ayers, J. A., 342
B
Backward elimination, 358, 359, 427 Balance, 225–226, 704–705
Barnett, P. A., 445
Barrick, R. E., 146, 340
Basolo, A. L., 151
Bayes, Thomas, 365
Bayes’ Theorem, 365
Bayesian Information Criterion (BIC), 364,
364–365, 467, 618
for time series analysis, 467
Bayesian posterior-mean estimate, 370 Bayesian statistics, 365, 660–663, 661–662, 663 Beaton, G. H., 551, 667
Beckman, R. J., 696
Belanger, G., 303
BIC. See Bayesian information criterion (BIC) Bierens, H. J., 305
Bierregaard, R. O., Jr., 231
Big Bang theory (case study), 177, 177–179,
178, 186, 186–188, 187, 191, 197–198 Binary response variables, 549–571. See also
Tables of counts tools
case studies on, 550, 550–553, 551, 552 defined, 553
exercises on, 566–571
inference about ratio of two odds, 559–562 inference from retrospective studies, 563–565 inferences for difference of two proportions,
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
553–557
logistic regression for, 601–633 tools for tables of counts, 572–600 variance of, 553–554
why deviance changes when binary
observations are grouped, 654–655 Binomial counts
defined, 646
logistic regression for, 635–671
INDEX
751

752
Index
Binomial distribution, 554
Binomial proportion, 639
Biological control of a noxious weed (case
study), 700
Birdkeeping and lung cancer (case study), 602,
604, 605, 615, 616, 619–622, 626 Bishop, J. A., 637
Bivariate distribution, 488
Bivariate responses. See Multivariate responses Blaustein, A. R., 727
Blinded study, 702
Blocking, 702, 739–743
elimination of insignificant block effects, 411 Latin Square, 742, 742
randomized blocks, 739–741
split-plot designs, 742–743
testing for, 397–398
Blood–brain barrier (case study), 313, 313–316,
314, 317–318, 318, 332–334, 337 Bloom, J. R., 110
Bonferroni, 165
Bonferroni adjustment, 504
Bonferroni inequality in probability theory, 163 Boulding, E. G., 200
Box plots, 18–19, 19, 20
interquartile range (IQR), 18
side by side, 18, 20
Bradburn, N., 668
Brand, R., 604
Brandwood, L., 534
Breakdown times for insulating fluid under
different voltages (case study), 209–210,
210, 211, 213, 215, 221, 226–227 Briffa, K. R., 451
Brown, K. S., Jr., 231
C
Calibration, 192–194, 193
Calibration interval. See Inverse prediction Cameron, D. W., 670
Canonical correlations analysis (CCA), 514
canonical variables, 528–530, 529
definition of, 514
in love and marriage case study, 530–531, 531 variables suggested by, 530
Canonical variables, 528–530, 529
Capron, C., 417
Case-influence statistics, 321, 322–328, 327 Cook’s distances for flagging influential cases,
325–326
definition of, 322
leverages for flagging cases with unusual
explanatory variable values, 322–325,
323, 324
strategy for using case influence statistics, 326–328
studentized residuals for flagging outliers, 325
Case-control studies, 622–623
Categorical explanatory variables, 249–250 Categorical responses, 655–656
multinomial logits, 655
ordered, 655–656 Causal inference
confounding variable and, 6
explanatory and response variables and, 196 fallacies, 166
study design and, 5–7 (See also Research
design) Causation, 166
Caveat concerning average, 159
CCA. See Canonical correlations analysis (CCA)
Censored data, 88
Central Limit Theorem, 33, 62 Cesare, S. J., 150
Chance mechanisms, 1
inference and, 8–10, 9
Chandler, P., 87
Chang, A. E., 111
Characteristics associated with salamander
habitat (case study), 674–676, 675, 676 Chi-squared test (2 ), 572, 579–582
of independence in 2  2 table, 580 equivalence of several tests for 2  2 tables,
580–582
Pearson chi-squared test for goodness of fit,
579, 682
Chimpanzees learning sign language (case
study), 421, 421–422, 427
additive model fitting, 427–430, 429, 430 analysis of variance, 430–431, 431 exploratory analysis, 427
multiple comparisons of sign effects,
431–432 transformation, 430
Chizhik, A. W., 145
Clarke, E. A., 568
Cloud seeding to increase rainfall (case study),
59, 59, 60, 72, 73, 76
Cluster analysis, 532–533, 534
Cluster effects, 65, 67
Cluster sampling, 104
Cochrane, A. L., 231
Coded scatterplot, 240, 257
Coefficient of determination, 222
Cognitive load theory in teaching (case study),
87–88, 87–89, 105–106 Cohen, R. S., 79
Combination numbers, 96
Common logarithm, 70
Common slopes model, 656
Communicating statistical findings, 103 Comparisons among several samples, 113–148
case studies on, 113–118
comparing any two of several means,
119–121
different sources of variability, 133–136, 134 exercises on, 141–148
Kruskal–Wallis nonparametric analysis of
variance, 136, 136–137
one-way analysis of variance F-test, 122–127 random effects model, 137–139
robustness and model checking, 130–133 separate confidence intervals and significant
differences, 139, 139–140 Compound uncertainty, 160, 190
in stepwise procedures for selection of explanatory variable, 361, 362
Confidence band(s)
for multiple regression surfaces, 282–283,
283
simple linear regression and, 190–191, 191
Confidence interval(s), 49–50, 50, 188, 190, 191, 197
accumulation of evidence and, 49–50 approximate, for difference between two
proportions, 557, 558
based on rank-sum test, 94, 94
confidence ellipses and individual confidence
intervals for differences in bivariate means, 491–493, 492
for differences of means, 42–43, 43, 120–121, 122
factors affecting width of, 43
how to improve, 706–708, 707, 708
for linear combinations of group means, 155,
155, 159–160
multiple comparison procedures for
construction of, 160–165
multiple regression and, 277–283
95%, for the mean, 37
for odd ratio, 562, 563
separate, for two group means, 139, 139–140 simple linear regression and, 188, 189, 189 for single coefficients, 612–613, 614
for treatment effect, 47
Confounding variable, 6
Confusing statistical for practical significance
(fallacy), 166
Confusion matrix, 532
Continuity correction, 581
Continuous proportion, 639. See also Counted
proportion Contrasts, 153
orthogonal, 411 Control group, 701–702
matched case-control studies, 622–623 Controlled experiments. See also Randomized
experiments
blood–brain barrier, 313, 313–316, 314,
317–318, 318, 332–334, 337 breakdown times for insulating fluid under different voltages, 209–210, 210, 211,
213, 215, 221, 226–227
chimpanzees learning sign language (case
study), 421, 421–422, 427
Galileo’s data on motion of falling bodies,
272, 272–273, 273, 280, 281, 284, 288,
289–290, 291, 292, 296–297 magnetic force on rods in printers (case
study), 515–517, 516, 541
sites of short- and long-term memory, 477,
477–478, 482, 484, 486, 486–487, 490,
491, 492, 506 Cook’s distances, 325–326
Cooper, M., 87
Correlation coefficient, 196
multivariate analysis and, 500
serial, 454, 456–457, 458–459 (See also
Serial correlation, adjustment for) Correspondence analysis, 534–535, 536 Counted proportion, 639. See also Continuous
proportion Courtillot, E., 416
Covariances, 280
Covariates, 703
Cox, C., 229, 700
Cox, D. R., 534
Cp plot, 363–364, 367, 368 Cp statistic, 362–364, 367 Crews, D. E., 550 Cross-products tests, 498–499 Crossover experiments, 481 Curley, C. B., 479
Curvature, squared term for, 246, 246–247
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Index
753
D
Dalessio, A., 150
Daly, M., 590
D’Andrade, R., 668
Darwin, Charles, 29, 151
Darwin’s theory of natural selection (case
study). See Evidence supporting Darwin’s
theory of natural selection (case study) Data dredging, 166
Data mining, 166
Data snooping, 160, 166, 169 Data transformations, 69–75
arcsine square root, 74
for chimpanzee learning times study, 430 data snooping and, 160, 166, 169
indicated by horn-shaped residual plots, 216 intertidal seaweed grazers (case study), 394,
395
logarithmic, 69, 70, 71
logit, 74
for paired t-tools, 76
rank, 89–90
reciprocal, 74
for seaweed grazer study, 394, 395 selection of, 75
square root, 74
in time series, 464
Davis, D. L., 201
Death penalty and race of murder victim (case
study), 574, 574–575, 590, 592 Degrees of freedom (d.f.), 34
simple linear regression and, 184–186
t-ratio and, 36, 37
Delta method, 335, 336
Denominator degrees of freedom, 125 Design effect, 104. See also Research design Deviance, 615
Deviance goodness-of-fit test
for binomial counts, 642–643, 643 extra-binomial variation and, 648 for Poisson regression, 680–682
Deviance residuals, 641–642 extra-binomial variation and, 648, 652
d.f. See Degrees of freedom (d.f.)
DFA. See Discriminant function analysis Diamond, J., 305
Diet restriction and longevity (case study), 114,
114–116, 115, 140–141 Diokno, A. C., 592
Discriminant function analysis (DFA), 532 DFA train, 532, 533
Fisher’s linear discriminant function, 532 objective of, 532
using logistic regression, 623 Discrimination against the handicapped (case
study), 150, 150–151, 154–155, 155, 164,
164–165
Dispersion parameter, 647
Doksum, K., 52
Doolittle, A. E., 417
Dorn, H. F., 552
Draftsman plot, 254. See also Matrix of
pairwise scatterplots Drake, S., 272
Drawing statistical conclusions, 1–27 on being representative, 22
case studies on, 2–5
exercises on, 22–27
graphical methods, 16–19
measuring uncertainty in observational
studies, 14–16
measuring uncertainty in randomized experiments, 10–14
randomization of experimental units to treatments, 21
selecting a simple random sample from a population, 21–22
statistical inference and study design, 5–10
statistical terminology, 19–21 Drop-in-deviance test, 614–617
for binomial counts, 645–646, 650, 651 comparing full to reduced model, 614 likelihood ratio test, 654
likelihood ratio test (LRT), 614–615 for Poisson counts, 683–684
Dummy variable. See Indicator variables Duncan’s multiple range procedure, 163 Dunham, R. B., 542
Dunnett’s method, 162, 164, 165 Duyme, M., 417
E
Ebat, 276, 279 coefficient of ebat, 279
Eden, Dov, 388
Eden, J., 59
Effects of light on meadowfoam flowering (case
study), 238–239, 238–240, 244, 245, 248,
250, 251, 260, 261
Effects of ozone in conjunction with sulfur
dioxide and water stress on soybean yield
(case study), 422–425, 423, 424, 432–439 analysis using fitted models, 436–439 assessment of interactions between ozone and
other treatments, 433–435, 436, 437 assessment of linearity in ozone, 433, 434 assessment of linearity of sulfur dioxide, 435 exploratory analysis, 433–436, 434, 435
Einstein, Albert, 49, 708
Elbert, T., 204
Eldamaty, S. E., 53
Ellipsoids, 491–492
Elston, C., 472
Emmons, L. H., 231
Empirical logits, 640
Empirical orthogonal functions (EOFs),
536–538, 538–540
Energy costs of echolocation by bats (case
study), 274–277, 277–280, 282, 282–283,
288–289, 290, 297
EOFs. See Empirical orthogonal functions
(EOFs)
Equal-means model, 129, 218 Equal-spread model, 98, 99
simple linear regression and, 212 Errors-in-variables problems, 335
Estimate, defined, 19, 20
Evidence supporting Darwin’s theory of natural
selection (case study), 29–30, 30 Excess, 586
Mantel–Haenszel, 586–588, 587 Exercises
alternatives to t-tools, 106–112
analysis of variance (ANOVA) for two-way
classifications, 414–419 assumptions for simple linear regression,
227–236
assumptions underlying use of t-tools, 77–84 comparisons among several samples,
141–148
on drawing statistical conclusions, 22–27
explanatory variable selection, 375–383 factorial treatment arrangements and blocking
designs, 744–747
inferential tools for multiple regression,
297–309
linear combinations and multiple
comparisons of group means, 170–175 log-linear regression for Poisson counts,
693–698
logistic regression for binary response
variables, 626–633
logistic regression for binomial counts,
665–671
model checking and refinement for multiple
regression analysis, 338–344 multifactor studies without replication,
443–448
multiple regression analysis, 261–270 multivariate responses, 541–548 proportions and odds, 566–571
repeated measures and other multivariate
responses, 506–513
research design, 720–724
serial correlation, adjustment for, 469–475 simple linear regression, 198–206 t-distribution, 51–57
tools for tables of counts, 592–600
Experimental units, 21 randomization to treatments, 21
Explanatory variable selection, 345–383 case studies on, 346–352
cross validation, 373–374
exercises on, 375–383
interpreting significance when variables are correlated, 370–371, 371
loss of precision, 354–355
model selection among all subsets, 361–365 objectives of, 352–354
posterior beliefs about different models,
365–366
reasons to pare down number, 345 regression for adjustment and ranking,
371–372, 372
saturated second-order model (SSOM),
372–373
sequential variable-selection techniques,
357–361
specific issues relating to many explanatory
variables, 352–357
strategy for dealing with many explanatory
variables, 355–357, 356, 357 Explanatory variables, 157, 180–181, 182, 196
adjusting for large set of explanatory variables, 352–353
causation and, 196
describing distribution of response variable at
some value of, 189, 189–191, 191 different questions require different attitudes
toward explanatory variables, 354 effect of, 244–245
filtering with more than one explanatory variable, 461
fishing for explanation, 353
grouping of, 617–618, 621
interaction of, 250–251
leverages for flagging cases with unusual
values of, 322–325, 323, 324
log transformation of, 217
making R-squared statistic 100% by adding
of, 291
measurement errors in, 335–337 multiple, 242
precision, loss of, 354–355
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

754 Index
prediction, 353–354
scatterplot of empirical logits vs., 640–641 scatterplots of response variable vs.
explanatory variable, 213, 213–215, 214 specially constructed, 246–253
strategy for dealing with many explanatory
variables, 355–357 Externally studentized residuals, 327 Extra-binomial variation, 646–650
checking for, 647–648, 651–652 logistic regression model and, 647 quasi-likelihood inference and, 648–650
Extra degrees of freedom, 125 Extra-Poisson variation, 684–688
checking for, 685–686 inferences for, 686–688, 687 model for, 685
Extra-sum-of-squares principle, 122–126 F-distributions, 125–126
F-test, 126
fitting the models, 123
full and reduced models, 122–123 general form of F-statistic, 125 multivariate testing and, 498–499 residual sums of squares, 124, 129 residuals, 123, 124
Extra-sums-of-squares F-tests, 284–289, 287–288, 290, 395, 396
analysis of variance table for, 287–289 comparing sizes of residuals in hierarchical
Fisher, R. A., 535
Fisher, Ronald, 125
Fisher’s Exact Test, 572, 582–586
compared with other tests, 585–586 hypergeometric formula for one-sided
p-values, 584
for observational studies, 584–585, 585 randomization distribution of difference in
sample proportions, 582–584, 583 reporting p-values for, 586
Fishing for significance, 166, 502 Fitted values
residuals and, 183, 183–184, 186
scatterplot of residuals vs. fitted values, 215,
215–216 FitzGerald, G. A., 24
Fixed-effects model, 137, 392 Forrest cultivar, 423, 424 Forsman, A., 171
Forward selection, 358, 359, 427 Fouts, R. S., 421
Fowler, P. A., 542
Fox, K. A., 264
FPC. See Finite population correction (FPC) Fractional replication, 738, 738–739 Freedman, D., 722
Frezza, M., 311
Fusaro, R. M., 110
G
Galilei, Galileo, 272–275, 284, 292, 309 Galileo’s data on motion of falling bodies (case study), 272, 272–273, 273, 280, 281, 284,
288, 289–290, 291, 292, 296–297 Galton, Francis, 29
Galton, Sir Francis, 194, 203–204
Gauss, Karl, 183
GEE. See Generalized estimating equations
(GEE)
Generalized estimating equations (GEE),
663–664
Generalized linear model (GLM), 606, 625 Gill, A. J., 509, 630
Ginther, D. K., 305
Glasbey, C. A., 542
GLM. See Generalized linear model (GLM) Gottheil, E., 110
Grant, Peter, 29
Grant, Rosemary, 29
Graphical methods, 16–19
for bivariate responses, 500–501
box plots, 18–19, 19, 20
for exploratory analysis, 617
vs. formal tests of model adequacy, 75
for linear combinations of several variables,
520, 520–521
for multiple regression analysis, 254–258 normal probability plots, 225, 225, 226 relative frequency histograms, 16–17 residuals vs. time order, 224, 224–225
for simple linear regression, 213–215
star plots for multivariate responses, 502, 503 stem-and-leaf diagrams, 17, 17–18
Grayson, D., 597
Group allocation, 1
Grouping of explanatory variables, 617–618,
621
Gullison, R. T., 342
H
Hansen, D., 669
Harder, L. D, 81
Hatfield, E., 517
Heggestad, H. E., 422
Herzberg, A. M., 108, 546, 628
Higher-order factorial arrangements, 737–739
constructing error estimates, 737–738
fractional replication, 738, 738–739 Holmes, L. B., 665
Holst, P. A., 604
Homogeneity
chi-squared test for, 580
hypotheses of, 575–576
Hotelling’s T2 statistic, 488–490, 490, 493,
494–496 Houghton, A., 472
Hubble, E., 177, 188, 202 Hubert, J. J., 301
Huey, R. B., 266 Humason, M., 202
Huso, M., 700
Hypergeometric formula for one-sided p-values,
584
Hypergeometric probability distribution,
577–578 Hypothesis testing
models, 285
for joint significance of several terms,
285–287 Extrapolation, 181–182
Ezekiel, M., 264
F
F-distributions, 125–126, 126, 285 F-tests
analysis of variance (ANOVA) (See Analysis of variance (ANOVA) F-test)
extra-sums-of-squares (See Extra-sums-of-squares F-tests)
Factor, 249
levels of, 249
reference level for, 249
separate regression lines for different levels
of, 252
Factor analysis and principal components
analysis, 527 Factor of 4, 719–720
Factorial arrangement of treatment levels, 259–260, 729–739
higher-order factorial arrangements, 737–739 32 factorial structure, 734, 734–737, 736
22 factorial structure, 729–732, 730, 732
23 factorial structure, 732–734, 733
False causality fallacy, 166
False discoveries, 503, 504, 505
False discovery rate (FDR), 502–505, 504 Faris, R., 53
FDR. See False discovery rate (FDR) Feynman, Richard P., 86
Fieller’s method, 295
Filtering
comparison of filtering method with standard error adjustment, 460–461
with more than one explanatory variable, 461 Finite population correction (FPC), 104 First-order autoregression model, 455–456 First serial correlation coefficient, 456–457
about difference between means, 43–45 example of hypothesis based on how the data
turned out, 165–169, 167, 168 hypotheses of homogeneity and of
independence, 575–576
null and alternative hypotheses, 11 rejection region approach to, 50 test of no treatment effect, 46
I
Iannaccone, L. R., 545 Ideal population model, 119 Independence, 65
cluster effects and serial effects, 65–66 comparing means of two time series, 452–453 least squares regression and, 181, 212–213 log-linear methods for testing in tables of
counts, 688–690, 689–690 robustness of two-sample t-tools against
departures from, 66 Independence assumption, 212–213 Indicator variables, 247–249
analysis of seaweed grazer data multiple regression with, 401–402
for categorical explanatory variables with more than two categories, 249–250
to distinguish between two groups, 247–249,
248
Inferences, 1, 8–10
about linear combinations of group means,
154–155, 159–160
about log-linear regression coefficients for
Poisson counts, 682–684
about logistic regression coefficients for
binomial counts, 644–646 causal, 5–7
chance mechanisms and, 8–10, 9 defined, 8
inferential tools for multiple regression,
271–309
inferential tools for simple linear regression,
188–194
to populations, 7–8
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Index
755
study design and, 5–7
in two-treatment randomized experiment,
45–47 Inferential model, 253
Influential observations, 319–322, 321 Internally studentized residual, 325 Interpolation, 181–182
Interquartile range (IQR), 18
Intertidal seaweed grazers (case study),
385–387, 386, 387, 393–395, 393–402,
397–399, 413–414
analysis of variance table for fit to additive
model, 396–398, 397
analysis of variance table from fit to saturated
model, 395, 395–396
assessment of additivity, outliers, and the
need for transformation, 393–394,
393–395
investigations using linear combinations, 398,
398–401, 399
investigations using multiple regression with
indicator variables, 401–402 Intraclass correlation, 410
Inverse prediction, 192, 193
IQ test scores, 484
IQR. See Interquartile range (IQR)
Island area and number of species (case study),
208, 208–209, 209, 226–227
Island size and bird extinctions (case study), 635–636, 635–637, 640, 642, 642, 643,
644, 644, 645, 646, 664 J
Jacobson, L., 418
Ja ̈rvinen, O., 635
Jerdee, T., 573
Jittered scatterplot, 257, 258 Johnson, J. A., 110 Johnson, M. P., 378 Johnson, R. A., 509, 517 Jones, G. V., 570
Jones, H. L., 304 Jones, P. D., 451
K
Kamal, A.-A. M., 53
Kawanishi, H., 665
Keppel, W., 511
Knapp, H. R., 24
Kraemer, H. C., 110
Kromhout, D., 604
Kruskal–Wallis nonparametric analysis
of variance, 136, 136–137 Kurtosis, 63
L
Lack-of-fit F-test, 207, 218, 220, 221, 420, 426 Latin Square blocking, 742, 742
Lawless, J. F., 209
Least significant difference (LSD), 163
F-protected, 163
Least squares regression estimation, 183–187
estimation of  from residuals, 184–186 fitted values and residuals, 183, 183–184 least squares estimators, 184
multiple regression and, 276, 276–277, 277
robustness of least squares inferences, 211–213
sampling distributions, 184, 185 standard errors, 186–187
strategy for dealing with influential
observations, 319–322 weighted regression, 334–335
Lesser, V. M., 422
LeVay, S., 173
Leve, C., 570
Levels of the factor, 249
Levene’s test for equality of two variances,
103–104
Leverage computations, 324–325 Leverages for flagging cases with unusual
explanatory variable values, 322–325,
323, 324
cases with large leverage, 323–324 computation of, 324–325 definition of, 322
Levine, R. V., 264
Likelihood ratio test (LRT), 614–615, 654 Limnanthes alba. See Meadowfoam
Lind, A. J., 674
Linear combinations of group means, 149–175
averages, 159
case studies on, 150–152
comparing averages of group means, 156 comparing rates, 156–157
contrast, 153
definition of, 152–153
example of hypothesis based on how the data
turned out, 165–169
exercises on, 170–175
inferences about, 154
linear trends, 155–159, 158
multiple comparisons, 149, 160–165
Linear combinations of variables, 519–521. See also Multivariate responses
canonical correlations analysis, 528–531 graphical representation, 520, 520–521 principal components analysis, 521–527
Linear trends over response categories model, 656
Linearity assumption, 212
Link function, 606
Log-linear regression for Poisson counts,
672–698
case studies on, 673–676
exercises on, 693–698
extra-Poisson variation, 684–688 inferences about log-linear regression
coefficients, 682–684
model assessment, 679–682
model for, 677–679
negative binomial regression, 691–692 Poisson counts from varying effort, 690–691 Poisson responses, 676–677
testing independence in tables of counts, 688,
690, 690
Log transformation, 69–75
caveat about, 75
interpretation after, 71–74, 73 recognizing need for, 70–71, 71
Logarithm, 58, 70, 71 common, 68 natural, 68
Logging practices and water quality (case study), 450–451
Logistic function, 606, 607
Logistic regression for binary response
variables, 601–633 case studies on, 602–604
discriminant analysis using, 623 drop-in-deviance test, 614–617
exercises on, 626–633
for exploratory analysis, 617–618
as generalized linear model, 606–609 interpretation of coefficients, 608–609 matched case-control studies, 622–623 maximum likelihood parameter estimation,
609–612
Monte Carlo methods, 623–625, 624 probit regression, 623
in retrospective studies, 608–609
tests and confidence intervals for single
coefficients, 612–613, 614 Logistic regression for binomial counts,
635–671
Bayesian inference and, 660–663, 661–662,
663
binomial responses, 639–640
case studies on, 635–639
exercises on, 665–671
extra-binomial variation, 646–650 generalized estimating equations (GEE),
663–664
inferences about logistic regression
coefficients, 644–646
maximum likelihood estimation, 656–660,
658, 659
model assessment, 640–643
models for multilevel categorical responses,
655–656
why deviance changes when binary
observations are grouped, 654–655 Logit transformation, 74
Long, C. L., 78
Longitudinal studies, 481
Losos, E. C., 342
Love and marriage (case study), 517–519, 518,
530–531, 531, 541
canonical correlations analysis (CCA),
530–531, 531 Lovejoy, T. E., 231
LRT. See Likelihood ratio test (LRT)
LSD. See Least significant difference (LSD) Lubischew, A. A., 510
Lucas, A., 262
M
MacLachlan, J., 272
Magnetic force on rods in printers (case study),
515–517, 516, 523, 523–524, 541 principal component analysis in, 523,
523–524 Mahwah, N. J., 208
Mann, J., 723
Mann–Whitney test. See Rank-sum test Mantel–Haenszel excess, 586–588 Mantel–Haenszel test, 572, 586–589 Marsh, C. P., 533
Martin, M., 570
Matched case-control studies, 622–623 Mathews, C. K., 169
Matrix of pairwise scatterplots, 254–257,
255, 256
Maximum likelihood (ML) estimation, 609–612 for binomial counts, 656–660, 658, 659
for Poisson counts, 679, 679
McCleskey v. Zant, 574
McDonald, G. C., 342
McEvoy, P., 229, 700
MDS. See Multidimensional scaling (MDS)
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

756 Index
Meadowfoam, 238–242, 243, 249, 250, 252, 254, 259, 261
Mean ()
comparing means of bivariate responses in
two groups, 485–493 (See also
Multivariate responses)
comparing means of two time series, 452–458
(See also Serial correlation, adjustment
for) defined, 20–21
linear combinations of means, 149–160 multiple comparisons of means, 149,
160–165
95% confidence interval for, 37
population, 119
testing hypothesis about difference between
means, 43–45
variation when all means are equal, 134–135 variation when means are different, 135,
135–136
Mean square ratio, 354
Measurement errors in explanatory variables, 335–337
Measuring global warming (case study), 451–452
Meat processing and pH (case study), 179, 179–180, 180, 189, 193, 194, 198
Median
finding from stem-and-leaf diagrams, 18 population, 72–74
Miech, R. A., 266
Miller, D. R., 568
Milliken, G. A., 180, 229
Model checking and refinement for multiple
regression analysis, 310–344, 665 case-influence statistics, 321, 322–328 case studies on, 311–316
delta method, 335
exercises, 338–344
influential observations, 319–322, 321 measurement errors in explanatory variables,
335–337
refining model, 328–334
residual plots, 316–319
weighted regression for certain types of
nonconstant variance, 334–335 Monastersky, R., 721
Monte Carlo methods, 623–625, 624 Moore, F., 231
Moore, L. M., 696
Morton, A. Q., 695
Moth coloration and natural selection (case study), 637, 637–639
adjustment for extra-binomial variation, 652, 653
checking for extra-binomial variation, 651, 652
drop-in-deviance test for effect of distance on relative removal rates, 650, 651
location treated as factor with seven levels, 653–654, 654
Motivation and creativity (case study), 2–4, 3 Moving average time series, 466, 466 Multicollinearity, 354
Multidimensional scaling (MDS), 534 Multifactor studies without replication, 420–448
analysis of the soybean data, 432–439 analyzing tables with one observation per
cell, 425–427
case studies, 421–425
costs of lack of replication, 443 exercises, 443–448
nested classifications in the analysis of variance, 439–440
random effects models, 439
rationale for designs with one observation per
cell, 425–426
rationale for one observation per cell,
440–442
strategies for analyzing tables with one
observation per cell, 425–427 strategy for data analysis in the absence of
replicates, 426–427 uniformity trials, 442 Multinomial logits, 655
Multinomial sampling, 577
Multiple comparisons of means, 149, 160–165.
See also Linear combinations of group
means
Bonferroni inequality in probability theory,
163
case study of, 164, 164–165
choosing procedure for, 165
data snooping, 160, 169
Duncan’s multiple range procedure, 163 Dunnett’s method, 162
F-protected inferences, 163
least significant difference, 163 Newman–Keuls procedure, 163
planned and unplanned comparisons, 160 Scheffe ́’s procedure, 162
for seaweed grazer data, 411–412 studentized range distribution, 161–162 Tukey–Kramer procedure, 161
Multiple regression analysis, 237–270
for adjustment and ranking, 371–372, 372 analysis of variance for two-way
classifications, 384–419
case studies on, 238–242
computer output and, 258–260, 260 exercises on, 261–270
factorial treatment arrangement, 259–260 graphical methods for, 254–258 inferential tools for, 271–309
informal tests in model fitting, 296 interpretation of regression coefficients,
243–246
model checking and refinement for, 310–344 multivariate regression and multivariate
analysis of variance, 498–499 polynomial regression, 295
principle of Occam’s Razor, 296 Pygmalion effect, 403–405, 403–405 quadratic regression, 295
R-squared statistic and, 289–292, 291 regression coefficients, 242–243 replication of, 292–293
sample size for estimating regression
coefficients, 711
specially constructed explanatory variables,
246–253
strategies for explanatory variable selection,
345–383
strategy for data analysis, 253–254
Multiplicative treatment effect, 71–72 Multistage sampling, 104
Multivariate regression and multivariate analysis
of variance (MANOVA), 498–499 Multivariate responses, 476–513
case studies on, 477–479
comparing means of bivariate responses in
two groups, 485–493
controlling false discovery rate in large
families of hypothesis tests, 502–505,
504
correlation and, 500–501, 501, 502 definition of, 476
exercises on, 506–513, 541–548
how to recognize, 479–480 multivariate regression and multivariate
analysis of variance, 498–499 one-sample analysis with bivariate responses,
493–497
one-sample analysis with more than two
responses, 498
planned and unplanned summaries of
multivariate measurements as response
variables, 499
repeated measures, 479–485
star plots for, 502, 503
statistics for bivariate responses, 485–487,
486, 494
tools for summarizing, 514–548 two-sample analysis with more than two
responses, 497–498 Munoz, A., 665
Munster, E. W., 472
N
National Crop Loss Assessment Network (NCLAN), 422
Natural logarithm, 68
Natural selection. See Evidence supporting
Darwin’s theory of natural selection (case
study)
NCLAN. See National Crop Loss Assessment
Network (NCLAN)
Negative binomial regression, 691–692 Negative serial correlation, 468 Nelson, W. B., 209
Nemer, K. M., 145
Neuwelt, E. A., 313
Newman–Keuls procedure, 163 Nicholson, M., 472
Nonadditive model, 391, 391–392
additivity and nonadditivities, 408–410, 409 Nonconstant variance, 607
Nonparametric runs test, 462–463 Nonstationary time series, 466
Normal probability plots, 225, 225, 226 Normality assumption, 212
Numerator degrees of freedom, 125
O
Oat bran and cholesterol (case study), 478–479, 480, 480, 481, 493–494, 496, 497, 497, 498, 499, 506
Obesity and heart disease (case study), 550–551, 558, 566, 688, 690, 690
Observational studies, 5–6
age and mating success of male elephants
(case study), 673, 673–674, 674, 678,
679, 681–682, 683, 683, 684, 692 alcohol metabolism in men and women, 311,
311–313, 312, 318–319, 319, 320–322,
328–329, 337
anatomical abnormalities associated with
schizophrenia, 76, 100, 101
Big Bang theory, 177, 177–179, 178, 186,
186–188, 187, 191, 197–198
causal inference and, 6–7
death penalty and race of murder victim, 574,
574–575, 590, 592
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Index
757
effects of Agent Orange on troops in Vietnam, 60–62, 61, 68, 77 energy costs of echolocation by bats,
274–277, 277–280, 282, 282–283,
288–289, 290, 297
Fisher’s Exact Test for, 584–585 interpretation after log transformation of data
in, 72–74
island area and number of species, 208,
208–209, 209, 226–227
island size and bird extinctions, 635–636,
635–637, 640, 642, 642, 643, 644, 644,
645, 646, 664
logging practices and water quality, 450–451 love and marriage (case study), 517–519,
518, 541
measuring global warming, 451–452 measuring uncertainty in, 14–16
obesity and heart disease, 550–551, 558, 688,
690, 690
sex discrimination in employment, 4, 4–5, 5,
15–16, 74, 103–104, 348, 350–351, 352,
366–370, 367, 368, 369, 375
space shuttle O-ring failures, 86, 86, 105 Spock conspiracy trial, 117, 117–118, 118,
141
state average SAT scores, 346–348, 347, 349,
355–357, 357, 374–375
survival in Donner party, 602, 603, 608,
609–610, 618–619, 626 value of, 6–7
why do some mammals have large brains for their size?, 239–242, 241, 245, 255–256, 258, 260, 260
Occam’s Razor principle, 296 Odds (ω), 549, 559–562
confidence interval for odds ratio, 561–562,
563
Mantel–Haenszel test for equal odds in several 2  2 tables, 588–589
numerical facts about, 559
odds ratio is only appropriate parameter if
sampling is retrospective, 564–565, 565 problem with the difference between
proportions, 559
sampling distribution of log of estimated odds
ratio, 561–562
two standard errors of log of odds ratio,
561–562, 562, 563 Olsen, A., 59
Olson, Annette, 386
Ordered categorical responses, 655–656 Orthogonal contrasts, 411
Osborn, T. J., 451
Others-equal model, 129
Outliers, 17, 215
definition of, 66
multiple regression analysis and, 310, 319 resistance and, 66
strategy for dealing with, 68, 69 studentized residuals for flagging of, 325
Overdispersion, 646
P
p-value, 13–14, 44, 165, 584, 586. See also Probability
computation of, 14, 45, 46 Fisher’s Exact Test and, 572 interpretation of, 47–49, 48 one-sided, 13, 44–45
for permutation tests, 95
in randomization distribution, 407–408, 408 for rank-sum test, 90–94, 92, 93
two-sided, 14, 44–45
for Wilcoxon signed-rank test, 101–102
PACF. See Partial autocorrelation function (PACF)
Paired t-test, 32, 36, 37
randomized blocks and, 411 robustness and transformation for, 76
Palmer, J. R., 568
Parallel lines regression model, 249 Parameter, defined, 19 Parameterization, 390
regression parameterization for additive two-way model, 390, 390
Parker, D. E., 451
Parrott, J., 301
Partial autocorrelation function (PACF),
464–467, 465, 466 autoaggression, 466, 466 moving averages, 466, 466 nonstationary, 466
white noise, 465, 466
Partial F-test, 285
Partial residual plots, 329–334, 333, 355, 357
augmented, 332
when to use, 332
PCA. See Principal components analysis Pearson, Karl, 29, 579. See also Chi-squared test Pearson chi-squared test for goodness of fit, 579 Pearson residuals, 642, 642
Permutation tests, 15, 95–97
Fisher’s Exact Test, 582–586 Phillips, D. P., 694
Pierce, D. A., 143
Pimm, S. L., 304
Pisani, R., 722
Placebo, 702
Planned comparisons, 160
Pohl, N. F., 171
Poisson, S. D., 676
Poisson probability distribution, 672, 676–677 Poisson sampling, 576, 576
Polynomial regression, 295
Poole, J. H., 673
Pooled estimate of correlation, 487–488 Pooled estimate of standard deviation, 120, 121 Pooled variability estimates, 487–488, 488 Population first serial correlation coefficient,
456
Population means, 119
confidence interval for difference between, 42–43, 43, 120–121, 122
three models for, 218
Population median, 72–74
Population proportion, 553, 557, 558 Posterior probability, 366, 370
Powell, B., 346
Powers, Robert, 346
Practical significance, 102–103, 166, 705–706 Pratkanis, A. R., 570
Prediction
explanatory variable selection for, 353–354 multiple regression and, 283
simple linear regression and, 191–192
Prediction band, 191, 191
Prediction interval, 191–193, 197 Preexisting preferences of fish (case study),
151–152, 152, 153, 158
Presenting statistical findings, 103 Principal components analysis (PCA), 514
definition of, 514
empirical orthogonal functions (EOFs) and, 536–538, 538–540
on explanatory variables prior to regression, 527
factor analysis model and, 527
PCA train, 521, 522
principal components for, 521–524, 523 recommended usage of, 527
scale sensitivity of, 527
scatterplots for, 526, 526–527 variables suggested by, 524–526, 525
Principle of Occam’s Razor, 296 Principle of Parsimony, 296 Probability models, 1, 8
for random sampling, 14–15, 15
for randomized experiments, 10, 10 Probit regression, 623
Product binomial sampling, 577 Profile plots, 482
Proportional odds model, 656 Proportions, 549, 553–557
binomial, 639
continuous, 639
counted, 639
inferences about difference between two
population proportions, 557 population proportion, 553
problem with difference between, 559 randomization distribution of difference in
sample proportions, 582–584, 583 sample size for studies comparing two
proportions, 709–710, 710
sampling distribution for difference between
two sample proportions, 555–557 sampling distribution of a sample proportions,
553–555, 555
Prospective product binomial sampling, 577 Publication Bias, 166
Punti, 272
Punto. See Punti
Pure error estimate of  2 , 420
Purves, R., 722
Pygmalion effect (case study), 387–388, 388,
402–406, 402–408, 408, 414
initial exploration and check on additive
model, 402–404, 402–405 investigation using regression, 405, 406 p-value in randomization distribution,
407–408, 408
regression estimate of treatment effect,
405–407, 406 Q
q-value, 505
Quadratic regression, 214, 295, 619 Quasi-likelihood inference, 648–650
based on asymptotic normality, 649 drop-in-deviance F-tests, 649
R
r  c tables of counts, 590–591 R-squared statistic
adjusted, 291–292
making 100% by adding explanatory
variables, 291
multiple regression and, 289–292, 291 simple linear regression and, 222
Ramsey, F. L., 533
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

758
Index
Random cluster sampling, 22 Random effects model, 137–139, 439
estimation and testing, 138 vs. fixed effects model, 137 rationale for, 137
Random sampling, 7–8, 704
being representative, 22 probability models for, 14–15, 15 random cluster sampling, 22 simple, 8, 21, 104
systematic, 22
variable probability sampling, 22 without replacement, 104
Randomization, 703–704 Randomization distribution
cognitive load theory in teaching, 105–106
of difference in sample proportions, 582–584,
583
of t-statistic, 11, 12, 13, 47, 48
Randomization tests, 95 Randomized blocks, 739–741
complete (RCBDs), 739–740, 740
incomplete (RIBDs), 740–741, 741 Randomized experiments. See also Controlled
experiments
amphibian crisis linked to ultraviolet (case
study), 726, 726–727 binomial, 577
biological control of noxious weed, 700, 711–719, 715, 719
causal inference and, 5
cloud seeding to increase rainfall, 59, 59, 60,
72, 73
cognitive load theory in teaching, 87–88,
87–89
diet restriction and longevity, 114, 114–116,
115, 140–141
discrimination against the handicapped, 150,
150–151, 154–155, 155, 164, 164–165 effects of light on meadowfoam flowering,
238–239, 238–240, 244, 245, 248, 250,
251, 260, 261
effects of ozone in conjunction with sulfur
dioxide and water stress on soybean
yield, 422–425, 423, 424
interpretation after log transformation of data
in, 71–74
intertidal seaweed grazers, 385–387, 386,
387, 393–395, 393–402, 397–399,
413–414
measuring uncertainty in, 10–14
meat processing and pH, 179, 179–180, 180,
189, 193, 194, 198
moth coloration and natural selection,
637–639, 638, 650–654, 651, 652, 653,
654, 664
motivation and creativity, 2–4, 3, 10–14, 12,
13
oat bran and cholesterol, 478–479, 480, 480,
481, 493–494, 496, 497, 497, 498, 499,
506
preexisting preferences of fish, 151–152, 152,
153, 158
Pygmalion effect (case study), 387–388, 388,
402–406, 402–408, 408, 414 randomization of experimental units to
treatments, 21
sex role stereotypes and personnel decisions,
573, 573, 592
treatment effects for, 120
two-treatment, inferences in, 45–47 vitamin C and common cold (case study),
551–552, 558
Rank-sum test, 85, 88–94
calculation of rank-sum statistic, 90, 91 confidence interval based on, 94, 94 p-values for, 90–94
rank transformation, 89–90
Rankin, J. M., 231
Rasinski, K. A., 668
Rates, comparison of, 156–157
Raven, P. H., 378
RCBDs (randomized complete block designs),
739–740, 740 Reasoning fallacies, 165 Reciprocal transformation, 74 Regeneration ratio, 394 Regression analysis
for adjustment and ranking, 371–372, 372 causation and, 196
correlation and, 196
historical notes about, 194
log-linear regression for Poisson counts, 672–698
logistic regression for binary response variables, 601–633
logistic regression for binomial counts, 634–671
multifactor studies without replication, 420–448
multiple regression, 237–270 multivariate regression and multivariate
analysis of variance, 498 regression effect, 194–195 regression fallacy, 195 replication and, 197
simple linear regression, 176–206 terminology for, 180–181, 196 weighted regression, 334–335
Regression parameterization, 390 Regression plane, 244, 244 Regression sum of squares, 219 Reid, D. B. W., 551
Relative frequency histograms, 16–17 Repeated measure, 476, 480–481. See also
Multivariate responses
benefits of, 499–500
in crossover experiments, 481 definition of, 476
in longitudinal studies, 481
profile plots for graphical exploration,
482, 483
in split-plot experiments, 481–482 strategies for analysis of, 482–485
Replication, 704
benefits of, 426
costs of lack of, 443
fractional, 738–739
multifactor studies without, 420–448 regression and, 197, 292–293
Reporting statistical findings, 103
Research design, 699–724. See also Controlled
experiments; Observational studies;
Randomized experiments
deciding how to measure response, 713–714 design effect, 104
determining sample size, 708–711, 716–719,
719
determining scope of inference, 712–713 effects on accuracy and precision, 705–708 exercises on, 720–724, 744–747
factor of four, 719–720
factorial arrangement of treatment levels, 729–739
listing factors that can affect response, 714–715, 715
outlining statistical analysis, 716 planning conduct of experiment, 715–716 research objectives and, 700–701, 711 statistical inference and, 5–10
steps in, 712
tools for, 701–705
treatments, 727–729
understanding system, 713
Residual plots, 132, 132, 133, 316–319 examination of, 316–319
horn-shaped, transformations indicated by,
216
partial, 329–334, 333, 355, 357 selecting tentative model for, 316–317
Residual sum of squares, 219
Residual sums of squares, 124, 129, 219, 219,
221 Residuals, 123, 124
comparing sizes of, in hierarchical models, 285
estimation of  from, 184–186
fitted values, 183, 183–184, 186
in logistic regression for binomial counts,
641–642, 642
normal probability plots for, 225, 225 Pearson, 642, 642
scatterplot of residuals vs. fitted values, 215,
215–216
serial correlation coefficient based on
regression, 458–459 studentized, for flagging outliers, 325 vs. time order, 224, 224–225
Resistance, 66 outliers and, 66 of t-tools, 67
Response surface studies, 295 Response variables, 180–181, 182, 196
binary, 549–571
causation and, 196
describing distribution at some value of
explanatory variable, 189, 189–191, 191 log transformation of, 216–218
planned and unplanned summaries of
multivariate measurements as, 499 (See
also Multivariate responses) Poisson, 676
scatterplots of response variable vs. explanatory variable, 213, 213–215, 214
Retrospective observational study birdkeeping and lung cancer (case study),
602, 604, 605, 615, 616, 619–622, 626 smoking and lung cancer, 552–553
Retrospective product binomial sampling, 577 Retrospective studies, 563–565, 564
logistic regression for binary response variables in, 608–609
odds ratio as only appropriate parameter if sampling is retrospective, 564–565, 565
reasons for retrospective sampling, 564 RIBDs (randomized incomplete block designs),
740–741, 741 Rice, J., 81
Ripple, W. J., 629
Roberts, H. V., 4 Robustness, 62–66, 130–131
of least squares inferences, 211–213 of paired t-tools, 76
of two-sample t-tools, 62–66
Root mean squared error, 277 Roseman, N. A., 169
Rosen, B., 573
Rosenberg, L., 568, 596 Rosenthal, R., 418
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Index
759
Rouse, I. L., 479 Rudd, N. T., 700 Run, 462
nonparametric runs test, 462–463 Rusconi, P., 232
Ryan, D. A. J., 301
S
Sacks, F. M., 479 Sample average
comparing averages of group means, 156, 159 sampling distribution of, 32–34, 33, 34 standard error of, 34–35
t-ratio based on, 35–36
Sample covariance between two response variables, 487
Sample odds, 559 Sample proportion, 554
sampling distribution of, 554–555, 555 Sample selection, 1, 14
cluster sampling, 104
multistage sampling, 104
random sampling, 7–8
sampling schemes leading to 2  2 tables,
576–578 self-selection, 7, 8
standard errors from complex sampling designs, 104
stratified sampling, 104
survey sampling, 104
Sample size, 708–711, 716–719, 719
for estimating regression coefficient, 710–711 for studies comparing two proportions,
709–710, 710
for studies with numerical response, 708–709
Sampling distribution, 15
of difference between two independent
sample averages, 39, 39–40 for difference between two sample
proportions, 555–557
for estimated linear combinations of group
means, 154
of least squares estimators, 184, 185
of log of estimated odds ratio, 561–563,
562, 563
of sample average, 32–34, 33, 34
of sample proportion, 554–555, 555
Sampling unit, 479–480, 481
Santos, M. D., 570
SAT. See Scholastic achievement test Satterthwaite’s approximation, 98 Saturated, nonadditive model, 391–392
additivity and nonadditivities, 408–410, 409 Saturated second-order model (SSOM),
372–373
numbers of subset models, 373 strategies for exploring subsets of, 373
Scatterplots
coded, 240, 257
of empirical logits vs. an explanatory
variable, 640–641 jittered, 257, 258
of logged counts vs. an explanatory variable, 679
matrix of pairwise, 254–257, 255, 256 normal probability plots, 225, 225, 226
in principal component space, 526, 526–527 profile plots, 482, 483
of residuals vs. fitted values, 215, 215–216
of response variable vs. explanatory variable, 213, 213–215, 214
Scheffe ́ s procedure, 162
Scholastic achievement test (SAT), 346–348,
347, 349, 355–357, 357, 374–375 Schwarz’s Bayesian Information Criterion. See
Bayesian Information Criterion (BIC) Schwenke, J. R., 229
Self-selected study units, 7, 8 Separate-means model, 129, 218 Sequential variable-selection techniques,
357–361
backward elimination method, 358, 359 compounded uncertainty in stepwise
procedures, 361
forward selection procedure, 358, 359 stepwise regression, 358–359, 361
Serial correlation, adjustment for, 449–475 autocorrelation function (ACF), 468
case studies on, 450–452
comparing means of two time series, 452–458 determining if serial correlation is present,
461–463
exercises on, 469–475
judging the adequacy of AR(1) model,
463–467
negative serial correlation, 468 regression after transformation in AR(1)
model, 458–461
time series analysis is large-sample game,
467–468
time series without a time series package, 468
Serial effects, 65, 66, 67
Sex discrimination in employment (case study),
4–5, 15–16, 74, 103–104, 348, 350–351,
352, 366–370, 367, 368, 369, 375
Sex role stereotypes and personnel decisions
(case study), 573, 573, 592 Shanahan, M. J., 266
Shapiro, S., 568
Showers, W. J., 146, 340 Side by side box plots, 18, 20 Sign test, 99
Significance, 50
attaching desired precision to practical significance, 705, 705–706
extra-sums-of-squares F-tests for joint significance of several terms, 285–287
interpretation when explanatory variables are correlated, 370–371, 371
least significant difference, 163
practical and statistical, 102–103 Simple linear regression, 176–206
advantages of, 176
assessment of fit using analysis of variance,
218–221
assumptions for, 207–236
balance and, 225–226
case studies on, 177–180
causation and, 196
correlation and, 196
definition of, 180–181
exercises on, 198–206, 227–236 graphical tools for model assessment,
213–216
independence assumption for, 181 inferential tools for, 188–194 interpolation and extrapolation, 181–182 interpretation after log transformations,
216–218
least squares regression estimation, 183–187 normal model for, 181, 182
vs. one-way analysis of variance, 223, 223–224
R-squared statistic and, 222 replication and, 197
sample size for estimating regression
coefficients, 711 terminology for, 180–181, 196
Simple random sampling, 104
Simpson, J., 59
Sites of short- and long-term memory (case
study), 477, 477–478, 482, 484, 486,
486–487, 490, 491, 492, 506 Skeels, H. M., 506
Skewness, 63, 64
Skodak, M., 506
Slabaugh, M. B., 169
Smith, D., 263
Smith, R. C., 304
Smoking and lung cancer (case study),
552–553, 565, 566
Snedecor, George, 125
Soler, M., 204
Space shuttle O-ring failures (case study), 86,
86, 105
Spatial correlation, 66
Spiegel, D., 110
Split-plot designs, 742–743
Spock conspiracy trial (case study), 117,
117–118, 118, 141 Sprague, J. B., 301
Square root transformation, 74 arcsine, 74
Squared term for curvature, 246, 246–247 Squire, L. R., 477
St. Leger, A. E., 231
Standard deviation(s), 21, 119
differing, robustness of two-sample t-tools against, 64, 65
pooled estimate of, 40, 41, 120, 121
Z-ratio and, 35 Standard error(s)
from complex sampling designs, 104 conversion factor for, 708
for difference of two averages, 40–41, 41 for estimated linear combinations of group
means, 154
multiple regression and, 277
of odds ratio, 561–562
for sample average, 34–35
sample proportion, 556–557
simple linear regression and, 186–187
Star plots for multivariate responses, 502, 503 State average SAT scores (case study), 346–348,
347, 349, 355–357, 357, 374–375 Statistic, defined, 19
Steelman, L. C., 346 Stem-and-leaf diagrams, 17, 17–18
finding median from, 18
Stepwise regression for explanatory variable
selection, 358–359, 361
Stratification, 104, 703
Strength of evidence, 165
Studentized range distributions, 161–162 Studentized residuals for flagging outliers, 325
external, 327
internal, 325
Study design. See Research design Suddath, R. L., 31
Sugrue, G., 145
Suranyi, G., 667
Survey sampling, 104
nonresponse and, 105
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

760 Index
Survival in Donner party (case study), 602, 603, 608, 609–610, 618–619, 626
Sutherland, G. D., 343
Swain, J. F., 479
Sweller, J., 87
Systematic random sampling, 22
T
t-distribution, 28–57
alternatives to t-tools, 85–112
assumptions underlying use of t-tools, 58–84 case studies on, 29–32
evaluating suitability of t-tool, 68
example of confidence interval, 49–50, 50 exercises on, 51–57
inferences in two-treatment randomized
experiment, 45–47
interpretation of p-values, 47–49, 48
95% confidence interval for mean, 37 paired t-test for no difference, 36
practical strategies for two-sample problem,
67–69, 69
rejection region approach to hypothesis
testing, 50
sampling distribution of sample average,
32–33, 33, 34
standard error of average in random sampling,
34–35
t-ratio based on sample average, 35–36
t-ratio for two-sample inference, 38–45
t-tests and confidence intervals for differences
of means, 120–121, 122 Tables of counts tools, 572–600
case studies on, 573–575
chi-squared test, 572, 579–582
common odds ratio estimate, 589–590 exercises on, 592–600
Fisher’s Exact Test, 572, 582–586
higher dimensional tables of counts, 591 log-linear methods for testing independence,
688, 690, 690
Mantel–Haenszel test, 572, 586–589 population models for 2  2 tables, 575–579 r  c tables of counts, 590–591
Tannenbaum, R. J., 150 Tanur, J. M., 568 Terminology
regression analysis, 180–181, 196
statistical, 19, 20–21
Test statistic (t-statistic), 11, 43–44
permutation distribution of, 16 randomization distribution of, 11–12, 12, 13,
TMSE. See Total mean squared error Total mean squared error (TMSE), 363 Total sum of squares, 219
Tourangeau, R., 668
Transformations. See Data transformations Treatment effects, 120, 395, 396–397, 397
additive model of, 10, 389, 389–390, 390 confidence interval for, 47
hypothesis test of no treatment effect, 46 multiplicative, 71–72
regression estimate of, 405–407, 406 saturated, nonadditive model of, 391,
391–392
testing for in creativity study, 11–14, 12, 13
Treatment levels, 727–728
factorial arrangement of, 729–739 number when levels are discrete, 728 number when levels are numerical, 728
Trellis graphs, 257–258, 259
Tsai, S. W., 171
Tukey–Kramer procedure, 151, 161 2  2  5 tables, 591
2  2 tables
chi-squared test of independence in, 580 compared with two one-at-a-time
experiments, 732
definition of effects in, 732, 733–734 equivalence of several tests for, 580–582 Fisher’s Exact Test for, 582–586
graphical presentation of interactions, 731,
732
hypotheses of homogeneity and independence, 575–576
interpretation of results in, 734
main effects in, 731
Mantel–Haenszel test for, 586–589, 587, 592 population models for, 575–579
sampling schemes leading to, 576–578 testable hypotheses and estimable parameters,
578–579
22 factorial structure, 729–732, 730, 732 23 factorial structure, 732–734, 733
U
Uncertainty, 1
compound, 160, 190
measuring in observational studies, 14–16 measuring in randomized experiments, 10–14
Uniformity trials, 442 Unplanned comparisons, 160
V
Va ̈isa ̈nen, R. A., 635
Van der Woot, M. E., 231 Variability, 133–136, 134
when all means are equal, 134–135
when means are different, 135, 135–136 Variable probability sampling, 22 Variables
canonical, 528–530, 529 (See also Canonical correlations analysis)
confounding, 6
dependent and independent, 196
describing distribution of response variable at
some value of explanatory variable, 189,
189–191, 191
explanatory, 157, 180–181, 182, 196 filtered, 459–461
indicator, 247–249
linear combinations of, 519–521 principal component, 521–524 (See also
Principal components analysis) repeated measures of, 476 response, 180–181, 182, 196 scatterplots of response variable vs.
explanatory variable, 213, 213–215, 214 Variance formulas for linear combinations of
regression coefficients, 293–294, 294 Variance inflation factor (VIF), 354
VIF. See Variance inflation factor (VIF) Viola, M. V., 472
Vitamin C and common cold (case study),
551–552, 558, 566
W
Wade, M. J., 697
Wald’s test for single coefficient, 612, 613
binomial counts and, 644, 644–645
Poisson regression and, 683 Webb, N. M., 145
Weighted least squares, 334, 335 Weighted regression, 215, 334–335 Weights, 334
Welch’s t-test, 97–99, 99
Welsh, H. H., 674
Why do some mammals have large brains for
their size? (case study), 239–242, 241,
245, 255–256, 258, 260, 260
Wichern, D. W., 509, 517
Widom, C. S., 567
Wilcoxon signed-rank test, 95, 100–102, 101 Wilcoxon test. See Rank-sum test
Wildman, V. J., 515
Wilk’s lambda, 499
Will, C. M., 49
Williams cultivar, 425
Wilson, E. O., 208
Wilson, M., 590
Woodworth, G. C., 574 Workman–Hotelling procedure, 190
Y
Yamada, S. B., 200
Z
Z-ratio, 35 Zola–Morgan, S. M., 477
47
Testing terms, 328–329
Thompson, J. D., 81
32 factorial structure, 734, 734–737, 736
effects in, 736
geometry of, 735–736, 736
interactions in, 737
linear and quadratic effects in, 734, 734–735
Tierney, P., 87
Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.